Mitsubishi Electric melsec q00ujcpu User Manual page 61

Programmable controller
Hide thumbs Also See for melsec q00ujcpu:
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.
2 - 22
Program A
Program B (Stand-by type program)
P500
P508
P501
Use common pointer.
Figure 2.25 Creating subroutine programs in a single stand-by type program
Main routine
program
Y10
RET
Y11
RET
Y12
RET
END

Advertisement

Table of Contents
loading

Table of Contents