Explainer
Powering a 3-wire proximity switch from a digital output
Short answer
PoE power into a remote I/O module feeds the module's electronics, not its field terminals, so it cannot run a proximity switch. Power the switch from a digital output only after the output's continuous per-point rating exceeds the sensor's consumption plus the input's draw with margin; otherwise wire it to the field supply, brown to positive, black to the input, blue to common.

On this page
- PoE powers the module, not the sensor
- What a three-wire switch needs from its supply
- The decision rule for powering a sensor from an output
- Wiring that always works: the sensor on its own supply
- Checking a 13 mA sensor draw against a discrete output point
- What changes when an output is the sensor's power
- The decision for each case
- Questions asked
PoE power into a remote I/O module feeds the module's own electronics and never reaches the field terminals, so it cannot run a proximity switch. A three-wire switch takes its power either from the machine's field supply or, after one current check, from a digital output point: the output's continuous per-point rating must exceed the sensor's consumption plus the input's draw, with margin. This article gives that check as a number, the wiring that always works, and the decision for each case.
PoE powers the module, not the sensor #
A PoE-powered I/O module receives its operating power over the network cable, and that budget is spent inside the box: processor, network port and the electronics behind every I/O point. The field terminals are sensing or switching points, not supplies. An input channel configured for 5–30 VDC senses a voltage between its two terminals; it sources nothing to whatever is wired to it. So the question "can channels 0 or 1 power the sensor" has no path to a yes. Field power must come from something with a rated output: the machine's supply, or an output point whose datasheet clears the load. Ask it in that order and the rest of the decision is arithmetic.
What a three-wire switch needs from its supply #
A three-wire DC switch has brown (BN) to positive, blue (BU) to common and black (BK) as the switched signal. The supply carries two currents: the sensor's own consumption, which datasheets list as current consumption or off-state current — the draw with the output off — and the load current through the black wire while the switch conducts, which in this wiring is the input's draw. Consumption is small: published families of three-wire DC switches commonly list under 10 mA, and a broader M18 three-wire family lists no more than 13 mA measured without a load. Take the figure from your sensor's datasheet and keep the supply voltage inside its rated window. This is the standard pick when replacing a mechanical limit switch with a proximity sensor, and its power needs are the same wherever it is mounted.
The decision rule for powering a sensor from an output #
Power the switch from an output point only when all five lines pass:
- Voltage. Use a sourcing (high-side) point, so the ON state applies supply voltage to the brown lead; a sinking point pulls to common and cannot feed the switch. The ON voltage must sit inside the sensor's rated window and the OFF state must fall below it, so check the output's off-state leakage against the datasheet.
- Current. The per-point continuous rating must be at least double the sensor's consumption; the second half of the margin covers the input draw, the output's leakage and wiring drop. The doubling is a rule of thumb, not a datasheet limit.
- Group budget. Output modules also cap the total current per group or common. A sensor's draw barely dents it, but confirm the group total still has room.
- Logic. The output must be held on whenever the sensor must be live; every mode, fault or download that turns it off darkens the sensor.
- Reference. Output common, input common and the sensor's blue lead must all sit on the same 0 V.
If every line passes, the output can power the switch. If any line fails, use the supply wiring below. For scale: discrete 24 VDC transistor output points are typically rated from a few hundred milliamps upward — a rule of thumb — so a proximity switch clears the per-point test by orders of magnitude, and the group budget and the always-on requirement are what actually decide.
Wiring that always works: the sensor on its own supply #
With the branch de-energized, wire the documented remote-I/O case. Configure the input channel as a 5–30 VDC digital input. Run brown to the positive terminal of a 24 VDC supply, black to terminal 1, and both blue and terminal 2 to the supply common; that is the arrangement documented for an IFM IGS249 on groov RIO channel 0, and the same sourcing pattern described for wiring PNP proximity switches to optocoupler inputs. The sensor is then powered continuously and the black wire only reports state. Prove the loop before closing the panel: present a metal target and confirm the input turns on, remove it and confirm the input drops out.
Checking a 13 mA sensor draw against a discrete output point #
The inputs, each with its source:
- Sensor consumption, output off: no more than 13 mA — the higher of the two published figures above, from an M18 three-wire datasheet measured without a load; your sensor's own datasheet governs.
- Input draw: not published for the module in question, so it lives inside the margin.
- Margin: 2× the consumption, the rule of thumb from the decision rule above.
- Output rating: the per-point continuous load current, taken from your module's datasheet.
The rule in words: required per-point rating = 2 × sensor consumption.
The arithmetic: 13 mA × 2 = 26 mA.
The result: the output point needs a continuous rating of at least 26 mA to power this switch.
The decision: compare 26 mA with the datasheet rating. If the rating clears it, the point is sourcing, and the group budget has room: power the switch from the output, hold the point on in logic and add the fault check below. If the point is sinking or its rating does not clear the floor, run the supply wiring instead. A hungrier sensor raises the floor in proportion: whatever your datasheet prints, double it.
What changes when an output is the sensor's power #
Holding the output on becomes part of the machine logic: energize the point before the first read, and keep it on in every mode, including fault and setup, where part detection is often needed most. Fault-finding changes too, because a failed output point looks exactly like a failed sensor — add a check that commands the point on and reports an input that never changes state as an output or wiring fault before anyone swaps the switch. The point is also spent: a channel carrying sensor power cannot drive a lamp, a solenoid or a relay elsewhere. One safety rule out of all of this: a proximity switch that serves a safety function, such as an interlock or a stop, keeps a supply branch independent of logic-controlled outputs, sized per the machine's risk assessment and the standards that govern its safety-related controls, IEC 60204-1 and ISO 13849-1.
The decision for each case #
- Diagnostic or part-present sensor, sourcing output, per-point rating clears double the datasheet consumption, group budget has room, and it is acceptable that the sensor goes dark whenever the output is off: power it from the output, hold the point on and add the never-changes-state fault check.
- Sensor that must be live in every mode, or any check above fails: wire it to the field supply — brown to positive, black to the input, blue and the input's second terminal to common.
- PoE-powered module with no field supply: add a supply sized for the sensor bank. There is no third option; PoE never reaches the field terminals.
Questions asked
Can one supply power several proximity switches at once?
Yes. Count each sensor's consumption from its datasheet and add the load current of every black wire feeding an active input. Twelve sensors at 10 mA each add about 120 mA before input loads, which a small DIN-rail supply covers with room to spare. Fuse each branch so a pinched cable cannot drop the whole sensor bank at once.
Can a digital output power a two-wire proximity switch?
No. A two-wire switch is a series device: it leaks a small current when off and drops a few volts even while conducting, and many are built for AC or AC/DC line circuits. A DC transistor output expects a plain load and cannot hold the voltage window a two-wire switch needs, so give those switches their intended supply and save outputs for three-wire DC switches.
How do I tell a PNP three-wire switch from an NPN one?
The datasheet's output-type line states PNP (sourcing) or NPN (sinking). Both use brown for positive and blue for common; the black wire differs. A PNP switch applies positive voltage to black when the target is sensed, which is what the wiring in this article expects; an NPN switch pulls black down to common, and the input must sense a connection to common instead.
Why does the sensor work on the bench but not when powered from the output?
Usually the output is not being held on: the logic writes it once and something later turns it off, or the point is sinking instead of sourcing. Command the point on, measure the voltage from brown to blue at the sensor, and confirm it sits at the supply voltage. If the switch still ignores a metal target with correct power present, the switch itself is the suspect.
What if the module's output points are relay contacts instead of transistors?
A relay output can power the switch: a dry contact carries the supply branch to the brown lead, and contact ratings in amps dwarf a sensor's draw in milliamps. Watch the off state instead, because an open contact leaves the sensor fully dark, so the hold-on logic and the never-changes-state check matter more, and contact wear becomes a sensor-power failure mode.

