Справочник Пользователя для Mitsubishi Electronics FX
FX Series Programmable Controlers
Applied Instructions 5
5-20
5.2.6
BMOV (FNC 15)
Operation:
A q u a n t i t y o f c ons ec u t i v e ly o c c u r r i ng d at a
elements can be copied to a new destination. The
source data is identified as a device head address
elements can be copied to a new destination. The
source data is identified as a device head address
(S) and a quantity of consecutive data elements (n). This is moved to the destination device
(D) for the same number of elements (n).
(D) for the same number of elements (n).
Points to note:
a) If the quantity of source devices (n) exceeds the actual number of available source devices,
then only those devices which fall in the available range will be used.
b) If the number of source devices exceeds the available space at the destination location,
then only the available destination devices will be written to.
c) The BMOV instruction has a built in automatic feature to prevent overwriting errors from
occurring when the source (S - n) and destination (D -n) data ranges coincide. This is
clearly identified in the following diagram:
(Note: The numbered arrows indicate the order in which the BMOV is processed)
clearly identified in the following diagram:
(Note: The numbered arrows indicate the order in which the BMOV is processed)
d) Using file registers as the destination devices [D]may only be performed on FX Main
Processing Units (MPUs) with a CPU version 3.07 or greater or on any FX
2C
or FX
2N(C)
MPU.
Mnemonic
Function
Operands
Program steps
S
D
n
BMOV
FNC 15
(Block move)
FNC 15
(Block move)
Copies a specified
block of multiple
data elements to a
new destination
block of multiple
data elements to a
new destination
KnX, KnY,
KnM, KnS,
T,C,D, V, Z
(RAM) File
registers,
KnM, KnS,
T,C,D, V, Z
(RAM) File
registers,
KnY, KnM,
KnS,
T, C, D, V, Z
(RAM) File
registers, see
note d)
KnS,
T, C, D, V, Z
(RAM) File
registers, see
note d)
K, H
D (FX2C,
FX2N only)
D (FX2C,
FX2N only)
Note:
n
n
≤
512
BMOV,
BMOVP:
7 steps
BMOVP:
7 steps
FX
0(S)
FX
0N
FX FX
(2C)
FX
2N(C)
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
PULSE-P
FX
(2C)
FX
FX
2N(C)
FX
0N
FX
0(s)
16 BIT OPERATION
FX
FX
0N
FX
0(s)
FX
(2C)
FX
2N(C)
32 BIT OPERATION
X0
BMOV
D 5
D 7
K 3
[ S ]
[ D ]
n
D 5
D 6
D 7
D 6
D 7
D 20
D 21
D 22
D 21
D 22
D 18
D 19
D 20
D 19
D 20
X0
BMOV
D 5
D 7
X1
K 3
BMOV D 20 D 18
K 4
D 23
D 21
D 7
D 8
D 9
D 8
D 9
1
3
2
1
2
3
4
FX
0(S)
FX
0N
FX FX
(2C)
FX
2N(C)