![Omron CJ1G-CPUxx Instructions Manual Download Page 80](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491080.webp)
59
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
DOUBLE
LOGICAL AND
ANDL
@ANDL
610
Output
Required
LOGICAL OR
ORW
@ORW
035
Output
Required
DOUBLE
LOGICAL OR
ORWL
@ORWL
611
Output
Required
EXCLUSIVE OR
XORW
@XORW
036
Output
Required
I
1
: Input 1
I
2
: Input 2
R: Result word
ANDW(034)
I
1
I
2
R
Takes the logical AND of corresponding bits in single words of word
data and/or constants.
I
1
. I
2
R
I
1
1
1
0
0
I
2
1
0
1
0
R
1
0
0
0
→
I
1
: Input 1
I
2
: Input 2
R: Result word
ANDL(610)
I
1
I
2
R
Takes the logical AND of corresponding bits in double words of word
data and/or constants.
(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
0
0
0
→
I
1
: Input 1
I
2
: Input 2
R: Result word
ORW(035)
I
1
I
2
R
Takes the logical OR of corresponding bits in single words of word
data and/or constants.
I
1
1
1
0
0
I
2
1
0
1
0
R
1
1
1
0
I
1
+ I
2
R
→
I
1
: Input 1
I
2
: Input 2
R: Result word
ORWL(611)
I
1
I
2
R
Takes the logical OR of corresponding bits in double words of word
data and/or constants.
(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
→
I
1
: Input 1
I
2
: Input 2
R: Result word
XORW(036)
I
1
I
2
R
Takes the logical exclusive OR of corresponding bits in single words
of word data and/or constants.
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
→
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...