AND ANDN &
Inputs
|
Input |
Data Type |
Range |
Unit |
Default |
Description |
|---|---|---|---|---|---|
|
IN1 |
BOOL |
|
|
|
First Boolean input. |
|
IN2 |
BOOL |
|
|
|
Second Boolean input. |
Outputs
|
Output |
Data Type |
Range |
Unit |
Description |
|---|---|---|---|---|
|
Q |
BOOL |
|
|
Boolean AND of all inputs. |
Remarks
- In the FBD and FFLD languages, the block is called
&.- To select the number, right-click on the block and choose the Set number of inputs command in the contextual menu.
- In ST and IL languages,
&can be used instead of AND.
Truth Table
|
IN1 |
IN2 |
Q |
|---|---|---|
|
0 |
0 |
0 |
|
0 |
1 |
0 |
|
1 |
0 |
0 |
|
1 |
1 |
1 |
FBD Language Example
- In the FBD Language, the block can have a maximum of 32 inputs.
FFLD Language Example
- In the FFLD Language, the block can have a maximum of 32 inputs.
IL Language Example
Not available.
ST Language Example
Q := IN1 AND IN2;
Q := IN1 & IN2 & IN3;
See Also




