![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030103.webp)
63
Instruction Functions
Section 2-2
2-2-11 Logic Instructions
Instruction
Mnemonic
Code
Symbol/Operand
Function
Location
Execution
condition
Page
LOGICAL AND
ANDW
@ANDW
034
Output
Required
548
DOUBLE
LOGICAL AND
ANDL
@ANDL
610
Output
Required
550
LOGICAL OR
ORW
@ORW
035
Output
Required
551
DOUBLE
LOGICAL OR
ORWL
@ORWL
611
Output
Required
553
EXCLUSIVE OR
XORW
@XORW
036
Output
Required
555
I
1
I
2
R
ANDW(034)
I
1
: Input 1
I
2
: Input 2
R
: Result word
I
1
1
1
0
0
I
2
1
0
1
0
R
1
0
0
0
I
1
. I
2
→
R
Takes the logical AND of corresponding bits in single words of word
data and/or constants.
ANDL(610)
I
1
I
2
R
I
1
: Input 1
I
2
: Input 2
R
: Result word
Takes the logical AND of corresponding bits in double words of word
data and/or constants.
I
1
,
I
1
+1
1
1
0
0
I
2
,
I
2
+1
1
0
1
0
R, R+1
1
0
0
0
(I
1
,
I
1
+1). (I
2
,
I
2
+1)
→
(R, R+1)
I
1
: Input 1
I
2
:
Input 2
R
: Result word
I
1
I
2
R
ORW(035)
I
1
1
1
0
0
I
2
1
0
1
0
R
1
1
1
0
I
1
+ I
2
→
R
Takes the logical OR of corresponding bits in single words of word
data and/or constants.
I
1
I
2
R
ORWL(611)
I
1
: Input 1
I
2
: Input 2
R
: Result word
(I
1
,
I
1
+1) + (I
2
,
I
2
+1)
→
(R, R+1)
I
1
,
I
1
+1
1
1
0
0
I
2
,
I
2
+1
1
0
1
0
R, R+1
1
1
1
0
Takes the logical OR of corresponding bits in double words of word
data and/or constants.
I
1
I
2
R
XORW(036)
I
1
: Input 1
I
2
: Input 2
R
: Result word
I
1
.
I
2
+
I
1
.I
2
→
R
I
1
1
1
0
0
I
2
1
0
1
0
R
0
1
1
0
Takes the logical exclusive OR of corresponding bits in single words
of word data and/or constants.
Содержание 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 ...