The applications of Interrupt Pointer and the concepts of interrupt subroutine are explained in detaile in the section of
Application Instructions IRET, EI and DI.
C0
K100
Y0
C0RST
M9000
IRET
X20
FEND
IX0P
The following example shows the modified program.
1
2
C0 cannot count accurately
X0 interrupt signal
Y0
Y0 maintains ON status
C0 is continuously being reset
X20 count signal
RST C0
C0
K100
Y0
C0
C0
Y0
RST
RST
RST
M9000
M9001
IRET
X20
X21
FEND
IX0P
B
A
A
RST enable
RST disable
B
1
2
Y0
RST C0
1
2
X21
38
The interruption is a special mechanism for to break the rules of regular operation; an interrupt subroutine is not
regularly implemented. Therefore, special attention must be paid to the components that are driven in the interrupt
subroutine.
If a step relay is for to active a part of the SFC, it is not allowed to be driven in an interrupt subroutine.
The following example shows that the elements driven in the interrupt subroutine remain in their state.
C0 present value
X0 interrupt signal
X20 count signal
C0 present value