Skip to content
EN
  • Español
  • English
Advertisement

4-20 mA scaling calculator: analog signal scaling

Online analog signal scaling: convert 4-20 mA, 0-10 V or PLC counts to bar, °C or any unit, and back, with the scaling formula explained.

Fill in 5 of the 6 fields and the missing one is calculated. You can type in any of them.

What the input reads at 0 %: 4 mA, 0 V, 0 counts… Choose the input unit or type it in “Custom”.
mA
The real value at 0 %: 0 bar, −50 °C… Choose what it measures or type it in “Custom”.
bar
mA
bar
Percentage of range—

Use this calculator for reference only, as we cannot guarantee that the results are free of errors.

Disclaimer

https://dyaii.es/en/4-20-ma-scaling-calculator/

Advertisement

The analog inputs of a PLC read a signal (4-20 mA, 0-10 V or a number of counts) that has to be converted into the real value the sensor measures: bar, °C, level, hertz… That is scaling. This calculator does it both ways.

How to use the calculator

  1. Enter the input range: what the PLC reads at 0 % and at 100 % (for example, 4 and 20 mA).
  2. Enter the output range: the real value at those two points (for example, 0 and 6 bar).
  3. Type the current input and you get the scaled value. If you type an output value, it calculates the input that corresponds to it.

Linear scaling formula

S = Smin + (E − Emin) · (Smax − Smin) / (Emax − Emin)

E is the input and S the scaled output. It is the equation of the straight line through the points (Emin, Smin) and (Emax, Smax). The other way around:

E = Emin + (S − Smin) · (Emax − Emin) / (Smax − Smin)
Advertisement

Worked example

A 0 to 6 bar pressure transmitter with a 4-20 mA output reads 12 mA:

S = 0 + (12 − 4) · (6 − 0) / (20 − 4) = 3 bar

Equivalents for the most common signals

Percentage4-20 mA0-10 V0-27,648 counts
0 %400
25 %82.56,912
50 %12513,824
75 %167.520,736
100 %201027,648
27,648 is the full scale of the analog inputs of Siemens S7 PLCs. Other manufacturers use different ranges (0-32,767, 0-10,000, 0-4095…): check the module manual.
Advertisement

Frequently asked questions

Why is 4-20 mA used instead of 0-20 mA?

Because with 4 mA as zero you can tell a zero reading from a broken wire: if the signal drops below about 3.6 mA, the PLC knows there is a fault.

Does it work with reverse or negative scales?

Yes. The minimum output can be greater than the maximum (reverse scale) or negative, for example from −50 to 150 °C.

Related calculators

Share

WhatsApp X LinkedIn Telegram Email
Advertisement

Install Diseño y automatización de instalaciones industriales on your phone

All the calculators one tap away, full screen, like an app. It takes no space and is always up to date.