AND &
Operator - Performs a logical AND of all inputs.
Inputs
Input |
Data type |
Description |
IN1 |
BOOL |
First boolean input. |
IN2 |
BOOL |
Second boolean input. |
Outputs
Output |
Data type |
Description |
Q |
BOOL |
Boolean AND of all inputs. |
Truth table
IN1 |
IN2 |
Q |
0 |
0 |
0 |
0 |
1 |
0 |
1 |
0 |
0 |
1 |
1 |
1 |
Remarks
In FBD language, the block may have up to 16 inputs. The block is called "&" in FBD language. In LD language, an AND operation is represented by serialized contacts. In ST language, "&" can be used instead of "AND".
ST Language
Q := IN1 AND IN2;
Q := IN1 & IN2 & IN3;
FBD Language
The block may have up to 16 inputs:
LD Language
Serialized contacts:
AND & |
IEC 61131-3 Automation platform > Programming - Reference guide > Boolean Operations > AND & |
Created with the Personal Edition of HelpNDoc: Elevate your documentation to new heights with HelpNDoc's built-in SEO