Troubleshooting
Why an S7-1200 analog input shows 32767 on wire break
Short answer
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.
On this page
An S7-1200 analog input that reads 32767 (hex 0x7FFF) with no transmitter connected is neither broken nor misconfigured: that word is the substitute value the Siemens SM 1231 AI 8 (6ES7231-4HF32-0XB0) reports on its 4-20 mA range whenever the channel current falls below the 1.185 mA wire-break threshold. The same word also covers overflow above 22.81 mA, so the input word alone cannot tell a wire break from an over-current — a meter reading on the channel decides. Below you will find where the two thresholds come from, a check list that branches on the measured current, and the guard to put around your scaling logic so the substitute value never passes as a process number.
What the module reports and why #
The SM 1231 converts the measured channel current into a signed integer in the PLC process image, and how PLC analog input and output modules convert signals walks through that conversion chain. On the 4-20 mA range the conversion is linear across the nominal span: the live zero converts to 0 and the full scale to 27648. Outside that span the module does not extrapolate a value — it substitutes 32767, a word placed beyond every conversion result this range can produce.
Reporting 0 would be the trap, because 0 is a legitimate answer: a healthy transmitter resting exactly at its live zero converts to 0, and a dead loop reporting 0 would be indistinguishable from it. That is also why no device-configuration setting turns the substitution back into a measurement; the only cure is loop current inside the band again.
For this module on its current loop range, the specification divides the channel current into three regions:
| Channel current | Input word | Region |
|---|---|---|
| Below 1.185 mA | 32767 (0x7FFF) |
Wire break, including an unused channel |
| 1.185 mA to 22.81 mA | -4864 to 32511 | Valid conversion: underrange, nominal, overrange |
| Above 22.81 mA | 32767 (0x7FFF) |
Overflow |
The negative words in the middle row are valid conversions, not faults: a transmitter drawing less than its live zero still converts, down to the band floor.
Where the two thresholds come from #
The thresholds are not extra limits the module checks — they are the edges of the conversion band written in milliamps. Worked through:
- The nominal span of 16 mA covers 27648 counts, so one milliamp moves the word by 27648 / 16 mA = 1728 counts per mA.
- The band floor is -4864 counts: 4864 / 1728 = 2.815 mA below the live zero, and 4 mA - 2.815 mA = 1.185 mA.
- The band ceiling is 32511 counts: 32511 / 1728 = 18.81 mA above the live zero, and 4 mA + 18.81 mA = 22.81 mA.
Current outside those two edges has no conversion result, and the module answers with the substitute word — the same word at both ends, which is exactly why the meter, not the word, decides.
Checks that decide the branch #
Work down the list in order; the second check decides which branch you are on.
- Confirm the channel configuration. In the device configuration for the module, the channel must be set to current on the loop's live-zero-to-full-scale range, matching the wired loop. A channel set to a voltage range on a current loop will not produce the regions in the table above, so fix the configuration before interpreting any word. TIA also raises module-specific diagnostics on this hardware, and the troubleshooting notes for the SM 1231 AI 8 in TIA list those errors with their causes.
- Measure the channel current. Put a milliamp meter in series at the channel terminals or clamp the loop with a meter made for mA loops, and follow your plant's energized-work rules — never open a loop that feeds a safety interlock while the machine runs. A connected, healthy transmitter draws its live zero to full-scale current; the measured reading against the band edges is the whole decision.
- Branch on the measured current:
- Under the wire-break threshold: the open-wire branch. The channel is unused or the loop is dead — check the loop supply, transmitter power and polarity, conductor continuity, and the terminal the conductor actually landed on. Repair until the transmitter's live zero returns.
- Inside the conversion band but the word still reads 32767: you are reading the wrong word. Match the physical terminal to the configured channel address, compare a known working channel on the same module, and check the module's online diagnostics.
- Over the overflow threshold: the overflow branch. Something drives current above the conversion ceiling — verify the transmitter output and its wiring away from the channel and correct the cause before reconnecting.
- Watch the input word live. Open a monitor table on the channel and repair while watching it: the word leaves 32767 and enters the valid band as soon as the measured current does.
A connected transmitter that reads steadily but does not track the process linearly is a different fault; troubleshooting non-linear analog readings on an S7-1200 analog input covers that path.
Keep the substitute value out of the program #
Gate every use of the channel on a validity test of the raw word: accept it only when it sits inside the conversion band shown in the table above, and treat the substitute word as invalid data, never as a high process value. Do not clamp it to the top of the engineering range — that turns a disconnected transmitter into an apparent maximum and drives alarms, totals, and PID output in the wrong direction. Do not test validity with a single 'word below zero' comparison either, because valid underrange conversions are negative down to the band floor. On an invalid word, hold the last good value or force the application's sensor-fault state, and keep the channel out of PID loops, totalizers, and drive references until the word returns to the band. To raise the fault where an operator sees it, reporting a failed analog input channel to SCADA shows the path from fault bit to alarm.
The decision for each case #
- Substitute word, current under the wire-break threshold: wire break or an intentionally spare channel. Repair the loop — supply, continuity, polarity, terminals — until live zero returns; a spare channel stays open with its word blocked as invalid in the program.
- Substitute word, current over the overflow threshold: overflow. Find and fix the over-current at the transmitter or in the wiring, reconnect, and re-check the word.
- Substitute word, current inside the conversion band: you are reading the wrong channel. Correct the terminal-to-address mapping and re-check.
- Word inside the conversion band: a valid sample. Scale it behind the validity test and let the logic run.
Every number on this page is the specification for the SM 1231 AI 8 on its current loop range. Other ranges and other module families publish their own edges — carry the method, and take the milliamps from the data sheet of the module in your panel.
Questions asked
Does a voltage input on the same SM 1231 also read 32767 when open?
For the voltage ranges the module specification lists the same overflow band, 32512 to 32767, so an over-range voltage or a channel diagnostic lands on the same word. The low-current wire-break reading is specific to the 4-20 mA range, because only a current input sees loop current collapse when a conductor opens. A floating voltage input has no defined open-circuit value, so do not use voltage inputs for cable-fault detection.
Does switching off underflow and overflow detection stop the substitute value?
No. S7-1200 analog modules report 32767 or -32768 on a channel with a diagnostic error even when diagnostics are not enabled in the device configuration, so that setting never restores a conversion result. It only controls whether the fault is raised as a diagnostic event. The word becomes a measurement again only when the loop current returns to the conversion band.
What does a raw value between -4864 and -1 mean?
That band is underrange, not a fault: the transmitter still draws loop current, but below its live zero and above the floor where the module switches to the wire-break word. Expect a weak loop, a transmitter driven under its span, or a genuine process condition below live zero. Scale it only if your application accepts sub-live-zero process values.
What if the input word is 0x8000 instead of 32767?
Hex 0x8000 is decimal -32768, the companion substitute the module can report for a channel with a diagnostic error. Treat it exactly like the positive substitute word: invalid data, not a process value. Open the online and diagnostics view for the module in the engineering software to see which channel error produced it, then clear the wiring or configuration cause.