IMDTouchKnowledge BaseShop main store

Explainer

Why the WinCC I/O field shows no Real or DINT format

HMI and touchscreens Published 6 min read By IMDTouch engineering team

Short answer

The I/O field has no Real or DINT choice because its Data format list only controls how a number is rendered, not how it is stored. Create the HMI tag with the data type Floating-point number 32-bit IEEE 754 (or Signed 32-bit value) at the S7 address, leave the field's Data format on Decimal, and give the Output format pattern a decimal point for REAL or none for DINT. A worked 0 to 100 °C FC105 example shows the arithmetic end to end.

On this page
  1. Why the format list stops at four entries
  2. Create the tag with the right data type
  3. Point the field at the tag and pick Decimal
  4. Worked example: a 0 to 100 °C tank level in DB10.DBD0
  5. What a wrong display points to
  6. The decision for each case
  7. Questions asked

An I/O field in WinCC will never offer Real or DINT, and it is not supposed to. The field's Data format setting only decides how a number is rendered - the choices are Decimal, Binary, Hex and String - while the data type is a property of the tag the field is bound to. So the fix sits one level up: create the HMI tag as Floating-point number 32-bit IEEE 754 (or Signed 32-bit value for DINT) at the S7 address, bind the field to it, set Data format to Decimal, and shape the digits with the Output format pattern - a decimal point in the pattern for REAL, none for DINT. Below are the exact settings for WinCC V7, TIA Portal and Unified, a worked example with FC105, and a fault table for the displays that still look wrong.

Why the format list stops at four entries #

The WinCC documentation lists four data formats for the input and output of values in an I/O field: numerical values are edited in binary, decimal or hexadecimal form, and String is the fourth. Each one is a notation, not a storage type. Decimal prints the value as decimal digits, Binary and Hex print its bit pattern, String treats it as text. What the value is - a 32-bit IEEE 754 float or a 32-bit signed integer - is decided by the tag. A tag with the data type Floating-point number 32-bit IEEE 754 has a length of four bytes, a sign, and a documented range of ±3.402823e+38; that is the S7 REAL. DINT corresponds to the Signed 32-bit value type. The runtime converts the tag's bits into decimal characters for display, which is why the field needs no Real entry of its own. Choosing Hex on a REAL tag shows the raw bit pattern, not an engineering value.

Create the tag with the right data type #

WinCC V7 and WinCC Professional. In Tag Management, under SIMATIC S7 PROTOCOL SUITE, open the Tags folder of your connection, right-click and choose New Tag. Name it, for example TankLevel; set the data type to Floating-point number 32-bit IEEE 754 for a REAL or Signed 32-bit value for a DINT; set the address to the S7 variable, for example DB10.DBD0 for a REAL and DB10.DBD8 for a DINT in the same block.

TIA Portal (Comfort Panels, RT Advanced). The same tag types sit in the HMI tags table of the HMI device, with the same DB10.DBD0 form of addressing over the configured connection.

WinCC Unified. The HMI tag carries the data type - Real or DInt - and the I/O field simply binds to that tag. Decimal places are configured directly through the object properties, and an integer tag that carries implied tenths can be shown with a decimal point using the Shift decimal places option under General in the Properties tab.

Point the field at the tag and pick Decimal #

  1. Drop an I/O field on the screen and open its properties.
  2. Under Output/Inputs, set Field type to I/O field.
  3. Bind the Output value to the tag you created (the same tag serves input when operators write the value).
  4. Set Data format to Decimal - for REAL and DINT alike.
  5. Set Output format to a pattern: 999999.9 for the REAL, 9999999 for the DINT.

In the pattern, each 9 is a digit position with leading zeros dropped, the point fixes where the decimal separator prints, and an s prefix reserves a sign position. A pattern without a point renders an integer, which is exactly what a DINT wants. WinCC Unified uses a different pattern vocabulary - its documentation defines an Integer style for decimal display with an optional sign and a digit count - but the decision is identical.

Output format Tag value Displayed
999999.9 12345.67 12345.7
9999.99 12345.678 12345.68
s9999.99 -12.345 -12.35
9999999 12345 12345
s9999999 -12345 -12345

For a writable field, the same pattern set as the Input format governs what the operator can type, and the entry is written back through the tag in the tag's own data type - the field never converts types. The pattern also accepts a group separator, which showing thousand separators in WinCC TIA Portal output fields works through for TIA Portal.

Worked example: a 0 to 100 °C tank level in DB10.DBD0 #

Inputs, from the scale-block call this article works with:

  • Raw input IN: the analog word at PIW512, unipolar, so x1 = 0 counts and x2 = 27648 counts at full scale.
  • LO_LIM = 0.0 °C and HI_LIM = 100.0 °C, with BIPOLAR = FALSE.
  • Test value IN = 13824 counts.
  • OUT is written to a REAL variable in data block DB10, at address DB10.DBD0.

The rule: FC105, called "SCALE", converts on a straight line between the raw endpoints and the engineering limits - OUT = LO_LIM + ((HI_LIM - LO_LIM) / (x2 - x1)) * (IN - x1). A bipolar call uses the negative and positive full-scale counts as endpoints instead.

CALL "SCALE"
  IN      := PIW512
  HI_LIM  := 1.000000e+002      // upper engineering limit
  LO_LIM  := 0.000000e+000      // lower engineering limit
  BIPOLAR := FALSE              // FALSE = unipolar
  RET_VAL := MW102
  OUT     := "Process_Data".TankLevel   // REAL at DB10.DBD0

OUT = 0.0 °C + ((100.0 °C - 0.0 °C) / 27648 counts) x 13824 counts
    = (100.0 / 27648) x 13824 °C
    = 50.0 °C

Counts cancel in the quotient, leaving °C; the test word is exactly half of full scale, so the result is exactly half the span. DB10.DBD0 now holds the scaled REAL, the floating-point tag reads it, and the field set to Decimal with the one-decimal pattern shows 50.0. Sweep the raw word through 0, 6912, 13824, 20736 and 27648 counts and the display must step through 0.0, 25.0, 50.0, 75.0 and 100.0.

Decision: keep the one-decimal pattern. It holds every value up to 999999.9, far above the top of this scale, so a wider pattern buys nothing. If the field disagrees with this arithmetic at the five test counts, the fault is in the tag's data type or address, never in the choice of Decimal - work the next table.

What a wrong display points to #

What the field shows Most likely cause What to change
0.0 whatever the PLC holds Tag declared with an integer data type at the REAL address Retype the tag as Floating-point number 32-bit IEEE 754
A huge integer where a small engineering value belongs The four REAL bytes read through an integer tag, or the byte offset points into the middle of the variable Match the tag type to the DB declaration and correct the offset
Value off by a factor of 256 or 65536 Offset shifted by one byte or one word Address the variable's first byte (the DBD, not a DBW inside it)
Negative value without its sign Pattern has no sign position Prefix the pattern with s
Field empty or flagged with bad quality Wrong DB number, connection down, or the driver not delivering that address Check tag quality and the connection in the driver diagnostics

One case sits outside this table: when the same REAL reads correctly over the S7 driver but is nonsense over a Modbus link, the two 16-bit words arrive in the wrong order, which displaying a PLC real value over Modbus on an HMI covers separately.

The decision for each case #

  • S7 REAL: tag data type Floating-point number 32-bit IEEE 754 (Real in Unified), addressed in the DB10.DBD0 style; field Data format Decimal; output pattern with a decimal point - one decimal place for a 0 to 100 scale.
  • S7 DINT: tag data type Signed 32-bit value (DInt in Unified); field Data format Decimal; output pattern with no decimal point, plus a sign position if the count can go negative.
  • A Unified integer tag carrying implied tenths: keep the integer type and use Shift decimal places instead of converting in the PLC.
  • Binary and Hex: maintenance screens only; an operator field is always Decimal.

Questions asked

The I/O field shows only hash marks instead of the number. What is wrong?

The output pattern is narrower than the value: the runtime fills the field with hash marks when the number does not fit. Widen the pattern, for example from three digit positions before the decimal point to six, and the value appears. This is a presentation limit only; the tag still carries the correct value, and alarms and archives read it unchanged.

The PLC monitor shows 12345.678 but the HMI shows 12345.68. Is the value being truncated?

No. The pattern only rounds what is printed; the tag and the PLC keep the full 32-bit value, and archives and trend curves read it unrounded. Two decimals on screen is a choice for the operator, not a limit on the data. Pick the pattern for readability and let logging use the raw tag.

How many digits of a 32-bit REAL are actually significant?

About seven significant decimal digits, which is what IEEE 754 single precision carries. A longer output pattern prints extra digits, but they are not meaningful, and two values that differ in the eighth digit can display identically. Keep patterns at the resolution the process needs, typically one or two decimals for engineering units.

Do I need a data block, or can the tag point at a memory address?

A data block is not required. Any four-byte area the S7 driver can read works, including the memory double word a scale block writes to. A data block is still the better home: the variable is declared and commented in the block, and an address like DB10.DBD8 can be found again years later, which a bare memory area does not give you.

Is Binary or Hex format ever useful on a REAL tag?

Yes, for verification. Hex renders the raw IEEE 754 bits, so you can compare the HMI display digit for digit with the PLC monitor switched to a hex display format and prove the four bytes arrived unchanged. Once the bytes match, any remaining display problem is in the pattern; a byte mismatch points at the address or the connection.

Keep reading

  • Explainer

    Why WinCC RT Professional V11 shows decimals for S7-1200 DTL tags

    WinCC RT Professional V11 SP2 has no I/O field format that interprets an S7-1200 DTL structure, so the field shows the raw byte values as decimals. Convert the DTL to one STRING[20] per timestamp in an SCL block and display that, or split it into six integer fields when the panel must lay out each part separately.

    HMI and touchscreens

  • Troubleshooting

    Why a WinCC Professional LREAL field shows 0.0

    A WinCC Professional I/O field that shows 0.0 while the PLC data block holds a correct LREAL is losing the value between controller and screen, usually at the HMI tag. Read the LREAL in a watch table, monitor the tag next, and check the field assignment and format last. If direct display still fails, keep the LREAL for processing and derive a separate REAL display tag, such as watt-hours divided by 1000 shown as kilowatt-hours.

    HMI and touchscreens

  • Troubleshooting

    Why WinCC Runtime Professional Shows No Data From PLCSIM

    The runtime window opening with static screens means the runtime process runs but its path to the simulated CPU does not. Point the access point in Set PG/PC Interface at PLCSIM or the matching TCP/IP route, compile the PC station, connect the TIA project to PLCSIM, and put the CPU in RUN before the runtime starts.

    HMI and touchscreens

Why HMI I/O remapping needs predefined PLC layouts