MAXSTRING_TO_BYTEARR

MAXSTRING_TO_BYTEARR 1:

Convertes a string in single ASCII codes of a byte array.

FUNCTION MAXSTRING_TO_BYTEARR: ARRAY[0..MAX_STRING_LENGTH] OF BYTE

VAR_INPUT

VAR_INPUT
    in : T_MaxString;
END_VAR

in: String to be converted (T_MaxString) .

Requirements

Development environment

Target system type

PLC Libraries to include

TwinCAT v2.11.0 Build > 1550

PC or CX (x86, ARM)

TcUtilities.Lib