7 APPLICATION INSTRUCTIONS
7.14 File Register Switching Instructions
679
7
File setting for file register
QDRSET(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 names have been changed, all the file registers being used by the sequence program process the file register of the
renamed file. The block No. of the file register of the renamed file is 0. Block number switches are performed by the RSET
instruction.
When switching from Drive No. 1/File name B to Drive No. 3/File name A
• 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 (.QDR) 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.
• Universal model QCPU: Models other than Q00UJCPU
(S): Character string data of the drive No./file name in which the file register 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)
LCPU
Basic
Process
High
performance
Redundant
Universal
Ver.
QDRSET
QDRSETP
Command
Command
QDRSET
QDRSETP
S
S
S
Drive 1
File name
A
Drive 1
File name
B
Drive 1
File name
C
Drive 2
File name
A
Drive 3
File name
A
Drive 4
File name
A
Processing executed to file registers
Setting of a drive number
and file name
File name of
the presently
used file register
(
)
File name of file
register used after
the execution of
QDRSET instruction
(
)