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