Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
SINT
USINT
DINT
LREAL
LINT
ULINT

Strings

Please see https://support.industry.siemens.com/tf/WW/en/posts/string-data-type/51621?page=0&pageSize=10

A short description of the syntax and intern format is found here Image Added.

The following Syntax is valid and will be supported:

Code Block
STRING[n] // String with max number of characters: n
STRING // equivalent to STRING[254]


Info

Note that a 2 byte prefix is used, so n+2 bytes have to be read from the plc.

The first byte represents the max length of the String, i.e., n above. The second one represents the actual length, i.e., the number of bytes to convert to string (starting from offset 2, then).

All bytes represent ASCII Chars.

Examples for valid addresses

...