Mitsubishi Electronics FX2C Home Theater Server User Manual


 
FX Series Programmable Controlers Applied Instructions 5
5-20
5.2.6 BMOV (FNC 15)
Operation:
A quantit
y
of consecutivel
y
occurrin
g
data
elements can be copied to a new destination. The
source data is identified as a device head address
(S) and a quantit
y
of consecutive data elements (n). This is moved to the destination device
(D) for the same number of elements (n).
Points to note:
a) If the quantit
y
of source devices (n) exceeds the actual number of available source devices,
then onl
y
those devices which fall in the available ran
g
e will be used.
b) If the number of source devices exceeds the available space at the destination location,
then onl
y
the available destination devices will be written to.
c) The BMOV instruction has a built in automatic feature to prevent overwritin
g
errors from
occurrin
g
when the source (S - n) and destination (D -n) data ran
g
es coincide. This is
clearl
y
identified in the followin
g
dia
g
ram:
(Note: The numbered arrows indicate the order in which the BMOV is processed)
d) Usin
g
file re
g
isters as the destination devices [D]ma
y
onl
y
be performed on FX Main
Processin
g
Units (MPUs) with a CPU version 3.07 or
g
reater or on an
y
FX
2C
or FX
2N(C)
MPU.
Mnemonic Function
Operands
Program steps
SD n
BMOV
FNC 15
(Block move)
Copies a specified
block of multiple
data elements to a
new destination
KnX, KnY,
KnM, KnS,
T,C,D, V, Z
(RAM) File
re
g
isters,
KnY, KnM,
KnS,
T, C, D, V, Z
(RAM) File
re
g
isters, see
note d)
K, H
D (FX2C,
FX2N onl
y
)
Note:
n
512
BMOV,
BMOVP:
7 steps
X0
BMOV D 5 D 7 K 3
[ S ]
[ D ]
n
D 5
D 6
D 7
D 20
D 21
D 22
D 18
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
1
3
2
1
2
3
4