Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
9 Applied Instructions (Arithmetic and Logical Operation)
9.9 WXOR / Logical Exclusive OR
190
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
Function and operation explanation
1. 16-bit operation(WXOR, WXORP)
The exclusive logical sum (XOR) operation is executed to the contents specified by and in units of
bit, and the result is transferred to the device specified by .
While the command input is OFF, the data of the transfer destination specified by does not change.
While the command input is ON, the data of the transfer sources specified by and do not
change.
When a constant (K) is specified in the transfer sources specified by and , it is automatically
converted into the binary format.
The logical exclusive sum operation is executed in units of bit as shown in the table below (1 1 = 0, 0 0
= 0, 1 0 = 1 and 0 1 = 1).
In the table : 1=ON, 0=OFF
2. 32-bit operation(DXOR, DXORP)
The exclusive logical sum (XOR) operation is executed to the contents specified by and in units of
bit, and the result is transferred to the device specified by .
While the command input is OFF, the data of the transfer destination specified by does not change.
While the command input is ON, the data of the transfer sources specified by and do not
change.
When a constant (K) is specified in the transfer sources specified by and , it is automatically
converted into the binary format.
The logical exclusive sum operation is executed in units of bit as shown in the table below (1 1 = 0, 0 0
= 0, 1 0 = 1 and 0 1 = 1).
In the table : 1=ON, 0=OFF
Cautions
1) Instructions of pulse operation type are not provided in the FX0S, FX0 or FX0N PLC.
To execute pulse operation, make the instruction execution condition pulse type.
2) Some restrictions to applicable devices
S1:The FX
3G, FX3GC, FX3U and FX3UC PLCs only are applicable.
S2:The FX
3U and FX3UC PLCs only are applicable.
WXOR
Logical operation
(unit: bit)
000
101
011
110
+1, +1,
+1,
DXOR instruction
Logical operation
(unit: bit)
000
101
011
110
Command input
XOR data 1
XOR data 2
XOR result
WXOR
EN
s1
s2
ENO
d1
ds1 s2
Command input
XOR result
DXOR
EN
s1
s2
ENO
d
+1, +1, +1,
ds1 s1
s2 s2
d
XOR data 1
XOR data 2