Mitsubishi Electric melsec q00ujcpu User Manual page 62

Programmable controller
Hide thumbs Also See for melsec q00ujcpu:
Table of Contents

Advertisement

1) Executing a subroutine program and interrupt program in a stand-by type program
After execution of the stand-by type program, the CPU module reexecutes the program that called a program
in the stand-by type program.
Figure 2.26 shows the operation when the subroutine and interrupt programs in the stand-by type program
are executed.
END processing
Main routine program
Subroutine program within
a stand-by type program
Interrupt program within a
stand-by type program
Figure 2.26 Operation when the subroutine and interrupt programs in the stand-by type program are executed
For restrictions on programming of subroutine and interrupt programs, refer to the following.
• Subroutine program:
• Interrupt program:
Use common pointers. (
If local pointers are used, subroutine programs in a stand-by type program cannot be executed from any other program.
CALL P100
instruction execution
END processing
P100
RET
Section 2.2.2
Section 2.3.2
Section 9.10.2)
CHAPTER2 SEQUENCE PROGRAMS
Interrupt factor
occurrence
END processing
I0
IRET
1
2
3
4
5
6
7
8
2 - 23

Advertisement

Table of Contents
loading

Table of Contents