5-22
5.1 Type Conversion Functions
5.1.7 Word (signed), double word (signed) type
→
bit type conversion
INT_TO_BOOL(_E), DINT_TO_BOOL(_E)
(2) The program which converts double word (signed) type data input to into bit type data,
and outputs the operation result from .
(a) Function without EN/ENO (DINT_TO_BOOL)
[Structured ladder]
[ST]
g_bool1 := DINT_TO_BOOL(g_dint1);
s
d