🚧 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 › Robotics / Mechatronics › Programmable Logic Controllers for Mechatronics › Lesson 9
MFG-MECH15-02 · Lesson 9 · 16 clock hours · lab

Analog I/O — 4–20 mA and 0–10 V Signals

Objective. Students will wire a 4–20 mA transmitter to an analog input module, apply the linear scaling formula to convert raw counts to engineering units, and configure an analog output channel to send a 0–10 V command signal.

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

Why Analog Signals Matter in Mechatronics

Most real-world process variables — pressure, temperature, flow, position — are continuous quantities, not simple on/off states. Analog signals carry that continuous information between field devices (sensors and actuators) and the PLC. Two signal ranges dominate industrial practice: 4–20 mA current loops and 0–10 V voltage signals. Understanding how to wire, scale, and configure these signals is a core technician skill covered on the PMMI Industrial Electricity and PLC exams and applied daily on the shop floor.

The 4–20 mA Current Loop

A 4–20 mA loop-powered transmitter converts a physical measurement into a current that travels around a series loop. Because current is the same everywhere in a series circuit, the signal is immune to voltage drops caused by wire resistance — a major advantage over voltage signals in noisy industrial environments over long cable runs.

Why 4 mA, not 0 mA? The live-zero at 4 mA lets the PLC distinguish a healthy transmitter reading zero from a broken wire (0 mA). Any reading below 4 mA indicates a fault.

A typical loop-powered transmitter wiring diagram has three components in series:

1. 24 VDC loop supply (positive terminal)

2. Transmitter (two-wire, draws 4–20 mA from the supply)

3. Analog input module (internally terminates the loop at the negative terminal)

Always wire per the manufacturer's diagram and verify polarity before energizing. Use a DMM in series (current mode) to measure loop current, or a clamp meter on the signal wire if the meter has sufficient resolution for milliamp ranges.

The 0–10 V Voltage Signal

Analog output channels often command drives, proportional valves, or positioners using a 0–10 V signal. The PLC converts a scaled integer in the output register to a proportional voltage. The load must be connected between the AO+ terminal and the common (0 V) reference. Verify that the load impedance meets the module's minimum specification (typically ≥ 1 kΩ) to prevent loading errors.

Safety Before You Wire

How Analog Input Modules Represent the Signal: Raw Counts

The analog input module's analog-to-digital converter (ADC) converts the incoming current into a digital integer the PLC can read. A common 15-bit unipolar module uses the range 0 to 32,767 counts, where:

The PLC program must convert those raw counts into meaningful engineering units (EU) — for example, pounds per square inch (psi) for a pressure transmitter.

The Linear Scaling Formula

Because the relationship between raw counts and engineering units is linear, use the following interpolation formula:

$$EU = \frac{raw - raw_{min}}{raw_{max} - raw_{min}} \times (EU_{max} - EU_{min}) + EU_{min}$$

Where:

Many PLCs have a built-in scaling instruction (SCL, SCALE_X, etc.) that applies this formula automatically. Even so, a technician must supply the correct parameters, so you must understand the formula manually.

Configuring the Analog Output for 0–10 V

In the PLC software, configure the analog output channel for 0–10 V mode and note the output integer range (for example, 0 = 0 V, 32,767 = 10 V). Load a scaled integer into the output register using a MOV (move) instruction. To send 5 V, calculate the required integer: (5 / 10) × 32,767 = 16,384. Verify with a DMM across the output terminals and the common reference. Accuracy within ±0.2 V of the target confirms correct configuration.

Checking Your Work

Record every measurement — loop current, raw counts, calculated EU, and output voltage — in your lab log. Compare scaled values to DMM readings. Results should be within ±2% of expected values for the input scaling exercise. If they are not, recheck wiring polarity, module configuration range, and formula parameters before assuming the equipment is faulty.

Key terms8

4–20 mA current loopAn analog signal standard where a transmitter modulates current from 4 mA (minimum/live zero) to 20 mA (full scale) in a series circuit; resistant to noise and wire-resistance errors.
Live zeroThe use of 4 mA (not 0 mA) as the minimum signal level, allowing the PLC to detect a broken wire (0 mA) as a fault condition separate from a valid zero measurement.
Raw countThe integer value produced by an analog input module's analog-to-digital converter representing the sampled signal; for example, 0–32,767 for a 15-bit unipolar module spanning 4–20 mA.
Engineering unit (EU)The process variable expressed in meaningful physical units — such as psi, °F, or gpm — after the raw count has been converted by the scaling formula.
Linear scaling formulaThe interpolation equation EU = [(raw – raw_min)/(raw_max – raw_min)] × (EU_max – EU_min) + EU_min, used to convert analog raw counts to engineering units.
Analog output (AO) channelA PLC output that converts a digital integer register value into a proportional analog voltage (0–10 V) or current (4–20 mA) to command field devices such as drives or proportional valves.
MOV instructionA PLC ladder logic instruction (Move) that copies a source value into a destination register; used here to load a scaled integer into the analog output register.
Loop-powered transmitterA two-wire field device that draws its operating power from the same 24 VDC loop supply that carries the 4–20 mA signal, simplifying wiring.

Worked examples4

1. A 4–20 mA pressure transmitter has a range of 0–100 psi. The PLC analog input module represents 4 mA as 0 counts and 20 mA as 32,767 counts. The PLC reads a raw count of 16,384. What is the pressure in psi?
  1. Identify the formula: EU = [(raw – raw_min) / (raw_max – raw_min)] × (EU_max – EU_min) + EU_min
  2. Substitute values: EU = [(16,384 – 0) / (32,767 – 0)] × (100 – 0) + 0
  3. Calculate the fraction: 16,384 / 32,767 = 0.5001 (≈ 0.50)
  4. Multiply by span: 0.5001 × 100 = 50.01 psi
  5. Add EU_min: 50.01 + 0 = 50.01 psi ≈ 50.0 psi
Answer: Approximately 50.0 psi, which corresponds to the midpoint of the transmitter range (12 mA loop current).
2. Using the same module (0–32,767 counts = 4–20 mA = 0–100 psi), the technician measures 8.0 mA with the DMM. What raw count should the PLC be reading, and what is the engineering unit value?
  1. Find the fraction of the 4–20 mA span: (8.0 – 4) / (20 – 4) = 4 / 16 = 0.25
  2. Calculate expected raw count: 0.25 × 32,767 = 8,192 counts
  3. Apply scaling formula: EU = (8,192 / 32,767) × 100 + 0 = 0.25 × 100 = 25.0 psi
  4. Cross-check: 8.0 mA is 25% of the 4–20 mA span, so 25% of 100 psi = 25.0 psi ✓
Answer: Raw count ≈ 8,192; engineering unit = 25.0 psi.
3. The technician must configure the analog output to send 5 V. The AO module maps integer 0 = 0 V and integer 32,767 = 10 V. What integer value should be written to the output register with the MOV instruction?
  1. Determine the fraction of full scale: 5 V / 10 V = 0.50
  2. Multiply by the maximum count: 0.50 × 32,767 = 16,383.5
  3. Round to the nearest whole integer: 16,384
  4. Write 16,384 to the AO register using the MOV instruction, then verify output with a DMM across AO+ and COM terminals
Answer: Write integer value 16,384 to the analog output register; the measured output should be approximately 5.0 V (±0.2 V acceptable).
4. A temperature transmitter spans 0–200 °F (4–20 mA, 0–32,767 counts). The PLC reads 24,576 raw counts. What temperature does that represent?
  1. Apply the formula: EU = [(24,576 – 0) / (32,767 – 0)] × (200 – 0) + 0
  2. Calculate fraction: 24,576 / 32,767 = 0.7501
  3. Multiply by span: 0.7501 × 200 = 150.02 °F
  4. Add EU_min: 150.02 + 0 ≈ 150.0 °F
Answer: Approximately 150.0 °F, which corresponds to 75% of the transmitter range.

The math in this lesson2

Learners compute the integer count for a 5 V analog output on a 0–32,767 equals 0–10 V module.
7.RP.3F-LE.1
Brush up in the math halls at newSchoolWorks.com:
In class: Wiring lab: students wire a 4–20 mA loop-powered pressure or temperature transmitter to the analog input module using a provided wiring diagram; measure loop current with a clamp or series DMM at 0%, 50%, and 100% of the transmitter range; record in lab log. · Scaling formula exercise: given module raw count range (e.g., 0–32767 counts = 4–20 mA = 0–100 psi), students apply the linear interpolation formula EU = [(raw – raw_min)/(raw_max – raw_min)] × (EU_max – EU_min) + EU_min for three measured raw count values and verify against DMM readings; complete a worksheet. · Analog output configuration: students configure an analog output channel in the PLC software for 0–10 V, write a MOV instruction to load a scaled integer value, and measure the resulting output voltage with a DMM at three set-points (0 V, 5 V, 10 V); document accuracy in the lab log.
Materials: PLC with analog I/O modules, 4–20 mA transmitter (pressure or temperature), 24 VDC loop supply, 0–10 V analog output load (resistor or drive simulator), precision DMM, wiring diagram, scaling formula worksheet, lab log
Check: Wiring passes instructor check before energizing; scaling worksheet results within ±2% of correct values for all three points; analog output measured voltages within ±0.2 V of target at all three set-points.

Practice check8

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

PMMI – Programmable Logic Controllers
1. Why is 4 mA used as the minimum (live zero) signal in a 4–20 mA loop rather than 0 mA?
PMMI – Programmable Logic Controllers
2. A pressure transmitter spans 0–150 psi with a 4–20 mA output. The module maps 4 mA = 0 counts and 20 mA = 32,767 counts. The PLC reads 16,384 counts. What is the pressure in psi (rounded to one decimal place)?
PMMI – Industrial Electricity
3. Which OSHA standard governs lockout/tagout procedures that must be applied before rewiring analog I/O terminals?
PMMI – Industrial Electricity 1
4. A technician measures 0 mA in a 4–20 mA loop while the process is running normally. What is the most likely cause?
PMMI – Programmable Logic Controllers
5. An analog output module maps 0 counts = 0 V and 32,767 counts = 10 V. A technician writes the integer 8,192 to the output register. What output voltage should the DMM read?
PMMI – Industrial Electricity 1
6. When measuring loop current in a 4–20 mA circuit with a DMM, the meter must be connected in:
PMMI – Programmable Logic Controllers
7. A 4–20 mA flow transmitter ranges from 0 to 400 gpm (0–32,767 counts). The PLC reads a raw count of 4,096. Using the linear scaling formula, what is the flow in gpm (rounded to one decimal place)?
PMMI – Industrial Electricity 1
8. According to NFPA 70E, before touching wiring terminals in an analog I/O panel, the technician must verify absence of voltage. Which tool and method is correct?
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.