Program Execution Status Check - Mitsubishi Electric MELSEC-Q/L Programming Manual

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

Advertisement

Program execution status check

LDPCHK, ANDPCHK, ORPCHK
Basic
High
Process
Redundant
performance
LDPCHK
ANDPCHK
ORPCHK
(S): File name of the program whose execution status will be checked (character string)
Setting
Internal device
data
Bit
Word
(S)
Processing details
• Checks whether the program of the specified file name is in execution or not (non-execution).
• 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.
• Specify the file name without an extension (.QPG). For example, specify "ABC" when the file name is ABC.QPG.
• 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.
Operation error
• In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an error code is stored in SD0.
Error
Error details
code
2410
The program with the specified file name does not exist.
Program example
• Program that keeps Y10 ON when the program file "ABC.QPG" is being executed.
PCHK
"ABC"
Execution
Non-execution
LCPU
Universal
PCHK
Command
Command
PCHK
R, ZR
J\
Bit
Y10
File name
PCHK
File name
File name
U\G
Zn
Word
Q00J/
QnH
QnPH
Q00/
Q01
7 APPLICATION INSTRUCTIONS
7.17 Program Control Instructions
Constant
Others
$
QnPRH
QnU
LCPU
725
7

Advertisement

Table of Contents
loading

Table of Contents