Mitsubishi QD51 Programming Manual page 616

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

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
ZMOVE
Instruction
• Transfers data between variables.
ZMOVE TO <transfer destination>,<offset 1> FROM <transfer source>,<offset
Syntax
2>,<number of transferred bytes>
transfer destination
offset 1
transfer source
offset 2
number of transferred bytes
Examples
(0)
(1)
(2)
(0)
(1)
(2)
11 - 446
ZMOVE TO A%( ),0 FROM B$,1,6
B$
0
A(41
)
H
1
B(42
)
H
2
C(43
)
H
3
D(44
)
H
4
E(45
)
H
5
F(46
)
H
6
G(47
)
H
ZMOVE TO A%( ),0 FROM A%( ),2,3
A%( )
0
01
H
1
00
H
2
02
H
3
00
H
4
03
H
5
00
H
ZMOVE TO A%( ),2 FROM A%( ),0,4
A%( )
0
01
H
1
00
H
2
02
H
3
00
H
4
03
H
5
00
H
ZMOVE
• • • •
Specify the variable, one-dimensional array variable,
or one-dimensional numeric array name to which
data is to be transferred.
• • • •
Specify the data storage location within the transfer
destination variable or array, using a number from 0
to 65534 in byte units.
• • • •
Specify the transfer source, i.e. one-dimensional
array variable, one-dimensional numeric array, or
character variable in which data is stored before the
transfer.
• • • •
Specify the data storage location within the transfer
source variable, array, or character variable using a
number from 0 to 65534 in byte units.
• • • •
Specify the number of bytes of data to be
transferred.
A%( )
0
42
H
(0)
1
43
H
2
44
H
(1)
3
45
H
4
46
H
(2)
5
00
H
A%( )
0
02
H
(0)
1
00
H
2
03
H
(1)
3
00
H
4
03
H
(2)
5
00
H
A%( )
0
01
H
(0)
1
00
H
2
01
H
(1)
3
00
H
4
02
H
(2)
5
00
H
MELSEC-Q
Transfers byte data (for 6 characters)
from the first byte (second character)
of B$ to A%(0) through A%(2).
Transfers the lower byte data of A%(1)
and A%(2) to the lower byte of A%(0)
and A%(1).
Transfers the data of A%(0)
and A%(1) to A%(1) and A%(2).
11 - 446

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents