4–20 mA Scaling Calculator & Simulator
Calculate 4–20 mA signals, engineering units and PLC raw values with an interactive industrial automation scaling calculator and simulator.
4–20 mA scaling is one of the most common calculations in industrial automation, process instrumentation and PLC programming. A transmitter may measure pressure, temperature, flow, level or speed, while the PLC receives an analog current that must be converted into a useful engineering value.
This guide explains the standard 4–20 mA scaling method, the universal formulas, engineering-unit examples, reverse scaling, PLC raw-value scaling and practical troubleshooting.
Interactive 4–20 mA Scaling Calculator & Simulator
Use the simulator below to convert a 4–20 mA signal into an engineering value, test different transmitter ranges and explore PLC raw scaling. The tool also includes diagnostic test points and a PLC code template.
4–20 mA Engineering Suite
Universal analog scaling calculator, live simulator, PLC raw scaling, code generator, Ladder and FBD visualizer.
Ladder Logic Concept
Raw → PV
FBD Concept
RawInput
RawMin / RawMax
LRV / URV
Signal Diagnostics / Fault Injection
Normal nominal loop current.
What Is a 4–20 mA Signal?
A 4–20 mA signal is a widely used analog standard in industrial instrumentation. The transmitter represents a process variable using a current between 4 mA and 20 mA.
In a conventional linear application:
| Current | Span | Typical value |
|---|---|---|
| 4 mA | 0% | Lower Range Value (LRV) |
| 8 mA | 25% | 25% of span |
| 12 mA | 50% | 50% of span |
| 16 mA | 75% | 75% of span |
| 20 mA | 100% | Upper Range Value (URV) |
The difference between 20 mA and 4 mA is 16 mA. This 16 mA span is the key to the scaling calculation.
4–20 mA Scaling Formula
The universal linear formula for converting current into an engineering value is:
Where:
- PV = Process Value
- mA = measured loop current
- LRV = Lower Range Value
- URV = Upper Range Value
Example: 0–10 bar transmitter
Suppose a pressure transmitter is configured for 0 to 10 bar and the measured current is 14 mA.
Therefore, 14 mA corresponds to 6.25 bar for a 0–10 bar linear range.
4–20 mA Percentage Calculation
To calculate the percentage of the nominal 4–20 mA span:
For example:
This is why 12 mA represents 50% of the nominal span.
4–20 mA Engineering Unit Examples
Pressure
For a 0–16 bar transmitter at 16 mA:
Temperature
For a −20 to 80 °C transmitter at 10 mA:
Flow
For a 0–1000 L/min flow transmitter at 18 mA:
Level
For a 0–5 m tank-level transmitter at 8 mA:
Reverse 4–20 mA Calculation
Sometimes you know the desired engineering value and need to calculate the corresponding current.
For a 0–10 bar transmitter, the current corresponding to 7.5 bar is:
PLC Analog Input Raw Scaling
A PLC normally receives a digital representation of the analog input. The raw value is not universal; it depends on the exact analog input module, resolution, configured signal range, data format and configuration.
The generic raw scaling formula is:
The simulator includes several example raw-value ranges:
| Example | Raw range | Important note |
|---|---|---|
| Siemens example | 0…27648 | Module/configuration dependent |
| Rockwell example | −32768…32767 | Module/configuration dependent |
| Schneider example | 4000…20000 | Module/configuration dependent |
| Generic 12-bit | 0…4095 | Resolution example |
| Generic 16-bit | 0…65535 | Resolution example |
PLC Platform Considerations
Siemens
Some Siemens analog configurations use a digital range such as 0…27648. The exact representation depends on the specific module and configuration.
Rockwell / Allen-Bradley
Rockwell analog modules can use different raw representations and engineering-unit modes. A signed range such as −32768…32767 is one example, not a universal rule for every module.
Schneider Electric
Some Schneider configurations expose values such as 4000…20000. The exact behavior depends on the module and selected configuration.
Mitsubishi, Omron, ABB and Beckhoff
These platforms also have their own analog module formats and configuration options. The safest method is to use the generic formula with the exact RawMin and RawMax documented for the installed module.
PLC Code Generator
The simulator includes a PLC Code tab that creates a Structured Text scaling template using your selected raw range, LRV and URV.
The generated code should be treated as a starting template. Exact syntax, data types, conversion functions and limiting functions vary between PLC families and specific modules.
4–20 mA Troubleshooting
If the displayed process value is incorrect, check the complete signal chain rather than only the PLC formula:
- Verify the transmitter LRV and URV.
- Check the 24 VDC loop power.
- Check wiring and polarity.
- Measure the actual loop current with a calibrated meter.
- Verify the PLC analog-channel configuration.
- Read the raw input value.
- Verify the scaling formula.
- Check engineering-unit display and alarm limits.
Diagnostic currents
Values such as 0, 3.6, 22 and 24 mA are often useful when testing instrumentation, but their exact meaning is device and configuration dependent.
| Current | Possible diagnostic situation |
|---|---|
| 0 mA | Possible open circuit, power loss, wiring problem or device fault. |
| 3.6 mA | Below the nominal live-zero point; may be used by some devices for diagnostics. |
| 4–20 mA | Nominal measurement range. |
| 22 mA | Above nominal range; some devices use over-range or diagnostic signaling. |
| 24 mA | High-current test/fault condition; exact meaning is device dependent. |
Common 4–20 mA Scaling Mistakes
Using 20 instead of 16
The signal span is 16 mA. You must subtract the 4 mA live zero before calculating the percentage of span.
Ignoring LRV and URV
A transmitter ranged from 10 to 50 bar cannot be scaled as though its range were 0 to 50 bar. Always use the actual LRV and URV.
Assuming PLC raw values are universal
The raw value depends on the actual hardware and configuration. Do not copy scaling constants blindly between PLC projects.
Forgetting reverse scaling
Commissioning often requires converting an engineering value back into the expected 4–20 mA signal.
Treating diagnostic currents as universal
A current below 4 mA or above 20 mA does not automatically have the same meaning on every transmitter. Check the manufacturer's documentation.
Quick Reference
| Calculation | Formula |
|---|---|
| mA → Engineering Value | PV = LRV + ((mA − 4) / 16) × (URV − LRV) |
| Engineering Value → mA | mA = 4 + ((PV − LRV) / (URV − LRV)) × 16 |
| mA → % Span | % = ((mA − 4) / 16) × 100 |
| Raw → Engineering Value | PV = LRV + ((Raw − RawMin) / (RawMax − RawMin)) × (URV − LRV) |
Frequently Asked Questions
12 mA represents 50% of the nominal 4–20 mA span.
PV = LRV + ((mA − 4) / 16) × (URV − LRV).
Yes. Enter the correct LRV, URV and engineering unit.
No. They depend on the analog input hardware and configuration.
Yes. Use the PLC Raw Scaling tab and enter the correct RawMin and RawMax values for your module.
Yes. The PLC Code tab provides a Structured Text template that should be adapted and verified for your PLC platform.
Final Takeaway
The basic principle of 4–20 mA scaling is simple: 4 mA represents the lower range, 20 mA represents the upper range, and the 16 mA difference represents the full measurement span.
The challenge in real PLC projects is making sure the transmitter range, analog-module configuration and raw-value representation all match the scaling formula.
Use the interactive simulator above to calculate engineering values, test different signal levels, explore PLC raw scaling and generate a starting PLC code template.
Related Industrial Automation Tools
- PLC TON Timer Simulator
- PLC TOF Timer Simulator
- PLC TP Timer Simulator
- PLC CTU Counter Simulator
- VFD V/f Simulator
- Motor DOL Starter Simulator
- Star-Delta Motor Starter Simulator
- Forward/Reverse Motor Control Simulator
- Tank Level Control Simulator
SEO Title: 4–20 mA Scaling Calculator & Simulator | PLC Analog Scaling
Meta Description: Calculate 4–20 mA signals, engineering units and PLC raw values with an interactive industrial automation scaling calculator, simulator and PLC code generator.
Suggested URL: 4-20-ma-scaling-calculator-simulator
Primary Keyword: 4–20 mA Scaling Calculator
Secondary Keywords: 4–20 mA scaling formula, 4–20 mA calculator, Analog Input Scaling Calculator, 4–20 mA to engineering units, PLC analog scaling, 4–20 mA raw value calculator, 4–20 mA simulator.

0 Comments