CPM2A/CPM2C High-speed Counters
2-2-1 Using High-speed Counters
Item
Input
p
00000
number
b
00001
00002
Input method
Response frequency
Count value
Counter PV storage destination
(See note 2.)
Interrupts
Target value
comparison
Range comparison
Counter reset method
The CPM2A/CPM2C's CPU Unit has one built-in channel for a high-speed
counter that can count inputs at a maximum of 20 kHz. Using this in conjunction
with the interrupt function enables target value comparison control or range
comparison control to be executed without deviating from the cycle time.
Counter inputs
Reset input
Differential phase
Phase-A inputs
Phase-B inputs
Phase-Z inputs (Reset inputs) (See note 1.)
Differential phase
inputs (4X)
5 kHz
–8388608 to 8388607
Words SR 248 (rightmost digit) and SR 249 (leftmost digit)
Up to 16 target values and interrupt subroutine numbers can be registered in either
the incrementing or decrementing direction.
Up to eight ranges (with upper and lower limits) and subroutine numbers can be
registered.
Phase-Z signal + software reset: Counter is reset when IR 00002 turns ON while
SR 25200 is ON.
Software reset: Counter is reset when SR 25200 turns ON.
Note
1. Input points not used for counter inputs can be used as ordinary inputs.
2. When not used for the counter PV storage destination, these words can be
used as ordinary IR words.
3. SR 25200 is read once each cycle. Up to one cycle may be required for a
reset to occur on the leading edge of phase Z.
The following table shows the relationships between the high-speed counter
and the CPM2A/CPM2C's other functions.
Sensor
Input mode
Pulse + direction
Up/down input
Pulse inputs
CW inputs
Direction inputs
CCW inputs
Phase inputs
Phase inputs
20 kHz
20 kHz
Section
2-2
Rotary encoder
Increment
Pulse inputs
See note 1.
Phase inputs
20 kHz
0 to 16777215
47
Need help?
Do you have a question about the CPM1 - PROGRAMING MANUAL 02-2001 and is the answer not in the manual?
Questions and answers