Logic Instructions - Omron SYSMAC CS Series Programming Manual

Hide thumbs Also See for SYSMAC CS Series:
Table of Contents

Advertisement

Logic Instructions

3-11 Logic Instructions

Instruction
Symbol/Operand
Mnemonic
Code
LOGICAL AND
ANDW(034)
ANDW
@ANDW
034
I
: Input 1
1
I
: Input 2
2
R: Result word
DOUBLE LOGI-
CAL AND
ANDL(610)
ANDL
@ANDL
610
I
: Input 1
1
I
: Input 2
2
R: Result word
LOGICAL OR
ORW(035)
ORW
@ORW
035
I
: Input 1
1
I
: Input 2
2
R: Result word
DOUBLE LOGI-
CAL OR
ORWL(611)
ORWL
@ORWL
611
I
: Input 1
1
I
: Input 2
2
R: Result word
EXCLUSIVE OR
XORW(036)
XORW
@XORW
036
I
: Input 1
1
I
: Input 2
2
R: Result word
Takes the logical AND of corresponding bits in single words of word data
and/or constants.
I
→ R
I
. I
1
1
2
I
I
I
2
1
R
1
1
1
0
0
1
0
0
Takes the logical AND of corresponding bits in double words of word data
and/or constants.
I
1
+1) → (R, R+1)
(I
I
+1). (I
I
,
,
1
1
2
2
I
2
I
I
+1
I
I
1
,
1
2
,
2
R
1
1
1
0
0
1
0
0
Takes the logical OR of corresponding bits in single words of word data
and/or constants.
I
→ R
1
I
+ I
1
2
I
2
I
I
1
R
1
1
1
0
0
1
0
0
Takes the logical OR of corresponding bits in double words of word data
and/or constants.
I
+1) → (R, R+1)
1
(I
I
+1) + (I
I
,
,
1
1
2
2
I
2
I
I
+1
I
I
1
,
1
2
,
R
1
1
0
0
Takes the logical exclusive OR of corresponding bits in single words of word
data and/or constants.
I
→ R
1
I
. I
+ I
.I
1
2
1
2
I
I
I
2
1
R
1
1
1
0
0
1
0
0
Function
R
2
1
0
0
0
+1
R, R+1
1
0
0
0
R
2
1
1
1
0
+1
R, R+1
2
1
1
0
1
1
1
0
0
R
2
0
1
1
0
Section 3-11
Location
Execution
condition
Output
Required
Output
Required
Output
Required
Output
Required
Output
Required
99

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs1g/h-cpu-ev1 seriesCj1g-cpu seriesSysmac cj series

Table of Contents