Panel-side I/O wiring field guide
PLC wiring simulator: sinking inputs, relay outputs and meter-led fault finding
Direct answer
A PLC wiring simulator lets you land field conductors on a virtual panel, have each connection graded and diagnose planted faults with a simulated multimeter. Use it to learn how the 24 VDC supply, input commons, PNP and NPN sensors, interposing relays and flyback diodes form complete current paths before you meet the same circuits on isolated, supervised hardware.
This guide is written for electrical apprentices, maintenance technicians, PLC programmers who have never terminated a panel, and instructors who need repeatable I/O wiring exercises without building a bench for every learner. The intended result is specific: the learner can trace current from the 24 VDC supply through a field device, input channel and common, predict the reading at any terminal, and name the open conductor, short, swapped contact or reversed lead that explains a dead input or output.
Sinking versus sourcing inputs
The terms describe the direction of conventional current at the PLC terminal, not the sensor. A sinking input returns current to 0 V through its common, so it pairs with a PNP sensor that sources +24 V onto the signal wire. A sourcing input pushes current out of the terminal and needs an NPN device that switches the signal conductor to 0 V.
The input common
Input channels share a return terminal, often marked COM, M or 1M. Whether that common lands on 0 V or +24 V decides which sensor type the whole group accepts. A fixed-common group usually cannot mix PNP and NPN devices, so a mixed field needs separate groups, a universal module or interface relays, exactly as the module manual shows.
24 VDC supply and reference
Field devices, input circuits and relay coils normally share a protected 24 VDC supply with fused positive distribution and a directly wired 0 V bus. A voltage reading only means something against a stated reference, so fix the black probe on panel 0 V before interpreting the signal side. Bond 0 V to PE only where the documented design requires it.
Relay and transistor outputs
A transistor output switches DC only, responds quickly, has no contacts to wear and may pass a small off-state leakage current. A relay output is a volt-free contact that can switch AC or DC from a supply you wire to its common, but it is slower and has a finite switching life. The module datasheet sets the current, voltage and polarity limits.
Interposing relays and suppression
When a load exceeds the output rating or needs a different voltage, the PLC output drives only a relay coil and the relay contact switches the field load; on IEC-numbered relays 11 is the common, 14 the normally open and 12 the normally closed terminal. A DC coil needs suppression, typically a diode with its cathode on A1 and anode on A2.
Reading the meter as evidence
In DC voltage mode a healthy rail reads about +24 V with red on positive and black on 0 V, and a negative value means the leads or conductors are reversed. The simulator shows OL where a point has no path to the reference; a real high-impedance meter may show 0 V or a drifting ghost value instead. Continuity checks on real panels follow verified isolation.
- 01
Read the drawing first
List every terminal the lab expects: supply +24 V and 0 V, input channel, input common, output channel, relay coil and contact, load and protective earth.
Evidence: A written terminal list matches the placed components before any conductor is drawn.
Avoid: Dragging wires by visual proximity and letting the grader discover the design for you.
- 02
Build supply and reference
Wire the power supply, fused positive distribution, 0 V bus and PE bond before any field device.
Evidence: The meter reads +24 V between the distribution terminals and 0 V at every point that will feed a device.
Avoid: Landing sensor brown and blue on whichever terminal is nearest, or routing PE through a switching device.
- 03
Match sensor to input
Identify the sensor as PNP or NPN from its data, then confirm whether the target channel and its common form a sinking or sourcing input.
Evidence: The black signal conductor lands on a channel whose common suits the sensor, and brown and blue land only on supply terminals.
Avoid: Assuming any input accepts either polarity because the sensor LED lights when a target is present.
- 04
Interface the output
Drive a relay coil from the PLC output, feed the load through the relay common and normally open contact, and fit suppression across inductive loads in the correct orientation.
Evidence: The grader accepts coil, contact and diode connections, and the load receives supply only through the closed contact.
Avoid: Wiring a contactor coil straight to a transistor output without checking its rated current.
- 05
Predict, then probe
Before each measurement, write the reading you expect in the detecting and non-detecting states.
Evidence: Measured values agree with the prediction at the sensor, the input terminal and the load.
Avoid: Probing at random and treating any 24 V reading as proof that the circuit is right.
- 06
Diagnose a planted fault
In a fault lab, walk from the healthy source toward the dead device in voltage mode, then confirm the suspect segment with continuity.
Evidence: The submitted fault kind is backed by a last-good and first-bad reading pair.
Avoid: Submitting a guess from the symptom description or opening the solution hint before measuring.
| Observed symptom | Inspect | Interpretation | Next proving action |
|---|---|---|---|
| Sensor LED on, PLC input LED off | Sensor type label, input common connection, and signal voltage against 0 V at the sensor output and at the input terminal | Signal present at the sensor but absent at the terminal points to an open conductor; present at both suggests a sensor polarity that the input common cannot accept. | Confirm the conductor with continuity, then compare the common wiring with the module diagram. |
| Input ON with no target or command | Relay contact terminal numbers, sensor light-on or dark-on setting, and off-state leakage from two-wire devices or transistor outputs | An unintended path to +24 V, such as a conductor on NC terminal 12 instead of NO terminal 14, holds the channel on while the coil is at rest. | Trace continuity from the input back toward the supply rail with the relay coil de-energized. |
| Whole PLC dark while the power-supply LED is lit | Supply output terminals, control fuse, distribution terminals and the PLC supply pins | Voltage at the supply but not at the PLC places an open circuit between the last good and first missing reading; the 0 V return can break just as easily as the positive. | Walk the positive leg terminal by terminal, then repeat on the 0 V leg. |
| Output LED on, load does not operate | Output type and rating, voltage at the output terminal, relay coil A1–A2, contact 11–14, load terminals and load return | The PLC may have switched correctly while the relay coil, its contact, the load feed or the return is open; a relay output also needs supply on its own common. | Measure across each device in the load path to find where supply voltage stops appearing. |
| Supply current-limits or a rail collapses | Diode orientation across coils, adjacent terminal-block slots, stray strands and load conductors that reach 0 V | A reversed diode across an energized DC coil or a bridge between +24 V and 0 V is a short; the supply limits current and downstream devices drop out together. | Separate branches and look for continuity between points the drawing places on different rails. |
| Negative reading across a field device | Brown and blue conductor landings at the device and terminal block, and probe placement | With red on the intended positive and black on 0 V, a negative value means the supply leads are crossed at that device; a reversed DC sensor stays dark and may be damaged. | Correct the landing against the datasheet and re-measure supply before testing the signal. |
Product evidence / 05
What the browser practice can actually demonstrate
The wiring lab places power supplies, PLC I/O, sensors, relays, contactors and protection devices on a DIN-rail panel and grades each drawn connection against the expected circuit. Fault labs hand over a pre-wired panel that the learner probes in DC voltage and continuity modes before submitting a diagnosis, with progressive hints held back until needed.
Is a PNP sensor wired to a sinking or a sourcing PLC input?
A PNP sensor sources +24 V onto its signal wire, so it needs a sinking input whose common returns to 0 V. The two words describe opposite ends of one current path: one component sources and the other sinks. Always confirm with the module diagram, because some vendors label input groups by the sensor type they accept.
Why does my sensor light up but the PLC input stays off?
The sensor LED only shows that the device is powered and detecting; it says nothing about the conductor or channel beyond it. Typical causes are a broken or misplaced signal wire, a sensor type that does not suit the input common, or a missing common connection. Measure the signal against 0 V at the sensor and again at the input terminal.
Can I connect a contactor coil directly to a PLC output?
Only when the output type, voltage and current ratings cover the coil, including pull-in current, and the drawing permits it. Many designs use an interposing relay so the PLC drives a small coil and the relay contact switches the contactor. The lab teaches that pattern with a flyback diode; the module datasheet decides the real limit.
What is the difference between relay and transistor PLC outputs?
Transistor outputs switch DC quickly without contact wear, but they are polarity-specific and may leak a small current when off. Relay outputs are isolated contacts that switch AC or DC loads from a separately wired common, more slowly and with limited switching life. Choose from load type, switching frequency and the rated current of the module.
Do I need a flyback diode on a 24 VDC relay coil?
A DC coil produces a voltage spike when it is switched off, so it needs suppression unless the relay or output module already includes it. A diode is fitted reverse-biased across the coil, cathode to the positive side and anode to 0 V. Fitted backwards it shorts the supply whenever the coil is energized. Check the relay and output data first.
How do I find an open wire with a multimeter?
Qualified persons working under an approved procedure measure from the known-good supply toward the dead device with the black probe on 0 V; the break lies between the last correct reading and the first missing one. The conductor is then isolated, proven dead and confirmed with continuity. In the simulator both modes are available without any energy present.
Is online wiring practice accepted as electrical training?
It supports theory, drawing reading and diagnostic reasoning, but it is not a license, qualification or authorization to work on live equipment. Employers and regulators expect supervised practical work, safe isolation procedures and equipment-specific instruction. Keep simulator results as evidence of preparation rather than proof of competence on energized panels.
Can I mix NPN and PNP sensors on one PLC input card?
Only if the module has separately configurable common groups or universal inputs designed for it. On a fixed-common group the common suits one polarity, so a device of the other type cannot switch the channel. The lab models separate sourcing and sinking channels to make the difference visible; the real module manual decides what is allowed.





