Re: [fpc-pascal] String literals and code page of .pas source file

2020-09-13 Thread Tomas Hajny via fpc-pascal
On 2020-09-12 23:03, Tomas Hajny wrote: On 2020-09-12 18:51, Jonas Maebe via fpc-pascal wrote: On 12/09/2020 18:44, Sven Barth via fpc-pascal wrote: Jonas Maebe via fpc-pascal > schrieb am Sa., 12. Sep. 2020, 17:47: . . While performing some tests,

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
Thanks! That is exactly what I’ve been trying to figure out. Just one simple unit, not a whole huge package that is so complicated I can’t follow it. Your MODBUS TCP implementation is very easy for me to follow and to see what’s going on. I wrote my own MODBUS RTU unit, so I’m familiar

Re: [fpc-pascal] String literals and code page of .pas source file

2020-09-13 Thread LacaK via fpc-pascal
<<< text/html;charset=utf-8: Unrecognized >>> ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC for FreeBSD/PowerPC64

2020-09-13 Thread Jonas Maebe via fpc-pascal
On 13/09/2020 10:36, Karoly Balogh (Charlie/SGR) via fpc-pascal wrote: > See systems/t_linux.pas for an example, and do something similar in the > PPC64 FreeBSD port. You should also set the ABI in systems/i_bsd.pas already. The code in t_linux is because of the support for both big and little

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] FPC for FreeBSD/PowerPC64

2020-09-13 Thread Karoly Balogh (Charlie/SGR) via fpc-pascal
Hi, On Sat, 12 Sep 2020, Curtis Hamilton via fpc-pascal wrote: > I'm attempting to port FPC to Freebsd/PowerPC64  and need some help.  > > I've added initial code to get started.  However, when trying to cross > compile I'm getting an internal error message when the newly > created cross