477
Logic Instructions
Section 3-13
Description
ANDL(610) takes the logical AND of data specified in I
1,
I
1
+1 and I
2,
I
2
+1 and
outputs the result to R, R+1.
(I
1,
I
1
+1), (I
2,
I
2
+1)
→
(R, R+1)
Flags
Precautions
When ANDL(610) is executed, the Error Flag will turn OFF.
If as a result of the AND, the content of R, R+1 is 00000000 Hex, the Equals
Flag will turn ON.
If as a result of the AND, the leftmost bit of R+1 is 1, the Negative Flag will
turn ON.
Examples
When the execution condition CIO 00000000 is ON, the logical AND is taken
of corresponding bits in CIO 0011, CIO 0010 and CIO 0021, CIO 0020 and
the results will be output to corresponding bits in D00201 and D00200.
3-13-3 LOGICAL OR: ORW(035)
Purpose
Takes the logical OR of corresponding bits in single words of word data and/or
constants.
Ladder Symbol
I
1,
I
1
+1
I
2,
I
2
+1
R, R+1
1
1
1
1
0
0
0
1
0
0
0
0
Name
Label
Operation
Error Flag
ER
OFF
Equals Flag
=
ON when the result is 0.
OFF in all other cases.
Negative Flag
N
ON when the leftmost bit of R is 1.
OFF in all other cases.
S
1
: 0010 CH
S
1
+1: 0011 CH
S
2
: 0020 CH
S
2
+1: 0021 CH
D: D00200
D+1: D00201
Note: The vertical arrow indicates logical AND.
I
1
: Input 1
I
2
: Input 2
R: Result word
ORW(035)
I
1
I
2
R
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...