5-68
5.1 Type Conversion Functions
5.1.22
Double word (unsigned)/32-bit string type
→
word (signed), double word (signed) type conversion
DWORD_TO_INT(_E), DWORD_TO_DINT(_E)
(2) DWORD_TO_DINT, DWORD_TO_DINT_E
Converts double word (unsigned)/32-bit string type data input to into double word
(signed) type data, and outputs the operation result from .
Operation result
(1) Function without EN/ENO
An operation is executed and the operation value is output from .
(2) Function with EN/ENO
The following table shows the executing conditions and operation results.
*1 When FALSE is output from ENO, the data output from is undefined.
In this case, create a program so that the data output from is not used.
When the DINT_TO_WORD(_E) function is executed, high-order 16-bit data of
double word (unsigned)/32-bit string type data input to is discarded.
EN ENO
TRUE (Operation execution) TRUE Operation output value
FALSE (Operation stop)
FALSE
*1
Undefined value
s
d
Double word (unsigned)/32-bit string type
BC614EH
Double word (signed) type
12345678
d
d
d
d
s