REAL

Converts a non-real variable to a real variable.
lrso_re1
Arguments
IN
DINT - BOOL - MESSAGE - TIME
A non-real value (no message)
Q
REAL
0.0 if IN is FALSE / 1.0 if IN is TRUE
Number of milliseconds for a timer
Equivalent number for integer
Example
(* FBD example with "REAL" operators *)
lrso_re2
(* ST Equivalence: *)
bres := REAL (true);
(* bres is 1.0 *)
tres := REAL (t#1s46ms);
(* tres is 1046.0 *)
ares := REAL (198);
(* ares is 198.0 *)
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal