🚧 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 › Building & Construction › Electrical › Programmable Logic Controller (PLC) Introduction for Electricians › Lesson 4
BLD-ELEC05-07 · Lesson 4 · 20.5 clock hours · demo

PLC I/O Modules: Discrete and Analog Signals

Objective. Students will distinguish between discrete and analog I/O modules, read an I/O wiring diagram, and explain how field device signals are converted to values the CPU can process.

What Is a PLC I/O Module?

A Programmable Logic Controller (PLC) is the brain of an automated industrial or commercial system. It reads signals from field devices such as switches, sensors, and transducers through input modules, makes decisions based on a user-written program, and then sends control signals to output devices such as motor starters, valves, and indicator lights through output modules. The I/O (input/output) modules are the translation layer between the real-world electrical world and the digital world inside the CPU.

There are two fundamental categories of I/O signals you will encounter as an electrician: discrete and analog. Understanding the difference is essential for wiring, troubleshooting, and passing your NCCER assessments.

---

Discrete I/O Modules

A discrete signal has only two possible states: ON or OFF. Inside the CPU, these states are stored as a single binary digit — a 1 (ON) or a 0 (OFF). Common field devices connected to discrete input modules include:

A typical discrete input module operates at 24 VDC in industrial settings, though 120 VAC modules also exist. When voltage is present at an input terminal, the module signals the CPU that the bit is 1. When no voltage is present, the bit is 0.

Discrete output modules work in reverse: the CPU sets a bit HIGH, and the module switches voltage to the connected field device. Output modules may use transistors (for DC loads), triacs (for AC loads), or electromechanical relays, depending on the application.

Wiring tip: Each discrete input terminal typically requires a common (return) connection. Always verify the module's sink/source wiring configuration before connecting field devices — reversing sink and source wiring is one of the most common installation mistakes.

---

Analog I/O Modules

An analog signal varies continuously across a range rather than switching between two states. Analog input modules accept signals such as:

Inside the analog input module, an analog-to-digital converter (ADC) samples the incoming electrical signal and converts it to a numerical value the CPU can store and process. A common resolution is 12-bit, which means the ADC divides the full signal range into 2¹² = 4,096 counts (0–4,095).

For a 4–20 mA channel:

The programming software applies a scaling formula to convert raw counts to engineering units such as °F, PSI, or GPM so that the operator sees a meaningful value.

Analog output modules contain a digital-to-analog converter (DAC), which works in the opposite direction: the CPU writes a numerical value, and the module outputs the corresponding current or voltage signal to a field device such as a variable-frequency drive or control valve.

---

Reading an I/O Wiring Diagram

An I/O wiring diagram shows:

1. The module's terminal numbers and their function (input, common, shield, power)

2. The field device connected to each terminal

3. The power supply polarity and any fusing requirements

4. The wire number or tag used to trace the circuit

When you read the diagram, follow each signal wire from the field device to the module terminal, confirm the common connections, and identify the power source voltage. For analog loops, trace the 4–20 mA path from the transmitter (+) terminal, through the field wiring, into the module's (+) input terminal, and back through the (–) terminal to complete the loop.

---

Safety During I/O Work

Lockout/Tagout (LOTO): Before removing or installing any I/O module or field wiring, de-energize the panel, verify absence of voltage with a calibrated meter, and apply your personal lock. PLC control panels may contain multiple voltage sources — 120 VAC control power, 24 VDC I/O power, and potentially higher voltages for motor circuits. Identify and isolate every energy source.

PPE: Wear safety glasses and voltage-rated gloves appropriate for the working voltage. When taking live measurements during supervised lab work, use a meter rated for the voltage present and keep one hand free when probing.

Analog loop caution: A 4–20 mA loop powered by an external 24 VDC supply can still cause equipment damage if the loop is opened while the transmitter is active. Short the loop properly before disconnecting transmitters in live systems.

---

How the CPU Uses I/O Data

The CPU continuously executes a scan cycle:

1. Input scan — reads all I/O module values into an input image table in memory

2. Program scan — executes the ladder logic or function block program using the image table values

3. Output scan — writes the results back to the output image table, which updates the output modules

Discrete inputs appear as single bits; analog inputs appear as integer or floating-point values in a data register. Understanding this cycle helps you predict how quickly the PLC responds to a field-device change and troubleshoot timing-related issues.

Key terms8

Discrete signalAn electrical signal that has exactly two states — ON or OFF — represented in the CPU as a binary 1 or 0.
Analog signalAn electrical signal that varies continuously across a defined range, such as 4–20 mA or 0–10 VDC, representing a proportional process value.
Analog-to-digital converter (ADC)The circuit inside an analog input module that samples an incoming electrical signal and converts it to a numeric count the CPU can process.
4–20 mA current loopThe most common industrial analog signal standard, where 4 mA represents the low end of the process range and 20 mA represents the high end.
ScalingThe mathematical process of converting a raw ADC count into a meaningful engineering unit such as degrees, PSI, or flow rate.
I/O image tableA section of the PLC's memory that holds the current state of all input and output points, updated during each scan cycle.
Scan cycleThe repeating three-step process a PLC CPU performs: read inputs, execute the program, and update outputs.
Sink/source wiringThe current-flow convention for discrete DC I/O modules; a sinking input pulls current from the field device, while a sourcing input supplies current to it.

Worked examples4

1. A 12-bit analog input module is configured for a 4–20 mA signal. The raw ADC count range is 0 to 4,095. What raw count corresponds to an input signal of 12 mA?
  1. Identify the signal span: 20 mA − 4 mA = 16 mA total span.
  2. Find how far the input is above the minimum: 12 mA − 4 mA = 8 mA above minimum.
  3. Calculate the fraction of span: 8 mA ÷ 16 mA = 0.5 (50%).
  4. Multiply by the full ADC count range: 0.5 × 4,095 = 2,047.5, which rounds to 2,048.
Answer: The raw ADC count is approximately 2,048, representing 50% of the input span.
2. The PLC software scales the 4–20 mA analog input to display tank level in inches, ranging from 0 inches (at 4 mA) to 120 inches (at 20 mA). What level in inches does a signal of 8 mA represent?
  1. Identify the signal span: 20 mA − 4 mA = 16 mA.
  2. Find the input above minimum: 8 mA − 4 mA = 4 mA.
  3. Calculate the fraction of span: 4 mA ÷ 16 mA = 0.25 (25%).
  4. Apply to the engineering unit range: 0.25 × 120 inches = 30 inches.
Answer: A signal of 8 mA corresponds to a tank level of 30 inches.
3. During signal tracing, a technician measures the voltage at a 24 VDC discrete input terminal while the connected push button is released (open). What voltage should be present at the terminal, and what state will the CPU read?
  1. A discrete input terminal reads the voltage supplied by the field device or power supply through the switch contact.
  2. When the push button is open (released), no current path exists through the switch, so no voltage is delivered to the input terminal.
  3. The module therefore sees 0 VDC at the terminal.
  4. The CPU reads this as a binary 0 (OFF state).
Answer: Approximately 0 VDC at the terminal; the CPU reads the input as OFF (logic 0).
4. A student injects 20 mA into an analog input channel scaled 0–100%. After reading the software display, the value shows 97%. The tolerance for the lab check is ±5% of span. Does the reading pass?
  1. The expected value at 20 mA is 100% of span.
  2. Calculate the error: 100% − 97% = 3% deviation.
  3. Compare to the allowed tolerance: 3% is less than 5%.
  4. The reading is within the acceptable range.
Answer: Yes, 97% passes because the 3% deviation is within the ±5% tolerance.

The math in this lesson2

Learners linearly scale 4–20 mA signals to raw ADC counts and tank level in inches and check percent error.
F-LE.1F-IF.6
Brush up in the math halls at newSchoolWorks.com:
In class: Instructor demonstrates a discrete 24 VDC input module and an analog 4–20 mA input module side by side, showing how each terminal is used and how the CPU reads the resulting data value; students take structured notes on a comparison chart. · Hands-on signal tracing: students use a multimeter to measure voltage at each terminal of a wired discrete I/O module while the instructor toggles field devices on and off; students record measured values versus expected values. · Analog signal simulation: students use a bench-top current source to inject a 4 mA, 12 mA, and 20 mA signal into an analog input channel and read the scaled value displayed in the PLC programming software, recording results in their lab notebooks.
Materials: PLC trainer stations with discrete and analog I/O modules, 24 VDC power supply, bench-top current source or signal simulator, digital multimeters, I/O wiring diagrams, lab notebooks
Check: Completed signal-tracing worksheet with measured values and explanations; instructor verifies analog scaling readings match expected percentage of span within ±5%; pass requires all discrete readings correct and analog readings within tolerance.

Practice check8

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

NCCER Electrical — Electrical Theory and Control Circuits
1. A limit switch connected to a discrete input module sends 24 VDC to the input terminal when the switch closes. What value does the CPU store for that input point?
NCCER Electrical — Motor Controls and Instrumentation
2. Which signal standard is the most common analog signal used in industrial control applications?
OSHA 10 — Electrical Hazards and Lockout/Tagout
3. Before removing an I/O module from an energized PLC panel, the correct first step is to:
NCCER Electrical — Motor Controls and Instrumentation
4. A 12-bit analog input module accepts a 4–20 mA signal with a raw count range of 0–4,095. An input of 16 mA produces a raw count of approximately:
NCCER Electrical — Motor Controls and Instrumentation
5. An analog input channel is scaled so that 4 mA = 0 PSI and 20 mA = 200 PSI. A pressure transmitter sends 10 mA. What pressure does the PLC display?
NCCER Electrical — Troubleshooting and Testing
6. During signal tracing with a multimeter, a student measures 0 VDC at a discrete input terminal even though the indicator light on the field device is ON. The most likely cause is:
NCCER Electrical — Motor Controls and Instrumentation
7. Which of the following best describes the role of the PLC scan cycle's output scan phase?
NCCER Electrical — Motor Controls and Instrumentation
8. A student connects a sourcing-type field device to a sinking discrete input module terminal incorrectly, reversing the polarity. The most likely result is:
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.