Function
XORW
XORW(036) takes the logical exclusive OR of data
specified in I
and I
and outputs the result to R.
1
2
XORL
XORL(612) takes the logical exclusive OR of data
specified in I
and I
as double-word data and outputs
1
2
the result to R, R+1.
Example Programming
When the execution condition CIO 0.00 is ON, the logical exclusive OR is taken of corresponding bits in
CIO 901, CIO 900 and D1001, D1000 and the results will be output to corresponding bits in D1201 and
D1200.
0.00
900
D1000
D1200
CS/CJ/NSJ Series Instructions Reference Manual (W474)
I
I
+ I
1
2
1
I
1
1
1
0
0
(I
I
+1) (I
1,
1
I
I
+1
1,
1
1
1
0
0
S
: 900CH
1
S
S
+1: 901CH
1
D1000
D1001
Note: The symbol indicates exclusive logical OR.
3. Instructions
I
R
2
I
2
1
0
1
0
, I
+1) + (I
, I
+1) (I
, I
+1)
2
2
1
1
2
2
I
I
+1
R, R+1
2,
2
1
0
1
0
S
: D1000
2
+1: D1001
D+1: D1201
2
D1200
D1201
R
0
1
1
0
(R, R+1)
0
3
1
1
0
D: D1200
441
Need help?
Do you have a question about the CJ - REFERENCE MANUAL 02-2010 and is the answer not in the manual?
Questions and answers