Hey all,
I'm trying to add a few tags over from a Siemens S7-1212 PLC.
I've tried to add a few tags from a DB. But have not successfully gotten it to work as I'm having some strange behaviour. This string tag is part of a UDT in the PLC.
In the PLC, it is under DB100, where the offset is 16.0 and the next items offset in the DB is 272.0, hence I assume my length of string is 256, I've also replicated the issue using 210 which the documentation suggests is the max size/
When I put the Item path as
ns=1;s=[Master 1]DB100,STRING16.0.256
The tag comes back as error configuration,
but when I put
ns=1;s=[Master 1]DB100,STRING16.256
All of the other tags, that were fine, in the UDT suddenly go bad quality.
Am I missing something? And why does this effect the reading of my other tags?
Siemens strings have two extra bytes in the PLC, at the first two byte offsets, containing the max and current allowed length. You have to account for that in your offsets, and those values must be correct (in the PLC).
No, still @16, but the length for Ignition is two less than the delta to the next object in the DB. (The first actual character is @18.) Consider reading those two bytes separately (as unsigned bytes) to see if they are correct.