Chapter 14
High-Speed Counter (HSC) instructions
342
Example: How to create a High-Speed Counter (HSC) program
This example shows you how to create a High-Speed Counter (HSC) program
that uses a quadrature encoder and includes a Programmable Limit Switch (PLS)
function.
Quadrature encoder used in the example
The High Speed Counter program example uses an HSC function block and a
quadrature counter with phased inputs A and B. The quadrature encoder
determines the direction of rotation and the position for rotating equipment, such
as a lathe. The Bidirectional Counter counts the rotation of the quadrature
encoder.
The following quadrature encoder is connected to inputs 0 and 1. The count
direction is determined by the phase angle between A and B:
•
If A leads B, the counter increments.
•
If B leads A, the counter decrements.
Rockwell Automation Publication 2080-RM001D-EN-E - February 2015