Redundant instruction
This is a redundant instruction. It is replaced by: TO_BOOL
DINT_TO_BOOL converts a value of the data type DINT into a value of the data type BOOL.
Input
Input data type
Output
Conversion result
If the required data type is supported, we recommend using the overloaded instruction TO_BOOL
If the input value = 0 (16#0000), the conversion result will be = 0 (FALSE); in any other case, it will be = 1 ( TRUE).