Instructions for Moving Data
6.2.3
Moving blocks of data with the BMOV instruction
The MOV instruction described in section 6.2.1 can only write single 16 or 32 bit values to a
destination. If you want, you can program multiple sequences of MOV instructions to move
contiguous blocks of data. However, it is more efficient to use the BMOV (Block MOVe) instruc-
tion, which is provided specifically for this purpose.
Ladder Diagram
³ Data source (16-bit device, first device in source range)
· Data destination (16-bit device, first device in destination range)
» Number of elements to be moved
The example above works as follows:
Data source (D10)
BMOV also has a pulse-triggered version, BMOVP (see section 6.2.1 for details on pulse-trig-
gered execution).
Blocks of bit devices: When you move blocks of bit devices with BMOV the K factors of the data
source and the data destination must always be identical.
Example
–
Data source: K1M0
–
Data destination: K1Y0
–
Number of elements to be moved: 2
M0
M1
M2
M3
M4
M5
M6
M7
6 – 16
MELSEC Instruction List
D 10
1234
D 11
5678
D 12
-156
D 13
8765
4321
D 14
0
0
Y000
1
1
Y001
1
1
Y002
Y003
0
0
1
1
Y004
0
0
Y005
1
1
Y006
Y007
0
0
BMOV
D10
D200
K5
Data destination (D200)
1234
D 200
D 201
5678
-156
D 202
5 Data registers
8765
D 203
4321
D 204
This copies 2 blocks with 4 bit
devices each.
More Advanced Programming
IEC Instruction List
BMOV_M
D10, 5, D200
MITSUBISHI ELECTRIC