Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Scaling a 4–20 mA Loop Without the Offset Mistakes

A 4–20 mA current loop is still one of the most common ways to move a measurement from a field transmitter into a PLC, RTU, or SCADA system — and one of the easiest to scale incorrectly. The math itself is simple. The mistakes are subtle, and they hide in plain sight because the readings still look plausible. What 4–20 mA really means A 4–20 mA loop carries a measurement as a fraction of span: 4…

A 4-20 mA current loop remains a popular method for transmitting measurements from field transmitters to PLCs, RTUs, or SCADA systems. Scaling mistakes are subtle and often go unnoticed because the readings still appear plausible.

First and foremost, understand that 4 mA represents the live zero, not a zero reading. A 0 mA reading indicates a broken wire, dead transmitter, or lost power supply. This distinction is crucial before any scaling takes place.

The scaling formula for a transmitter with an LRV (lower range value) and an URV (upper range value) is: Engineering value = LRV + (mA - 4) / 16 × (URV - LRV). The 16 in the denominator represents the loop's span (20 mA - 4 mA). Every milliamp above the live zero equals one-sixteenth of the engineering span.

For example, consider a 0-150 psi pressure transmitter and 12 mA. The calculation would be: 0 + (12 - 4) / 16 × 150 = 75 psi. This represents half the loop span and engineering span, as expected.

Two common scaling errors exist. The first is treating the signal as 0-20 mA instead of a 16 mA span. Scaling 12 mA as a fraction of 20 mA leads to an incorrect value of 90 psi, which is 20% of the span. The error is noticeable at the live zero and worst when the reading is near zero. The second mistake occurs when scaling raw counts without removing the 4 mA offset. This results in every reading being shifted upward by the same amount, corrupting trend data and control decisions.

To scale values in reverse, use the formula: mA = 4 + (EU - LRV) / (URV - LRV) × 16. Verify the three critical points - 4 mA for LRV, 20 mA for URV, and 0 mA as a fault - before trusting any scaled values. Always confirm these points to ensure the accuracy of the entire loop.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Fine-tuning on rented GPUs: how to lose a host without losing your steps

GPU marketplaces like Vast.ai are a cheap way to fine-tune open models, as long as the data is not confidential: the host can see the machine while your job runs.

  • Separate checkpoint storage prevents loss during host failures
  • Comprehensive cost analysis highlights data transfer impact
  • Supervisor script automates host replacement and checkpoint restoration

Designing a Manga Translator Around One Shortcut: Hold Alt to See the Original

Most people who read raw Japanese, Korean, or Chinese comics end up with the same clumsy habit. You see a speech bubble you cannot parse, take a screenshot, switch to another tab, wait for the output…

  • Hold Alt key to toggle between translated and original panels instantly
  • Lazy loading reduces loading times and bandwidth for large chapters
  • Free web-based tool allows uploading single pages or entire folders

Email Deliverability Service: 4 Custom Domain Setup SPF/DKIM API Suppression Checks

Choose an email deliverability service by asking whether another engineer can reconstruct a report send from the evidence your application retains. TL;DR: API-only delivery with custom domain verification, DKIM, suppression management, and event polling suits a small B2B SaaS worker that can collect feedback on a schedule.

  • Custom domain setup with SPF/DKIM verification
  • API-only delivery with suppression management
  • Event polling for downstream feedback processing

I Left School After Year 7. Six Months Ago I Tried to Understand Math Without Assumptions—Here Is What Happened.

My name is Maria. My formal education stopped after Year 6 of primary school and Year 7 of secondary school, with no formal education after that. Six months ago, at the end of May, I had no intention of creating a Lean-verified unified theory of everything.

  • Maria left formal education after Year 7.
  • Developed Smithian Fold Theory with AI.
  • Theory validated zero-assumption math.

More from Wednesday 25 November →