Interrupt Programs - Mitsubishi Q-Series User Manual

Programmable logic controller
Hide thumbs Also See for Q-Series:
Table of Contents

Advertisement

4 SEQUENCE PROGRAM CONFIGURATION & EXECUTION
CONDITIONS

4.1.3 Interrupt programs

4 - 5
(1) Definition of interrupt program
(a)
An interrupt program is a program which begins at the interrupt pointer
(I
), and ends at the IRET instruction.
(b)
Interrupt programs are executed only when an interrupt factor occurs.
(2) Interrupt program management
Interrupt programs are created after the main routine program (after the FEND
instruction), and the combination of main and sub-routine programs is managed
as one program.
Create an interrupt program as described below.
• An interrupt program is created between the main routine program's FEND and
END instructions.
• Because there are no restrictions regarding the order in which interrupt
programs are created, there is no need to set the interrupt pointers in ascending
order when creating multiple interrupt programs.
MAIN
I0
Interrupt
program
I32
I28
REMARK
1: See Section 10.10 for details regarding interrupt factors and interrupt pointers.
Main routine
program
FEND
Y10
IRET
Y11
IRET
Y12
IRET
END
Interrupt pointer
MELSEC-Q
1
Basic model QCPU
Program memory
Write
Program file
1
4 - 5

Advertisement

Table of Contents
loading

Table of Contents