![background image](http://html1.mh-extra.com/html/omron/srm1-programing-02-2001/srm1-programing-02-2001_programming-manual_742414090.webp)
!
2-2
Section
CPM2A/CPM2C High-speed Counters
69
Caution
Although IORF(97) can be used in interrupt subroutines, you must be careful of
the interval between IORF(97) executions. If IORF(97) is executed too frequent-
ly, a fatal system error may occur (FALS 9F), stopping operation. The interval
between executions of IORF(97) should be at least 1.3 ms + total execution time
of the interrupt subroutine.
The following table shows the relationships between interrupt inputs (counter
mode) and the CPM2A/CPM2C’s other functions.
Function
Interrupt inputs (counter mode)
Synchronized pulse control
Can be used simultaneously.
Interrupt inputs
See note 1.
Interval timer interrupts
Can be used simultaneously.
High-speed counters
Can be used simultaneously.
Interrupt inputs (counter mode)
See note 1.
Pulse outputs
Can be used simultaneously.
Quick-response inputs
See note 1.
Input time constant
See note 2.
Clock
Can be used simultaneously.
Note
1. The same input number (from 00003 to 00006) cannot be used for more
than one of the following functions: interrupt inputs, interrupt inputs (counter
mode), or quick-response inputs.
2. When inputs 00003 to 00006 are set for use as interrupt inputs (counter
mode), the input time constants for the relevant inputs are disabled. The in-
put time constants remain in effect, however, for the values for refreshing
the relevant input relay area.
Procedure for Using Interrupt Inputs in Counter Mode
Set the interrupt input number.
Wire the inputs.
PC Setup (DM 6628)
Create a ladder diagram program.
Input numbers: 00003 to 00006 (00003 or 00004 for CPM2C CPU
Units with 10 I/O points and CPM2C-S CPU Units.)
INI(61): Change counter PV
INT(89): Refresh counter SV*
PRV(62): Read counter PV
SBN(92) and RET(93): For creating interrupt subroutines.*
Select either incrementing or
decrementing count.
1: Use as interrupt input (interrupt input mode or counter mode)
*Used only for count-up interrupts.