Omron SYSMAC CPM1 Operation Manual page 21

Hide thumbs Also See for SYSMAC CPM1:
Table of Contents

Advertisement

CPM1 Features and Functions
Input Interrupts
1, 2, 3...
The CPM1-10CDR-j PCs have 2 interrupt input terminals and the
CPM1-20CDR-j and CPM1-30CDR-j PCs have 4 interrupt input terminals.
There are two modes for input interrupts: input interrupt mode and counter
mode.
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
PC model
CPM1-10CDR-j
CPM1-20CDR-j/30CDR-j(-V1)
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.
Input interrupt
MOV
ADD
Interrupt program
END
Input bits
IR 00003 to IR 00004
IR 00003 to IR 00006
Section 1-1
SBN00
MOV
RET
Response time
0.3 ms
(1 kHz in Counter Mode)
5

Advertisement

Table of Contents
loading

Table of Contents