There is still a little bug pending fix with both S7Strings and S7WStrings. The calculated ByteLength is bad.
S7Strings: If the reserved value is odd, it needs to add a +1 to pad with words
WS7String: In Plc, the function VarTypeToByteLength does not include the VarType.S7WString case, and so it returns 0 instead of the right (varCount * 2) + 4 it should.
I will create a Pull Request for these to be fixed.
There is still a little bug pending fix with both S7Strings and S7WStrings. The calculated ByteLength is bad.
I will create a Pull Request for these to be fixed.