Unloading Program From Program Memory - Mitsubishi Electric MELSEC-Q/L Programming Manual

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

Advertisement

Unloading program from program memory

PUNLOADP
Basic
High
Process
performance
PUNLOADP
(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
Internal device
data
Bit
(S)
*1
(D)
*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.
Program No.
Program name
1
MAIN1
2
MAIN2
3
MAIN3
MAIN4
4
MAIN5
5
• 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.
• 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.
7 APPLICATION INSTRUCTIONS
808
7.19 Other Instructions
LCPU
Redundant Universal
Command
R, ZR
Word
Deletes "MAIN2" by the
PUNLOADP instruction.
J\
U\G
Bit
Word
Program No.
Program name
1
MAIN1
Empty
2
MAIN3
3
MAIN4
4
MAIN5
5
PUNLOADP
S
D
Zn
Constant
$
Program No. 2
is deleted.
Others

Advertisement

Table of Contents
loading

Table of Contents