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
XOR
XOR parameters
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.
  • TRUE: When either input is TRUE.
  • FALSE: When both inputs are FALSE or both inputs are TRUE.

XOR examples

XOR function block diagram example
XOR function block diagram example
XOR ladder diagram program example
XOR ladder diagram program example
(* ST equivalence: *) bo10 := bi101 XOR NOT (bi102); bo5 := (bi51 XOR bi52) XOR bi53;
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal