TO_BOOL
PROGRAM TO_BOOL_DEMO VAR BOOL1: BOOL; INT1: INT; END_VAR BOOL1:=TO_BOOL(INT1); END_PROGRAM
The function brings the last bit of the input value to the output.
Input | Type | Description |
IN | ANY_ELEMENTARY | Input value |
Output | Type | Description |
⇒ | BOOL | Output value |