![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030591.webp)
551
Logic Instructions
Section 3-13
Description
ANDL(610) takes the logical AND of data specified in I
1,
I
1
+1 and I
2,
I
2
+1 and
outputs the result to R, R+1.
(I
1,
I
1
+1), (I
2,
I
2
+1)
→
(R, R+1)
Flags
Precautions
When ANDL(610) is executed, the Error Flag will turn OFF.
If as a result of the AND, the content of R, R+1 is 00000000 hex, the Equals
Flag will turn ON.
If as a result of the AND, 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 AND is taken
of corresponding bits in CIO 0011, CIO 0010 and CIO 0021, CIO 0020 and
the results will be output to corresponding bits in D00201 and D00200.
3-13-3 LOGICAL OR: ORW(035)
Purpose
Takes the logical OR of corresponding bits in single words of word data and/or
constants.
Ladder Symbol
I
1,
I
1
+1
I
2,
I
2
+1
R, R+1
1
1
1
1
0
0
0
1
0
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
1
: 0010 CH
S
1
+1: 0011 CH
S
2
: 0020 CH
S
2
+1: 0021 CH
D: D00200
D+1: D00201
Note:
The vertical arrow indicates logical AND.
ORW(035)
I
1
I
2
R
I
1
: Input 1
I
2
: Input 2
R
: Result word
Содержание SYSMAC CS Series
Страница 2: ......
Страница 4: ...iv ...
Страница 30: ...xxx ...
Страница 186: ...146 List of Instructions by Function Code Section 2 4 ...
Страница 194: ...154 3 35 4 MOVE BIT MOVBC 568 1273 3 35 5 BIT COUNTER BCNTC 621 1275 3 35 6 GET VARIABLE ID GETID 286 1277 ...
Страница 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Страница 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Страница 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Страница 1392: ...1352 ASCII Code Table Appendix A ...
Страница 1404: ...1364 Revision History ...