Mitsubishi QD51 Programming Manual page 617

Logic controller
Hide thumbs Also See for QD51:
Table of Contents

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
• The ZMOVE instruction is used to transfer data from the area in memory specified in
Description
<transfer source> in a BASIC program to the area specified in <transfer destination> as is.
The transfer is carried out transparently in units of one byte for the amount specified in
<number of transferred bytes>.
Specify the location from which the data transfer should be started, by the offset value in
byte units relative to the starting address of the memory area that the <transfer source>
occupies. Similarly, specify the location from which the transferred data should be stored,
by the offset value in byte units relative to the starting address of the memory area that the
<transfer destination> occupies.
• The ZMOVE instruction allows data transfer between two variables that cannot normally be
assigned by the LET instruction (numeric value
(Example 1)
Transfer
destination
(0)
(1)
(2)
Transfers within the same memory area
(transfer data in (0) and (1) to (1) and (2))
• For <transfer destination>, specify the variable, etc. to which the data transferred from
<transfer source> will be assigned.
• Store dummy data in the variable used as <transfer destination>, before executing the ZMOVE
• Always define an array used as <transfer destination> using the DIM instruction, even if the number
• A two dimensional array cannot be used in the ZMOVE instruction.
11 - 447
(Example 2)
Transfer
Transfer
destination
destination
(0)
(1)
(2)
Transfers to a memory area with
a different data type
instruction as shown below.
If such dummy data has not been stored, an error occurs when the ZMOVE instruction is executed.
Integer variable
Floating point variable
Character variable
of elements used is 10 or less.
Furthermore, in cases where a character array variable name is to be used, store dummy data as
shown below in the specified elements.
$(n) = SPACE$(255)
When the ZMOVE instruction is executed, only the data in the specified elements in the array variable
name become the target range for the transfer.
character).
(Example 3)
Transfer
destination
(0)
(1)
(2)
%=0
!=0,
#=0
$=SPACE$(255)
MELSEC-Q
Transfer
Transfer
destination
destination
(0)
(1)
(2)
Transfers to the any part of a memory
area with a different data type
11 - 447

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents