CPM1/CPM1A Interrupt Functions
Application Example
(Scheduled Interrupt Mode)
2-3-5 High-speed Counter Interrupts
CPM1 PCs
86
In this example, an interrupt is generated every 4.0 ms (1.0 ms
00005 goes ON; the interrupts execute interrupt subroutine number 23.
25315 First Cycle Flag
ON for 1 cycle
MOV(21)
MOV(21)
00005
@STIM(69)
SBN(92)
RET(93)
CPM1/CPM1A PCs have a high-speed counter function that can be used in in-
crementing mode or up/down mode. The high-speed counter can be combined
with input interrupts to perform target value control or zone comparison control
that isn't affected by the PC's cycle time.
High-speed counter signals can be input to CPU bits 00000 through 00002.
24VDC
#0004
Sets the decrementing counter's set value to 4.
(BCD: 0000 to 9999)
DM 0010
#0010
Sets the decrementing time interval to 1.0 ms.
(BCD: 0005 to 0320)
DM 0011
Starts the interval timer in scheduled interrupt mode.
003
Specifies the first word containing the set value.
DM 0010
#0023
Specifies the subroutine number (23).
023
Interrupt program
NC
Section
2-3
4) after input
Need help?
Do you have a question about the CPM1 - PROGRAMING MANUAL 02-2001 and is the answer not in the manual?
Questions and answers