Mitsubishi Electric Q01UCPU User Manual page 96

Hide thumbs Also See for Q01UCPU:
Table of Contents

Advertisement

(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.
After execution of the standby type program, the CPU module re-executes the program that called a program in
the standby type program. The following figure shows the operation when the subroutine and interrupt
programs in the standby type program are executed.
Main routine program
Subroutine program within
a stand-by type program
Interrupt program within a
stand-by type program
● For restrictions on programming of subroutine and interrupt programs, refer to the following.
• Subroutine program:
• Interrupt program:
● Use common pointers. (
type program cannot be executed from any other program.
94
Program A
Program B (Stand-by type program)
P500
P508
P501
Use common pointer.
CALL P100
instruction execution
END processing
P100
RET
Page 67, Section 2.4.3
Page 80, Section 2.9
Page 407, Section 4.10.2) If local pointers are used, subroutine programs in a stand-by
Main routine
program
Y10
RET
Y11
RET
Y12
RET
END
Interrupt factor
occurrence
END processing
END processing
I0
IRET

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents