MSG
Converts an integer, real, boolean, or time variable to a string variable.

Arguments | ||
---|---|---|
IN | DINT - BOOL - REAL - TIME | A non-string value |
Q | MESSAGE | ''false' or 'true' if IN is a boolean value decimal representation if IN is an integer or real |
Example
(* FBD example with "Convert to Message" blocks *)

(* ST Equivalence: *)
bres := MSG (TRUE); (* bres is 'TRUE' *)
ares := MSG (125); (* ares is '125' *)
Provide Feedback