994
7 APPLICATION INSTRUCTIONS
7.22 File Register Operation Instructions
• These instructions change the file name of the file register used in the program to that stored in the device specified by (file
name). After the file name is changed, all file registers processed by the program are those linked to block number 0 of the
new file name. The RSET(P) instruction is used to change the block number.
• For the drive number, 1 or 3 can be specified.
• When drive 1 is specified, the drive works as drive 3. The use status of the drive is reflected to SD614. It is not reflected to
SD604.
• Extension ".QDR" need not be specified for the file name.
• Even if the drive number file name is specified by a parameter, the file name specified by the QDRSET(P) instruction takes
precedence.
• If the file name is changed by the QDRSET(P) instruction, operating the CPU module switch from STOP to
RUN restores the file name specified by the parameter. To continue to use the file name specified by the
QDRSET(P) instruction even when the CPU module switch is changed from STOP to RUN, execute the
QDRSET(P) instruction using SM402 that triggers one scan when the switch is changed from STOP to
RUN.
• When a file register is specified for the refresh device, do not use the QDRSET(P) instruction to change the
file name of the file register.
• Even when the NULL code (0000H) is specified for the file name, the file name setting is not cleared and no processing is
performed.
• For the restrictions of the file register, refer to the following.
Page 65 Restrictions on using file registers
Error code
(SD0)
Description
2840H The drive number/file name specified by (file name) does not exist.
3405H Out-of-range data is set to (file name).
• A drive number other than 1 and 3 is specified.
• Only the drive number is specified.
Processing performed to file registers
Drive number and file name setting
Drive No. 3
File name A
Drive No. 3
File name B
Drive No. 3
File name C
Drive No. 3
File name D
Drive No. 3
File name E
Drive No. 3
File name F
(Currently being
used)
(Used after the
execution of the
QDRSET instruction)
File name