TO_BCD_BOOL
PROGRAM TO_BCD_BYTE_DEMO VAR BOOL1: BOOL; U: UDINT; END_VAR BOOL1:= TO_BCD_BOOL(IN1:=U); END_PROGRAM
The function performs conversion of an integer (ANY_INT) to a logical value (BOOL). The value of 0 is converted to FALSE, all other values are converted to TRUE.
| Input | Type | Description |
| IN1 | ANY_INT | Input value |
| Output | Type | Description |
| ⇒ | BOOL | Output value |