XOR
Bitwise XOR of bit operands. The operands should be of the type BOOL, BYTE, WORD or DWORD.
Example in IL:
Var1 :BYTE;
LD 2#1001_0011
XOR 2#1000_1010
ST Var1 (* Result is 2#0001_1001 *)
Example in ST:
Var1 := 2#1001_0011 XOR 2#1000_1010
Example in FBD:
![]() | Please note, that the behaviour of the XOR POU in the extended form (more than 2 inputs) is not standard conformal implemented. The inputs are checked in piars, and then the respective results are compared against each other. |