7 APPLICATION INSTRUCTIONS
7.19 Other Instructions
811
7
• The PLC file settings of the program on which the PSWAPP instruction has been conducted are set as follows:
• In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an error code is stored in SD0.
• The following program deletes "EFGH.QPG" stored in drive 0 from the memory, transfers "ABCD.QPG" stored in drive 4 to
drive 0, and places the program in standby status when M0 is turned from OFF to ON.
• The PLOADP, PUNLOADP and PSWAPP instructions cannot be executed simultaneously. If two or more of the above
instructions are executed simultaneously, the instruction executed later will not be executed. When using the above
instructions, provide interlocks manually to avoid simultaneous execution.
• Do not execute this instruction in an interrupt program. (Execution of this instruction in an interrupt program can cause a
malfunction.)
• The "PSWAPP instruction" and "write during RUN" processing cannot be executed simultaneously.
• Do not execute "Read from PLC" or "Verify with PLC" and the instruction simultaneously. If the instruction is executed,
"Read from PLC" or "Verify with PLC" is not complete normally because the program file status stored in the program
memory is changed. If executed, execute "Read from PLC" or "Verify with PLC" again after the instruction completion.
• When the boot setting has been made in the PLC parameter, the program where the boot setting has been made is transferred to the program memory. To
execute the program replaced by the PSWAPP instruction, change the boot setting and the program setting in the PLC parameter for the corresponding
program name.
• When the boot setting has not been made in the PLC parameter, "FILE SET ERROR (error code: 2400)" occurs. To execute the program replaced by the
PSWAPP instruction, change the program setting of the PLC parameter for the corresponding program name. To execute the program set in the program
setting of the PLC parameter, write the corresponding program to the CPU module again.
Error
code
Error details Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
2410 The drive No. or the file name specified in (S1) or (S2) does not exist.
2413 There is not enough memory to load the specified program in drive 0.
4100 The drive No. specified in (S1) is invalid.
4101 The program specified by (S1) is not a standby program or is being
executed.
[Ladder Mode] [List Mode]
• When a write during RUN request is given during processing of the PSWAPP instruction, write during RUN is delayed. Write during RUN is started after the
processing of the PSWAPP instruction is completed.
• When the PSWAPP instruction is executed during write during RUN, the processing of the PSWAPP instruction is delayed. The processing of the PSWAPP
instruction is started after completion of write during RUN.