A
A-4 CP1L Programming Examples
132
SYSMAC CP1L Getting Started Guide
Ap
pend
ix
A-4-5 Using Rotary Encoders to Measure Positions
Functions Used
z
High-Speed Counting by Built-in Input
High-speed counter inputs can be enabled by connecting rotary encoders to the
built-in inputs. CP1L units come with multiple high-speed counter inputs, making it
possible to control multi-axis devices with a single CP1L.
High-speed counters can be used for matching target values, and for high-speed
processing, using range comparison interrupts. Interrupt tasks can be triggered
when the counter value reaches a specific value or value range.
Operation Overview
A sheet feeder will be regulated to feed constant lengths in a given direction, i.e. for
vacuum packing of food products.
While the pulse count is between 3500 and 3550, normal stop position (100.02) will
be ON. When the pulse count exceeds 3550, error stop position (100.03) will be
ON.
High-speed counter
measurement pulse
Ladder program turns the high-speed
software reset (A531.00) ON upon motor startup
Motor Speed
Motor: Start
Contact 0.02
Motor: Slow
Contact 100.01
3000
3500
3550
(A270)
(Pulse)
Motor: Run
Contact 100.00
Normal stop position
Contact 100.02
Error stop position
Contact 100.03
W07E-EN-02+CP1L+GettingStartedGuide.book Seite 132 Montag, 15. September 2008 11:15 11