Mitsubishi Electronics Q173HCPU/Q172HCPU Work Light User Manual


 
6 - 170
6 MOTION PROGRAMS FOR POSITIONING CONTROL
6.16.26 Block transfers (BMOV : 16-bit unit)
Code BMOV
Function Block transfers (16-bit unit)
The data of n words from the specified device are batch-transferred to
the specified transfer destination. (16-bit unit)
Format
M
Number of transmission words
(Constant or indirect setting (1 to 65535))
VBO ;D S n
First devices of transfer source data or absolute
address.
First devices of transfer destination data or
absolute address.
[Explanation]
(1) The contents for n words from device specified with (S) are batch-transferred to
the n words from device specified with (D). (Transferred with a word [16-bit] unit.)
(2) Data can be transferred if the word devices of the transfer source and destination
overlap. Data are transferred from devices, starting with the one at (S), for
transfer of data from devices of larger numbers to those of smaller numbers, or
starting with the one at (S)+(n-1) for transfer of data from devices of smaller
numbers to those of larger numbers.
(3) When the H+32-bit hexadecimal constant for (D) or (S) is specified, it is meant to
specify the absolute address of the Motion CPU. The absolute address specifies
the even number.
When the absolute address is specified, the content of the address is understood.
When a wrong operation is executed, operation which crashes the system, and is
abnormal might be executed.
(4) An operation error will occur if :
(a) (S) to (S)+(n-1) is outside the device range.
(b) (D) to (D)+(n-1) is outside the device range.
(c) (n) is 0 or a negative number.
(d) The absolute address is outside the range of the RAM.
[Program Example]
(1) Program which batch-transfers a contents for 5 words from D0 to all data for 5
words from #@10.
12
34
56
78
#@10
BMOV #@10 #D0
12
34
56
78
D0
Batch transfer
(16-bit unit)
#@11
#@12
#@13
#@14
90 90
D1
D2
D3
D4
When (n) specifies word device