Mitsubishi Electric MELSEC-Q/L Programming Manual page 813

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

• The PLC file settings of the program on which the PSWAPP instruction has been conducted are set as follows:
• 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.
Operation error
• In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an error code is stored in SD0.
Error
Error details
code
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.
Program example
• 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.
[Ladder Mode]
Precautions
• 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.
• 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.
• 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.
Q00J/
QnH
QnPH
Q00/
Q01
[List Mode]
Step
Instruction
Device
7 APPLICATION INSTRUCTIONS
QnPRH
QnU
LCPU
811
7.19 Other Instructions
7

Advertisement

Table of Contents
loading

Table of Contents