CHAR
Gives a one character message string from a given ASCII code.

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 *)

(* 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