Allen-Bradley MicroLogix 1200 Reference Manual page 90

Hide thumbs Also See for MicroLogix 1200:
Table of Contents

Advertisement

5-20
Using the High-Speed Counter
Table 5.10 HSC Mode 6 Examples
Input Terminals I1:0.0/0 (HSC0)
I1:0.0/4 (HSC1)
Function
Count A
(2)
Example 1
(3)
Example 2
Example3
Example 4
on (1)
Example 5
Example 6
(1) HSC1 only applies to the MicroLogix 1500.
(2) Count input A leads count input B.
(3) Count input B leads count input A.
Blank cells = don't care,
= rising edge,
Publication 1762-RM001C-EN-P
Using the Quadrature Encoder
The Quadrature Encoder is used for determining direction of rotation and
position for rotating, such as a lathe. The Bidirectional Counter counts the
rotation of the Quadrature Encoder.
The figure below shows a quadrature encoder connected to inputs 0, 1,
and 2. 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.
The counter can be reset using the Z input. The Z outputs from the
encoders typically provide one pulse per revolution.
Quadrature Encoder
Forward Rotation
A
B
2
1
Count
HSC Mode 6 - Quadrature Counter (phased inputs A and B)
(1)
I1:0.0/1 (HSC0)
I1:0.0/5 (HSC1)
Count B
off (0)
off (0)
off (0)
on (1)
= falling edge
NOTE
A
B
Z
(Reset input)
3
I1:0.0/2 (HSC0)
I1:0.0/3 (HSC0)
I1:0.0/6 (HSC1)
I1:0.0/7 (HSC1)
Not Used
Not Used
Inputs I1:0.0/0 through I1:0.0/7 are available for use as
inputs to other functions regardless of the HSC being used.
Input 0
Input 1
Input 2
Reverse Rotation
1
2
CE Bit Comments
on (1)
HSC Accumulator + 1 count
on (1)
HSC Accumulator - 1 count
Hold accumulator value
Hold accumulator value
Hold accumulator value
off (0) Hold accumulator value

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Micrologix 1500

Table of Contents