AND  ANDN  &

PLCopen motion icon

Operator - Performs a logical AND of all inputs.

  • 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.

Inputs

Input

Data Type

See Data Types.

Range

Unit

Default

Description

IN1

BOOL

FALSE, TRUE

 

 

First Boolean input.

IN2

BOOL

FALSE, TRUE

 

 

Second Boolean input.

Outputs

Output

Data Type

See Data Types.

Range

Unit

Description

Q

BOOL

FALSE, TRUE

 

Boolean AND of all inputs.

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