5
Input Interrupts The CPM1-10CDR- PCs have 2 interrupt input terminals and the
CPM1-20CDR- and CPM1-30CDR- PCs have 4 interrupt input terminals.
There are two modes for input interrupts: input interrupt mode and counter
mode.
1, 2, 3... 1. When an interrupt occurs in Input Interrupt Mode, the main program is inter-
rupted and the interrupt program is executed immediately, regardless of the
cycle time.
2. In Counter Mode, external input signals are counted at high speed (up to
1 kHz) and an interrupt is generated each time the count reaches the set
value. When an interrupt occurs, the main program is interrupted and the
interrupt program is executed. The set value can be set from 0 to 65,535.
The following diagram shows the program execution when an interrupt occurs.
Main program
Input interrupt
Interrupt program
MOV
ADD
END
SBN00
MOV
RET
PC model Input bits Response time
CPM1-10CDR-
IR 00003 to IR 00004
0.3 ms
CPM1-20CDR-/30CDR-(-V1)
IR 00003 to IR 00006
(1 kHz in Counter Mode)
Note When not using as interrupt input terminals, the input bits IR 00003 to IR 00006
can be used as normal input terminals.
Refer to the CQM1/CPM1/CPM1A/SRM1 Programming Manual (W228) for set-
ting and using the input interrupts.
CPM1 Features and Functions Section 1-1