Function - Builds a single character string
CODE : DINT ASCII code of the wished character
Q : STRING STRING containing only the specified character
In LD language, the input rung (EN) enables the operation, and the output rung keeps the same value as the input rung. In IL language, the input parameter (CODE) must be loaded in the current result before calling the function.
Q := CHAR (CODE);
(* The function is executed only if EN is
TRUE *)
(* ENO is equal to EN *)
Op1: LD CODE
CHAR
ST Q