Logic Instructions
Flags
Precautions
Examples
0.00
1000
D1000
D1200
3-12-7 EXCLUSIVE NOR: XNRW(037)
Purpose
Ladder Symbol
(I
I
+1), (I
, I
+1) + (I
, I
1,
1
2
2
1
I
I
+1
I
I
1,
1
2,
1
1
0
0
Name
Label
Error Flag
ER
Equals Flag
=
Negative Flag
N
When XORL(612) is executed, the Error Flag will turn OFF.
If as a result of the exclusive OR, the content of R, R+1 is 00000000 hex, the
Equals Flag will turn ON.
If as a result of the exclusive OR, the leftmost bit of R+1 is 1, the Negative
Flag will turn ON.
When the execution condition CIO 0.00 is ON, the logical exclusive OR will be
taken of corresponding bits in CIO 1001, CIO 1000 and D1001, D1000 and
the results will be output to corresponding bits in D1201 and D1200.
S:
CIO 1000
S
+1: CIO 1001
1
1000.00
1000.01
1000.02
1000.03
1000.15
1001.00
1001.15
Note: The symbol indicates exclusive logical OR.
Takes the logical exclusive NOR of corresponding single words of word data
and/or constants.
XNRW(037)
I
I
1
1
I
I
2
2
R
R: Result word
+1), (I
, I
+1)
(R, R+1)
1
2
2
+1
R, R+1
2
1
0
0
1
1
1
0
0
Operation
OFF
ON when the result is 0.
OFF in all other cases.
ON when the leftmost bit of R is 1.
OFF in all other cases.
S:
D1000
S
+1: D1001
2
D1000
D1001
: Input 1
: Input 2
Section 3-12
D:
D1200
D+1: D1201
D1200
D1201
445
Need help?
Do you have a question about the CP - PROGRAMMING MANUAL 05-2007 and is the answer not in the manual?
Questions and answers