Mitsubishi Electric MELSEC-Q00U(J)CPU User Manual page 532

Table of Contents

Advertisement

(c) Program after replacement
In the sequence program after replacement, two programs are required as shown below.
<Before transition>
Main routine
program
END
1.
Main routine program
• Replace the CHKST and CHK instructions with the CALL instructions so that a subroutine program is
called.
• One CALL instruction is required for each device specified as check condition in front of the CHK
instruction. (In the program before replacement shown in (b), four CALL instructions need to be added
since there are four check conditions in front of the CHK instruction.)
• Device number and contact number of X devices (check condition) are specified in each CALL instruction.
• Contact number is used to display failure number when a failure is detected.
530
<After transition>
Main routine
program
FEND
P0
Subroutine
program
RET
END
Initial processing
An failure status is checked, and if a failure is detected,
a failure number is stored in D200.

Advertisement

Table of Contents
loading

Table of Contents