PLC Wiring Diagrams: Digital, Analog & Relay I/O
Understand the recurring patterns behind PLC digital inputs, PNP/NPN sensors, relay and transistor outputs, 4–20 mA loops, shields, commons and field testing.
A PLC wiring diagram connects a specific field device, voltage source, common and PLC terminal into one complete current path. The recurring patterns are dry-contact digital inputs, PNP/NPN three-wire sensors, relay or transistor outputs, and two- or four-wire analog loops—but terminal numbers and electrical behavior must come from the exact module manual.
The diagrams below are educational patterns. They are not construction drawings and do not replace electrical design, protective-device selection, hazardous-location requirements, safety validation or the manufacturer’s current instructions.
Download the PLC wiring verification checklist (CSV)
Before reading any PLC wiring diagram
Identify these six facts:
| Question | Why it controls the diagram |
|---|---|
| Exact PLC/module catalog number? | terminals and electrical ratings vary |
| AC or DC, and what voltage? | prevents incompatible field power |
| Input or output? | defines which side senses and which side switches |
| Sourcing or sinking? | determines DC current direction and common |
| Relay, transistor, triac, current or voltage? | determines switching/load behavior |
| Is it safety-related? | ordinary I/O patterns cannot be used as a safety design |
Never wire from a family name such as “S7-1200” or “CompactLogix” alone. Integrated I/O, expansion modules and catalog variants can use different terminals and commons.
Digital-input wiring
Dry-contact input
A pushbutton, limit switch or relay contact does not usually create its own voltage. The circuit supplies voltage through the contact to the PLC input. When the contact closes, current flows through the input circuit and its common return.
Document:
- contact normal state with the machine de-energized;
- expected PLC value in healthy and actuated conditions;
- wetting/current requirements;
- whether the field contact and PLC share a supply;
- cable and terminal references;
- input filter or debounce;
- how an open wire is detected, if required.
A normally closed stop contact can produce a PLC value of 1 when healthy. The ladder instruction used to examine that bit is a separate software decision.
PNP sensor to sinking input
A PNP or sourcing sensor switches positive voltage onto its output. It is commonly paired with a sinking PLC input whose common returns to 0 V.
Typical three-wire colors are brown for positive, blue for 0 V and black for signal, but color is not a design guarantee. Verify the sensor data sheet. Some devices add white teach or complementary outputs.
NPN sensor to sourcing input
An NPN or sinking sensor switches its output toward 0 V. It needs a sourcing input arrangement that provides current toward the field device. PNP is common in many modern industrial systems, but regional and legacy practices differ.
Mixing an NPN sensor with a PNP-only input is not fixed by changing program logic; the electrical path is wrong.
Digital-output wiring
Relay output
A PLC relay output is a contact controlled by the PLC. The output common receives the load supply; the switched terminal feeds the load. Relay outputs can often switch AC or DC within their ratings and provide contact isolation, but they have finite mechanical/electrical life.
Check:
- contact voltage and category;
- continuous current;
- motor, solenoid or contactor inrush;
- switching frequency;
- fuse or circuit breaker;
- interposing relay requirement;
- arc/surge suppression;
- common grouping.
Transistor output
A transistor output switches DC electronically. It is fast and has no mechanical contact wear, but it is polarity-specific and may have leakage current or voltage drop. Confirm whether it sources or sinks.
Inductive loads such as solenoids and DC relay coils need an approved suppression strategy. A diode is common for DC but can slow release; other suppressors may be selected when response time matters.
Triac output
A triac output switches AC loads. Leakage current and minimum load can make a small load appear partially energized. Do not assume its off state behaves like an open relay contact.
Two-wire 4–20 mA input loop
A loop-powered two-wire transmitter uses the same two conductors for power and signal. A common series path is:
+24 VDC → transmitter + → transmitter − → PLC AI+ → PLC AI−/0 V
The transmitter regulates current between approximately 4 and 20 mA according to the measured variable. The PLC analog channel measures that current.
Verify:
- active/passive input and who supplies loop power;
- input configured for current rather than voltage;
- polarity;
- transmitter minimum operating voltage;
- total loop resistance/burden;
- intrinsic-safety barrier or isolator where applicable;
- shield and grounding practice;
- configured range and fault current handling.
Fluke’s 4–20 mA loop explanation identifies the supply, transmitter, receiver, wiring and load as parts of the same series circuit.
Four-wire transmitter and powered analog devices
A four-wire transmitter has separate power and signal terminals. Its output may source current actively, so pairing it with another active source can create a conflict. Draw power and signal as separate circuits and confirm whether the PLC channel expects an active or passive signal.
Likewise, analog outputs can be active current sources, passive outputs that need loop power, or voltage outputs. “AO” alone is not enough information.
RTD and thermocouple wiring
RTD and thermocouple modules are specialty inputs.
- A 2-wire RTD includes both lead resistances in the measurement.
- A 3-wire RTD compensates lead resistance when the lead paths are sufficiently matched and the input uses the intended method.
- A 4-wire RTD separates excitation and sensing for the best lead-resistance rejection.
- A thermocouple needs the correct type, polarity, extension wire and cold-junction compensation.
Do not connect an RTD or thermocouple directly to an ordinary voltage/current input unless the approved transmitter or signal conditioner converts it first.
Commons, isolation and grounding
“Common” can mean a channel return, group common, signal reference or supply negative. It is not automatically protective earth.
Before bonding commons:
- read the module isolation diagram;
- identify channel-to-channel and channel-to-bus isolation;
- map all supply returns;
- check the plant grounding standard;
- identify barriers, isolators and shield bonds;
- verify that no unintended parallel path is created.
For analog signals, route cable and shield according to the project EMC design. A shield pigtail, both-end bond or one-end bond may be wrong depending on frequency, equipotential bonding and product instructions; avoid universal rules.
Worked example: motor-starter I/O
Required signals:
| Tag | Field device | PLC channel | Electrical intent |
|---|---|---|---|
M101_StartPB |
NO pushbutton | DI | +24 V through contact to input |
M101_StopHealthy |
NC stop chain status | DI | healthy circuit produces input on |
M101_RunFb |
starter auxiliary NO | DI | proves contactor picked up |
M101_RunCmd |
interposing relay or contactor coil | DO | output switches approved coil circuit |
M101_OverloadHealthy |
overload healthy contact | DI | opens on overload |
The program uses a command and feedback timeout. If RunCmd becomes true but RunFb does not arrive within the specified time, the PLC removes the command and raises an actionable start-failure alarm.
The wiring design still needs the starter coil voltage, output inrush rating, suppression, disconnect/protection, terminal numbers and stop architecture. Software cannot repair an undersized output contact.
Point-to-point and functional verification
With the system in an approved safe test state:
- verify drawing, I/O-list and module revision;
- identify the point physically;
- inspect terminal and wire number;
- apply or simulate the approved field condition;
- observe field voltage/current;
- observe raw PLC channel and mapped tag;
- verify HMI indication and alarm where applicable;
- test output action under controlled conditions;
- restore jumpers, simulators, forces and bypasses;
- record as-found, as-left and objective evidence.
OSHA’s control-of-hazardous-energy rule governs servicing and energy-control obligations in its jurisdiction. A generic wiring checklist is not an alternative to the site procedure.
Troubleshooting map
| Symptom | High-value checks |
|---|---|
| Input never turns on | supply, common, sensor type, terminal, channel inhibit |
| Input always on | short, leakage, wrong common, forced tag, inverted mapping |
| Output LED on but load off | field supply, fuse, output contact, terminal, coil |
| Small load glows when off | solid-state leakage and minimum load |
| Analog fixed at zero | open loop, wrong polarity, no supply, wrong channel mode |
| Analog reads full scale | open RTD, range mismatch, active/active current conflict |
| Noisy analog value | shielding, routing, grounding, filtering, unstable process |
| Works until drive starts | EMC routing/bonding, supply dip, output suppression |
Primary references
- Siemens Industry Support, S7-1200 system manual and module wiring documentation.
- Rockwell Automation, technical literature library for controller and I/O wiring manuals.
- Fluke, what a 4–20 mA current loop contains and how it behaves.
- OSHA, 29 CFR 1910.147 control of hazardous energy.


