EasyManua.ls Logo

Omron SYSMAC CP Series - A-1-11 Logic Instructions

Omron SYSMAC CP Series
578 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Appendices
A-28
CP2E CPU Unit Software User’s Manual(W614)
A-1-11 Logic Instructions
Instruction Mnemonic Variations Symbol/Operand Function
LOGICAL AND ANDW @ Takes the logical AND of corresponding bits in single words of
word data and/or constants.
DOUBLE
LOGICAL AND
ANDL @ Takes the logical AND of corresponding bits in double words of
word data and/or constants.
LOGICAL OR ORW @ Takes the logical OR of corresponding bits in single words of word
data and/or constants.
DOUBLE
LOGICAL OR
ORWL @ Takes the logical OR of corresponding bits in double words of
word data and/or constants.
EXCLUSIVE
OR
XORW @ Takes the logical exclusive OR of corresponding bits in single
words of word data and/or constants.
DOUBLE
EXCLUSIVE
OR
XORL @ Takes the logical exclusive OR of corresponding bits in double
words of word data and/or constants.
I
1
I
2
R
ANDW(034)
I1: Input 1
I2: Input 2
R: Result word
I
1
. I
2
R
I
1
1
1
0
0
I
2
1
0
1
0
R
1
0
0
0
ANDL(610)
I
1
I
2
R
I1: Input 1
I2: 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
0
0
0
I
1
I
2
R
ORW(035)
I1: Input 1
I2: Input 2
R: Result word
I
1
1
1
0
0
I
2
1
0
1
0
R
1
1
1
0
I
1
+ I
2
R
I
1
I
2
R
ORWL(611)
I1: Input 1
I2: 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
I
1
I
2
R
XORW(036)
I1: Input 1
I2: 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
XORL(612)
I
1
I
2
R
I1: Input 1
I2: Input 2
R: Result word
(I
1
,
I
1
+1). (I
2
,
I
2
+1) + (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
0
1
1
0

Table of Contents

Other manuals for Omron SYSMAC CP Series

Related product manuals