ISaGRAF. Version 3.4


CHAR


:

Code INT [0..255]

Q MSG

ASCII

( ASCII 256)

:

ASCII .

(*FBD CHAR*)

(* ST : *)

Display := CHAR ( value + 48 );

(* [0..9] *)

(* 48 - ascii '0' *)

(* result - '0' '9' *)

(* IL : *)

LD value

ADD 48

CHAR

ST Display