![Omron CJ1G-CPU series Programming Manual Download Page 126](http://html1.mh-extra.com/html/omron/cj1g-cpu-series/cj1g-cpu-series_programming-manual_742489126.webp)
105
Logic Instructions
Section 3-11
3-11 Logic Instructions
Instruction
Mnemonic
Code
Symbol/Operand
Function
Location
Execution
condition
LOGICAL AND
ANDW
@ANDW
034
Output
Required
DOUBLE LOGI-
CAL AND
ANDL
@ANDL
610
Output
Required
LOGICAL OR
ORW
@ORW
035
Output
Required
DOUBLE LOGI-
CAL 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
0
0
I
1
I
2
R
1
1
1
1
0
0
0
1
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
I
2
,
I
2
+1
R, R+1
1
1
1
1
0
0
0
1
0
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
+ I
2
→
R
I
1
I
2
R
1
1
1
1
0
1
0
1
1
0
0
0
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
I
2
,
I
2
+1
R, R+1
1
1
1
1
0
1
0
1
1
0
0
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
I
2
R
1
1
0
1
0
1
0
1
1
0
0
0
Summary of Contents for CJ1G-CPU series
Page 3: ...iv...
Page 5: ...vi...
Page 21: ...xxii Conformance to EC Directives 6...
Page 169: ...148 Task Control Instructions Section 3 32...
Page 203: ...182 Programming Device Operations for Tasks Section 4 4...
Page 253: ...232 Using File Memory Section 5 3...
Page 337: ...316 Other Functions Section 6 11...
Page 347: ......
Page 369: ......
Page 373: ......
Page 379: ......
Page 381: ...360 Revision History...