In industrial automation, the reliable detection of objects is fundamental. Among the various sensing technologies available, DC 2-wire proximity sensors are a popular choice due to their simplicity and cost-effectiveness. Unlike their 3-wire or 4-wire counterparts, these sensors integrate the switching element directly into the power line, requiring only two wires for both power supply and signal output. This article provides a detailed, practical guide for electrical engineers and technicians on correctly wiring a DC 2-wire proximity sensor to a Programmable Logic Controller (PLC), covering principles, circuit design, and crucial considerations for stable operation.
The fundamental operating principle of a DC 2-wire proximity sensor is straightforward. It requires a DC power supply, typically within a range of 10-30V DC. The sensor itself acts as a variable impedance device. When no target is within its sensing range, the sensor presents a high impedance (leakage current is very low, often below 1.5mA). When a target enters the sensing field, the internal electronic switch closes, significantly lowering the impedance and allowing a substantial current to flow—this is the load current, which includes the current for the sensor's own operation and the current for the connected load, such as a PLC input. This current flow creates a voltage drop across the sensor. The key to successful interfacing is ensuring that the resulting voltage signal at the PLC input module is correctly interpreted as either an ON (logic 1) or OFF (logic 0) state.
The standard wiring configuration involves connecting the two wires of the sensor in series with the DC power supply and the PLC's digital input channel. Here is a step-by-step breakdown:

1. Power Supply: Connect the positive terminal (+) of your 24V DC power supply (a common industrial standard) to one wire of the proximity sensor. The sensor is typically polarity-sensitive, so it is crucial to identify the correct wire; usually, the brown wire is for positive (+), and the blue wire is for negative or common (-). Always consult the sensor's datasheet.
2. PLC Input: Connect the other wire from the sensor to the terminal of your PLC's digital input point (e.g., I0.0).
3. Completing the Circuit: Connect the common terminal of the PLC's digital input group (often labeled as 'M', 'COM', or '0V') to the negative terminal (-) of the same 24V DC power supply.

This forms a complete series circuit: Power Supply (+) -> Sensor -> PLC Input -> PLC Common (M) -> Power Supply (-). When the sensor activates, current flows through this loop, energizing the PLC input.
Critical Considerations for Reliable Operation:

1. Leakage Current: This is the most critical factor. A 2-wire sensor always has a small leakage current in its OFF state. The PLC input module has a minimum "ON-state" current and a maximum "OFF-state" current specification. You must verify that the sensor's OFF-state leakage current is less than the PLC's maximum OFF-state current. If the leakage current is too high, it may falsely trigger the PLC input, causing a "ghost signal." For example, if a sensor has a 1.8mA leakage current and the PLC input triggers at 1.5mA, problems will occur.
2. Minimum Operating Current (Load Current): The sensor itself requires a minimum current to function internally. The total current drawn when active (sensor + PLC input) must exceed this value. Most modern PLC inputs have a sufficient input impedance to draw the required current (e.g., 5-10mA), but this should be confirmed. An underloaded sensor may not switch cleanly.
3. Voltage Drop: When active, the sensor has an internal voltage drop (typically 3-5V). The voltage presented to the PLC input is the supply voltage minus this drop. For a 24V supply, the PLC will see approximately 19-21V, which is well within the "ON" voltage threshold for most 24V DC input modules.
4. Wiring and Protection: Use shielded cables in electrically noisy environments, connecting the shield to ground at one end only (usually at the PLC cabinet). Consider adding a surge suppression device or a small bypass resistor in parallel with the PLC input if leakage current is borderline. The resistor provides an alternative path for the leakage current, preventing false triggering. The value must be calculated carefully based on the leakage current and PLC input characteristics.
5. PLC Input Type: Ensure your PLC digital input module is configured for a sourcing or sinking input as required. The described wiring is typically for