2-1
Section
CPM2A/CPM2C Interrupt Functions
38
The following table shows the relationships between interval timer interrupts
and the CPM2A/CPM2C’s other functions.
Interval timer interrupts
Synchronized pulse control
Can be used simultaneously.
Interrupt inputs
Can be used simultaneously.
Interval timer interrupts
---
High-speed counters
Can be used simultaneously.
Interrupt inputs (counter mode)
Can be used simultaneously.
Pulse outputs
Can be used simultaneously.
Quick-response inputs
Can be used simultaneously.
Input time constant
Can be used simultaneously.
Clock
Can be used simultaneously.
Procedure for Using Interval Timer Interrupts
Select the mode.
Either one-shot mode or schedule-interrupt mode
Ladder diagram programming
STIM(69)
Interval timer
Interrupt is
executed.
Ladder diagram programming
Specified subroutine is executed.
STIM(69)
INTERVAL TIMER
instruction
Start timer
One-shot mode
Scheduled-interrupt mode
Read elapsed time
SBN(92)
RET(93)
Select either the one-shot mode or the scheduled-interrupt mode.
One-shot Mode
Normal program
Normal program
Interrupt program
Interval timer interrupt
Interval timer operation
Start timer
Selecting the Mode