1. 회로 개요 및 동작 원리
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!

2. Step-by-step: Choosing and wiring Push-Pull vs Open-Drain sensor outputs
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.
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.
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.
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. 현장 트러블슈팅 및 멀티미터 점검
| 증상 | 근본 원인 | 멀티미터 점검 | 조치 방법 |
|---|---|---|---|
| Encoder counts accurately at slow speed, misses counts at high RPM | Open-drain Rpu too high for long cable capacitance (RC shark-fin rounding) | Observe signal at PLC input with scope while ramping speed | Lower 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-through | Disconnect one sensor; voltage immediately snaps cleanly to 0 V or 24 V | Route each Push-Pull output to its own PLC DI, or insert ORing diodes / switch to Open-Drain |
4. 자주 묻는 엔지니어링 질문 (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. 관련 계산기, 비교 가이드 및 다른 센서 회로
- 펄스 출력 계산기
- 센서 전원 전압 강하 계산기
- NAMUR vs PNP vs NPN: 접점·디지털 센서 출력, 배선 및 CSV 대조표
- PNP (소싱) 3선식 센서 출력 회로 시뮬레이터
- NPN (싱킹 / 오픈컬렉터) 3선식 센서 출력 회로
- NAMUR 2선식 본질안전 방폭 센서 회로 (IEC 60947-5-6)
- 포토커플러 절연 & 릴레이 플라이백 다이오드 보호 회로
- 24 V 산업용 센서 전원 입력 보호 (PMOS 역접속 · TVS · PTC)
- 무전압 접점 하드웨어 디바운스(RC+74HC14) & 최소 웨팅 전류
- 2선식 4–20 mA 전류 루프 & ADC 보호 수신 회로
- 3선식 vs 4선식 능동 아날로그 트랜스미터 (0–10 V 접지 오차)
- OP-AMP + 트랜지스터 전압→4–20 mA 정전류 송신 회로
- NTC 서미스터 분압기 + OP-AMP 버퍼 & RC 필터 회로