603
PCHK
1
2
3
4
4
6
7
8
7.17
Progr
am co
ntrol instr
uctions
7.17.5
P
CHK
: File name of the program whose execution status will be checked (character string)
F
unct
i
on
\
(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.
Operat
i
on
E
rror
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
Program
E
xamp
l
e
(1) Program that keeps Y10 ON when the program file "ABC.QPG" is being executed.
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.
7.17.5
PCHK
Program execution status check
7.17.5
PCHK
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
$
Other
Bit
Word
Bit
Word
––
––
Error
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH QnPRH
QnU
LCPU
2410
The program with the specified file name does not exist.
––
––
––
Bas
i
c
U
n
iv
ersa
l
L
CP
U
Process
High
performance
Redundant
LDPCHK
PC
HK
ORPCHK
PC
HK
ANDPCHK
PC
HK
Command
Command
Fil
e
name
Fil
e
name
Fil
e
name
S
S
PC
HK
"
ABC
"
Y
10
E
xecut
i
on
N
on
-
execut
i
on