CPM2A/CPM2C High-speed Counters
Selecting Incrementing
or Decrementing Count
Wiring the Inputs
Either an incrementing or decrementing count can be used with interrupt inputs
in counter mode.
Incrementing Counter Mode
As the set value (SV) is refreshed, the count is incremented from 0, and the inter-
rupt subroutine is executed when the present value (PV) matches the SV.
PV
SV
Incrementing
Subroutine executed.
Decrementing Counter Mode
As the set value (SV) is refreshed, the count is is decremented toward 0, and the
interrupt subroutine is executed when the present value (PV) reaches 0.
PV
SV
Decrementing
Subroutine executed.
With the CPM2A, wire the input terminals as shown in the following illustration.
With the CPM2C, wire the input terminals as shown in the following illustration.
The subroutine is executed when the count is up,
and the PV is reset to 0.
Incrementing
Interrupt
Interrupt
Subroutine executed.
The subroutine is executed when the count is up,
and the PV is reset to the SV.
Decrementing
Interrupt
Interrupt
Subroutine executed.
Input 00003: Input interrupt (counter mode) 0
Input 00004: Input interrupt (counter mode) 1
Input 00005: Input interrupt (counter mode) 2
Input 00006: Input interrupt (counter mode) 3
Section
2-2
Time
Time
71
Need help?
Do you have a question about the CPM1 - PROGRAMING MANUAL 02-2001 and is the answer not in the manual?