Email us

Este artículo está en inglés. Ver el sitio en español

Cet article est en anglais. Voir le site en français

Dieser Artikel ist auf Englisch. Website auf Deutsch ansehen

Este artigo está em inglês. Ver o site em português

本文为英文。 查看中文网站

Open collector encoder to PLC: inputs and pull-up resistors

Land channel A on input 0 and channel B on input 1 of a DC-input controller, and fit a 2.2 kΩ, 1/2 W pull-up from each signal to +24 V at the panel terminal strip. An open-collector output only pulls low, so without the pull-ups the inputs float and count nothing. Tie the encoder COM to the controller's 0 V and set the input filter to its fastest time.

NEMA4 Enclosure engineering team · Published November 25, 2026 · 6 min read

Fit a 2.2 kΩ, 1/2 W pull-up resistor from each signal to +24 V at the panel terminal strip, and tie the encoder's COM to the controller's 0 V. On a MicroLogix 1400 those two inputs are I:0/0 and I:0/1, the first two of its four high-speed inputs. An open-collector output is a bare NPN transistor: it pulls the line low when it conducts and leaves the wire floating when it turns off. Without the pull-up your input never sees a clean high, and the counter counts nothing. Two more choices decide whether the pulses arrive: the input group common's polarity and the filter time.

Read both nameplates first

Start with the controller's catalog number. The input-type field says what the embedded inputs accept, and a 120 V AC-input model has no high-speed counter and nowhere to land a DC encoder, so this job needs a DC-input unit. On those, the first high-speed counter lives on the first four embedded inputs. The quadrature assignment is fixed: input 0 takes A, input 1 takes B, input 2 takes the counter reset, input 3 takes the hold. Pull the input-assignment table from the MicroLogix 1400 user manual before you commit terminals. Moving encoder wires later means re-dressing a shielded cable you already tied down.

Then decode the encoder from its own datasheet. One common numbering reads 1000 for 1000 pulses per revolution, Q for quadrature and OC for open collector. That OC field is the wiring instruction: it means the pull-up resistors are yours to supply, because the same encoder family also ships with push-pull and pull-up output stages that land differently. The behaviour scales down to logic chips too — an open-collector output's voltage drop and its pull-up fix shows the pattern on a display driver — so treat the code as fact, not decoration.

What you need on the bench

  • the encoder datasheet pinout for your exact connector code
  • the controller's embedded input assignment table and its input specification, with the on-state voltage and current
  • two pull-up resistors, value and rating from the worked example below
  • shielded twisted-pair encoder cable sized to the run
  • a multimeter for the bench identification
  • two spare terminals on the strip beside the PLC, and labels for them

Land the wires in this order

  1. De-energize the panel, lock it out, and check for absence of voltage at the terminal strip before you touch anything.
  2. Pull the pinout for your exact connector code. Terminal letters change with the termination code in the part number, so a letter list from a generic drawing lands wires on the wrong pins; the bench check below confirms each one.
  3. Land channel A on input 0 and channel B on input 1. If the machine homes to a datum, land the index on input 2 and pick a quadrature mode with external reset; if nothing homes, cap the index wire and fold it back into the hood.
  4. Open the embedded input filter settings and set the group carrying A and B to its fastest time. The default times are counted in milliseconds and swallow encoder pulses whole — this one setting causes more missed-count calls than any wiring fault.
  5. Power the encoder from the panel: +V to the +24 V rail, COM to the controller's 0 V. Those two must be one node, the same lesson as tying signal commons instead of chassis ground on a small relay. Budget the supply at the encoder's draw plus about 22 mA for the two pull-ups, and stay inside its rated output.
  6. Fit the pull-ups on the terminal strip beside the PLC, one from each landed signal to the positive rail. The receiving end is the right place: the resistor has to charge the whole cable capacitance from there. A resistor inside the encoder head leaves the line lazy over a long run.
  7. Wire the input group common. On a free group, tie the common to the positive rail so the input accepts a sinking device: the transistor pulls the terminal low, current flows through the input, the input turns on. If the group already serves PNP sensors, the common sits at 0 V and the logic inverts — the checks below tell you which polarity you have.
  8. Bond the encoder case and the cable shield drain to the panel ground bar, with the shield bonded at the panel end only — the one-end rule from VFD control cable shield grounding applies to encoder cable the same way. The grounding and bonding guide covers how that bar ties back to the supply.
  9. Route the encoder cable in its own duct, clear of drive motor leads and contactor wiring, and cross at right angles where you must cross. VFD speed signal wiring inside a stainless enclosure shows the same routing discipline for an analog line.

Sizing the 2.2 kΩ pull-up on a 24 V encoder line

The numbers come from four inputs:

Input Value Where it comes from
Supply rail 24 V DC the encoder's rated supply, the rail the pull-ups land on
Pull-up resistance 2.2 kΩ the encoder's installation and wiring guide
Resistor rating 1/2 W the guide's part; 1 W for hot enclosures
Saturation drop about 0.4 V a typical saturated NPN transistor

The rule in words: when the transistor conducts, the resistor sees the rail minus the saturation drop. The current is that voltage over the resistance, and the resistor dissipates that current squared times its own resistance. Written out:

I = (24 V − 0.4 V) / 2200 Ω = 10.7 mA per channel, and 10.9 mA with the drop taken as zero.

P = I² × R = (0.0109 A)² × 2200 Ω = 0.26 W.

So each channel sinks about 10.7 mA through the encoder's output transistor and burns 0.26 W in its resistor — 52% of a 1/2 W part. That is comfortable in a panel held near room temperature, and it is the argument for 1 W parts inside a sealed enclosure that runs hot. Before you land the wires, read the encoder's rated output sink current from its datasheet. The rating must cover 10.7 mA plus the controller's input current, because both flow through that one transistor.

Long cables round the edges as well: rise time is about 2.2 × R × C, with C the cable's rated capacitance per metre times the metres. Work that sum before you extend a 50 m run, and keep the rise inside the pulse width at top speed.

Checks that prove it works

Bench the encoder before the controller is in the loop. Power it alone, fit the pull-ups, meter each signal to COM and turn the shaft slowly by hand. Hundreds of transitions per revolution mark channel A or B; exactly one pulse per revolution marks the index; continuity to the housing marks the case ground, which never lands on an input.

Then power the panel. The LEDs on inputs 0 and 1 should flicker as the shaft turns, and the high-speed counter accumulator should step with rotation and reverse when you reverse it. The count per revolution should match the quadrature mode set in the controller's configuration. Hand-turning proves the wiring; only a run at machine speed proves the filter and the cable.

What you see First reading to take Most likely cause
LEDs on inputs 0 and 1 stay dark signal voltage to 0 V while hand-turning pull-up missing or on the wrong rail; group common on the wrong rail
Both LEDs lit solid encoder supply; shaft coupling polarity inverted, or the shaft is not turning
Counts up in both directions LED 1 during rotation B open, or B landed on a non-phased input; counter not in a quadrature mode
Right by hand, short at machine speed filter setting; channel A on a scope at speed filter too slow, or cable rise time too long

Mistakes that cost counts

  • Pull-ups at the encoder end. They charge the cable from wherever they sit; the PLC end is the only end that works.
  • One group, two polarities. The group common is shared, so PNP proximity switches and the NPN encoder cannot live on it together. Move the proxes.
  • Two 0 V references. Encoder COM and controller 0 V must be one node; separate supplies float against each other, and control signal ground loop checks for a cabinet are how you find the result afterwards.
  • A sensor supply already at its limit. The encoder plus the pull-ups drags the rail down, and the symptom is inputs lit solid.
  • No record of the finished run. Put A, B and the index on your loop diagrams for signals that stay inside the cabinet, so the next person lands a replacement the same way.

Catalog dimensions to compare

Compare these catalog dimensions with your component layout. Open each enclosure for its rating, material and usable space, then check those specifications against your application.

EnclosureMaterialOutside H x W x D / displayRating
6 × 6 × 4 in304 stainless6 x 6 x 4 inRated NEMA 4X / IP66 by the manufacturer; not UL listed
8 × 6 × 4 in304 stainless8 x 6 x 4 inRated NEMA 4X / IP66 by the manufacturer; not UL listed
10 × 8 × 4 in304 stainless10 x 8 x 4 inRated NEMA 4X / IP66 by the manufacturer; not UL listed

Questions

How fast can an open-collector encoder run into these inputs?

Channel frequency is rpm times pulses per revolution divided by 60, and each level lasts half a cycle. For example, 1000 pulses per revolution at 600 rpm gives 10 kHz per channel and 50 µs per level. That sits far below the millisecond range of the default input filters, which is why the group carrying A and B goes to its fastest filter time. When the filter time plus the cable's 2.2 × R × C rise time approaches the level width, slow the shaft or change the output stage.

Can the open-collector encoder share an input group with PNP proximity switches?

No. A DC input group takes one polarity from its single common terminal, so it serves either sinking devices or sourcing ones. The four high-speed inputs share their group with neighbouring inputs, so either the proxes move to another group or the encoder does. Rewiring a common costs an afternoon; a counter that counts other machines' sensors costs a startup.

Does moving the group common to 0 V reverse the count?

No. Every input in the group inverts, but both encoder channels invert together and the quadrature order survives, so count and direction stay correct. Two things move: the index reset edge shifts to the complement of the index window, so re-home after the change, and the pull-up must now hold each terminal above the input's ON threshold. Work that divider from the input's rated on-state voltage and current before you accept this branch.

Where does an encoder cable shield get bonded?

At the panel end only, on the panel ground bar, together with the encoder's case ground. The encoder end stays open so drive common-mode current cannot use the signal cable as a return path. A shield clamped at both ends often works on the bench, then chatters the counts the first week a drive runs nearby.

Checklist before you order

Specify it once, built to your drawing

  • Environment and NEMA type: Type 1, Type 3R, Type 4, Type 4X, Type 6P, Type 12, Type 13 (manufacturer ratings, not UL listed)
  • Material: 304 stainless steel, 316L stainless steel, Powder-coated carbon steel, Aluminum, Polycarbonate, Fiberglass (FRP)
  • Size: inside or outside height, width and depth, with the depth your deepest component needs
  • Cutouts, glands and windows, dimensioned from one datum on each face
  • Mounting and access: wall, pole or stand, hinge side, mounting panel
  • Quantity: from one piece

Delivered in 10 business days, anywhere in the world. Counted from your order; for custom work, from your approval of the drawing.

Start a junction box from 6 × 6 × 4 inRequest a custom quote

Stainless junction boxes: sizes for this job

Keep reading

Related engineering answers

All articles

Buying guides

The guides behind this answer

All guides