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.
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
- Enter the input range: what the PLC reads at 0 % and at 100 % (for example, 4 and 20 mA).
- Enter the output range: the real value at those two points (for example, 0 and 6 bar).
- 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
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:
Worked example
A 0 to 6 bar pressure transmitter with a 4-20 mA output reads 12 mA:
Equivalents for the most common signals
| Percentage | 4-20 mA | 0-10 V | 0-27,648 counts |
|---|---|---|---|
| 0 % | 4 | 0 | 0 |
| 25 % | 8 | 2.5 | 6,912 |
| 50 % | 12 | 5 | 13,824 |
| 75 % | 16 | 7.5 | 20,736 |
| 100 % | 20 | 10 | 27,648 |
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.
