1084
7 APPLICATION INSTRUCTIONS
7.30 Program Control Instructions
• These instructions change the execution type of the program with the file name stored in the device specified by (filename)
to a scan execution type.
• Only programs stored in program memory can be changed to a scan execution type.
• The execution type of the specified program changes to a scan execution type during END processing.
While there are programs A, B, and C, the PSCAN(P) instruction is executed for program D within program A.
• The PSCAN(P) instruction takes precedence even when the execution type is specified in parameter.
• Extension ".PRG" does not need to be specified as a part of file name. (Only .PRG files can be processed by these
instructions.)
For how to change the program execution type, refer to the following.
MELSEC iQ-R CPU Module User's Manual (Application)
For the operation when the SFC program is specified, refer to the following.
MELSEC iQ-R Programming Manual (Program Design)
Sc: Scan
(1) The program D is executed.
Error code
(SD0)
Description
2840H The program with the file name specified by (file name) does not exist.
2841H The program with the file name specified by (file name) is not registered in parameter.
2842H The type of the program with the file name specified by (file name) is not supported.
3204H The file name specified by (file name) is the SFC program and the SFC program with another file name is already operating.
ENDD
ABC END A BC
PSCAN(P)
ScSc
(1)