Re: [fpc-pascal] Sending Hex codes over TCP/IP

2020-09-13 Thread Brian via fpc-pascal
Use Ararat Synapse . http://synapse.ararat.cz/doc/help/ Unit blcksock Class TTCPBlockSocket Then send and receive byte arrays using : Public function SendBuffer(Buffer: TMemory; Length: Integer): Integer; override; Public function RecvBuffer(Buffer: TMemory; Len: Integer): Integer;

Re: [fpc-pascal] Sending Hex codes over TCP/IP

2020-09-13 Thread James Richters via fpc-pascal
: fpc-pascal On Behalf Of LacaK via fpc-pascal Sent: Sunday, September 13, 2020 5:56 AM To: ja...@productionautomation.net; FPC-Pascal users discussions Cc: LacaK Subject: Re: [fpc-pascal] Sending Hex codes over TCP/IP Dňa Fri, 11 Sep 2020 19:13:38 -0400 James Richters via fpc-pascal napísal

Re: [fpc-pascal] Sending Hex codes over TCP/IP

2020-09-13 Thread LacaK via fpc-pascal
Dňa Fri, 11 Sep 2020 19:13:38 -0400 James Richters via fpc-pascal napísal:> What I'm trying to do is control some different ethernet relays. > They use> MODBUS TCP. I'm trying to keep it as simple as possible. I found >a modbus> library for Pascal but it was way over complicated for that I

Re: [fpc-pascal] Sending Hex codes over TCP/IP

2020-09-11 Thread James Richters via fpc-pascal
: [fpc-pascal] Sending Hex codes over TCP/IP On Fri, 11 Sep 2020, James Richters via fpc-pascal wrote: > I'm trying to figure out how to send and receive Arrays of Bytes or perhaps a buffer of hex codes over TCP/IP, but everything I find seems to want to send and receive strings. Can some

Re: [fpc-pascal] Sending Hex codes over TCP/IP

2020-09-11 Thread Bo Berglund via fpc-pascal
On Fri, 11 Sep 2020 16:58:50 -0400, James Richters via fpc-pascal wrote: >I'm trying to figure out how to send and receive Arrays of Bytes or perhaps a >buffer of hex codes over TCP/IP, but everything I find seems to want to send >and receive strings. Can someone please point me in the right

Re: [fpc-pascal] Sending Hex codes over TCP/IP

2020-09-11 Thread Tony Whyman via fpc-pascal
(GMT+00:00) To: 'FPC-Pascal users discussions' Cc: James Richters Subject: [fpc-pascal] Sending Hex codes over TCP/IP I'm trying to figure out how to send and receive Arrays of Bytes or perhaps a buffer of hex codes over TCP/IP,  but everything I find seems to want to send and receive strings

Re: [fpc-pascal] Sending Hex codes over TCP/IP

2020-09-11 Thread Michael Van Canneyt via fpc-pascal
On Fri, 11 Sep 2020, James Richters via fpc-pascal wrote: I'm trying to figure out how to send and receive Arrays of Bytes or perhaps a buffer of hex codes over TCP/IP, but everything I find seems to want to send and receive strings. Can someone please point me in the right direction on how

[fpc-pascal] Sending Hex codes over TCP/IP

2020-09-11 Thread James Richters via fpc-pascal
I'm trying to figure out how to send and receive Arrays of Bytes or perhaps a buffer of hex codes over TCP/IP, but everything I find seems to want to send and receive strings. Can someone please point me in the right direction on how to do this? Basically I want to make a connection to an