Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 468

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

Function
ANDW
ANDW(034) takes the logical AND of data specified in
I
and I
and outputs the result to R.
1
2
ANDL
ANDL(610) takes the logical AND of data specified in
I
, I
+1 and I
, I
+1 and outputs the result to R, R+1.
1
1
2
2
Sample program
When the execution condition CIO 0.00 is ON, the logical AND is taken of corresponding bits in CIO 11,
CIO 10 and CIO 21, CIO 20 and the results will be output to corresponding bits in D201 and D200.
0.00
CS/CJ/NSJ Series Instructions Reference Manual (W474)
S
1
10
20
D200
Note: The vertical arrow indicates logical AND.
I
, I
R
1
2
I
1
1
1
0
0
(I
I
+1) (I
I
+1)
1,
1
2,
2
I
I
+1
1,
1
1
1
0
0
S
: 10CH
S
: 20CH
1
2
+1: 11CH
S
+1: 21CH
2
3. Instructions
I
R
2
1
1
0
0
1
0
0
0
(R, R+1)
I
I
+1
R, R+1
2,
2
1
1
0
0
1
0
0
0
D: D200
D+1: D201
3
431

Advertisement

Table of Contents
loading

Table of Contents