ANA

Converts a non-integer variable to an integer variable.
lrso_ana1
Arguments
IN
BOOL - MESSAGE - REAL - TIME
A non-integer value
Q
DINT
0 if IN is FALSE / 1 if IN is TRUE
Number of milliseconds for a timer
Integer part for real
Decimal number represented by a string
Example
(* FBD example with "ANA" operators *)
lrso_ana2
(* ST equivalence: *)
bres := ANA (true); (* bres is 1 *)
tres := ANA (t#1s46ms); (* tres is 1046 *)
mres := ANA ('0198'); (* mres is 198 *)
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal