Horner APG XL4 OCS User Manual
Page 52

CH.11
MAN0964-01-EN
June 29, 2012
Page 52 of 122
Two modes are available for quadrature that select whether the accumulator counts up or down
when the phase of input 1 leads input 2. Check your encoder’s documentation to determine the
output form it uses or try both modes to determine if the encoder counts up when expected.
Using the above waveforms and a HSC input configuration of “Quadrature” - “1 leads 2, count
up,” the accumulator will count up when 1 is rising and 2 is low, 1 is high and 2 is rising, 1 is
falling and 2 is high, and when 1 is low and 2 is falling. This results in 4 counts per revolution. So
in order to determine the number of cycles, the accumulator would have to be divided by 4.
Marker reset operation is configured in the special operations and can be assigned to any of the 4
high speed iputs or can be assigned to be controlled by a “Q” bit in ladder.
Note, the quadrature mode enables the Disable, Latch, Preload, Clear and Marker special
functions. Please see section 11.2 for details.
11.2.6 Register Match
All counter modes support a register match function. When the accumulator value matches the
Match 1 or Match 2 value setup in %AQ registers a high speed output with either turn on, turn off
or toggle based on settings in Cscape.
90°
phase
shift
1
(leading)
2
(lagging)