5 quadrature, Figures 11.5 – quadrature – Horner APG XL7 OCS User Manual
Page 47
![background image](/manuals/414261/47/background.png)
XL7 User Manual
11.3.5 Quadrature
Quadrature mode uses two HSC inputs, any of the four HSC inputs can be assigned for this purpose.
Quadrature mode works much like the totalizer except the accumulator will automatically increment or
decrement based on the rotation phase of the two inputs. See the following example for more details.
Quadrature inputs are typically used for reporting the value of an encoder.
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.
Figures 11.5 – Quadrature
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.3.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.
11.4 HSC Functions Register Map
The register assignments for the high speed I/O can be moved via a setting in Cscape. The values shown
are the DEFAULT values and may not match the same starting point as the values shown below.
90°
phase
1
(leading)
2
(lagging)
Page 47 of 110