ANA
Converts a non-integer variable to an integer variable.

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

(* ST equivalence: *)
bres := ANA (true); (* bres is 1 *)
tres := ANA (t#1s46ms); (* tres is 1046 *)
mres := ANA ('0198'); (* mres is 198 *)
Provide Feedback