Ticker

6/recent/ticker-posts

4–20 mA Scaling Calculator: Free PLC Analog Scaling Simulator & Code Generator

4–20 mA Scaling Calculator & Simulator | PLC Analog Scaling

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.

Calculated Process Value
50 bar
Span50.00%
Current12.00 mA
StatusNORMAL
TRANSMITTER
4–20 mA LOOP
ANALOG INPUT
SCALING
PROCESS VALUE
PV = LRV + ((mA − 4) / 16) × (URV − LRV)
12 mA corresponds to 50% of the nominal 4–20 mA span. Fault/alarm interpretation can vary by transmitter and plant standard.
Engineering value from Raw
50 bar
Raw %50.00%
Equivalent mA12.00 mA
Range0…27648
PV = LRV + ((Raw − RawMin) / (RawMax − RawMin)) × (URV − LRV)
Raw values are module/configuration dependent. Always verify the exact analog-input manual, resolution and configured signal range.
Generated code is a practical Structured Text template. Exact data types, tags, function blocks and syntax can differ between PLC families, CPU models and engineering software.

Ladder Logic Concept

AI_Enable
SCALE
Raw → PV
PV_OK
PV_High
LIMIT / ALARM
High_Alarm

FBD Concept

Analog Input
RawInput
→
SCALE
RawMin / RawMax
→
LIMIT
LRV / URV
→
Process Value
This is a vendor-neutral visual concept. The actual Ladder/FBD instruction names depend on the PLC platform and software.

Signal Diagnostics / Fault Injection

Diagnostic interpretation
12.00 mA

Normal nominal loop current.

Values such as 3.6 mA or 22 mA are commonly used in diagnostics, but their exact meaning is transmitter/protocol/configuration dependent. Do not treat these thresholds as universal alarm rules.

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:

CurrentSpanTypical value
4 mA0%Lower Range Value (LRV)
8 mA25%25% of span
12 mA50%50% of span
16 mA75%75% of span
20 mA100%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:

PV = LRV + ((mA − 4) / 16) × (URV − LRV)

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.

PV = 0 + ((14 − 4) / 16) × (10 − 0)
PV = 6.25 bar

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:

% Span = ((mA − 4) / 16) × 100

For example:

% Span = ((12 − 4) / 16) × 100 = 50%

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:

PV = ((16 − 4) / 16) × 16 = 12 bar

Temperature

For a −20 to 80 °C transmitter at 10 mA:

PV = −20 + ((10 − 4) / 16) × 100 = 17.5 °C

Flow

For a 0–1000 L/min flow transmitter at 18 mA:

PV = ((18 − 4) / 16) × 1000 = 875 L/min

Level

For a 0–5 m tank-level transmitter at 8 mA:

PV = ((8 − 4) / 16) × 5 = 1.25 m

Reverse 4–20 mA Calculation

Sometimes you know the desired engineering value and need to calculate the corresponding current.

mA = 4 + ((PV − LRV) / (URV − LRV)) × 16

For a 0–10 bar transmitter, the current corresponding to 7.5 bar is:

mA = 4 + ((7.5 − 0) / 10) × 16 = 16 mA
Practical use: Reverse scaling is useful when testing analog inputs, commissioning transmitters and generating test points with a loop calibrator.

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:

PV = LRV + ((Raw − RawMin) / (RawMax − RawMin)) × (URV − LRV)

The simulator includes several example raw-value ranges:

ExampleRaw rangeImportant note
Siemens example0…27648Module/configuration dependent
Rockwell example−32768…32767Module/configuration dependent
Schneider example4000…20000Module/configuration dependent
Generic 12-bit0…4095Resolution example
Generic 16-bit0…65535Resolution example
Important: These presets are examples, not universal rules. Always verify the exact raw representation in the documentation for your analog input module.

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:

  1. Verify the transmitter LRV and URV.
  2. Check the 24 VDC loop power.
  3. Check wiring and polarity.
  4. Measure the actual loop current with a calibrated meter.
  5. Verify the PLC analog-channel configuration.
  6. Read the raw input value.
  7. Verify the scaling formula.
  8. 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.

CurrentPossible diagnostic situation
0 mAPossible open circuit, power loss, wiring problem or device fault.
3.6 mABelow the nominal live-zero point; may be used by some devices for diagnostics.
4–20 mANominal measurement range.
22 mAAbove nominal range; some devices use over-range or diagnostic signaling.
24 mAHigh-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

CalculationFormula
mA → Engineering ValuePV = LRV + ((mA − 4) / 16) × (URV − LRV)
Engineering Value → mAmA = 4 + ((PV − LRV) / (URV − LRV)) × 16
mA → % Span% = ((mA − 4) / 16) × 100
Raw → Engineering ValuePV = LRV + ((Raw − RawMin) / (RawMax − RawMin)) × (URV − LRV)

Frequently Asked Questions

What does 12 mA mean?

12 mA represents 50% of the nominal 4–20 mA span.

What is the 4–20 mA scaling formula?

PV = LRV + ((mA − 4) / 16) × (URV − LRV).

Can this calculator be used for pressure, temperature and flow?

Yes. Enter the correct LRV, URV and engineering unit.

Are PLC raw values universal?

No. They depend on the analog input hardware and configuration.

Can I calculate PLC raw scaling?

Yes. Use the PLC Raw Scaling tab and enter the correct RawMin and RawMax values for your module.

Can the simulator generate PLC code?

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.

Post a Comment

0 Comments