Loading And Unloading - Mitsubishi Electric MELSEC-Q/L Programming Manual

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

Advertisement

Loading and unloading

PSWAPP
Basic
High
Process
performance
PSWAPP
(S1): Character string data of the file name of the program to be unloaded, or head number of the devices storing the character string data (BIN 16 bits)
(S2): Drive No. storing the program to be loaded, character string data of the file name, or head number of the devices storing the character string data (BIN 16
*1
bits)
(D): Device turned ON for 1 scan on completion of the instruction (bits)
Setting
Internal device
data
Bit
(S1)
(S2)
*2
(D)
*1 Designated as "<Drive No.>:<File Name>". Example 1: MAIN
*2 Local devices cannot be used.
Processing details
• The standby type program stored in the program memory (drive 0) designated by (S1) is deleted from the program memory,
and at the same time, the program stored in the memory card or standard ROM designated by (S2) is transferred to the
program memory and placed in standby status. (When the program is transferred to the program memory, the program
must have a continuous free space.)
• 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 to be transferred to the program memory by the PSWAPP instruction will have the program No. of the
program to be deleted from the program memory. (If there is an open program No. before the program to be deleted from
the program memory, the program to be transferred to the program memory will not have the open program No.)
• When program No. 2 is "Empty", the program transferred to the program memory is registered as program No. 3 by the
program swapping of program No. 3 with this instruction.
Program No.
Program name
1
MAIN1
Empty
2
3
MAIN3
MAIN4
4
MAIN5
5
• Drive Nos.1, 2, and 4 can be specified. (Drive 3 cannot be specified.)
• Drive 1: Memory card (RAM)
• Drive 2: Memory card (ROM)
• Drive 4: Standard ROM
• 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 PSWAPP
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 replaced by the PSWAPP instruction is to be executed, change the boot setting and program setting of the PLC parameter dialog
box for the corresponding program name.
• When boot setting has not been made in the PLC parameter dialog box, "FILE SET ERROR (error code: 2400)" occurs. When the program replaced by the
PSWAPP instruction is to be executed, change the program setting of the PLC parameter dialog box for the corresponding program name. To execute the
program set in the program setting of the PLC parameter dialog box, write the corresponding program to the CPU module again.
7 APPLICATION INSTRUCTIONS
810
7.19 Other Instructions
LCPU
Redundant Universal
Command
R, ZR
Word
Swaps "MAIN3" with "MAIN6"
by the PSWAPP instruction.
J\
U\G
Bit
Word
Program No.
Program name
1
MAIN1
Empty
2
MAIN6
3
MAIN4
4
MAIN5
5
S1
S2
D
PSWAPP
Zn
Constant
$
MAIN6 enters
Others

Advertisement

Table of Contents
loading

Table of Contents