![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030598.webp)
558
Logic Instructions
Section 3-13
Description
XORL(612) takes the logical exclusive OR of data specified in I
1
and I
2
as
double-word data and outputs the result to R, R+1.
• When the content of any of the corresponding bits in I
1,
I
1
+1, I
2,
and
I
2
+1are different, a 1 will be output to the corresponding bit it R, R+1. When
any of them are the same, a 0 will be output to the corresponding bit in R,
R+1.
(I
1,
I
1
+1), (I
2
, I
2
+1)
+ (I
1
, I
1
+1), (I
2
, I
2
+1)
→
(R, R+1)
Flags
Precautions
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.
Examples
When the execution condition CIO 00000000 is ON, the logical exclusive OR
is taken of corresponding bits in CIO 0901, CIO 0900 and D01001, D01000
and the results will be output to corresponding bits in D01201 and D01200.
I
1,
I
1
+1
I
2,
I
2
+1
R, R+1
1
1
0
1
0
1
0
1
1
0
0
0
Name
Label
Operation
Error Flag
ER
OFF
Equals Flag
=
ON when the result is 0.
OFF in all other cases.
Negative Flag
N
ON when the leftmost bit of R is 1.
OFF in all other cases.
S: 0900 CH
S
1
+1: 0901 CH
S: D01000
S
2
+1: D01001
D: D01200
D+1: D01201
Note: The symbol indicates exclusive logical OR.
Summary of Contents for SYSMAC CS Series
Page 2: ......
Page 4: ...iv ...
Page 30: ...xxx ...
Page 186: ...146 List of Instructions by Function Code Section 2 4 ...
Page 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Page 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Page 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Page 1392: ...1352 ASCII Code Table Appendix A ...
Page 1404: ...1364 Revision History ...