Section 1: static type definition
Static type declarations are generated depending on the "use_extended_string_var" setting. The structure element [variable_name]".token", which ultimately corresponds to the string read or written by the NC, is of significance for the PLC programmer. The structure element f1_st serves to fill up unused bytes (see Section: 1.4.1).
Programming example
TYPE STRING_20:
STRUCT
token:STRING(20);
f1_st: ARRAY[0..2] OF BYTE;
END_STRUCT
END_TYPE
TYPE STRING_20_2:
STRUCT
token:STRING(20);
f1_st: ARRAY[0..106] OF BYTE;
END_STRUCT
END_TYPE