Table of Contents

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

InputType Description
IN ANY_ELEMENTARYInput value

Outputs

OutputTypeDescription
BOOLOutput value

Application example