ANY_TO_ULINT
Converts variables to 64-bit unsigned long integer variable
TIP:
The maximum value for a REAL or LREAL input must be
less than 1.8446744e+19. For input values greater than this maximum, the output value is
determined by the target type. For
Windows®
and Linux targets, the
output value is reset to zero when the input value is greater than 1.8446744e+19. While for
QNX targets, the output value goes into overflow.
Arguments | ||
---|---|---|
i1 | BOOL - SINT - USINT - BYTE - INT - UINT - WORD - DINT - UDINT - DWORD - LINT - ULINT - LWORD - REAL - LREAL - TIME - DATE - STRING | Any value |
o1 | ULINT | 0 if i 1 is FALSE / 1 if i 1 is TRUE number of milliseconds for a timer integer part for real decimal number represented by a string |
Example
(* FBD example with "Convert to Unsigned Long Integer" Operators *)

(* ST Equivalence: *)
bres := ANY_TO_ULINT (true); | (* bres is 1 *) |
tres := ANY_TO_ULINT (t#0s46ms); | (* tres is 46 *) |
mres := ANY_TO_ULINT ('0198'); | (* mres is 198 *) |
Provide Feedback