The short answer
Raw Counts
An analog input module converts the field signal to an integer, the raw count, and that integer is what the program receives. The span of counts and where the signal limits fall in it depend on the module and its configuration: a 12-bit module gives 0 to 4,095, a 16-bit module something like 0 to 32,767, and some platforms use their own nominal ranges. Scaling turns counts into engineering units, and it is only right if the counts at 4 mA and 20 mA are the ones the module actually produces, which is what the module manual states.
Key points
- The count range is a property of the module and its configured input range, not of the signal.
- On a module configured for 4 to 20 mA the bottom of the range is 4 mA; on one configured for 0 to 20 mA it is 0 mA, and 4 mA lands a fifth of the way up.
- Under-range and over-range appear as counts beyond the nominal span, as clamped values, or as status bits, depending on the module.
- Twelve bits across 4 to 20 mA is about 0.004 mA per count; sixteen bits is sixteen times finer.
- Read the raw count online before scaling anything. It is the one number that cannot be argued with.
What the converter does
The analog to digital converter on an input module samples the voltage across its input resistor and expresses it as an integer. The number of bits in the converter sets how many distinct values it can produce: twelve bits gives 4,096, fourteen gives 16,384, sixteen gives 65,536. The module firmware maps that converter output onto a count range that the platform has standardized, and that count is what appears in the input image and in the tag.
The mapping is the part that varies. One platform presents a 4 to 20 mA signal as 0 to 32,767 with 4 mA at zero. Another presents 0 to 20 mA as 0 to 32,767, so 4 mA is at 6,553. A third uses a nominal range that ends at 27,648 with room above it for over-range. A fourth can be configured to deliver floating point engineering units directly, so the program never sees a count. None of these is wrong, and all of them break a scaling block written for one of the others.
| Convention | Counts at 4 mA | Counts at 20 mA | Where it is seen |
|---|---|---|---|
| 12-bit, 4 to 20 mA range | 0 | 4,095 | Older and smaller controllers |
| 12-bit, 0 to 20 mA range | 819 | 4,095 | Modules configured for the wider range |
| 16-bit signed, 4 to 20 mA range | 0 | 32,767 | Many modular platforms |
| 16-bit signed, 0 to 20 mA range | 6,553 | 32,767 | The same modules on the wider range |
| Nominal 27,648 with over-range | 0 | 27,648 | Platforms that reserve counts above nominal for over-range |
| Engineering units mode | n/a | n/a | The module scales in firmware and delivers a float |
What happens outside the range
A 4 to 20 mA transmitter signalling a fault drives the loop below 3.6 mA or above 21 mA, and a broken wire reads 0 mA. What the module does with a signal outside its nominal range is again a property of the module.
- Counts continue beyond the span
- The module reports a count below zero or above the nominal maximum, and the program can compare against thresholds. This is the most useful behavior, because 0 mA and 3.6 mA are distinguishable.
- Counts clamp at the limits
- Anything below 4 mA reads as the minimum count and anything above 20 mA as the maximum. A broken wire looks like an empty tank. Only the status bits distinguish them.
- Status bits
- Under-range, over-range, open wire, and channel fault bits in the module status words. These are the reliable indicators, and the program should read them rather than infer a fault from the count.
Resolution in the field
Across 16 mA of span, a 12-bit module resolves about 0.004 mA per count, which on a 0 to 20 foot level is about 0.005 feet, or a sixteenth of an inch. A 16-bit module resolves sixteen times finer. For a wet well level either is ample. For a flow total accumulated over a year, or a chemical dose in parts per million, the coarser resolution shows up as a steady error, and the finer module is worth its price. The analog resolution calculator on this site gives the engineering resolution for a given range and bit count.
Reading the count online
When a scaled value is wrong, the raw count settles the argument. Read the input tag online, with the transmitter driven to 4, 12, and 20 mA by a calibrator or by its own simulation mode, and note the counts. Those three numbers, against the module manual, say whether the module is doing what the scaling assumes. If the counts are right and the scaled value is wrong, the scaling is wrong. If the counts are wrong, the loop or the module is, and no scaling will fix it.
Frequently asked questions
- What is a raw count?
- The integer an analog input module produces from the field signal, before any scaling. Its range depends on the module and its configuration, and the module manual states where the signal limits fall in it.
- Why does my scaled value read wrong at the ends of the range but right in the middle?
- The scaling assumes the wrong counts at 4 mA or 20 mA, typically because the module range is 0 to 20 mA and the scaling was written for 4 to 20 mA, or the other way round. Read the raw count at 4 and 20 mA and correct the scaling to match.
- How do I tell a broken wire from a real zero?
- On a module that reports counts below the 4 mA point, a broken wire reads far below the minimum. On a module that clamps, only the under-range or open-wire status bit tells you. Use the status bits either way; they are what the module provides for the purpose.
- Should I use engineering units mode on the module?
- It moves the scaling from the program into the module configuration, which is cleaner and removes a place for error, at the cost of making the configuration part of the documentation. Either is fine; doing both, scaling in the module and again in the program, is the mistake.
Related topics
- Analog Scaling: Raw Counts to Engineering UnitsThe arithmetic that turns an analog card reading into feet, psi, or gallons per minute — plus the range mismatches that silently corrupt it.
- 4-20 mA Current LoopsWhy the industry standardized on current instead of voltage, how a two-wire loop is powered, what the live zero buys you, and how to read a loop with a meter.
- Signal ValidationCatching a failed analog input in logic before it runs a pump on a dead transmitter: range checks, module status bits, frozen-value detection, rate checks, and what the program does with a bad value.
- Engineering UnitsChoosing and documenting the units a tag carries: where the unit is decided, how it flows from transmitter range to controller scaling to screen and historian, the conventions used in water and wastewater, and the mismatches that put a wrong number on screen.
- PID Control for Pumps and ValvesWhat each term actually does, how to tune a loop on a real pump station, and the handful of mistakes that cause most of the oscillation people blame on tuning.
- Filtering Analog InputsHow to damp a noisy analog input in the controller without hiding a real process change: the first-order filter, the moving average, the median, where each belongs, and what never to filter.
Direct contact
Have a controls question?
Reach Eric Sullivan directly about anything on this site, a controls or automation topic, or one of his personal projects.