5.1 Type Conversion Functions
5.1.7 Word (signed), double word (signed) type
→
bit type conversion
5-19
5
APPLICATION
FUNCTIONS
INT_TO_BOOL(_E),
DINT_TO_BOOL(_E)
INT_TO_BOOL(_E), DINT_TO_BOOL(_E)
5.1.7 Word (signed), double word (signed) type → bit type
conversion
INT_TO_BOOL(_E), DINT_TO_BOOL(_E)
Function
Operation processing
(1) INT_TO_BOOL, INT_TO_BOOL_E
Converts word (signed) type data input to into bit type data, and outputs the operation
result from .
When the input value is 0, FALSE is output in bit type data.
When the input value is other than 0, TRUE is output in bit type data.
INT_TO_BOOL(_E)
DINT_TO_BOOL(_E)
_E: With EN/ENO
indicates any of the following
functions.
INT_TO_BOOL INT_TO_BOOL_E
DINT_TO_BOOL DINT_TO_BOOL_E
Input argument, EN:
Executing condition (TRUE: Execution, FALSE: Stop) ;Bit
s:
Input :Word (signed), double word (signed)
Output argument, ENO:
Output status (TRUE: Normal, FALSE: Error) :Bit
d:
Output :Bit
Universal
UD
High
Performance
EN ENO
ds
INT_TO_BOOL_E
(EN, s, d);ENO:=
Structured ladder
ST
INT_TO_BOOL_E
s
d
Word (signed) type
1567
0
Bit type
TRUE
FALSE