680
7 APPLICATION INSTRUCTIONS
7.14 File Register Switching Instructions
• If the file name is changed with the QDRSET 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 QDRSET instruction with the SM402 special relay,
which turns ON during one scan when the CPU enters from STOP to RUN mode.
• For refreshing a file register, do not change the file name of the file register with the QDRSET instruction.
For restrictions on file registers, refer to Page 126 Precautions for Use of File Registers.
• In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
*1 QnUDVCPU only
• The following program compares R0 of ABC in block No. 1 and R0 of DEF in block No. 1.
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).
4100 The number other than 1 or 3 is specified into the drive No.
*1
The character string designated by (S) is only the drive No.
*1
4101 The character string designated by (S) exceeds 16383 characters.
There is no NULL code "00H" within the range of the corresponding devices
starting from the device number specified by (S).
*1
[Ladder Mode] [List Mode]
[Operation]
Step Instruction Device
Y41 goes ON because D0 < D1
756
Block No. 0, ABC
R3
R1
R2
R0
R4
R5
-7981
5001
128
-3216
9610
0
Block No. 1, DEF
R3
R1
R2
R0
R4
R5
3911
9330
-1762
756
-5
-3781
D0 D1
-3216