Function Block XOR

The Function Block AND is an EXCLUSIVE-OR operation.

Note: This function block can have more than two inputs. You can right-click on the function block to add another input.

Inputs

All data types can be used at the inputs. Each input is checked from top to bottom.

Output

The output of the function block is true if only one input is true. Unused inputs are considered false.

Note: Unlike other PLC systems, this is a real XOR even when multiple inputs have been used.