655
PUNLOADP
1
2
3
4
4
6
7
8
7.18
Ot
her inst
ructions
7.18.1
7
PUNLOADP
F
unct
i
on
(1) The standby program stored in the program memory (drive 0) is deleted from the program memory.
(The program set as the "scan execution type" with the PSCAN instruction or the program set as the "low speed
execution type" with the PLOW instruction cannot be deleted.)
(2) The program No. deleted by the PUNLOADP instruction is made "Empty".
When programs No. 1 to 5 have been set in the program setting of the PLC parameter dialog box, deleting program No.
2 with this instruction makes program No. 2 open.
(3) An extension (.QPG) need not be specified for the file name.
(4) The bit device specified by is turned ON during the END processing of the scan where this instruction is completed.
The bit device is turned OFF at the next END processing.
(5) 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.
(6) When the programmable controller is powered OFF, then ON or the CPU module is reset after execution of the
PUNLOADP instruction, the following operation is performed.
(a) When boot setting has been made in the PLC parameter dialog box, the program where the boot setting has been
made is transferred to the program memory.
When the program deleted by the PUNLOADP instruction is not to be executed, delete the corresponding program
name from the boot setting and program setting of the PLC parameter dialog box.
(b) When boot setting has not been made in the PLC parameter dialog box, "FILE SET ERROR (error code: 2400)"
occurs.
1) When the program deleted by the PUNLOADP instruction is not to be executed, delete the corresponding
program name from the program setting of the PLC parameter dialog box.
2) When the program deleted by the PUNLOADP instruction is to be executed again, write the corresponding
program to the CPU module.
(7) Do not execute this instruction in an interrupt program.
(Otherwise, a malfunction may result.)
(8) The program to be deleted from the program memory by this instruction should be set to the "standby execution type"
with the PSTOP instruction beforehand. (See Page 598, Section 7.17.1)
(9) The "PUNLOADP instruction" and "write during RUN" processing cannot be executed simultaneously.
(a) When a write during RUN request is given during processing of the PUNLOADP instruction, write during RUN is
delayed.
Write during RUN is started after the processing of the PUNLOADP instruction is completed.
(b) When the PUNLOADP instruction is executed during write during RUN, the processing of the PUNLOADP
instruction is delayed.
The processing of the PUNLOADP instruction is started after completion of write during RUN.
Program
N
o
.
2
i
s
de
l
eted
.
Program
N
o
.
Program
name
1
2
MA
IN
1
MA
IN
2
MA
IN
3
MA
IN4
MA
IN
5
3
4
5
Program
N
o
.
Program
name
1
2
MA
IN
1
E
mpty
MA
IN
3
MA
IN4
MA
IN
5
3
4
5
De
l
etes
"
MA
IN
2
"
by
the
P
UNL
OADP
i
nstruct
i
on
.
D