IMDHMIControls LibraryShop main store

Explainer

S7-1200 analog input full scale: why the data word tops at 27648

Controllers and I/O Published 7 min read By IMDHMI controls team

Short answer

An S7-1200 analog input reports its rated range as the data word 0 to 27648 for current and -27648 to +27648 for voltage, per the analog value representation table in the S7-1200 system manual. The word keeps counting to 32511 before saturating, and the 25 to 50 °C figure on thermocouple modules is the internal cold-junction sensor, not the measurement range.

On this page
  1. Where the full-scale word comes from
  2. What the word reads for each signal type
  3. Scaling the word in the program
  4. Worked example: scaling a live-zero transmitter to 0 to 10 bar
  5. What the accuracy lets you verify
  6. The 25 to 50 °C line is the cold-junction sensor
  7. Filter the fault codes before scaling
  8. Questions asked

The maximum and minimum of the data word live in the analog value representation table of the S7-1200 system manual, not in the product sheet: current channels report their rated range as the integer word 0 to 27,648, voltage channels report -27,648 to +27,648, and nothing else ever appears as a measurement. The word is allowed to run past full scale: it stays proportional through an overrange zone that ends at 32,511 and then saturates, so the 16-bit maximum, 32,767, is a fault code rather than a reading. That is the whole answer for an SM 1231 input module such as the 6ES7231-4HD32-0XB0. The 25 to 50 °C line in the thermocouple module's technical data is a different animal entirely: it describes the internal cold-junction-compensation sensor, not the measurement range. The sections below give the table itself, the codes around it, the scaling math with a worked example, and the thermocouple clarification.

Where the full-scale word comes from #

The table is named analog value representation and it sits in the part of the S7-1200 system manual that covers processing of analog values. It defines one fixed integer scale per measurement type: every current range maps its rated span to 0 through 27,648 counts, and every voltage range maps its rated span to -27,648 through +27,648. The module reports only integers on that scale, never engineering units, and the program cannot widen it. What you select is the electrical range behind the word, which is the next section's subject.

The word is a signed 16-bit integer, so in principle it could reach 32,767. That space above full scale is reserved on purpose. Codes between the rated-range word and 32,511 are overrange: the input is above 100 percent of range and the module keeps reporting proportionally, so you can see how far over the signal has gone. Past that limit the module stops tracking the input and reports the overflow code 32,767. Bipolar ranges mirror the same structure on the negative side, ending at -32,512. The rated-range number itself is not arbitrary: multiply 27 by 1,024 and you have it, a round figure on the module's binary scale. The same convention runs across the SIMATIC analog families, and why an S7-300 analog input reads 0 to 27648 counts walks the identical table on that controller.

What the word reads for each signal type #

The measurement type set per channel in TIA Portal's device configuration selects the electrical range; the integer scale behind the word does not move.

Channel measurement type Rated electrical range Data word across the rated range
Voltage, bipolar (±10 V, ±5 V, ±2.5 V) -10 V to +10 V, or the smaller spans -27,648 to +27,648
Current 0 to 20 mA 0 to 27,648
Transmitter with a live zero on a current channel live zero to full-scale current about 5,530 at live zero, full-scale word at span top

The bottom row is the one that catches people: the SM 1231 current type spans the unipolar current range shown above, so a transmitter with a live zero is read on that range and its live zero sits a fifth of the way up the word. The live-zero offset belongs to your program, not to the channel. The conversion that produces the word, and the matching output direction, are covered in how PLC analog input and output modules convert signals.

Scaling the word in the program #

TIA Portal ships two conversion instructions built for exactly this job: NORM_X and SCALE_X. NORM_X takes the raw word plus MIN and MAX and returns a Real between 0.0 and 1.0; SCALE_X takes that Real plus your engineering MIN and MAX and returns bar, degrees or whatever unit the transmitter speaks. For a current channel MIN is 0 and MAX is the full-scale word. For a transmitter with a live zero, set MIN to the live-zero word from the table above and the offset is handled in one place instead of being scattered through the logic.

Two details bite people here. The instructions work in Real arithmetic, so if a gauge shows a whole number where you expect decimals, the tag is being read as an integer somewhere downstream, which is exactly the symptom the NORM_X and SCALE_X decimal display fix page covers. The same pair runs in reverse for analog outputs, SCALE_X from engineering units back to the output word. And if you meet this task on a controller without those blocks, the offset arithmetic is identical: fixing live-zero scaling on a Quantum AVI030 analog input applies the same correction on a different platform.

Worked example: scaling a live-zero transmitter to 0 to 10 bar #

The module carries no transmitter data, so this worked example uses a typical loop. Inputs:

  • Transmitter: 0 to 10 bar span with a live-zero current output, 4 mA at zero pressure and span current at 10 bar (example case).
  • Channel: current type, 0 to 20 mA rated range, set in the device configuration.
  • Rated-range mapping: the rated current span equals the full-scale data word, F = 27,648 counts, from the analog value representation table.
  • Test current: 12.000 mA injected from a loop calibrator.

Rule in words: counts are proportional to current across the rated range, so live zero sits at one fifth of the full-scale word, and pressure equals the counts above live zero divided by the span counts, times 10 bar.

Arithmetic:

  • Live-zero word: F × 4 ÷ 20 = 5,529.6, so 5,530 counts.
  • Span word: F − 5,530 = 22,118 counts, covering 16 mA.
  • Expected raw word at the test point: F × 12 ÷ 20 = 16,588.8, so about 16,589 counts.
  • Pressure at that word: (16,589 − 5,530) ÷ 22,118 × 10 bar = 11,059 ÷ 22,118 × 10 ≈ 5.0 bar, which matches the transmitter's own curve: (12 − 4) ÷ 16 × 10 bar = 5.0 bar.

Result: a healthy loop reads about 16,589 counts at the test point and scales to 5.0 bar.

Decision: configure NORM_X with MIN at 5,530 counts and MAX at the full-scale word, then SCALE_X from 0.0 to 10.0 bar. If you skip the offset and scale the whole word straight to 0 to 10 bar, live zero displays 2.0 bar on an empty line and the mid-span point displays 6.0 bar, so a steady 2 bar at true zero is the fingerprint of a missing offset. Words at or beyond the overrange limit belong in the alarm path, not the scaling math.

What the accuracy lets you verify #

SM 1231 analog input specifications state accuracy as ±0.1 % of full scale at 25 °C and ±0.2 % across -20 to +60 °C. On the rated current range that is ±20 µA, about ±28 counts, so at the worked example's test point the raw word passes anywhere from 16,561 to 16,617 counts. Put the calibrator in the loop, go online, and watch the raw word: inside that band, wiring and configuration are proven and any remaining error lives in the scaling constants; outside it, chase the loop before you touch the program.

The 25 to 50 °C line is the cold-junction sensor #

On thermocouple modules that line belongs to the internal cold-junction-compensation sensor. A thermocouple reading reflects the difference between the measuring junction and the connection at the module, so the module measures its own connector temperature and subtracts that contribution with 0 °C as the reference. The 25 to 50 °C figure in the technical data is the operating window of that internal sensor: neither the process range nor a limit on the channel. The channel's span comes from the thermocouple type selected in the device configuration; a Type K channel spans roughly -270 to +1,372 °C, and every type has its own row in the same manual. Decision: when a temperature figure on a thermocouple module looks impossibly narrow, check whether it belongs to the compensation sensor before treating it as a measurement limit.

Filter the fault codes before scaling #

The conversion instructions are linear, so a fault code driven through them comes out as a plausible-looking engineering value. Guard the raw word first. The valid window runs from 0 up to the overrange limit on a current channel, plus the negative mirror on bipolar ranges; anything outside it is a diagnostic, not a measurement. Two codes are worth memorizing: 32,511, where the still-proportional overrange zone ends, and 32,767, the overflow code that means the module has stopped tracking the input — a word pinned there while the process sits steady is a wiring or module fault. Decision: run the scaling math only on words inside the valid window and send everything else to the alarm path; one comparison in front of NORM_X does it.

Questions asked

Why does the data word stop at 27648 instead of 32767?

Because the space above the rated-range word is reserved for diagnostics. The gap to the 16-bit maximum is 5,119 counts, and the module spends it on overrange: the reading stays proportional up to 117.6 percent of the rated span, then saturates at the overflow code. That headroom lets your program distinguish a genuine full-scale measurement from an input driven above range.

What does a raw word of zero mean on a 4-20 mA input?

Zero counts means no loop current, not zero process value. A 4-20 mA transmitter's live zero is 4 mA, about 5,530 counts on the 0 to 20 mA rated range, so a healthy idle loop reads well above zero. If the word sits near zero, check for an open circuit, a missing loop supply, or terminals wired to the wrong channel before touching the scaling.

Do other SIMATIC controllers use the same 27648 full-scale word?

Yes. The analog value representation table, with the same rated-range word and the same overrange and overflow codes, is shared across the SIMATIC analog families; the S7-1500 manual prints the equivalent table and older controllers behave the same way. Measurement types, accuracy and diagnostics still vary by module and firmware, so take the numbers from the manual that matches your exact article number.

Where is the analog value representation table in the manual?

In the S7-1200 system manual, under analog value representation in the part covering processing of analog values. Page numbers move between editions and languages, so search the manual text for the table's name rather than a page reference. The SM 1231 technical data pages then give the accuracy and diagnostics specific to your article number.

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

  • 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

  • How-to

    Calculating SCL rate and offset for a 4-20 mA MicroLogix input

    Rate 40 and Offset -25 put a 1762-IF4 live-zero current input on a 0-100% scale: SCL computes destination = (rate x source) + offset, with Rate entered as an integer divided by 10,000, so the slope 100 / (31207 - 6242) = 0.0040 becomes 40 and the offset 0 - (0.0040 x 6242) becomes -25. Check for 0, 50 and 100 at zero, mid-span and full scale; for new rungs, SCP with 6242, 31207, 0, 100 hits both endpoints exactly.

    Controllers and I/O