FX Series Programmable Controllers | Basic Program Instructions 2 |
2.12And Block
FX1S | FX1N | FX2N | FX2NC |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Mnemonic | Function |
|
|
|
| Format | Devices | Program steps |
| ||||||
| ANB | Serial connection |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
| of multiple |
|
|
|
|
|
|
|
|
|
|
| N/A | 1 |
| |
| (ANd Block) |
|
|
|
|
|
|
|
|
|
|
|
| |||
| parallel circuits |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
Program example: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ANB |
| LD |
|
| |
X0 | X2 | X3 |
|
| Y7 |
X1 | X4 | X5 |
| X6 | ORB |
X3 |
|
|
Recommended sequential programming method
0 | LD | X | 0 |
1 | OR | X | 1 |
2 | LD | X | 2 |
3 | AND | X | 3 |
4 | LDI | X | 4 |
5 | AND | X | 5 |
6ORB
7OR X 6
8ANB
9 | OR | X | 3 |
10 | OUT | Y | 7 |
Basic points to remember:
-An ANB instruction is an independent instruction and is not associated with any device number
-Use the ANB instruction to connect
-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.
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).
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).