Program Scan Execution Registration - Mitsubishi Electric MELSEC-Q/L Programming Manual

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

Advertisement

Program scan execution registration

PSCAN(P)
Basic
High
Process
performance
PSCAN
PSCANP
(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
Internal device
data
Bit
(S)
Processing details
• 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.
Ex.
When programs A, B, and C exist and program A performs "PSCAN" of program D.
A
B
C
Execution of
PSCAN
Scan
• 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.)
Operation error
• In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
Error
Error details
code
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)
7 APPLICATION INSTRUCTIONS
722
7.17 Program Control Instructions
Redundant Universal
LCPU
Command
Command
R, ZR
Word
END
A
B
C
Scan
J\
Bit
Word
D
END
Program D
is executed
Q00J/
Q00/
Q01
PSCAN
S
PSCANP
S
U\G
Zn
Constant
$
QnH
QnPH
QnPRH
Others
QnU
LCPU

Advertisement

Table of Contents
loading

Table of Contents