Download this file
1 2 3 4 5 6 7 8 9
(* Terminates the STRING psIn at position udiLength *) METHOD TerminateString : BOOL VAR_INPUT psIn : POINTER TO BYTE; // Pointer to STRING udiLength : UDINT; // Length of psIn psIn[udiLength] := 0; TerminateString := TRUE;