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
Need help?
Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?
Questions and answers