T_MaxString

The variable of this type is PLC string with the maximal length. Longer strings are allowed, but the string functions are limited to 255 characters.

TYPE T_MaxString : STRING(MAX_STRING_LENGTH);
END_TYPE
VAR_GLOBAL CONSTANT
    MAX_STRING_LENGTH : UDINT := 255;
ENd_VAR

Requirements

Development environment

Target system type

PLC libraries to include (Category group)

TwinCAT v3.1.0

PC or CX (x86, x64, ARM)

Tc2_System (System)