445
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Logic Instructions
3
XNRW/XNRL
Function
Example Programming
When the execution condition CIO 0.00 is ON, the logical exclusive NOR is taken of corresponding bits
in CIO 801, CIO 800, and CIO 101, CIO 100 and the results will be output to corresponding bits in D501
and D500.
z XNRW
XNRW(037) takes the logical exclusive NOR of data
specified in I
1
and I
2
and outputs the result to R.
z XNRL
XNRL(613) takes the logical exclusive NOR of data
specified in I
1
and I
2
and outputs the result to R, R+1.
1
•
2
+
1
•
2
→
I
1
I
2
R
111
100
010
001
(I
1,
I
1
+1)
•
(I
2
, I
2
+1)
+ (I
1
, I
1
+1)
•
(I
2
, I
2
+1)
→
(R, R+1)
I
1,
I
1
+1 I
2,
I
2
+1
R, R+1
111
100
010
001
S
1
: 800CH
S
1
+1: 801CH
S
2
: 100CH
S
2
+1: 101CH
D: D500
D+1: D501
0.00
800
100
D500
D500
D501
Note: The symbol indicates exclusive logical NOR.