Table of Contents

AND

Function name

AND

ST call

PROGRAM AND_DEMO
    VAR
       BOOL1,BOOL2,BOOL3: BOOL;
  END_VAR
    BOOL3:= BOOL1 AND BOOL2;
END_PROGRAM

Description

Logical “AND” of two or more inputs. All inputs must be TRUE for the output to be TRUE.

Inputs

InputType Description
IN1..ANY_BITInput value

Outputs

OutputTypeDescription
BOOLOutput value

Application example