XOR / XORN

PLCopen motion icon

Operator - Performs an exclusive OR of all inputs.

  • The block is called =1 in the FBD and FFLD languages.

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

 

Exclusive OR of all inputs.

Truth Table

IN1 IN2 Q

0

0

0

0

1

1

1

0

1

1

1

0

FBD Language Example

FFLD Language Example

  • The first input is the rung.
  • The rung is the output.

IL Language Example

Not available.

ST Language Example

Q := IN1 XOR IN2;
Q := IN1 XOR IN2 XOR IN3;

See Also