ANY_TO_DINT
The ANY_TO_DINT instruction converts a value to a 32-bit Double Integer value.
Languages supported: Function block diagram, ladder diagram, structured text.
This instruction applies to the Micro810, L20E, L50E, and L70E controllers.
ANY_TO_DINT

Parameter | Parameter Type | Data Type | Description | |
---|---|---|---|---|
EN | Input | BOOL | Instruction enable.
Applies only to ladder diagram programs. | |
i1 | Input | BOOL SINT USINT BYTE INT UINT WORD UDINT DWORD | LINT ULINT LWORD REAL LREAL TIME DATE STRING | Any value other than a Double Integer. |
o1 | Output | DINT | A 32-bit Double Integer value. | |
ENO | Output | BOOL | Enable output. Applies only to ladder diagram programs. |
ANY_TO_DINT structured text example
bres := ANY_TO_DINT (true); | (* bres is 1 *) |
tres := ANY_TO_DINT (t#1s46ms); | (* tres is 1046 *) |
mres := ANY_TO_DINT ('0198'); | (* mres is 198 *) |
Provide Feedback