SensorCatalog
IEC 60947-5-2IEC 61131-23-wire (BN +Vcc, BU 0V, BK Out)

Salida Push-Pull (HTL/TTL) y Drenaje Abierto — Simulador

Active Totem-Pole vs Passive Pull-Up · 5 V TTL / 10–30 V HTL

Una etapa Push-Pull (HTL/TTL) conmuta activamente a alto y bajo (>100 kHz) para PLC sinking o sourcing, mientras Open-Drain sacrifica flanco de subida a cambio de Wired-OR seguro.

PUSH-PULL HIGH (23.2 V) — Crisp 0.17 µs Rise Edge (f_max ≈ 984 kHz)

Active high-side Q1 (~35 Ω) charges 2.2 nF cable capacitance ~134× faster than a 4700 Ω passive pull-up.

Flujo normalAlerta / LimitaciónFallo / SobrecorrienteVelocidad ∝ |I|
Push-Pull (HTL/TTL) / Open-Drain Stage+24.0 V0 V (GND)Q1High-Side(Source)Q2Low-Side(Sink)Pulse25.0 kHz23.20 V+Vcc4.7 kΩC_bus2.2 nFPeer PP (B)DRIVING 0V!Receiver Scope Waveformtr = 0.17 µsRequire tr ≤ T/6 for clean counts

Output Node Voltage (Vout)

23.20 V

10–90% Edge Time (tr / tf)

0.17 µs

Clean Square-Wave Limit

983.9 kHz

Active Driver Current

4.9 mA

High-Side Q1 (Source)ON (Sourcing)
Low-Side Q2 (Sink)OFF
Edge Integrity at fSHARP SQUARE WAVE
Multi-Sensor Wired-ORFORBIDDEN (Push-Pull)
V

5 V for TTL encoders, 24 V for industrial HTL push-pull sensors.

Ω

Push-Pull drives 1–10 kΩ loads cleanly; Open-Drain relies on Rpu to charge cable capacitance.

nF

Shielded encoder cable adds ~100–150 pF/m (e.g. 20 m ≈ 2.5 nF).

kHz

High-speed encoders run 10–200 kHz; proximity switches < 5 kHz.

Preajustes:

Fórmulas paso a paso en vivo

1. 10–90% RC rise/fall time

t_r ≈ 2.2 · R_drive · C_bus = 2.2 × 35 Ω × 2.2 nF

⇒ 0.17 µs

2. Half-period available at switching frequency

T / 2 = 500 / f (kHz) = 500 / 25.0 kHz

⇒ 20.00 µs

3. Maximum clean square-wave frequency (tr ≤ T/6)

f_max ≈ 1 / (6 · t_r) = 1000 / (6 × 0.17 µs)

⇒ 983.9 kHz

Lista de materiales dinámica (BOM)

Ref.ComponenteEspecificación calculadaEstado
OUT1Push-Pull (HTL/TTL) or Open-Drain OutputTotem-pole R_on ≈ 35 Ω (no parallel tie!)OK
C_BUSShielded Twisted Cable Capacitance2.2 nF (≈ 18 m @ 125 pF/m)OK
R_SEROptional Series Damping Resistor33–100 Ω near driver on fast Push-Pull runsOK

1. Descripción general y principio de funcionamiento

Push-Pull (totem-pole / HTL 24 V or TTL 5 V) and Open-Drain (open-collector) are the two core digital output stages used by rotary encoders, flow-pulse meters, and universal industrial proximity switches.

A Push-Pull stage stacks BOTH a high-side sourcing transistor (Q1) and a low-side sinking transistor (Q2), actively driving cable capacitance in both directions so it works with either Sinking OR Sourcing PLC inputs and achieves crisp square waves beyond 100 kHz. An Open-Drain stage omits Q1, relying on an external pull-up resistor to go HIGH — trading rise-edge speed for safe multi-sensor Wired-AND/OR sharing and effortless voltage-level translation.

Active Rise vs Passive RC Rise: Every shielded sensor cable adds ~100–150 pF per meter. A Push-Pull upper transistor (Ron ≈ 35 Ω) charges 2.2 nF in under 0.2 µs, whereas a 10 kΩ open-drain pull-up takes tr ≈ 2.2 × Rpu × Cbus ≈ 48 µs — completely rounding off a 50 kHz encoder pulse train!

Wired-OR Contention Rule: You can tie multiple Open-Drain outputs together onto one pull-up resistor without conflict. NEVER tie two Push-Pull outputs together: whenever one drives HIGH and the other drives LOW, shoot-through current shorts +Vcc straight to 0 V!

Salida Push-Pull (HTL/TTL) y Drenaje Abierto — Simulador — SensorCatalog
Push-Pull y Open-DrainPNG 1200×630

2. Step-by-step: Choosing and wiring Push-Pull vs Open-Drain sensor outputs

  1. 1Check pulse frequency and cable capacitance budget

    Multiply cable length by ~125 pF/m to estimate Cbus, then require rise time tr ≤ T / 6 (one-sixth of the pulse period). Above ~10 kHz over >10 m cable, pick Push-Pull (HTL/TTL) or differential RS-422.

  2. 2Match Push-Pull voltage (HTL 24 V vs TTL 5 V) to your PLC/counter

    Verify that a 24 V HTL push-pull encoder connects only to a 24 V PLC HSC card (never a 5 V MCU pin!), and never wire two Push-Pull outputs onto the same terminal.

  3. 3Size external Rpu carefully when using Open-Drain

    Select the lowest Rpu that stays well within the sensor sinking current rating (I_sink = Vcc / Rpu < 0.5 × Imax) and resistor wattage, ensuring fast enough rise time without overheating.

  4. 4Inspect edges on an oscilloscope at maximum RPM / flow rate

    Probe the receiver terminal at full machine speed. Confirm clean flat tops reaching >80% Vcc (no shark-fin RC rounding) and add a 47 Ω series damping resistor at the driver if fast edges ring.

3. Diagnóstico en campo y pruebas con multímetro

SíntomaCausa raízPrueba con multímetroSolución
Encoder counts accurately at slow speed, misses counts at high RPMOpen-drain Rpu too high for long cable capacitance (RC shark-fin rounding)Observe signal at PLC input with scope while ramping speedLower Rpu (e.g. 10 kΩ → 1.5 kΩ) or upgrade to Push-Pull / RS-422 output
Two sensors wired in parallel get hot and PLC reads ~12 V (Vcc/2)Push-Pull outputs wired together causing bus contention shoot-throughDisconnect one sensor; voltage immediately snaps cleanly to 0 V or 24 VRoute each Push-Pull output to its own PLC DI, or insert ORing diodes / switch to Open-Drain

4. Preguntas frecuentes (FAQ)

Does a Push-Pull sensor work with both Sinking (PNP-style) and Sourcing (NPN-style) PLC inputs?

Yes! Because Push-Pull has both an active high-side switch (sourcing like PNP) and an active low-side switch (sinking like NPN), it drives either PLC polarity cleanly — just verify logic inversion in software when swapping modes.

Why does my Open-Drain encoder lose pulses above 20 kHz?

Cable capacitance (~125 pF/m) plus a large pull-up resistor (e.g. 10 kΩ) forms an RC low-pass filter with a 10–90% rise time tr = 2.2 × R × C. Once tr exceeds roughly one-third of a half-period, the signal fails to cross the PLC high threshold.

Can I parallel two Push-Pull sensors for OR logic?

Never directly! If Sensor A outputs 24 V while Sensor B outputs 0 V, they short-circuit the power supply through each other. Use separate PLC inputs, ORing diodes (1N4148 + pull-down), or Open-Drain / PNP sensors.

What is the difference between HTL and TTL Push-Pull?

HTL (High Threshold Logic) operates at 10–30 V (typically 24 V) with high noise immunity for PLC panels. TTL operates at regulated 5 V DC for high-speed motion controllers and CNC drives.

When should I pick Open-Drain over Push-Pull?

Choose Open-Drain whenever you need multi-sensor Wired-AND/OR fault buses (e.g. alarm chains), I²C/1-Wire bidirectional buses, or simple level-shifting from a 24 V sensor down to a 3.3 V MCU.

Why do fast Push-Pull edges sometimes ring on long cables?

Fast sub-microsecond edges excite the LC transmission-line resonance of un-terminated cable. Adding a 33–100 Ω source termination resistor right at the sensor output damps reflections cleanly.

5. Calculadoras relacionadas, guías y otros circuitos

↑ ↓ elegir · Intro abrir · Esc cerrar