byte by byte checking the first two bytes which contains max length and actual size
https://snap7.sourceforge.net/siemens_dataformat.html
You need to reconnect on TCP/Network error i.e. when (Error & 0x0000FFFF)!=0;
Apri platform.h e leggi i commenti, devi selezionare la piattaforma
just delete -mword-relocations from the makefile. It's no longer needed
f.b. is right. GetPlcDateTime() and other functions are not implemented in S7Protokol of S71200/1500.
that's not a funny thing :-( I discovered (I guess) a bug into the S71500 Firmware (only 1500, neither 1200 nor S73XX/4XX) The write command returns Error 0, I analyzed the telegram and it was ok, but the variable is not written. Only write operations are affected. I solved in this way: 1 - The DB must be unoptimized (and that was known). 2 - Il the variable that we write is passed directly or into a struct to a FB/FC, also that FB/FC must be unoptimized Seems that there is something wrong to the...
I'm working on a new Open Source communication suite ;-) (stay tuned.....) After, I will manage that.