XOR (exclusive OR)
The XOR instruction performs an exclusive OR operation of two Boolean values.
Languages supported: Function block diagram, ladder diagram, structured text.
This instruction applies to the Micro810, L20E, L50E, and L70E controllers.
XOR

Parameter | Parameter Type | Data Type | Description |
---|---|---|---|
i1 | Input | BOOL | Value in Boolean data type. |
i2 | Input | BOOL | Value in Boolean data type. |
o1 | Output | BOOL | Boolean exclusive OR of the two input terms.
|
XOR examples
XOR function block diagram example

XOR ladder diagram program example

(* ST equivalence: *) bo10 := bi101 XOR NOT (bi102); bo5 := (bi51 XOR bi52) XOR bi53;
Provide Feedback