🚧 Under construction — VoTechWorks is being built. A free tech program — complimentary, as our commitment to get America working.
voTechWorksGrade 13 · a vocational technology learning center, by urbanicity
newSchoolWorks.com › VoTechWorks › Manufacturing & Marine › Industrial Maintenance › Programmable Logic Controllers for Industrial Maintenance › Lesson 3
MFG-INDU16-06 · Lesson 3 · 15 clock hours · lab

Discrete Input and Output Wiring

Objective. Students wire sinking and sourcing discrete input devices (pushbuttons, limit switches, proximity sensors) and output devices (pilot lights, solenoids, relay coils) to PLC I/O modules within allowable current ratings.

⚠ 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.

Discrete Input and Output Wiring

What "Discrete" Means

A discrete signal is simply ON or OFF — a single bit of information. Every pushbutton, limit switch, proximity sensor, pilot light, and solenoid coil connected to a PLC in this lab is a discrete device. The PLC reads discrete inputs through its input module and drives discrete outputs through its output module. Getting the wiring right is the foundation of every PLC-controlled machine.

PLC I/O Module Basics

A PLC input module converts a field voltage — typically 24 VDC in modern industrial systems — into a logic-level signal the CPU can read. The module has individual input terminals (often labeled X0, X1, X2 … or I:0/0, I:0/1 … depending on the manufacturer), a common terminal (COM or 0 V), and internal optocouplers that isolate field wiring from the CPU.

A PLC output module does the reverse: it switches a field voltage to power a field device. Transistor (DC solid-state) output modules are common for 24 VDC loads. Each output channel has a maximum current rating — typically 0.5 A to 2 A per point — and a module total. Never exceed either rating. Overloading an output damages the transistor or blows the module fuse.

Sinking and Sourcing — Current Flow Direction

These terms describe which direction current flows through the input or output terminal.

Key rule: A sinking input card pairs with a sourcing (PNP) sensor; a sourcing input card pairs with a sinking (NPN) sensor. Some cards are selectable — check the module datasheet and wiring diagram before connecting anything.

In this lab the trainer uses a sinking input card. You will wire the PNP proximity sensor to it. The NPN sensor demonstration by the instructor shows why polarity reversal causes the input to never activate.

Three-Wire Sensor Wiring

A three-wire proximity sensor has:

For a PNP sensor on a sinking card, connect brown to +24 V, blue to 0 V, and black to the input terminal. When the sensor detects a target, the black wire rises to near +24 V, current flows into the sinking module, and the CPU reads a logic 1.

Pushbutton and Limit Switch Wiring

Two-wire contact devices (pushbuttons, limit switches) are simpler: one wire to +24 V and the other to the input terminal. The module sees voltage when the contact closes. Wire a normally open (NO) contact so the input is OFF at rest and turns ON when pressed or actuated. Wire a normally closed (NC) contact so the input is ON at rest and drops OFF when actuated — useful for safety interlocks.

Output Wiring — Pilot Lights and Solenoids

A 24 VDC pilot light connects with one wire to the output terminal and the other to 0 V common. When the output transistor turns ON, +24 V appears at the terminal and current flows through the lamp to common.

A solenoid valve coil is an inductive load. Inductive loads generate a voltage spike (back-EMF) when switched OFF. Always use a suppression device — a flyback diode across a DC coil — to protect the output transistor. In this lab the relay module provides that protection and also allows a 24 VDC output transistor to switch higher-voltage or higher-current loads safely. Wire the output terminal to the relay coil positive; relay coil negative to 0 V. The relay's dry contacts then control the solenoid.

Verifying Wiring Before Energizing

Before applying power:

1. Remove the module or confirm output power is OFF.

2. Set your multimeter to DC voltage.

3. With input power ON but outputs de-energized, probe each input terminal to COM. You should read near 0 V on an open contact and near +24 V when the device is actuated.

4. Confirm no terminal-to-terminal shorts with the continuity function.

After energizing, force outputs ON in the programming software (with the PLC in a safe, controlled state and all personnel clear of actuated devices) to confirm each field device responds to the correct output point.

Safety Requirements

Key terms10

Discrete I/OInput or output signals that have only two states — ON (logic 1) or OFF (logic 0) — as opposed to analog signals that vary continuously.
Sinking (NPN)A wiring convention in which the device or module provides a current path to the negative rail (0 V); an NPN sensor's output pulls the signal line toward 0 V when active.
Sourcing (PNP)A wiring convention in which the device or module supplies positive voltage to the signal line; a PNP sensor's output pushes current out toward the load when active.
OptocouplerAn electronic component inside a PLC I/O module that uses a light-emitting diode and phototransistor to electrically isolate field wiring from the CPU circuit.
Back-EMF (flyback)A voltage spike produced by an inductive load such as a solenoid or relay coil when its current is suddenly interrupted; suppressed with a flyback diode across DC coils to protect output transistors.
Forcing an OutputA software function that overrides the PLC ladder logic to force a specific output ON or OFF for testing purposes; must be removed after testing.
Per-point current ratingThe maximum continuous current, stated in the module datasheet, that a single output channel can safely switch without damage.
Normally Open (NO) contactA switch contact that is open (no continuity) in its resting, un-actuated state and closes when the device is operated.
Normally Closed (NC) contactA switch contact that is closed (continuity present) in its resting, un-actuated state and opens when the device is operated.
FerruleA small metal sleeve crimped onto the end of a stranded wire to provide a solid, corrosion-resistant connection in a screw terminal block.

Worked examples4

1. A sinking PLC input module draws 7 mA per energized input point and has 16 input points. What is the worst-case current draw from the 24 VDC field supply if all 16 inputs are ON simultaneously?
  1. Identify the per-point current: 7 mA = 0.007 A.
  2. Multiply by the total number of points: 0.007 A × 16 = 0.112 A.
  3. Convert to milliamps for clarity: 0.112 A = 112 mA.
Answer: 112 mA total from the 24 VDC field supply when all 16 inputs are energized simultaneously.
2. A PLC transistor output module is rated at 1.0 A per point and 4.0 A total for the 8-point module. A technician plans to connect four solenoid coils, each drawing 0.6 A, to four output points. Is this within specification?
  1. Check per-point rating: each solenoid draws 0.6 A; the per-point limit is 1.0 A. 0.6 A < 1.0 A — each individual point is within rating.
  2. Calculate total load: 4 solenoids × 0.6 A = 2.4 A.
  3. Compare to module total rating: 2.4 A < 4.0 A — the module total is also within rating.
  4. Conclusion: the wiring plan is acceptable.
Answer: Yes, the plan is within specification. Per-point load is 0.6 A (limit 1.0 A) and total module load is 2.4 A (limit 4.0 A).
3. Using a multimeter, a student measures 0.8 VDC between an input terminal and the module common (0 V) with the PNP proximity sensor target removed and 23.6 VDC with the target present. The module input threshold is stated as greater than 15 VDC for a logic 1 and less than 5 VDC for a logic 0. Are both states reading correctly?
  1. Logic 0 check (target absent): measured 0.8 VDC. The logic-0 threshold requires less than 5 VDC. 0.8 V < 5 V — reads as a valid logic 0.
  2. Logic 1 check (target present): measured 23.6 VDC. The logic-1 threshold requires greater than 15 VDC. 23.6 V > 15 V — reads as a valid logic 1.
  3. Both measurements fall within the module's stated thresholds.
Answer: Yes, both states are valid. 0.8 VDC is a good logic 0 and 23.6 VDC is a good logic 1 for this module.
4. A pilot light is rated at 24 VDC, 25 mA. A solenoid coil is rated at 24 VDC, 150 mA. If both are wired to separate output points on a module rated at 500 mA per point, what percentage of each point's rating is being used?
  1. Pilot light: (25 mA ÷ 500 mA) × 100 = 5%.
  2. Solenoid coil: (150 mA ÷ 500 mA) × 100 = 30%.
  3. Both are well below 100%, so neither point is overloaded.
Answer: The pilot light uses 5% and the solenoid coil uses 30% of the 500 mA per-point rating. Both are safe.

The math in this lesson1

Learners multiply per-point current by points energized to check module and supply ratings.
6.RP.3
In class: Instructor demonstrates NPN versus PNP sensor wiring to a sinking input card, explaining current-flow direction using a live circuit on the trainer. · Students wire a three-wire proximity sensor, a normally-open pushbutton, and a normally-closed limit switch to three input points, then use a multimeter to verify voltage at each input terminal before energizing. · Students wire a 24 VDC pilot light and a solenoid valve coil (through a relay) to output points, apply power, and force each output ON from the programming software to confirm correct operation; results are recorded in their lab log.
Materials: PLC trainer, NPN and PNP proximity sensors, pushbuttons, limit switches, pilot lights, relay module, solenoid valve coil, multimeter, wire strippers, ferrule crimper, terminal-block screwdrivers, I/O wiring diagram worksheet
Check: Instructor observes live test: each input illuminates the correct I/O indicator on the CPU and each forced output activates the correct field device — 100% of wired points must pass; any miswire is corrected and retested before sign-off.

Practice check8

Answer each question, then check it. Nothing is recorded; this is your own practice.

PLC Systems / Electrical Fundamentals
1. A three-wire PNP proximity sensor is connected to a sinking PLC input card. When the sensor detects a target, which statement correctly describes current flow?
Safety / LOTO
2. Before re-wiring an input terminal on an energized PLC trainer, what is the FIRST action a technician must take?
PLC Systems / Electrical Calculations
3. A transistor output module is rated at 0.5 A per point and 3.0 A for the 8-point module. A technician connects a 0.4 A solenoid, a 0.3 A solenoid, and a 0.3 A solenoid to three separate points. All three can be ON simultaneously. What is the total module load, and is it within the module rating?
PLC Systems / Electrical Fundamentals
4. Why is a flyback suppression diode required when a PLC transistor output switches a 24 VDC solenoid coil?
PLC Systems / Input Devices
5. A normally closed limit switch is wired to a PLC input. With the machine at rest and the switch un-actuated, what state does the PLC CPU read?
PLC Systems / Test Equipment
6. When verifying discrete input wiring with a multimeter before energizing the PLC program, which measurement confirms that a 24 VDC sinking input is receiving a valid ON signal from a pushbutton?
PLC Systems / Input Devices
7. Which color wire on a standard three-wire DC proximity sensor carries the 0 V (negative) supply connection?
Safety / PLC Operations
8. A technician uses the programming software to force an output ON during a wiring check. Which of the following is the MOST important safety step before performing the force?
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.