722
7 APPLICATION INSTRUCTIONS
7.17 Program Control Instructions
Program scan execution registration
PSCAN(P)
• Sets the program whose file name is being stored at the device designated by (S) in the scan execution type.
• Only the programs stored in the drive No. 0 (program memory/internal RAM) can be set as the scan execution type.
• Designated programs assume the scan execution type with END processing.
When programs A, B, and C exist and program A performs "PSCAN" of program D.
• This instruction will be given priority even in cases when a program execution type has been designated in the parameters.
• It is not necessary to designate the extension (.QPG) with the file name. (Only .QPG files will be acted on.)
• In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
(S): File name of the program to be set as a scan execution type, or head number of the devices where the file name is stored (character string)
Setting
data
Internal device R, ZR J\ U\G Zn Constant
$
Others
Bit Word Bit Word
(S)
Error
code
Error details Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
2410 The program with the file name specified by (S) does not exist.
2411 The program with the file name designated by (S) is not registered in the
parameters.
2504 The specified file name is the SFC program, and the SFC program for the
other file name has been already started. (Dual activation error of the SFC
program)
4101 The range of the device specified by (S) exceeds the range of the
corresponding device.
4131 The specified file name is the SFC program, and the SFC program for the
other file name has been already started. (Dual activation error of the SFC
program)
Process
High
performance
Redundant
Universal
LCPU
Basic
Command
Command
PSCAN
PSCANP
S
S
PSCAN
PSCANP
ABCENDA B CDEND
Scan Scan
Execution of
PSCAN
Program D
is executed