All tools
PLC analog scaling and 4 to 20 mA calculator
Convert raw values such as 27648 from 4 to 20 mA or 0 to 10 V inputs to bar, °C or percent and back
Calculator
Siemens input configured for 4 to 20 mA: 4 mA maps to raw 0, 20 mA to raw 27648
bar
bar
For example bar, °C, l/min, or %
Without clamping, values are extrapolated linearly. When clamped, the unclamped value stays visible for comparison
Scaled value: 5 bar
Result
Scaled value
5 bar
Range status
Within nominal range
Checks the scaling range only, not hardware diagnostics
Details
- Normalized position
- 50 %
- Input value
- 13,824
Formulas
The calculator scales PLC raw values linearly to engineering units and back. Set the endpoints and unit for your measuring range
Normalized: t = (raw − raw min) / (raw max − raw min)
Scaled: engineering = eng min + t × (eng max − eng min)
Inverse: raw = raw min + (engineering − eng min) × (raw max − raw min) / (eng max − eng min)
Assumptions and limitations
- Siemens input configured for 4 to 20 mA: 4 mA maps to raw 0, 20 mA to raw 27648
- Bipolar Siemens voltage ranges such as ±10 V typically use raw values from −27648 to 27648
- Values beyond the endpoints are extrapolated and marked below or above range. Select clamping to limit them
- Custom endpoints at 0% and 100% may descend. Siemens NORM_X and SCALE_X require MIN < MAX
- Hardware diagnostics such as wire break and overrange depend on the module and configuration. Follow the module manual
Sources
The formulas and conventions were checked against the following sources: