Mitsubishi Electric MELSEC-Q/L Programming Manual page 315

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

• If (D) specifies data of a device with digit specification, the amount of data stored in the device specified by (D) will be
transferred. If K5Y0 is specified by (D), the lower 20 bits of the word device specified by (S) will be the object. If both (S)
and (D) specify data of a device with digit specification, the amount of data specified by (D) will be transferred regardless of
the number of digits.
S
+1
b31
· · ·
b20 b19
···
0
Data (20 bits (5 digits) specified by
Y14×((n)-1)+(14-1)
Y14×((n)-1)
· · ·
Data of 20 bits (5 digits)
• If the value specified by n is 0, the instruction will be not processed.
• Whether to check a device range during the execution of the DFMOV instruction can be set with SM237 (Device range
check inhibit flag). (Only when the conditions of the subset processing are established)
Operation error
• In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an error code is stored into SD0.
Error
Error details
code
4100
The value specified for n is negative.
4101
Data points to be transferred (n) exceed the points of the device specified in
(D).
Program example
• The following program stores the value data stored at Y0 to Y13(20 bits) into D10 to D17, when M0 is turned on.
[Ladder Mode]
[Operation]
Y1F
1 1
1
1 1
1 1
1
1
Ignored
b31
0 0
0
Transfer
0 0
0
0 0
0
0 0
0
S
b15
b0
···
D
Transfer
...
Y27
· · ·
Y20
Y1F
· · ·
Data of 20 bits (5 digits)
Y14 Y13
1
1
1 1
1
0 1
0
1 0
b20 b19
0 0
0 0
0
0
0
0
0
1
0 0
0 0
0
0
0
0
0
1
0 0
0 0
0
0
0
0
0
1
0 0
0 0
0
0
0
0
0
1
Filled with 0s
+1
D
D
Y14 Y13
· · ·
Y10
YF
···
Data of 20 bits (5 digits)
Q00J/
QnH
Q00/
Q01
[List Mode]
Instruction
Step
1 0
1
0
1
0
1 0
1
0 1
20 bits (five digits) data
1
0 1
0
1 0
1 0
1
0
1
0 1
0
1 0
1 0
1
0
1
0 1
0
1 0
1 0
1
0
1
0 1
0
1 0
1 0
1
0
20 bits (five digits)
Y0
QnPH
QnPRH
QnU
Device
Y0
0 1
b0
1
0
1 0
1
0 1
0 1
D11, D10
1
0
1 0
1
0 1
0 1
D13, D12
1
0
1 0
1
0 1
0 1
D15, D14
1
0
1 0
1
0 1
0 1
D17, D16
6 BASIC INSTRUCTIONS
6.4 Data Transfer Instructions
6
LCPU
313

Advertisement

Table of Contents
loading

Table of Contents