7 APPLICATION INSTRUCTIONS
7.19 Other Instructions
805
7
Loading program from memory card
PLOADP
*1 Designated as "<Drive No.>:<File Name>". Example 1: MAIN
*2 Local devices cannot be used.
• The program stored in the memory card or standard ROM is transferred to the program memory (drive 0). If the transferred
program is not registered to the program setting of the PLC parameter window, its program setting in the CPU module is set
to the standby type. At this time, the program setting of the PLC parameter dialog box does not change. (To transfer a
program with the PLOADP instruction, a continuous free space is required in the program memory.)
• The program added using the PLOADP instruction is assigned the lowest number among the unused program Nos. (To
assign a program number manually, store the program number to be assigned in SD720.) The following example assumes
that "MAIN6" is added by the PLOADP instruction.
• Drive Nos.1, 2, and 4 can be specified. (Drive 3 cannot be specified.)
• 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.
(S): 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
bits)
*1
(D): Device that turns ON for 1 scan by the instruction completion (bits)
Setting
data
Internal device R, ZR J\ U\G Zn Constant
$
Others
Bit Word Bit Word
(S)
(D)
*2
• When the program Nos. have been set consecutively, the new program is added at the end of the preset program Nos. When programs No. 1 to 5 have been
set, the new program is added as program No. 6.
• When there are multiple open program Nos., the program designated by the PLOADP instruction is added to the lowest number among them to be added.
(The open program Nos. are made when programs are deleted by the PUNLOADP instruction.) When programs No. 2 and 4 are open, the new program is
added as program No. 2.
• Drive 1: Memory card (RAM)
• Drive 2: Memory card (ROM)
• Drive 4: Standard ROM
Basic
Redundant
Universal
LCPU
Process
High
performance
Added at the end.
Program No.
Program name
1
2
MAIN1
MAIN2
MAIN3
MAIN4
MAIN5
3
4
5
3
4
5
6
MAIN6
1
2
MAIN2
MAIN3
MAIN4
MAIN5
Program No.
Program name
MAIN1
Adds "MAIN6" by the
PLOADP instruction.
Added to the smallest program
number which is empty.
Program No. Program name
1
2
MAIN1
Empty
MAIN3
Empty
MAIN5
3
4
5
Adds "MAIN6" by the
PLOADP instruction.
Program No. Program name
1
2
MAIN1
MAIN6
MAIN3
Empty
MAIN5
3
4
5