125
LD, LDI, AND, ANI, OR, ORI
1
2
3
4
5
6
7
8
5.1
C
ontact Instructions
5.1.1
LD, LD
I, AND, ANI, OR, ORI
AND, ANI
(1) AND is the A contact series connection instruction, and ANI is the B contact series connection instruction. They read the
ON/OFF data of the designated bit device*
2
, perform an AND operation on that data and the operation result to that
point, and take this value as the operation result.
*2:
When a bit designation is made for a word device, the device turns ON or OFF depending on the 1/0 status of the designated
bit.
(2) There are no restrictions on the use of AND or ANI, but the following applies with a peripheral device used in the ladder
mode:
(a) Write........When AND and ANI are connected in series, a ladder with up to 24 stages can be displayed.
(b) Read........When AND and ANI are connected in series, a ladder with up to 24 stages can be displayed. If the
number exceeds 24 stages, up to 24 will be displayed.
OR, ORI
(1) OR is the A contact single parallel connection instruction, and ORI is the B contact single parallel connection instruction.
They read ON/OFF information from the designated device*
3
, and perform an OR operation with the operation results to
that point, and use the resulting value as the operation result.
*3:
When a bit designation is made for a word device, the device turns ON or OFF depending on the 1/0 status of the designated
bit.
(2) There are no limits on the use of OR or ORI, but the following applies with a peripheral device used in the ladder mode.
(a) Write........OR and ORI can be used to create connections of up to 23 ladders.
(b) Read........OR and ORI can be used to create connections of up to 23 ladders.
The 24th or subsequent ladders cannot be displayed properly.
Remark
Word device bit designations are made in hexadecimal.
Bit b11 of D0 would be D0.0B.
See Page 83, Section 3.2.1 for more information on word device bit designation.
O
perat
io
n
E
rr
o
r
(1) There is no operation error in the LD, LDI, AND, ANI, OR, or ORI instruction.
P
r
og
ram
E
xamp
l
e
(1) A program using the LD, AND, OR, and ORI instructions.
[Ladder Mode]
[List Mode]
b
0
1
0
D0
b5
b
1
5
B
it
d
esi
g
nate
d
f
o
r w
o
r
d
d
e
v
ice
S
tep
Instructi
o
n
D
e
v
ice