MFG-MECH15-07 · Lesson 5 · 14 clock hours · lab
Sensor Fault Diagnosis — Proximity, Photoelectric, and Analog
Objective. Students will diagnose discrete and analog sensor faults — including wiring, alignment, target material, and signal-conditioning errors — by measuring output signals and comparing them to sensor specification sheets.
⚠ Pending professional review
This lesson, its worked examples and its practice questions has not yet been verified by a licensed engineer or certified journey-level tradesperson or by a certification or approval body. It is a study draft and may contain errors. Do not use it as instructions for work on a job site or on live equipment. Always follow your instructor, your supervising professional, and current official references and regulations.
VoTechWorks program approval and accreditation are still in progress. Credentials are issued only by the certifying bodies named in each program, after their own exams.
Sensor Fault Diagnosis — Proximity, Photoelectric, and Analog
Why Sensor Diagnosis Matters
Sensors are the eyes and ears of a mechatronic system. When a sensor fails or is wired incorrectly, the PLC receives bad data and the machine behaves unpredictably — stopping production, creating scrap, or creating safety hazards. Being able to distinguish between a dead output, a low output, and a reversed-polarity output, then tracing the fault to its root cause, is one of the most valuable skills an electro-mechanical technician carries.
Safety First
Before touching any wiring, apply lockout/tagout (LOTO) per OSHA 29 CFR 1910.147 — de-energize, isolate, lock, tag, and verify zero energy. When you must measure live signals (authorized troubleshooting only), use a CAT III-rated multimeter appropriate for the voltage present, wear safety glasses, and follow NFPA 70E shock-prevention practices: verify the absence of hazardous voltage before removing or replacing any component. Never defeat machine guarding (OSHA 1910.212) to access a sensor during operation. For robotic cells, robot safety per ANSI/RIA R15.06 / ISO 10218 requires the robot to be in a safe state (teach mode with enabling device, or E-stopped) before you enter the safeguarded space.
Discrete Sensor Wiring — NPN vs. PNP
Three-wire DC proximity and photoelectric sensors come in two output types:
- NPN (current-sinking): The output wire sinks current — it connects the load to the negative (0 V) rail when active. The PLC input card must be sourcing type.
- PNP (current-sourcing): The output wire sources current — it connects the load to the positive (24 V) rail when active. The PLC input card must be sinking type.
Mixing types is one of the most common wiring faults. An NPN sensor wired to a PNP-sourcing input card will not drive the input correctly: the signal may float, read backward, or never trigger. Measure the output pin with a multimeter referenced to the 0 V rail; a working NPN sensor output should read near 0 V when active and near 24 V when inactive. A working PNP sensor output reads near 24 V when active and near 0 V when inactive.
Inductive Proximity Sensors — Alignment and Target Material
Inductive sensors detect metallic targets using an electromagnetic field. Faults include:
- Misalignment: Target passes outside the sensing face coverage area. Symptom: intermittent or no output. Fix: realign so the target passes within the rated sensing distance and squarely across the sensing face.
- Wrong target material: Sensing range is rated for mild steel. Aluminum, brass, and stainless steel reduce effective range by a factor stated on the spec sheet (correction factor). Symptom: sensor does not trigger despite correct alignment. Fix: check the spec sheet correction factor; move the sensor closer or select a sensor rated for that material.
- Damaged or contaminated face: Metal chips embedded in the face can cause a constant-on output. Always compare measured output to the specification.
Photoelectric Sensors — Lens Contamination
Photoelectric sensors (diffuse, retro-reflective, and through-beam) fail when the lens is dirty. A film of oil, dust, or coolant scatters or blocks the light beam.
- Symptom: sensor output stays off even when no target is present (through-beam, emitter side blocked) or stays on regardless of target (diffuse, lens reflects its own beam).
- Diagnosis: clean the lens with a lint-free cloth, re-check output. Check alignment and sensitivity adjustment if output is still incorrect.
- Always consult the spec sheet for the minimum signal margin; a sensor operating at the edge of its range will be unreliable in dusty or wet environments.
4-20 mA Analog Loops
Analog sensors (pressure transmitters, temperature transmitters, flow meters) use a 4-20 mA current loop to transmit a proportional signal over long cable runs with high noise immunity.
- 4 mA = 0% of span (range minimum)
- 20 mA = 100% of span (range maximum)
- A reading below 4 mA (commonly 0 mA or 3.5 mA) indicates a broken loop wire, unpowered transmitter, or failed transmitter — not simply a low process value. Most transmitters output exactly 3.5–3.8 mA or 0 mA as a fault/broken-wire diagnostic.
- A reading above 20 mA (often 21–22 mA) indicates a transmitter over-range or saturation fault.
Measuring the loop: Set your CAT III multimeter to DC milliamps and break the loop at the signal wire (or use a clamp-style milliamp meter) to read loop current. Alternatively, measure the voltage drop across a known loop resistor (often 250 Ω at the PLC input) and calculate: I = V / R.
Scaling 4-20 mA to Engineering Units
Use this formula to convert a live milliamp reading to the engineering-unit (EU) value displayed on the HMI or SCADA:
EU = [(mA − 4) / 16] × Span + Range Minimum
For example, on a 0–100 PSI transmitter reading 12 mA:
EU = [(12 − 4) / 16] × 100 + 0 = 50 PSI
If the PLC is displaying a value that does not match your hand-calculated value, the fault is in the signal-conditioning scaling parameters in the PLC or HMI, not in the transmitter wiring.
Diagnostic Tools and Strategy
| Fault type | Best first tool | Follow-up |
|---|---|---|
| No output — discrete sensor | Multimeter at output pin | PLC I/O monitor |
| Intermittent output | PLC I/O monitor (captures fast transitions) | Alignment / target check |
| 4-20 mA low or zero | Multimeter in mA mode (break loop) | Check transmitter power |
| NPN/PNP mismatch | Multimeter (check output voltage polarity) | Wiring diagram |
| Scaling error | Compare mA reading to EU calculation | PLC scaling parameters |
Always record your measured values and compare them to the sensor spec sheet before making any correction. Document everything on your station data sheet: measured value, specification value, identified fault, and corrective action taken.
Key terms8
NPN (sinking) outputA three-wire sensor output that connects the load to the negative (0 V) rail when active; requires a sourcing PLC input card.
PNP (sourcing) outputA three-wire sensor output that connects the load to the positive supply rail (e.g., 24 V DC) when active; requires a sinking PLC input card.
4-20 mA current loopAn analog signal standard where 4 mA represents the minimum of the measured range and 20 mA represents the maximum; a reading below 4 mA indicates a loop fault, not a low process value.
Sensing distance (Sn)The rated detection range of a proximity sensor measured under standard conditions with a mild-steel target; other materials require applying a correction factor from the spec sheet.
Broken-loop faultA condition in a 4-20 mA circuit where a broken wire or loss of transmitter power causes the loop current to fall to 0 mA or a diagnostic value (commonly 3.5–3.8 mA), indicating a wiring or power fault rather than a process low.
Signal conditioningElectronic processing that converts a raw sensor signal into a standardized output (e.g., converting a raw milliamp value to engineering units such as PSI or °F) in the PLC or HMI scaling parameters.
Correction factorA multiplier stated on a proximity sensor spec sheet that adjusts the rated sensing distance for non-standard target materials such as aluminum, brass, or stainless steel.
CAT III multimeterA multimeter rated for measurement Category III — distribution-level circuits and industrial equipment — required for safely measuring voltages in manufacturing environments per NFPA 70E guidelines.
Worked examples4
1. A 4-20 mA pressure transmitter is ranged 0–200 PSI. The PLC analog input module shows a raw milliamp reading of 12 mA. What pressure does this represent? Is the transmitter functioning correctly?
- Identify span: Range max − Range min = 200 − 0 = 200 PSI.
- Subtract the live zero: 12 mA − 4 mA = 8 mA above the live zero.
- Calculate the percentage of span: 8 mA ÷ 16 mA = 0.50 (50%).
- Multiply by span and add range minimum: 0.50 × 200 PSI + 0 PSI = 100 PSI.
- Check: 12 mA is between 4 mA and 20 mA, so the loop is intact and the transmitter is operating normally.
Answer: The transmitter is reading 100 PSI and is functioning correctly.
2. The PLC I/O monitor for a 4-20 mA flow transmitter (ranged 0–500 GPM) shows 0 mA. The process engineer says flow should be roughly 250 GPM. What does 0 mA indicate, and what should you check first?
- Note that 0 mA is below the live zero of 4 mA; this is not a valid process signal — it is a loop fault indication.
- If flow were actually 0 GPM, the transmitter would still output 4 mA (live zero), not 0 mA.
- Break the loop at the signal wire and measure with a milliamp-mode multimeter to confirm 0 mA at the transmitter terminals.
- Check that the transmitter is powered (typically 24 V DC loop supply); then inspect the signal wire for an open connection from the transmitter back to the PLC input card.
- A reading of 3.5–3.8 mA instead of 0 mA would indicate the transmitter is powered but has detected its own fault; 0 mA typically means no loop current at all — check the loop supply and wiring continuity.
Answer: 0 mA indicates a broken loop wire or loss of transmitter power — not a zero-flow condition. Check loop supply voltage and wiring continuity first.
3. A 4-20 mA temperature transmitter is ranged 32–212 °F. A technician measures 6 mA at the loop. What temperature is being reported? Use the scaling formula.
- Identify span: 212 °F − 32 °F = 180 °F.
- Subtract live zero: 6 mA − 4 mA = 2 mA.
- Calculate percentage of span: 2 mA ÷ 16 mA = 0.125 (12.5%).
- Apply to span and add range minimum: 0.125 × 180 °F + 32 °F = 22.5 + 32 = 54.5 °F.
- Confirm: 6 mA is above 4 mA, so the loop is intact; the reported temperature is 54.5 °F.
Answer: The transmitter is reporting 54.5 °F and the loop is intact.
4. An NPN inductive proximity sensor is wired to a PLC input card. With the target present, the technician measures 23.8 V DC at the sensor output pin referenced to 0 V. The PLC input does not turn ON. What is the likely fault, and what should be corrected?
- Recall that an NPN output sinks current: when active (target present), the output pin should pull close to 0 V (typically < 1 V), not 24 V.
- A reading of ~24 V on the output pin when active means the output is not sinking — either the sensor is wired to a PNP-sourcing input card that is forcing the line high, or the sensor output driver is open.
- Check the PLC input card specification: if it is a sourcing (PNP-type) card, it supplies 24 V to the input and expects the sensor to pull it low. An NPN sensor should work with a sourcing card — but verify the common wiring: the sensor's 0 V (black wire) must connect to the PLC card's common (COM), not left floating.
- If the sensor 0 V common is disconnected or the card type is mismatched, correct the wiring so the NPN sensor output connects in series between the card's input point and the card's 0 V common.
- After correcting wiring, re-test: with target present, measure near 0 V at the output pin; the PLC input should turn ON.
Answer: The NPN sensor's 0 V common wire is likely disconnected or the wiring is mismatched; correcting the common connection so the NPN output can properly sink current to the card's common terminal will fix the fault.
The math in this lesson1
Learners scale 4–20 mA readings to PSI and °F, including an offset 32–212 °F range.
F-LE.1
In class: Brief review of NPN/PNP discrete sensor wiring, 4-20 mA analog loop wiring, and the scaling formula for 4-20 mA signals; students complete a short calculation exercise converting a milliamp reading to an engineering-unit value (e.g., 12 mA on a 0–100 PSI transmitter). · Sensor fault station rotation (four stations, pairs rotate every 20 minutes): Station 1 — inductive proximity sensor misaligned; Station 2 — photoelectric sensor with dirty lens causing no output; Station 3 — 4-20 mA pressure transmitter with broken loop wire (output reads 0 mA/3.5 mA rather than 4 mA minimum); Station 4 — NPN sensor wired to a PNP-sourcing input card; students measure, document, and correct each. · Debrief: class compares findings; instructor projects correct measurements and explains how each fault signature differs (dead output vs. low output vs. reverse polarity) and which tool (multimeter, PLC monitor, or both) was most efficient for each fault type.
Materials: Sensor demonstration panels (inductive, capacitive, photoelectric, ultrasonic, 4-20 mA transmitter), CAT III multimeters, DC power supplies, PLC I/O module, sensor spec sheets, 4-20 mA scaling worksheet, PMMI Industrial Electricity 1 reference
Check: Station data sheets: student must record measured signal value, compare to specification, state the fault, and describe the correction for all four stations; 3 of 4 stations correct (75%) to pass.
Practice check8
Answer each question, then check it. Nothing is recorded; this is your own practice.
Record this lesson on my transcript. Sign in with your key and enrollment email to record lessons (enroll free if you have no key). This page stays open to read and practise.