11 High-speed Counters
11-2
CP2E CPU Unit Software User’s Manual(W614)
11-1 Overview
High-speed counters can be used with any model of CP2E CPU Unit.
High-speed counters are used to measure high-speed pulse input signals that cannot be measured by
counter (CNT) instructions.
z Applications
• Detecting the position or length of a workpiece with an input from an incremental rotary encoder.
• Measuring the speed of a workpiece from its position data using frequency measurement and
rotational speed conversion.
• High-speed processing according to the workpiece’s position data.
The present value of the high-speed counter is stored in the Auxiliary Area and can be used as posi-
tion data. When it reaches preset values, interrupts can be generated. The count can be started and
stopped. Depending on the instruction, the frequency (speed) can be read from the present value of
the high-speed counter.
11-1-1 Overview
Encoder
· Phase A/phase B
· Up/down pulse inputs
· Reset input (phase Z)
Etc.
High-speed counter PV
(stored in Auxiliary Area)
Changes to PV
Target value comparison
Interrupt task
· Reading PV (from Auxiliary Area
or using PRV instruction)
· Reading frequency (using PRV instruction)
· Setting target values or range upper/lower
limits and starting comparison, specifying
interrupt task to be started
Read
PRV
CTBL
Count
input
High-speed counter PV comparison
Read
Settings
Range comparison for
upper and lower limits