11 High-speed Counters
11-26
CP2E CPU Unit Software User’s Manual(W614)
11-5 Application Example
z Functions Used: High-speed Counting for a Built-in Input
A high-speed counter input can be used by connecting a rotary encoder to a built-in input. A CP2E
CPU Unit is equipped with more than one high-speed counter input, making it possible to control
devices for multiple axes with a single PLC.
High-speed counters can be used for high-speed processing, using either target value comparison
or range comparison to create interrupts. Interrupt tasks are executed when the counter value
reaches a specific target value or range
.
z Operation Overview
A sheet feeder is controlled to feed constant lengths in a given direction, e.g., for vacuum packing of
food products.
While the pulse count is between 3,500 and 3,550, normal stop position output (CIO 100.02) will be
ON. If the pulse count exceeds 3550, the error stop position output (CIO 100.03) will turn ON.
Using a Rotary Encoder to Measure Positions
Motor speed
Motor start input:
CIO 0.02
Motor run output:
CIO 100.00
Motor low speed
output: CIO 100.01
Normal stop position
output: CIO 100.02
Error stop position
output: CIO 100.03
Number of pulses
counted by high-
speed counter
(A270)
(Pulses)
The High-speed Counter Reset Bit
(A531.00) is turned ON in the ladder
program as soon a operation starts
and the reset process is performed.
3550
3500
3000