7-343
QCDSET(P)
1
2
3
4
6
6
7
8
7.14 File register switching instructions
7.14.3 File setting for comments (QCDSET(P))
(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.
(6) This instruction cannot be executed while SM721 is ON for the Universal model QCPU. No
operation if executed.
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.
Operation Error
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.
• File name does not exist at the drive number designated by . (Error code: 2410)
Program Example
(1) The following program switches object file to file name ABC. QCD at drive No. 0 when X0 is
ON, and to DEF. QCD at drive No. 1 when X1 is ON.
[Ladder Mode]
[List Mode]
Caution
(1) This instruction will not be executed even when the execution command of this instruction is
ON while SM721 (file access in execution) is ON for the Universal model QCPU only.
Execute this instruction when SM721 is OFF.
S
Switches to ABC at drive No. 1
Switches to DEF at drive No. 3
Step Instruction Device