How-to
Adding a Quadrature Encoder Alongside Resolver Feedback
Short answer
Yes. On a PowerBrick LV the AltSin/AltCos pins double as Gate3 serial encoder clock and data lines, so with SerialEncEna left at 0 they can carry an auxiliary quadrature counter: wire A to clock and B to data, read the position through an encoder-table entry with Type=1 and ScaleFactor=1/256, and accept that this path has no encoder flags and no hardware capture.

On this page
- Can a resolver and a digital quadrature encoder share one Sub D-15 connector?
- Which encoder wires go to which controller lines?
- What settings create the auxiliary quadrature counter?
- How do you turn the raw counter into counts and machine travel?
- How do you reverse the count direction or zero the counter?
- How do you know the auxiliary counter is counting cleanly?
- When should you not use the shared lines for a second encoder?
- Questions asked
Yes, and the wiring is simple. On a PowerBrick LV controller the AltSin+, AltSin-, AltCos+ and AltCos- pins of a channel's Sub D-15 connector double as the Gate3 serial encoder clock and data lines, and with the serial encoder function on that device left disabled they carry a simple auxiliary quadrature counter, independent of the resolver on the main encoder interface. Below are the pin assignments, the encoder-table settings that read the counter, the arithmetic that turns it into travel, and the limits you accept on this path: no encoder flags and no hardware capture.
Can a resolver and a digital quadrature encoder share one Sub D-15 connector? #
Yes: on a PowerBrick LV the AltSin and AltCos pins of each machine-interface connector also serve as the Gate3 serial encoder clock and data lines, and with serial encoder operation left disabled they carry a simple auxiliary quadrature counter that runs independently of the resolver channel. The resolver keeps the channel's main encoder interface, so commutation and the servo loops never see the change; the second encoder rides on conductors the connector already has, and one gate setting decides which function they carry. The settings below are documented in the Power PMAC user manual's Gate3 and encoder conversion table sections.
If the main-channel feedback choice is still open on your machine, the trade-offs between a resolver and 1 Vpp or HTL encoder outputs are compared in resolver, 1 Vpp or HTL feedback for servo speed control.
Which encoder wires go to which controller lines? #
Wire the encoder's A channel to the clock pair and its B channel to the data pair: A+ to Clk+, A- to Clk-, B+ to Data+ and B- to Data-, following the clock and data pin numbers in the connector documentation rather than the AltSin and AltCos names.
| Encoder signal | Controller line |
|---|---|
| A+ | Clk+ |
| A- | Clk- |
| B+ | Data+ |
| B- | Data- |
The AltSin pair is the clock pair and the AltCos pair is the data pair; take the physical pin numbers for your Gate3 device from its connector documentation before crimping anything. The receiver reads the voltage difference within each pair, so swapping the two wires of one pair inverts that channel, and swapping the A and B pairs hands each encoder channel the wrong line. Both faults look like a direction or counting problem, and both are fixed at the cable, not in software.
Use twisted pairs for the two signal pairs and keep the cable away from motor and power leads: the documentation calls differential wiring highly recommended for this input, and in a drive cabinet the recommendation is worth following.
What settings create the auxiliary quadrature counter? #
Leave Gate3[i].SerialEncEna at its default value of 0, which reserves the clock and data lines for the auxiliary counter, then point a free encoder-table entry at the channel's counter with EncTable[x].Type=1 and EncTable[x].ScaleFactor=1/256.
Work through the configuration in this order:
- Note the three indices: i is the Gate3 device that serves the connector you wired, j is its channel, and x is an encoder-table entry that nothing else uses.
- Read Gate3[i].SerialEncEna and confirm it reads 0. This setting belongs to the whole Gate3 device, not to Chan[j]: if it is not 0, a serial encoder on that device owns the lines and the auxiliary counter is unavailable.
- Turn the encoder slowly by hand and watch Gate3[i].Chan[j].SerialEncDataA. Continue only when the value changes with movement.
- Configure the encoder table: set EncTable[x].Type=1, select Gate3[i].Chan[j].SerialEncDataA as the entry's source through the controller's encoder-table configuration method, and set EncTable[x].ScaleFactor=1/256. The source line names a data location; it is not an assignment you type into an encoder-table member.
- Move the encoder again and confirm the table entry tracks the raw counter at the scaled value before any machine logic reads it.
How do you turn the raw counter into counts and machine travel? #
Convert in two steps: the encoder table turns the fixed-point counter into counts with its scale factor, and your own counts-per-revolution and lead values then turn counts into travel, as the worked example below shows with real numbers for one hypothetical axis.
The counter reports eight bits of 1/256 fractional counts below the integer count; the scale factor in the settings exists to divide those away. This is a calculated example for the inputs below, not a measured result:
- Encoder: 2500 counts per revolution (an example input; use your encoder's documented count).
- Transmission: a 5 mm/rev ball screw between encoder and load.
- Raw reading from Gate3[i].Chan[j].SerialEncDataA: 1,280,384.
Arithmetic:
- Counts: 1,280,384 × (1/256) = 5,001.5 counts. The half count is real data from the fractional bits.
- Revolutions: 5,001.5 counts ÷ 2,500 counts/rev = 2.0006 rev.
- Travel: 2.0006 rev × 5 mm/rev = 10.003 mm.
- Resolution of the fractional bits: 2,500 counts/rev × 256 fractional steps = 640,000 steps per revolution, so 5 mm ÷ 640,000 = 0.0000078 mm, about 7.8 nm per fractional step.
Keep the encoder-table entry in counts and apply the counts-to-millimetres factor in the logic that consumes the entry, so a mechanical change such as a different screw or pulley ratio is one edit in one place.
How do you reverse the count direction or zero the counter? #
Set bit 11 of Gate3[i].Chan[j].SerialEncCmd to flip the count direction, and write the hexadecimal value 400 (decimal 1024, bit 10) to that same word to reset the counter; because each write replaces the whole command word, re-establish the direction bit after every reset.
Establish the sign convention with the machine: move the mechanism in its defined positive direction and check that the position takes the sign your logic expects. If it is reversed after the wiring is verified, change the state of bit 11; a word with only that bit set is the hexadecimal value 800 (decimal 2048), since 2^11 = 2048. Confirm the sign again in both directions.
Reset only with motion stopped and dependent logic prevented from reading the zero as travel: write the hexadecimal value 400, which is bit 10 (2^10 = 1024), and watch both the raw counter and the table entry return to the reset reference. Command words are written whole, so the reset also clears the direction bit if you had set it; recheck direction before returning the measurement to service.
Safety note: make these moves at slow, controlled speed with any logic that acts on this position disabled, so a sign flip or a zeroed counter cannot command an unexpected machine move.
How do you know the auxiliary counter is counting cleanly? #
Watch bit 31 of Gate3[i].Chan[j].SerialEncDataB, the encoder count-error flag, while you move the encoder slowly in both directions, and treat an asserted flag as a wiring or signal-quality fault to clear before any speed increase.
Run the checks in this order, cheapest first:
- Both directions at low speed: the position follows smoothly and the error bit stays clear.
- If the flag asserts, check pair continuity end to end, then pair polarity consistency, then the encoder's output type against the controller input specification, then the A and B signal quality on a scope at the controller end.
- Read Gate3[i].EncClockDiv, which sets the sample clock for these encoders. It is a device-level setting shared by every encoder on that Gate3 device, so change it only with those users in view. Know the transition rate you need: the example encoder at 1200 rpm turns 20 revolutions per second, and 20 rev/s × 2,500 counts/rev = 50,000 counts/s; confirm from the controller documentation that the configured divider samples faster than the transitions your machine produces.
- Repeat at operating speed with the flag and the position on screen together; a moving value alone does not prove clean counting.
When should you not use the shared lines for a second encoder? #
Keep the shared lines free when the machine needs a serial encoder on that Gate3 device, and route any function that needs encoder flags or a hardware position capture to an interface that has them, because the auxiliary quadrature path provides neither.
Decide by what the second encoder must do:
- It only reports position (a load-side roller, a conveyor length, a print-roller distance) and the resolver stays the loop feedback: use this path, the lightest way to add a second position reading because it uses conductors the connector already has.
- The machine also needs a serial encoder on that device: the lines go to the serial encoder; put the quadrature encoder on a channel with its own main interface.
- A function must latch a position on an event such as a probe hit or a home capture: not on this path, and capture-based routines have their own failure modes even on interfaces that support them, as why a pre-armed capture flag does not end a homing search shows.
If the second encoder mounts on the servo motor itself, the mechanical placement questions, output side or before the NDE shaft extension, are worked through in adding a second encoder to a servo motor.
The decision in one line: resolver on the main interface, quadrature encoder on the shared clock and data lines, encoder table at Type=1. Commit to that when the second encoder is read-only, and move it to its own interface the moment the machine must flag or capture on it.
Questions asked
Can each Gate3 channel run its own auxiliary quadrature counter?
The documented structure supports one per channel: the position, command and status elements are indexed through Chan[j], so every channel whose clock and data pins you wire is read through its own SerialEncDataA element, reversed through its own SerialEncCmd word and diagnosed through its own SerialEncDataB word.
Is single-ended wiring acceptable, or must the encoder be differential?
Single-ended is permitted: the controller documentation makes differential wiring a strong recommendation for this auxiliary input, not a requirement. If your encoder has only single-ended A and B outputs, make the connection exactly as the connector documentation specifies for single-ended signals, and expect less noise margin than a differential pair provides. In a cabinet with servo drives, pick a differential encoder when the choice is open.
What happens if the encoder-table entry you pick is already in use?
You repoint a conversion some part of the project already depends on, so scan the table before choosing x: an entry in use already has a source assigned and is converting a feedback signal somewhere. Pick a row whose source is unassigned, configure it, and confirm nothing else in the motion program references that entry before you rely on it. The indices i and j are simply the Gate3 device and channel you wired.
What changes if a serial encoder is later enabled on the same Gate3 device?
The shared conductors change jobs. Setting SerialEncEna to enable serial operation dedicates the clock and data lines to that serial encoder for the whole Gate3 device, so the auxiliary quadrature counter on those lines stops being available, and because the setting is device-wide it takes the auxiliary function away from every channel the device serves. Plan one function for the shared lines from the start.


