Mitsubishi Electronics QCPU Welding System User Manual


  Open as PDF
of 1204
 
7-441
PLOADP
1
2
3
4
6
6
7
8
7.18 Other instructions
7.18.16 Load Program from Memory Card (PLOADP)
(b) 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.
(3) 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
(4) An extension (.QPG) need not be specified for the file name.
(5) 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.
(6) 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.
(7) Do not execute this instruction in an interrupt program.
(Otherwise, a malfunction may result.)
(8) To execute the program that was transferred to the program memory with the PLOADP
instruction, execute the scan execution type with the PSCAN instruction (See Section
7.17.3).
(9) The PLC file settings of the loaded program are set as follows:
(a) File usage for each program
All the usage of file register, device initial value, comment, and local device of the
program transferred by this instruction are set as "Use PLC file setting".
However, an error will be returned if both of the conditions below are met when the
program is transferred using this instruction.
Setting is made so that local devices are used in the PLC file setting.
The number of programs in the program memory exceeds the number of programs
set at the parameters.
To use local devices in the program transferred by this instruction, register a dummy
program file in the parameter, delete the dummy file with the PUNLOADP instruction,
and then load the program with the PLOADP instruction.
(b) I/O refresh setting
Nothing is set for both input and output for the I/O refresh setting of the program
transferred by this 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
D