2-4
Section
SRM1(-V2) Interrupt Functions
96
Stopping the Timer
Use the STIM(69) instruction to stop the interval timer. The interval timer will be
stopped.
(@)STIM(69)
C
1
000
000
C
1
: Stop interval timer (010)
In this example, an interrupt is generated 2.4 ms (0.6 ms
×
4) after input 00005
goes ON; the interrupt executes interrupt subroutine number 23.
MOV(21)
#0004
DM 0010
MOV(21)
#0006
DM 0011
SBN(92)
023
RET(93)
@STIM(69)
000
DM 0010
#0023
00005
Interrupt program
Sets the decrementing counter‘s set value to 4.
(BCD: 0000 to 9999)
Sets the decrementing time interval to 0.6 ms.
(BCD: 0005 to 0320)
Starts the interval timer in one-shot mode.
Specifies the first word containing the set value.
Specifies the subroutine number (only lower by-
tes are effective).
25315 First Cycle Flag
ON for 1 cycle
In this example, an interrupt is generated every 4.0 ms (1.0 ms
×
4) after input
00005 goes ON; the interrupts execute interrupt subroutine number 23.
MOV(21)
#0004
DM 0010
MOV(21)
#0010
DM 0011
SBN(92)
023
RET(93)
@STIM(69)
003
DM 0010
#0023
00005
25315 First Cycle Flag
ON for 1 cycle
Interrupt program
Sets the decrementing counter‘s set value to 4.
(BCD: 0000 to 9999)
Sets the decrementing time interval to 1.0 ms.
(BCD: 0005 to 0320)
Starts the interval timer in scheduled interrupt mode.
Specifies the first word containing the set value.
Specifies the subroutine number (only the lower by-
tes are effective).
Application Example
(One-shot Mode)
Application Example
(Scheduled Interrupt Mode)