Sensors give the control circuit information about the process. As far as the control circuit is concerned, a sensor is a switch: its output is either closed or open, depending on whether the measured limit has been exceeded.
Output types
- Contact output. Float switches, pressure switches and thermostats, for example, switch with a mechanical contact. They are wired like any other contact.
- Transistor output. Electronic sensors, such as photoelectric sensors, are usually 24 V DC three-wire sensors: brown +, blue 0 V and black output. A PNP output supplies positive to the load, and an NPN output switches the load to negative.
Common sensors
- Level. A float switch, or electrodes with a level relay, tells whether the liquid is above or below the limit. Tank filling uses a high and a low limit so that the pump does not keep starting and stopping.
- Pressure switch. Switches at a set pressure. There is an adjustable difference between the cut-in and cut-out pressure, so the contact changes state only at the set limits.
- Photoelectric sensor. In a through-beam sensor the transmitter and receiver are separate, in a retro-reflective sensor the light comes back from a reflector, and in a diffuse sensor it comes back from the object itself. In Light-ON mode the output is on when the light reaches the receiver, and in Dark-ON mode when the beam is broken.
- Twilight switch. Switches when the light level falls below a set limit.
- Thermostat. Switches at a set temperature, for example in heating control.
- Door contact. A magnetic contact tells whether a door is closed or open.
Remember
It is good practice to design alarms and protection so that a broken wire shows up as a fault. For example, in dry-run protection the sensor contact is closed when there is water, and open when the water runs out or a wire breaks.
In your region
Showing notes for
Other IEC countries
NPN outputs are common in Asia, while PNP outputs are common in Europe and North America. Check that the sensor output matches the PLC input.
Source: Balluff: PNP and NPN outputs
United States, Canada
Here a PNP output is called sourcing and an NPN output sinking. A sourcing sensor must be connected to a sinking input. PNP outputs are common in North America and in Europe.
Source: AutomationDirect: sinking and sourcing sensors (FAQ 459) · Balluff: PNP and NPN outputs
United States, Canada
On ladder diagrams the letters come from what the switch senses: FS float switch, PS pressure switch, TAS temperature-actuated switch, PEC photoelectric device and PRS proximity switch. A proximity switch is drawn inside a diamond.
Source: NFPA 79 First Draft report, 2024 edition (13.2.3, Annex E Table E.1 device designations) · Square D (Schneider Electric): Wiring Diagram Book 0140CT9201, symbols and examples · Evolution Motion: JIC standard graphic symbols for electrical ladder diagrams
UK & Ireland, Europe, Australia & New Zealand
No regional notes on this page yet. If something is different in your country, please send feedback.
Frequently asked questions
What is the difference between PNP and NPN sensors?
A PNP output supplies positive to the load, and an NPN output switches the load to negative. Choose the one the input expects. Both are usually 24 V DC three-wire sensors.
How do you wire a PNP sensor?
Brown to +24 V, blue to 0 V, and black, the output, to the load or input. The other end of the load goes to 0 V.
What do the wire colours of a sensor mean?
On a three-wire sensor, brown (BN) is +, blue (BU) is 0 V and black (BK) is the output.
What do Light-ON and Dark-ON mean?
In Light-ON mode, the output of a photoelectric sensor is on when the light reaches the receiver. In Dark-ON mode, it is on when the beam is broken.
Sources
- Omron E3F2: Light-ON and Dark-ON operation
- Danfoss KP: pressure switch cut-in and cut-out pressure
- Balluff: PNP and NPN outputs
- AutomationDirect: sinking and sourcing sensors (FAQ 459)
- NFPA 79 First Draft report, 2024 edition (13.2.3, Annex E Table E.1 device designations)
- Square D (Schneider Electric): Wiring Diagram Book 0140CT9201, symbols and examples
- Evolution Motion: JIC standard graphic symbols for electrical ladder diagrams