TO_BOOL

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.

InputType Description
IN ANY_ELEMENTARYInput value
OutputTypeDescription
BOOLOutput value

  • © Energocentrum Plus, s.r.o. 2017 - 2024