7-178
CHKST,CHK
(7) Place LD and AND instructions prior to the CHK instruction to establish a check condition.
Check conditions cannot be set using other contact instructions.
If a check condition has been set with LDI or ANI, the processing for the check condition
they specify will not be conducted.
However, contact numbers during failure detection can also be allocated to the LDI and ANI
instructions.
(8) The failure detection method differs according to whether SM710 is ON or OFF.
(a) If SM710 is OFF, checks will be conducted of coil numbers 1 to 6 for each contact
successively.
When the CHK instruction is executed, checks will be in order from coil No. 1 of contact
No. 1, through coil No. 6, then move on to contact No. 2 and check the coils in order
from No. 1.
The CHK instruction will be completed when coil No. 6 from contact No. n has been
checked.
(b) If SM710 is ON, checks will be conducted of contact numbers 1 through n, in coil
number order.
When the CHK instruction is executed, checks will begin with the ladder for coil No. 1, in
order from contact No. 1 until contact No. n, then move on to the coil No. 2 ladder and
begin from contact No. 1.
The CHK instruction will be completed when a check has been made through contact
No. n of coil No. 6.
(9) If more than one failure is detected, the number of the first failure detected will be stored.
Failure numbers detected after this will be ignored.
(10) The CHK instruction cannot be used by a low speed execution type program.
If a low speed execution type program has been set in a program file containing the CHK
instruction, an operation error will be returned, and the CPU module operation will be
suspended.
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
• There is a parallel ladder. (Error code: 4235)
• There is an NOP instruction. (Error code: 4235)
• There are more than 150 contact instructions. (Error code: 4235)
• A CHK instruction is not executed following the CHKST instruction.
(Error code: 4235)
• The CHK instruction is executed when no CHKST instruction has been executed.
(Error code: 4235)
• The CHKST and CHK instruction are used in a low speed execution type program.
(Error code: 4235)
• There is an instruction other than the LD, LDI, AND or ANI instruction between the CHK
instruction and the CHKST instruction. (Error code: 4235)
• The CHK instruction is used at three places or more in all of programs being executed.
(Error code: 4235)
• The CHK instruction is used at two places or more in a single program.
(Error code: 4235)
CHK
X5
Does not execute check
X7
X9
XA X1A
X1C
1234
Contact No.
Contact numbers are allocated