XOR Table

Function

XOR output becomes true (1) if exactly one input is true (1).

The XOR statement is one of the dynamic control icons.

It has two inputs by default, but the user can add up to n (recommended limit 32) inputs in the slot sheet view, selecting the Add Slot function of the context menu.


Programming Hint

A numeric input (if not Boolean) is read as true if the value is >= 0.5 and false if the value is < 0.5 including negative values.


Fig. 112.   Wire-sheet Icon

Fig. 113.   Property Sheet

Fig. 114.   Slot Sheet

Inputs and Outputs

Table 78.   Inputs

Inputs

Type

Functional description

In A

boolean

input value.

In B

boolean

input value

In n

boolean/ numeric

Add up to n (recommended limit 32) inputs in the slot sheet

In Enabled

boolean

If the input “In Enabled” is set to false disabled in the slot sheet, the output “Out” will be disabled and is set to the value “0”.


Table 79.   Outputs

Outputs

Type

Functional description

Out

boolean

One output = XOR value of all inputs


Parameter List

No parameters.