Convert raw PLC counts to engineering units in seconds. Pick your platform (Siemens, Allen-Bradley, Beckhoff, CODESYS), enter the signal range and EU range, and get the slope, offset and ready-to-paste PLC code — with NAMUR NE43 fault thresholds and a transfer-function chart.
Linear conversion between raw module counts and PSI, °C, bar, %, GPM — whatever your tag uses. Inverted (fail-safe) signals supported.
Nine standard signal types covered, with custom ranges for non-standard sensors and the unusual 1-5V live-zero loops.
Automatic fault (3.6 mA) and warning (3.8 mA / 20.5 mA / 21 mA) thresholds for broken-loop detection — visualised on the transfer-function chart.
See the exact m and b values plus the formula EU = m × raw + b. Resolution and counts-per-EU shown alongside.
Siemens SCL with NORM_X / SCALE_X, Allen-Bradley Structured Text, Beckhoff TwinCAT, CODESYS — paste straight into your project.
Browser-only, no signup, no server, no upload. Works offline once loaded. Share configurations with a copy-able URL.
Pick your PLC and the raw-count ranges fill in automatically: Siemens S7 (0–27648), Allen-Bradley ControlLogix (3277–16384 for 4-20mA), Beckhoff TwinCAT (0–32767), AB PLC-5/SLC-500 legacy, and a custom platform for anything else.
For 4-20mA loops the calculator computes the NAMUR NE43 fault (3.6 mA / 21 mA) and warning (3.8 mA / 20.5 mA) thresholds in raw counts and engineering units, and highlights the valid / warning / fault zones on the transfer-function chart.
Once the math is locked in, hit Copy or Download to get a ready-to-paste code block in your platform's language: Siemens SCL using NORM_X / SCALE_X, Allen-Bradley Structured Text with SCP-style scaling, Beckhoff function blocks, CODESYS — all with NAMUR fault handling stubbed in if enabled.
EU := (Raw - 3277) * (EUMax - EUMin) / (16384 - 3277) + EUMin;.Free. Generates PLC code. NAMUR NE43 built in. No signup.
Open Scaling Calculator