Справочник Пользователя для Mitsubishi Electronics MELSEC -Q/L

Скачать
Страница из 1086
806
7  APPLICATION INSTRUCTIONS
7.19  Other Instructions
Unloading program from program memory
PUNLOADP
*1 Local devices cannot be used.
Processing details
 • 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.)
 • 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.
 • It is not necessary to designate the extension (.QPG) with the file name.
 • The bit device specified by (D) 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.
 • 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.
(S):   Character string data of the program file name to be unloaded, or head number of the devices storing the character string data (BIN 16 bits)
(D):   Device turned ON for 1 scan on completion of the instruction (bits)
Setting 
data
Internal device
R, ZR
J\
U\G
Zn
Constant
$
Others
Bit
Word
Bit
Word
(S)
(D)
• 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.
• When boot setting has not been made in the PLC parameter dialog box, "FILE SET ERROR (error code: 2400)" occurs. 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. When the 
program deleted by the PUNLOADP instruction is to be executed again, write the corresponding program to the CPU module.
Basic
Redundant
Universal
LCPU
Process
High
performance
PUNLOADP
Command
PUNLOADP
S
D
Program No. 2 
is deleted.
Program No.
Program name
1
2
MAIN1
MAIN2
MAIN3
MAIN4
MAIN5
3
4
5
Program No.
Program name
1
2
MAIN1
Empty
MAIN3
MAIN4
MAIN5
3
4
5
Deletes "MAIN2" by the 
PUNLOADP instruction.