570
QCDSET, QCDSETP
F
unct
i
on
(1) Changes the file register file name used in the program to the file name being stored at the device designated by .
After the file name change, comment data being used by the sequence program perform processing in relation to the
comment data of the file name after the change.
When switching from Drive No. 1/File name B to Drive No. 4/File name B
(2) Drive number can be designated from 1 to 4.
(The drive number cannot be designated as drive 0 (program memory).)
Note that available drives vary depending on the CPU module used.
Refer to the manual of the CPU module and check the drives that can be specified.
(3) It is not necessary to designate the extension (.QCD) with the file name.
(4) A file name setting can be deleted by designating the NULL character (00
H
) for the file name.
(5) File names designated with this instruction will be given priority even if a drive number and file name have been
designated in the parameters.
If the file name is changed with the QCDSET 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 QCDSET instruction with
the SM402 special relay, which turns ON during one scan when the CPU enters from STOP to RUN mode.
Operat
i
on
E
rror
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
Error
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH QnPRH
QnU
LCPU
2410
The file name does not exist at the drive number specified in .
––
S
Example
S
Dr
iv
e
1
Fil
e
name
A
Dr
iv
e
1
Fil
e
name
B
Dr
iv
e
1
Fil
e
name
C
Dr
iv
e
2
Fil
e
name
A
Dr
iv
e
4
Fil
e
name
B
Dr
iv
e
4
Fil
e
name
A
Process
i
ng
executed
to
f
il
e
reg
i
sters
Sett
i
ng
of
a
dr
iv
e
number
and
f
il
e
name
Fil
e
name
of
the
present
l
y
used
comment
f
il
e
Fil
e
name
of
f
il
e
reg
i
ster
used
after
the
execut
i
on
of
Q
CDS
ET i
nstruct
i
on
(
)
(
)
S