Data Transfer Instructions; 16-Bit Data Transfer; Dmov, Dmovp - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

MOV, MOVP, DMOV, DMOVP
6.4

Data Transfer Instructions

6.4.1
MOV, MOVP

16-bit data transfer

6.4.1

DMOV, DMOVP

32-bit data transfer
MOV, MOVP, DMOV, DMOVP
MOV, DMOV
MOVP, DMOVP
: Data to be transferred or the number of the device where the data to be transferred is stored (BIN 16/32 bits)
S
: Number of the device where the data will be transferred (BIN 16/32 bits)
D
Setting
Internal Devices
Data
Bit
Word
S
D
Function
MOV
(1) Transfers the 16-bit data from the device designated by
b15
Before transfer
S
1
0
b15
After transfer
D
1
0
DMOV
(1) Transfers 32-bit data at the device designated by
b15
1
0
Before transfer
S
b15
After transfer
D
1
0
Operation Error
(1) There is no operation error in the MOV(P) or DMOV(P) instruction.
Program Example
(1) The following program stores input data from X0 to XB at D8.
[Ladder Mode]
256
Command
Command
J
\
R, ZR
Bit
1
1
0
1
0
0
0
1
Transfer
1
1
0
1
0
0
0
1
to the device designated by
S
S
+1
b0
b15
1
1
0
1
0
0
0
Transfer
D
+1
b0
b15
1
1
0
1
0
0
0
[List Mode]
Step
High
Basic
performance
indicates an instruction symbol of
P
U
\G
Word
to the device designated by
S
b0
1
1
0
0
1
0
b0
1
1
0
0
1
0
D
S
b0
1
1
1
0
0
1
0
D
b0
1
1
1
0
0
1
0
Instruction
Device
Process
Redundant Universal
LCPU
MOV/DMOV.
S
D
S
D
Constants
Zn
Other
K, H
––
.
D
.
––
––

Advertisement

Table of Contents
loading

Table of Contents