7-316
7.14 Switch Instructions
7.14.2 Setting file register files
QDRSET
When switching from Drive No. 1/File name B to Drive No. 3/File name A
(2) Drive number can be specified from 1 to 4.
The drive number cannot be specified as drive 0 (program memory/internal memory).
(3) It is not necessary to specify the extension (.QDR) with the file name.
(4) A file name setting can be deleted by specifying the NULL character (00
H
) for the file name.
(5) File names specified with this instruction will be given priority even if a drive number and file
name have been specified in the parameters.
1. If the file name is changed by the QDRSET(P) instruction, the file name returns
to the name specified by the parameter when the CPU module is switched from
STOP to RUN. To maintain the file name even after the CPU mode is changed
from STOP to RUN, execute the QDRSET(P) instruction with the SM402
special relay, which turns ON during one scan when the CPU enters from
STOP to RUN mode.
2. Do not change the file name of the file register with the QDRSET(P) instruction
when the file register is specified as the refresh device.
For the restrictions on file registers, refer to Section 3.10.
O
peration Error
In the following case, an operation error occurs, the error flag (SM0) is turned ON, and the
corresponding error code is stored to SD0.
• File name does not exist in the drive number specified for
.
(Error code: 2410)
Example
s
Dr
i
ve
1
Fil
e
name
A
Dr
i
ve
1
Fil
e
name
B
Dr
i
ve
1
Fil
e
name
C
Dr
i
ve
2
Fil
e
name
A
Dr
i
ve
3
Fil
e
name
A
Dr
i
ve
4
Fil
e
name
A
Process
i
ng
execute
d
to
f
il
e
reg
i
sters
S
ett
i
ng
of
a
d
r
i
ve
num
b
er
an
d
f
il
e
name
Fil
e
name
of
the
current
ly
use
d
f
il
e
reg
i
ster
(
)
Fil
e
name
of
f
il
e
reg
i
ster
use
d
after
the
execut
i
on
of
Q
D
RSET i
nstruct
i
on
(
)
s
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......