Mitsubishi 00JCPU User Manual page 77

Q series programmable controller
Table of Contents

Advertisement

(3) Execution method
Execute stand-by type programs in either of the following methods.
• Create subroutine and/or interrupt programs in a stand-by type program and call them using a pointer or
when an interrupt occurs.
• Change a stand-by type program to any other execution type using instructions.
(a) Creating subroutine and/or interrupt programs in a single stand-by type program
When creating subroutine and/or interrupt programs in a single stand-by type program, start the program from
the step 0.
The FEND instruction used in creation of a subroutine or interrupt program is not required after a main routine
program.
Figure 2.34 Creating subroutine programs in a single stand-by type program
Program A
Main routine
program
Program B (Stand-by type program)
P500
Y10
RET
P508
Y11
RET
P501
Y12
RET
END
Use common pointer.
CHAPTER2 SEQUENCE PROGRAMS
2 - 32
2
3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents