SIGNALSDC SWITCHING / PLC INPUTS

2-Wire Sensor Leakage Current Calculator

A two-wire DC proximity sensor still draws a small current when OFF. That leakage may keep a PLC input above its guaranteed OFF threshold. Enter the sensor leakage and PLC input ratings to calculate the input voltage, possible bleeder resistance and resistor power.

This check models the PLC input as a resistance. The sensor's ON-state ratings must be checked separately.

01 · CALCULATOR

Check OFF voltage and bleeder resistance

Use maximum sensor leakage, the PLC input impedance and its guaranteed OFF threshold. Enter input impedance tolerance if specified, and the OFF-current limit if listed. The starting values are an example. Leave the bleeder blank until you select a resistor; enter its specified tolerance.

Example calculationRESISTIVE MODEL
Estimated voltage without bleeder—
Target OFF voltage (with margin)—
Max nominal bleeder (incl. tolerance)—
Selected bleeder · highest OFF voltage—
Selected bleeder · upper-bound power—
Selected bleeder · highest PLC OFF current—

    Assumptions: constant maximum OFF leakage current, a resistive PLC input and the entered component tolerances. The bleeder connects across the PLC input. For nonlinear PLC inputs, use the module manufacturer's test method.

    02 · CIRCUIT

    Where the bleeder resistor sits

    Two-wire DC sensor with PLC input and optional parallel bleeder resistor The supply positive terminal feeds a two-wire DC switch, which connects to the PLC input terminal. Two parallel branches return from that node to zero-volt common: the equivalent PLC input resistance Rin, and an optional external bleeder resistor Rb. +V DC 2-wire switch PLC IN PLC input Bleeder Rin Rb 0 V common DC two-wire switch with PLC input resistance and parallel bleeder Positive DC supply leads through a two-wire sensor to a PLC input node. Equivalent PLC input resistance Rin and optional bleeder Rb connect in parallel from that node to 0 V common. +V DC 2-wire switch PLC IN PLC input Bleeder Rin Rb 0 V common
    Rin is the PLC input equivalent resistance. The optional Rb connects in parallel, between the input terminal and 0 V common.

    This example uses a two-wire DC switching sensor feeding an input referenced to 0 V. Confirm the polarity and common connection on the actual PLC module. AC switches and 4–20 mA transmitters use different circuits.

    03 · EQUATIONS

    Calculation method

    Without a bleederVin,OFF,max ≈ Ileak × Rin,max

    mA × kΩ gives volts. At low impedance the PLC branch current can be larger: IPLC,OFF,max ≈ Ileak (without a bleeder, before any supply-voltage limit).

    With a parallel bleederReq = Rin × Rb / (Rin + Rb)

    The bleeder lowers the equivalent input resistance. Use Rin,max to find maximum OFF voltage, and Rin,min to find maximum PLC OFF current. Use the highest possible bleeder resistance for both checks.

    Bleeder limits: voltage and currentRb,V ≤ Rin,max × Vtarget / (Ileak × Rin,max − Vtarget)Rb,I ≤ Rin,min × Itarget / (Ileak − Itarget)

    Set Vtarget = (1 − margin) × VOFF and Itarget = (1 − margin) × IOFF,max. Apply only bounds whose unbleeded checks fail; omit the current bound if no OFF-current limit is given. Divide the lower applicable bound by (1 + bleeder tolerance) to obtain the nominal upper limit.

    Resistor power checkPb,actual ≤ VCC,max² / Rb,min

    Use the minimum possible resistor value, Rb,min = Rb,nom × (1 − t), in ohms (kΩ × 1000). The supply-voltage square gives an upper bound on DC dissipation. Omron uses a 4× factor in its rating examples. Check working voltage and temperature derating.

    Worst-case OFF voltage uses high PLC input impedance and high bleeder resistance. Worst-case PLC OFF current uses low input impedance and high bleeder resistance. Power uses low bleeder resistance. Enter tolerance data from the relevant datasheets; for nonlinear PLC inputs, use specified current–voltage curves.

    04 · ON-STATE CHECK

    Check ON operation before fitting a resistor

    AVAILABLE VOLTAGEVerify VCC,min − Vresidual,max meets the input's guaranteed ON voltage.
    MINIMUM LOAD CURRENTEnsure total current in the sensor's ON path exceeds its minimum operating load current.
    MAXIMUM SENSOR CURRENTInput current plus added bleeder current must remain within the sensor's rated output current.
    HEAT AND WIRINGRate the resistor for actual enclosure temperature; check supply tolerance, polarity and fuse protection.

    With the bleeder fitted, the extra ON-state current is approximately Vinput,ON/Rb. Include it when checking the sensor's load-current range and resistor heating.

    05 · TROUBLESHOOTING

    PLC input stays ON when the two-wire sensor is OFF

    Observed resultCheck next
    Input LED remains lit, no target presentRecord measured input voltage and sensor OFF leakage; compare with the module's guaranteed OFF limits.
    LED off but software bit ONCheck input filtering, software mapping, inversion, diagnostics and output program logic.
    Input does not reach ON with a targetCheck sensor residual voltage, minimum load current, module ON threshold and supply at load.
    New resistor becomes excessively hotDisconnect safely; recheck voltage, actual resistance, thermal conditions and worst-case dissipation.

    Measure the input voltage with a suitably rated meter, following the site's isolation procedure.

    06 · TECHNICAL REFERENCES

    Manuals and related pages

    Reference manuals: Omron CP1L CPU Unit Operation Manual, W471, section 3-4, “Precautions when Connecting a Two-wire DC Sensor”; Omron CJ2 CPU Units Hardware User’s Manual, W472, section 5-3, “Precautions when Connecting a Two-wire DC Sensor”. Use the ratings and wiring diagram for your exact module.

    See also: 2-wire vs 3-wire vs 4-wire sensor wiring · PNP vs NPN outputs · Inductive sensor mounting.