Справочник Пользователя для Mitsubishi Electronics FX2NC
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 any device
number
number
-
Use the ANB instruction to connect multi-contact circuits (usually parallel circuit blocks)
to the preceding circuit in series. Parallel circuit blocks are those in which more than one
contact connects in parallel or the ORB instruction is used.
to the preceding 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 starting point of the circuit block, use a LD or LDI instruction. After
completing the parallel circuit block, connect it to the preceding block in series using the
ANB instruction.
completing the parallel circuit block, connect it to the preceding block in series using the
ANB instruction.
Mnemonic
Function
Format
Devices
Program steps
ANB
(ANd Block)
(ANd Block)
Serial connection
of multiple
parallel circuits
of multiple
parallel circuits
N/A
1
FX
0(S)
FX
0N
FX FX
(2C)
FX
2N(C)
X0
X1
X3
X2
X3
X4
X5
X6
ANB
LD
ORB
LD
OR
LD
AND
LDI
OR
LD
AND
LDI
OR
AND
ORB
ORB
0
1
2
3
4
1
2
3
4
6
7
7
5
8
ANB
X
X
X
X
X
X
X
X
X
X
X
X
0
1
2
3
4
1
2
3
4
6
5
9
10
OR
OUT
OUT
X
Y
Y
3
7
7
Recommended sequential
programming method
programming method
Y7
Batch processing limitations:
•
When using ANB instructions in a batch, use no more than 8 LD and LDI instructions
in the definition of the program blocks (to be connected in parallel). Ignoring this will
result in a program error (see ORB explanation for example).
in the definition of the program blocks (to be connected in parallel). Ignoring this will
result in a program error (see ORB explanation for example).
Sequential processing limitations:
•
It is possible to use as many ANB instructions as necessary to connect a number of
parallel circuit blocks to the preceding block in series (see the program listing).
parallel circuit blocks to the preceding block in series (see the program listing).