Mitsubishi Electronics FX2C Home Theater Server User Manual


 
FX Series Programmable Controllers Basic Program Instructions 2
2-12
2.12 And Block
Program example:
Basic points to remember:
- An ANB instruction is an independent instruction and is not associated with an
y
device
number
- Use the ANB instruction to connect multi-contact circuits (usuall
y
parallel circuit blocks)
to the precedin
g
circuit in series. Parallel circuit blocks are those in which more than one
contact connects in parallel or the ORB instruction is used.
- To declare the startin
g
point of the circuit block, use a LD or LDI instruction. After
completin
g
the parallel circuit block, connect it to the precedin
g
block in series usin
g
the
ANB instruction.
Mnemonic Function Format Devices Program steps
ANB
(ANd Block)
Serial connection
of multiple
parallel circuits
N/A 1
X0
X1
X3
X2 X3
X4 X5
X6
ANB
LD
ORB
LD
OR
LD
AND
LDI
OR
AND
ORB
0
1
2
3
4
6
7
5
8
ANB
X
X
X
X
X
X
X
0
1
2
3
4
6
5
9
10
OR
OUT
X
Y
3
7
Recommended sequential
programming method
Y7
Batch processing limitations:
When usin
g
ANB instructions in a batch, use no more than 8 LD and LDI instructions
in the definition of the pro
g
ram blocks (to be connected in parallel). I
g
norin
g
this will
result in a pro
g
ram error (see ORB explanation for example).
Sequential processing limitations:
It is possible to use as man
y
ANB instructions as necessar
y
to connect a number of
parallel circuit blocks to the precedin
g
block in series (see the pro
g
ram listin
g
).