CPM2A/CPM2C High-speed Counters
!
Caution
Procedure for Using Interrupt Inputs in Counter Mode
Set the interrupt input number.
Select either incrementing or
decrementing count.
Wire the inputs.
PC Setup (DM 6628)
Create a ladder diagram program.
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
Synchronized pulse control
Interrupt inputs
Interval timer interrupts
High-speed counters
Interrupt inputs (counter mode)
Pulse outputs
Quick-response inputs
Input time constant
Clock
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.
Input numbers: 00003 to 00006 (00003 or 00004 for CPM2C CPU
Units with 10 I/O points and CPM2C-S CPU Units.)
1: Use as interrupt input (interrupt input mode or counter mode)
INI(61): Change counter PV
INT(89): Refresh counter SV*
PRV(62): Read counter PV
SBN(92) and RET(93): For creating interrupt subroutines.*
*Used only for count-up interrupts.
Section
Interrupt inputs (counter mode)
Can be used simultaneously.
See note 1.
Can be used simultaneously.
Can be used simultaneously.
See note 1.
Can be used simultaneously.
See note 1.
See note 2.
Can be used simultaneously.
2-2
69
Need help?
Do you have a question about the CPM1 - PROGRAMING MANUAL 02-2001 and is the answer not in the manual?