CHAR

Gives a one character message string from a given ASCII code.
lrsf_ch1
Arguments
Code
Code
DINT
Code in set [0 .. 255]
CHAR
Q
MESSAGE
One character string
the character has the ASCII code given in input Code
(ASCII code is used modulo 256)
Example
(* FBD Program using "CHAR" Function *)
lrsf_ch2
(* ST Equivalence: *)
Display := CHAR ( value + 48 ); (* value is in set [0..9] *) (* 48 is the ascii code of '0' *) (* result is one character string from '0' to '9' *)
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal