IMDTouchKnowledge BaseShop main store

Troubleshooting

Why one WinCC flexible trend pen shows hash marks

HMI and touchscreens Published 4 min read By IMDTouch engineering team

Short answer

Hash marks in one WinCC flexible trend pen are a per-tag failure, not a connection fault: the runtime has no value it can resolve or represent for that tag. Check, in order, the PLC value against the tag data type, the data block download, the tag address and length, and the acquisition mode. A tag whose start plus length runs past the end of its data block, or whose value exceeds the data type range, draws the marks while every other tag keeps updating.

On this page
  1. What the hash marks tell you
  2. Check the four causes in this order
  3. Worked example: a tag that runs past the end of its block
  4. The decision for each case
  5. Questions asked

When a WinCC flexible trend draws #### in one pen while I/O fields on the same PLC connection keep updating, communication is not your problem. The marks are the placeholder the runtime draws for a tag it cannot resolve or represent: the value is missing, unreadable, or outside the range the tag's data type can hold. Four causes cover nearly every case: a PLC value past the data type limit, a data block that is not loaded or is too short, an address that no longer matches the CPU program, and a trend tag without cyclic acquisition. Work the checks below in order; each one ends in a pass or a fix.

What the hash marks tell you #

The marks are per tag, not per connection. A trend pen logs one HMI tag, and when the runtime has no numeric value for that tag at a sample point it draws the marks in that pen only. That is why a panel can run cleanly for months and then break one pen after a PLC edit: nothing on the link changed, the memory behind one address did.

Two look-alikes are different faults. Marks that appear with no PLC attached at all are the simulation case, covered in Why a simulated HMI shows hash marks, not PLC values. And #### in a trend is not the line hash marks that draw at an old position after a screen change, which is a drawing fault with its own cause and fix.

Check the four causes in this order #

  1. Watch the live value in the PLC. Go online with the engineering tool and monitor the exact variable behind the pen's tag. Siemens' tag documentation states the rule directly: the data type you assign fixes the value range the tag can hold. A 16-bit Int stops at 32,767, so a program change that pushes the variable to 40,000 leaves the runtime nothing to display. Match the tag data type to the PLC variable, or correct the logic that writes the value. A type mismatch can also show a plausible wrong number instead of marks; that variant is covered in Why an HMI writes the wrong PLC value above 9.

  2. Confirm the data block is loaded. A tag that points into a block the CPU no longer holds returns no value. This follows a download that re-created, renumbered, or skipped the block while the HMI project kept the old address.

  3. Check that the address fits the block. Start offset plus tag length must stay inside the block's current length. If it runs past the end, the CPU refuses the read and the pen has nothing to log; the worked example below shows the arithmetic.

  4. Set cyclic acquisition on the trend tag. In the tag's properties, the acquisition mode decides when the runtime reads it. A tag read only on use or on demand leaves the pen nothing at the sample points. Set the cyclic continuous option: the mode exists to keep a current value available, which is exactly what a trend needs.

Worked example: a tag that runs past the end of its block #

In an example layout, a motor temperature lives in DB10 as a REAL, and the HMI tag reads 4 bytes from offset 28. During a rework the block is shortened to 30 bytes and downloaded, so its offsets run from 0 to 29. The tag needs offsets 28 through 31: 28 + 4 = 32, two bytes past the last one. The CPU refuses the read, the runtime has no value, and the pen draws ####. Every other tag still lands inside the block, so the other pens keep drawing and the connection looks healthy, which is the exact symptom the panel shows.

Two fixes, either one closes it. Move the tag to offset 26, where 26 + 4 = 30 lands on the block's last byte, or lengthen the block and download it in full. One safety point belongs here: a data block download reinitializes that block's values in the CPU, so download at a planned stop, never while the machine is producing.

The decision for each case #

  • Value outside the type range: change the tag data type to match the PLC variable, or fix the logic that writes it. The pen recovers at the next sample once a legal value arrives.
  • Block not loaded or renumbered: download the complete block to the CPU, or correct the tag address to the block's current number and offset.
  • Address past the end of the block: move the start offset so start plus length fits, or lengthen the block and download it fully, at a planned stop.
  • Acquisition not cyclic: set cyclic continuous on the tag; the pen fills in from the next sample onward.

If all four checks pass and the pen still draws ####, the tag configuration is sound and the fault sits above it. Watch whether other tags drop at the same moment and treat it as a connection fault, not a trend fault.

Questions asked

Do the hash marks ever mean the PLC connection is down?

Not on their own. A failed connection stops every tag on that link at once, so all pens and fields lose their values together and the panel reports a connection fault. Hash marks in one pen while other fields on the same connection keep updating isolate the problem to a single tag whose value is unreadable or out of range. Check the connection only after the four tag-level checks have passed.

What value range does an Int tag cover?

A 16-bit signed Int covers -32,768 to 32,767. If the CPU writes 40,000 into the variable the tag points at, no value inside the tag's range exists to display and the trend draws the marks. Match the tag data type to the PLC variable: DInt for whole numbers up to about 2.1 billion, Real where decimals or larger magnitudes are needed, and re-check the tag after any program change that moves a setpoint.

Can the trend's value-axis limits cause the marks?

No. Axis limits only clip the drawing: a value above the upper limit runs along the top edge, a value below the lower limit along the bottom edge. The marks come from the tag itself, from a refused address, a missing data block, or a value outside the data type range. Widen the axis for readability, but treat the scale as cosmetics, never as the fix.

Why did the trend run for months before the marks appeared?

Because the fault is a mismatch, not a wear-out. The HMI address never changed; the CPU memory behind it did. When a data block is recompiled, shortened, renumbered, or skipped in a download, the first read that crosses the new end of the block or lands on a changed layout fails, and the pen has no value to log. Download the complete block, then verify the tag address against the new offsets.

Keep reading

  • Troubleshooting

    WinCC Runtime Advanced shows hash marks and a recipe license warning

    The recipe message and the hash-mark values are two independent faults. A correctly matched WinCC Recipes + Logging for Runtime Advanced key transferred to the IPC clears the license warning; the hash marks remain until the output field width and format fit the tag value or the acquisition fault is repaired. Fix them in that order.

    HMI and touchscreens

  • Troubleshooting

    Why a WinCC Flexible data log trigger bit writes zero values

    A zero-filled values column in a WinCC Flexible data log proves the TXT storage ran, not that Tag_2 was acquired. Fix the Runtime interface assignment so it attaches to PLCSIM, prove that MD500 tracks a known Real value online, then drive logging from the Change value event on Tag_1 instead of High and Low limit events, calling StartLogging on 1 and StopLogging on 0.

    HMI and touchscreens

  • Explainer

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

    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.

    HMI and touchscreens

Why the PanelView passthrough checkbox is missing