Re: [S7] String handling

2018-09-02 Thread Julian Feinauer
Hey all, I did some more research and am able to (partially) answer my own question. Regarding to this thread [1] and die TIA Spec (only available as image) the following is true: Syntax: STRING[n] has length n+2 First to bytes (see comment in chris' code) are 1: Maximal String length 2: Actual

[S7] String handling

2018-09-02 Thread Julian Feinauer
Hey everybody, I have another question about the semantics we should provide for reading / writing Strings in the S7 Driver. I have not found an example on how this is handled currently but to me it looks a bit like a mix of reading the data as “array”, i.e., using the size parameter on the req

[S7] TransportSize Enum Code

2018-09-02 Thread Julian Feinauer
Hi all, as I’m going forward refactoring the S7 Driver I have one question about the „code“ field in the TransportSize enum. For me it seems as this code is type related, i.e., is unique for each “S7Type”. Furthermore, the number of bytes should be redundant to the bitWIdth ( / 8), except for “e