PLC & Controls Guide

PLC Analog Scaling Explained

Understand how a PLC turns an analog signal into an engineering value—from the field transmitter and raw input counts all the way to the HMI.

What Is PLC Analog Scaling?

PLC analog scaling is the process of converting the numerical value received from an analog input module into the engineering units used by the control system.

A field transmitter might produce a 4–20 mA signal, but a PLC does not necessarily see that signal directly as "4 mA" or "20 mA." The analog input module converts the electrical signal into a digital value that the PLC program can process.

The PLC then maps that input value to an engineering range.

Physical Process → Transmitter → 4–20 mA → Analog Input → Raw Counts → Engineering Units → HMI / SCADA

Understanding this entire chain is one of the most useful concepts in controls troubleshooting.

A Complete Example

Pressure Transmitter: 0–100 PSI

Suppose a pressure transmitter is configured for:

  • LRV = 0 PSI
  • URV = 100 PSI
  • Output = 4–20 mA

The transmitter is currently producing 12 mA.

From the 4–20 mA relationship:

(12 − 4) ÷ 16 = 0.50

The transmitter is therefore at 50% of its configured measurement span:

0 + (0.50 × 100) = 50 PSI

So the actual process value represented by the transmitter is:

50 PSI

The PLC still has to convert the analog input's digital representation of that 12 mA signal into 50 PSI.

What Are Raw Counts?

An analog input module converts the incoming electrical signal into a numerical representation that the PLC can use.

Depending on the PLC family, analog input configuration, module resolution, and data format, the numerical range can be different.

One system might use a range such as:

3277 → 4 mA
16384 → 20 mA

Another PLC or analog module may use a completely different representation.

Do not memorize one raw-count range. Always verify the actual analog input module's documented scaling, configuration, resolution, and data format before building or troubleshooting PLC scaling.

Raw Counts Example

Assume an analog input has been configured so that:

Signal Raw Input
4 mA 3277 counts
20 mA 16384 counts

Suppose the PLC is receiving approximately:

Raw Input = 9830 counts

First determine the percentage of the raw input span:

(9830 − 3277) ÷ (16384 − 3277) ≈ 0.50

The analog input is therefore approximately 50% through its configured range.

If the engineering range is 0–100 PSI:

0 + (0.50 × 100) ≈ 50 PSI

The PLC should therefore report approximately:

50 PSI

The General Scaling Formula

The same linear scaling concept works regardless of whether the input is expressed as milliamps, volts, raw counts, or another proportional signal.

Output = Output Low + ((Input − Input Low) ÷ (Input High − Input Low)) × (Output High − Output Low)

The variables can be interpreted as:

  • Input Low: the numerical value representing the bottom of the input range.
  • Input High: the numerical value representing the top of the input range.
  • Output Low: the engineering value at the bottom of the range.
  • Output High: the engineering value at the top of the range.
  • Input: the actual value received by the scaling calculation.

Different Analog Input Types

PLC systems commonly encounter several types of analog signals.

Signal Typical Application
4–20 mA Transmitters and industrial instrumentation
0–10 V HVAC, building automation, control devices
1–5 V Voltage representation of a 4–20 mA loop
RTD Temperature measurement
Thermocouple Temperature measurement

The underlying scaling concept is similar, but the actual conversion process and hardware configuration can be different for each signal type.

Transmitter Scaling vs. PLC Scaling

One of the most important distinctions to understand is that the transmitter and PLC can each have their own configuration.

Consider a transmitter configured for:

0–100 PSI = 4–20 mA

The PLC analog input might then be configured to interpret that signal using the same engineering range.

If the transmitter is changed to:

0–150 PSI = 4–20 mA

but the PLC remains scaled for 0–100 PSI, the electrical signal can be perfectly correct while the displayed engineering value is wrong.

Key troubleshooting idea A correct 4–20 mA signal does not guarantee a correct displayed engineering value. The transmitter range, analog input configuration, PLC scaling, and HMI display all need to agree.

Following the Signal Through the PLC

When troubleshooting an analog value, follow the signal through the system rather than jumping immediately to the final displayed value.

  1. Verify the actual process condition.
  2. Verify the transmitter configuration.
  3. Measure the actual field signal.
  4. Verify the analog input channel configuration.
  5. Check the raw input value.
  6. Check the PLC scaling calculation.
  7. Check the engineering-unit value.
  8. Check the HMI or SCADA display.

This creates a logical troubleshooting path from the physical process to the operator interface.

Troubleshooting PLC Analog Scaling

The transmitter reads correctly but the PLC value is wrong

First measure the actual loop current. If the current corresponds to the expected process value, move downstream into the analog input and PLC configuration.

The raw count is wrong

Check the analog input module configuration, signal type, range, resolution, channel setup, wiring, and module documentation.

Raw counts are correct but engineering units are wrong

Investigate the PLC scaling formula and verify the configured input and output ranges.

PLC value is correct but HMI is wrong

The scaling may already be correct in the PLC. Check the HMI tag, data type, display scaling, unit configuration, and communications path.

Value is correct at one point but wrong at another

Check whether the scaling is actually linear and whether the transmitter or application requires characterization, square-root extraction, filtering, or another conversion.

What Happens Outside the Normal Range?

A PLC should not automatically assume that every analog value represents a valid process measurement.

For a 4–20 mA instrument, values below 4 mA or above 20 mA may represent underrange, overrange, alarm, or fault conditions depending on the instrument and configuration.

A robust control program may therefore perform separate signal validation before accepting the scaled engineering value as a normal process measurement.

Scaling and signal validation are different jobs. The scaling calculation tells you what numerical engineering value corresponds to the input. Signal validation determines whether that input should be treated as a valid measurement.

Scaling, Clamping, and Limiting

A simple linear scaling equation can mathematically produce values outside the intended engineering range if the input goes outside its configured range.

For example, a 0–100 PSI signal calculated from a current below 4 mA could produce a negative pressure value.

Whether the PLC should allow that value, clamp it to the engineering range, or flag it as invalid depends on the application.

This is a controls-design decision rather than something inherent to the basic scaling equation.

Precision and Data Types

PLC scaling can involve integers, floating-point values, signed values, and different numerical representations.

Be careful when performing scaling with integer arithmetic. Integer division can discard fractional information before the final result is calculated.

For example, a calculation that should produce 0.5 can behave differently if the PLC evaluates the intermediate operation entirely as integer math.

Practical rule Know the data type of the raw input, the intermediate calculations, and the final engineering value.

Common PLC Scaling Mistakes

  • Using the wrong raw-count range.
  • Scaling 4–20 mA as though it were 0–20 mA.
  • Using the transmitter's maximum range instead of its configured LRV and URV.
  • Using different engineering ranges in the transmitter and PLC.
  • Forgetting that some transmitters use negative LRVs.
  • Assuming every analog input is linear.
  • Ignoring the analog module's configuration.
  • Performing calculations with inappropriate data types.
  • Troubleshooting the HMI before checking the raw input.
  • Treating an out-of-range signal as a normal process value.

A Practical PLC Troubleshooting Workflow

When an analog value looks wrong, use this sequence:

1. Process → 2. Transmitter → 3. Field Signal → 4. Raw Input → 5. PLC Scaling → 6. Engineering Value → 7. HMI

At each point, ask:

  • What value should I see here?
  • What value do I actually see?
  • What conversion happened between these two points?

That approach prevents you from guessing and helps isolate the exact stage where the error is introduced.

PLC & Analog Scaling Tools

Use the ControlsCalc tools to work through the calculations described in this guide.

Analog Signal Scaling Calculator Perform general linear scaling between an input range and an engineering range. 4–20 mA Scaling Calculator Convert a measured 4–20 mA signal into engineering units. 0–10 V Scaling Calculator Convert a 0–10 V control signal into engineering units. Pressure Transmitter Scaling Calculator Convert a 4–20 mA pressure transmitter signal into pressure using its configured LRV and URV. 4–20 mA Explained Learn how the field current signal works before it reaches the PLC.