IMDHMIControls LibraryShop main store

Explainer

Why S7-200 SMART analog inputs fluctuate until 0V is bonded

Controllers and I/O Published 5 min read

Short answer

The analog negative terminals had no defined reference to the signal source, so common-mode wander reached the converter; a PE bond under 1 ohm does not help because PE is the safety path, not the analog return. Wiring the power source's signal common directly to AI0-, AI1- and AI2- steadied the readings, and a module firmware update under Micro/WIN SMART v2.8.2.1 changed nothing because the reference is copper, not code.

On this page
  1. The input measures a difference, not a voltage to earth
  2. Why a good PE bond leaves the reading floating
  3. Where the wander comes from
  4. Why new module firmware changed nothing
  5. Prove it with a current source before you bond
  6. A worked example with numbers
  7. One bond for all three terminals, or one per loop
  8. Wire the bond and keep PE for safety
  9. Questions asked

An S7-200 SMART analog input that wanders while the protective earth measures under 1 ohm is not short of earth; it is short of a signal reference. The channel digitizes the difference between AI+ and AI-, and with nothing tying the signal source's 0V to the AI- terminal, that difference rides on a common-mode voltage set by stray leakage, so the converted value drifts with it. Wiring that source common directly to AI0-, AI1- and AI2- fixes the fluctuation because it gives the measurement loop the return path it never had. Firmware cannot create that path, which is why a module firmware update under Micro/WIN SMART v2.8.2.1 changed nothing in the reported installation.

The input measures a difference, not a voltage to earth #

Every channel is a differential measurement: the converter sees the potential of AI+ relative to AI- and turns that difference into counts. What both terminals do together, relative to the module's own reference, is the common-mode voltage, and the input stage tolerates it only inside a limited range. Ground-potential differences between source and panel, the transmitter's own offset, and noise coupled onto the loop all add into that common point before conversion; the chain behind the terminal block is covered in how PLC analog input and output modules convert signals.

The AI- terminal is therefore the reference the converter actually uses. Analog signal commons are not tied hard to PE inside a module, because earth carries noise and fault current, and a signal return bonded to it would measure both. That design is correct, and it is exactly why the terminal depends on your wiring for a defined path.

Why a good PE bond leaves the reading floating #

PE has one job: carry fault current long enough to trip the protection. Verifying it under 1 ohm proves the panel is safe; it says nothing about the analog loop, because no measurement current is meant to flow in PE. In the reported case the earth was good, the power source checked out, and the readings still moved. The missing path was between the source's common terminal and the module's AI- terminal: with no conductor there, the only coupling was stray capacitance and leakage, and the common-mode point drifted with whatever the environment induced.

Where the wander comes from #

A floating common does not sit still. The transmitter's output stage references its current to its own signal common; the module's converter references its measurement to AI-; with no bond between them, the potential between the two is whatever leakage currents establish. Switched loads nearby, drives, and slow shifts of ground potential between panel and field all push that point around. The input stage rejects common-mode movement only while it stays inside its range, and once it wanders far enough, part of it appears as a wandering differential reading, which is the symptom you watch in the program.

Why new module firmware changed nothing #

Firmware controls sampling, filtering and scaling; it cannot create copper. The reported installation updated the module firmware under Micro/WIN SMART v2.8.2.1 and the fluctuation stayed, because the missing return path is on the wiring side of the terminal block. Decision: for this symptom, leave the firmware alone and go to the panel. Firmware earns a second look only after a bonded, stable current source still reads badly at the input.

Prove it with a current source before you bond #

A two-connection bench test separates the module from the field loop:

  1. Disconnect the field transmitter and drive the channel from a stable calibrator set to mid-span, for example 12.00 mA, with the calibrator's negative left unconnected to the module.
  2. Watch the raw value for several minutes. Wander at this stage is the reference path, not the transmitter.
  3. Bond the calibrator's negative to that channel's AI- terminal and watch again. A reading that settles confirms the floating common.

The analog input filter in the module's configuration, downloaded from the programming software, is the other probe, and its result sorts fast coupled noise from a wandering reference.

A worked example with numbers #

Take illustrative readings from a channel scaled over a 4.00 to 20.00 mA span, 16.00 mA wide. With the calibrator at 12.00 mA, the expected point is (12.00 − 4.00) / 16.00 × 100 = 50.0 %, half scale.

Unbonded, the scaled reading wanders between the equivalents of 11.58 and 12.42 mA. That is 12.42 − 11.58 = 0.84 mA peak to peak, and 0.84 / 16.00 × 100 = 5.25 % of span, easily enough to trip alarm deadbands and upset a control loop.

With the calibrator's 0V bonded to AI0-, the same input settles within ±0.02 mA of the setpoint: 0.04 mA peak to peak, or 0.25 % of span. The bond shrank the wander by 5.25 / 0.25 = 21 times, and the residual is the bench setup's own noise. Decision: the input, its converter and its firmware are healthy; the fault was the absent reference in the field loop, and the production fix is the same bond with the transmitter reconnected.

One bond for all three terminals, or one per loop #

The reported fix tied all three AI- terminals to one source 0V and it worked, which fits channels that share a single analog reference inside the module; there, one bond is the complete fix. Settle two points before copying it:

  • If a module's channels are isolated from one another, each loop needs its own common-to-AI- bond. Tying isolated channels to one shared common rebuilds the very reference the isolation was bought to remove.
  • Give unused channels the termination the S7-200 SMART system manual specifies for them. On a shared-reference module an unterminated input is one more floating conductor attached to the same reference as the live channels.

Wire the bond and keep PE for safety #

The bond is one insulated conductor from the signal power source's common terminal to the AI- terminal or terminals, run with the signal leads. It is a signal reference, not a protective conductor: PE stays connected exactly as it was and carries fault current only. If adding the bond makes the reading step or drift, the source common is already earthed somewhere else and loop current is flowing through your new conductor; break that loop with an isolator, as covered in fixing a 4-20 mA output ground fault with a signal isolator, rather than by removing the bond. Bond the signal common, keep PE for faults, and reserve firmware and replacement for the one case the bonded bench test still fails.

Questions asked

Can the 0V to AI- bond run through the PE terminal instead of a separate wire?

No. PE is bonded to earth and carries fault current, so using it as an analog return puts earth noise and any earth-potential difference straight into the measurement. The reported fix used a direct conductor from the source's 0V terminal. A cable shield is a third, separate conductor: connect it to earth at one end only, and never as the signal return.

Will the strongest input filter setting cure the fluctuation?

Only its fast part. The filter averages successive samples, so noise in the kilohertz smooths out, but a common reference wandering over seconds lies inside the filter band and passes through untouched. A slow drift that no filter setting holds is the signature of a floating AI- reference; the bond, not the filter, is the fix for that component.

When is the analog module itself defective?

Only when a stable calibrator with its signal common bonded to the AI- terminal still produces a wandering reading; then the converter or its supply is suspect and a swap is justified. In the reported installations the firmware update changed nothing and the bond fixed everything, so the modules were healthy. Replacing hardware before the bonded bench test is steady just moves a wiring fault onto a new module.

Does a floating reference also explain a reading pegged at the maximum?

No. A constant value at the top of the count range is a different fault: overrange or a broken loop drives the input to its limit, which the module reports as a fault value rather than a measurement. The symptom here is movement around a plausible value while the loop is healthy. A fixed maximum points to the signal path, meaning the transmitter, the wiring or the loop supply, not the reference bond.

Keep reading

  • Troubleshooting

    Troubleshooting non-linear 4-20 mA readings on an S7-1200 analog input

    A 4-20 mA loop is linear by construction, so counts swinging between 10 and 30246 mean the current at the terminal is not what the sensor LCD shows. On the SM 1231, 27648 counts is the top of the 4-20 mA range and 30246 decodes to 21.5 mA over-range fault current. Check the loop with a series meter, split sensor from module with a calibrator, and anchor NORM_X to 0 and 27648.

    Controllers and I/O

  • Selection guide

    Which analog inputs an S7-1200 water monitoring system needs

    An S7-1200 CPU carries only two onboard analog inputs, both voltage-type, so a water monitoring system with four to six analog sensors needs SM 1231 signal modules sized one channel per transmitter: current-range channels for loop-powered instruments, voltage channels for the rest, 12-bit on voltage and 11-bit on current. The data leaves over the built-in PROFINET port through the web server's CSV pages, WinCC, or SIMATIC NET OPC - no Modbus or PROFIBUS unless a sensor itself speaks one.

    Controllers and I/O

  • Troubleshooting

    Why an S7-1200 analog input shows 32767 on wire break

    With no transmitter connected, a 4-20 mA channel on an S7-1200 SM 1231 analog input carries less than 1.185 mA, and the module substitutes 32767 (hex 0x7FFF) in the input word instead of zero. The same word reports overflow above 22.81 mA, so measure the channel current to decide which fault you have. Below the wire-break threshold, repair the loop; above the overflow threshold, fix the over-current source.

    Controllers and I/O