Documentation

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

Input Type Description
IN1.. ANY_BIT Input value

Outputs

Output Type Description
=> BOOL Output value

Application example