Application Example - Omron CP1E CPU UNIT SOFTWARE User Manual

Cp1e cpu unit software
Table of Contents

Advertisement

11-5 Application Example

Using a Rotary Encoder to Measure Positions
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 CP1E
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
Operation Overview
A sheet feeder is controlled to feed constant lengths in a given direction, e.g., for vacuum packing of
food products.
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)
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.
CP1E CPU Unit Software User's Manual(W480)
Motor speed
3550
3500
3000
(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.
.
11 High-speed Counters
11
11-27

Advertisement

Table of Contents
loading

Table of Contents