7 APPLICATION INSTRUCTIONS
7.14 File Register Switching Instructions
681
7
File setting for comments
QCDSET(P)
• Changes the file register file name used in the program to the file name being stored at the device designated by (S). 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
• 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.
• It is not necessary to designate the extension (.QCD) with the file name.
• A file name setting can be deleted by specifying the NULL code (00H) for the file name.
• File names specified by this instruction will be given priority even if a drive number and file name have been specified 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.
(S): Character string data of the drive No./file name in which the comment file is set, or head number of the devices where the character string data is stored
(character string)
Setting
data
Internal device R, ZR J\ U\G Zn Constant
$
Others
Bit Word Bit Word
(S)
Process
High
performance
Redundant
Universal
LCPU
Basic
QCDSET
QCDSETP
Command
Command
QCDSET
QCDSETP
S
S
S
Drive 1
File name
A
Drive 1
File name
B
Drive 1
File name
C
Drive 2
File name
A
Drive 4
File name
B
Drive 4
File name
A
Processing executed to file registers
Setting of a drive number
and file name
File name of the
presently used
comment file
File name of file
register used after
the execution of
QCDSET instruction
(
)
(
)