Documentation

TO_BOOL

Function name

TO_BOOL

ST call

PROGRAM TO_BOOL_DEMO
VAR
BOOL1: BOOL;
INT1: INT;
END_VAR
BOOL1:=TO_BOOL(INT1);
END_PROGRAM

Description

The function brings the last bit of the input value to the output.

Inputs

Input Type Description
IN ANY_ELEMENTARY Input value

Outputs

Output Type Description
=> BOOL Output value

Application example