3 xor instruction (xor) – Yaskawa Ladder Works Programming Manual User Manual
Page 57

3.3 XOR Instruction (XOR)
3-4
3.3 XOR Instruction (XOR)
[Outline]
The XOR instruction outputs the exclusive logical sum (XOR) of Source A and Source B to the Dest.
1 bit Truth Table for the Exclusive Logical Sum
Source A
Source B
Dest
0 0 0
0 1 1
1 0 1
1 1 0
[Format]
Symbol : XOR
Full Name : Exclusive OR
Category : LOGIC
Icon :
[Parameter]
Parameter Name
Setting
Source A
· Any integer type and double-length integer type register
· Any integer type and double-length integer type register with subscript
· Subscript register
· Constant
Source B
· Any integer type and double-length integer type register
· Any integer type and double-length integer type register with subscript
· Subscript register
· Constant
Dest
· Any integer type and double-length integer type register (except for # and
C register)
· Any integer type and double-length integer type register with subscript
(except for # and C register)
· Subscript register
[Program Example]
The exclusive logical sum of MW00100 and a constant is stored in MW00101.