Logic Instructions - Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

Instruction Functions

2-2-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
ANDL(610)
LOGICAL AND
ANDL
@ANDL
610
I
: Input 1
1
I
: Input 2
2
R: Result word
LOGICAL OR
ORW(035)
ORW
@ORW
035
I
1
: Input 1
I
2
: Input 2
R: Result word
DOUBLE
ORWL(611)
LOGICAL OR
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
1
I
. I
→ R
1
2
I
2
I
I
1
2
R
1
1
1
0
1
0
0
0
Takes the logical AND of corresponding bits in double words of word
data and/or constants.
I
1
(I
I
+1). (I
I
+1) → (R, R+1)
1
,
1
2
,
2
I
2
I
I
+1
I
I
+1
1
1
2
2
,
,
R
1
1
0
1
0
1
0
0
Takes the logical OR of corresponding bits in single words of word
data and/or constants.
I
1
I
+ I
→ R
2
1
I
2
I
I
1
2
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
(I
I
+1) + (I
I
+1) → (R, R+1)
1
,
1
2
,
2
I
2
I
I
+1
I
I
+1
1
1
2
2
,
,
R
1
1
1
0
0
1
0
0
Takes the logical exclusive OR of corresponding bits in single words
of word data and/or constants.
I
1
I
. I
+ I
.I
→ R
1
2
1
2
I
2
I
I
1
2
R
1
1
1
0
0
1
0
0
Function
R
1
0
0
0
R, R+1
1
0
0
0
R
1
1
1
0
R, R+1
1
1
1
0
R
0
1
1
0
Section 2-2
Location
Page
Execution
condition
Output
549
Required
Output
551
Required
Output
552
Required
Output
554
Required
Output
556
Required
63

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SYSMAC CJ - REFERENCE MANUAL 01-2008 and is the answer not in the manual?

Questions and answers

Table of Contents