CHAR

Function - Builds a single character string

Inputs

CODE  : DINT ASCII code of the wished character

Outputs

Q : STRING     STRING containing only the specified character

Remarks

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.

ST Language

Q := CHAR (CODE);

FBD Language

LD Language

(* The function is executed only if EN is TRUE *)
(* ENO is equal to EN *)

IL Language:

Op1: LD   CODE
     CHAR
     ST   Q

See also

ASCII