Mitsubishi Q00JCPU User Manual page 924

Hide thumbs Also See for Q00JCPU:
Table of Contents

Advertisement

APPENDICES
<Before transition>
Main routine
program
END
App
- 135
Appendix 5 Method of replacing High Performance model QCPU with Universal model QCPU
(b) Program before replacement
(c) Program after replacement
In the sequence program after replacement, two programs are required as shown
below.
<After transition>
Main routine
program
P0
Subroutine
program
Figure App.12 Program execution
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 shall 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.
Figure App.11 Sample program
Initial processing
FEND
An failure status is checked, and if a failure is detected,
a failure number is stored in D200.
RET
END
Figure App.13 Sample program

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents