Hello,
I'm trying to read/write String to S7 315 2 DP using the W95_S7.DLL
I've no problem with CHAR, REAL, INT, BOOL datatypes, but require information about the Siemens STRING type.
When you declare a STRING[10] in the PLC, and have a look to the hexa bytes, you find 12 bytes :
- 2 bytes : length and probably something else
- 10 bytes : then 10 characters, one character per byte.
Of course, to be able to write correctly a STRING in the Siemens structure, I need to know the structure of the 2 first bytes.
Can somebody give me that information ?
Thanks,
Michel.
I'm trying to read/write String to S7 315 2 DP using the W95_S7.DLL
I've no problem with CHAR, REAL, INT, BOOL datatypes, but require information about the Siemens STRING type.
When you declare a STRING[10] in the PLC, and have a look to the hexa bytes, you find 12 bytes :
- 2 bytes : length and probably something else
- 10 bytes : then 10 characters, one character per byte.
Of course, to be able to write correctly a STRING in the Siemens structure, I need to know the structure of the 2 first bytes.
Can somebody give me that information ?
Thanks,
Michel.