Chapter 12 Data conversion instructions
292 Rockwell Automation Publication 2080-RM001D-EN-E - February 2015
ANY_TO_UINT converts a value to an Unsigned Integer value.
Arguments
Parameter Parameter Type Data Type Description
EN Input BOOL Function enable.
When Enable = TRUE, execute the conversion to the 16-bit Unsigned Integer
computation.
When Enable = FALSE, there is no computation.
Applies only to LD programs.
i1 Input BOOL - SINT - USINT - BYTE -
INT - WORD - DINT - UDINT -
DWORD - LINT - ULINT -
LWORD - REAL - LREAL - TIME
- DATE - STRING
Any non-Unsigned Integer value.
o1 Output UINT An Unsigned Integer value.
ENO Output BOOL Enable out.
Applies only to LD programs.
ANY_TO_UINT operator ST language example
(* ST Equivalence: *)
bres := ANY_TO_UINT (true);
tres := ANY_TO_UINT (t#0s46ms);
mres := ANY_TO_UINT ('0198');