Mitsubishi MELSEC-Q/L Programming Manual page 605

Table of Contents

Advertisement

7.17.5
PCHK
Program execution status check
7.17.5
PCHK
LDPCHK
ANDPCHK
ORPCHK
: File name of the program whose execution status will be checked (character string)
S
Internal Devices
Setting
Data
Bit
Word
S
\
Function
(1) Checks whether the program of the specified file name is in execution or not (non-execution).
(2) The instruction is in conduction when the program of the specified file name is in execution, and the instruction is in non-
conduction when the program is in non-execution.
(3) Specify the file name without an extension (.QPG).
For example, specify "ABC" when the file name is ABC.QPG.
Operation Error
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
Error
code
2410
The program with the specified file name does not exist.
Program Example
(1) Program that keeps Y10 ON when the program file "ABC.QPG" is being executed.
PCHK
"ABC"
Execution
Non-execution
Remark
Non-execution indicates that the program execution type is a stand-by type.
Execution indicates that the program execution type is a scan execution type (including during output OFF (during non-
execution processing)), low speed execution type or fixed scan execution type.
PCHK
Command
Command
PCHK
J
\
R, ZR
Bit
Word
––
Error details
Y10
High
Basic
Process
performance
File name
PCHK
File name
File name
Zn
U
\G
Q00J/
Q00/
QnH
QnPH QnPRH
Q01
––
PCHK
Redundant
Universal
LCPU
Constants
Other
$
––
QnU
LCPU
––
––
603
1
2
3
4
4
6
7
8

Advertisement

Table of Contents
loading

Table of Contents