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)
- 無電圧接点ハードウェアチャタリング防止&最小濡れ電流回路
- 2線式 4–20 mA 電流ループ&ADC保護受信回路シミュレータ
- 3線式 vs 4線式 アクティブアナログ伝送器(0–10 V接地電位差)
- オペアンプ+トランジスタ 電圧→4–20 mA 定電流送信回路
- NTCサーミスタ分圧+オペアンプバッファ&RCフィルタ回路