Bit numbering when using
strings
Strings are arranged in memory as a 4-byte length field,
followed by the actual string data. Therefore, when reading
or writing bits in a string, you must account for the
length field.
Notice bits zero through 31 represent the 4-byte length field for the string. The first bit of the actual string data is bit 32. The second data bit would be number 33 and so forth.
The following Input tab illustrates the
Get Bit action for bit numbers when using
a string.
Notice the Type column for the input value D[15] is STRING(2).