
Appendix D How to Use PLC Function
X0
X1
MOV K10 D0
MOV T0 D10
API | Mnemonic |
| Operands |
|
|
|
| Function | |||
15 | BMOV | P |
| S, D, n |
|
|
|
| Block Move | ||
Type | Bit Devices |
|
| Word devices |
|
| Program Steps | ||||
OP | X | Y | M | K | H | KnX | KnY | KnM | T | C | D BMOV, BMOVP: 7 steps |
| |||||||||||
S |
|
|
|
|
| * | * | * | * | * | * |
D |
|
|
|
|
|
| * | * | * | * | * |
n |
|
|
| * | * |
|
|
| * | * | * |
Operands:
S:Start of source devices D: Start of destination devices n: Number of data to be moved Explanations:
1.Range of n: 1 ~ 512
2.See the specifications of each model for their range of use.
3.The contents in n registers starting from the device designated by S will be moved to n registers starting from the device designated by D. If n exceeds the actual number of available source devices, only the devices that fall within the valid range will be used.
Program Example 1:
When X10 = On, the contents in registers D0 ~ D3 will be moved to the 4 registers D20 ~ D23.
X10
D20 | K4 | D0 |
| D20 |
|
|
| ||||
|
| D1 |
| D21 | n=4 |
|
|
| |||
|
|
|
|
|
D2
D22
D3 D23
Program Example 2:
Assume the bit devices KnX, KnY, KnM and KnS are designated for moving, the number of digits of S and D has to be the same, i.e. their n has to be the same.
Revision June 2008, 04EE, |