5-62
5.1 Type Conversion Functions
5.1.20
Word (unsigned)/16-bit string, double word (unsigned)/32-bit string type
→
bit type conversion
WORD_TO_BOOL(_E), DWORD_TO_BOOL(_E)
(2) DWORD_TO_BOOL, DWORD_TO_BOOL_E
Converts double word (unsigned)/32-bit string type data input to into bit type data, and
outputs the operation result from .
When the input value is 0
H, FALSE is output.
When the input value is other than 0
H, TRUE is output.
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.
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
12345678H
0H
Bit type
TRUE
FALSE
d
d
d
d