IMDTouchKnowledge BaseShop main store

Explainer

Why a Comfort Panel historical trend search is start date only

HMI and touchscreens Published 5 min read

Short answer

The Comfort Panel Trend View accepts one external Date/Time tag that sets where the historical window starts. The end of the window is always that start plus the configured time-axis length, so a true operator-entered start-and-end search needs segmented data logs or a PC runtime.

On this page
  1. Why can't the operator enter a start and end date in the Trend View?
  2. What does the external time tag actually do?
  3. How do you build a usable date search on the panel anyway?
  4. What does the long-term logging example change?
  5. When do you have to leave the panel runtime?
  6. What is the decision for each case?
  7. Questions asked

The built-in Comfort Panel Trend View takes exactly one external time tag, and that tag only sets where the historical window starts. The end of the window is always the start plus the configured time-axis length, so an operator can never enter both a start date and an end date; the window length is fixed in the project. That is a design boundary of the panel runtime, not a configuration mistake, and knowing it up front saves a day of dead-end searching.

Why can't the operator enter a start and end date in the Trend View? #

Because the historical Trend View exposes only a start input. You can wire one external tag of Date/Time type to the time axis, and writing a timestamp to it jumps the visible window to that moment. The width of the window comes from the configured time-axis length, and no property, script or system function lets the runtime change that width or set the end independently.

The reasoning is architectural. The Trend View on Comfort Panels is a fixed control: its source is a data log, its mode can be Online or History, and its time axis has a length and a base set at configuration time. The one dynamizable point is the start. Script access to the control does not exist either, so you cannot compute an end time and push it in from VB script or a screen event. On WinCC Runtime Advanced and Professional, custom controls extend the trend object; custom controls are not available on Comfort Panel firmware, so there is no add-on path on the panel itself.

What does the external time tag actually do? #

It moves the left edge of the window. In History mode the trend view reads its curve from the configured data log and shows a window in time; the tag wired to the time axis is the timestamp of the window start. The control then draws forward by the configured length. If that length is 24 hours, an operator who writes 2024-05-19 06:00:00 to the tag sees 06:00 on 19 May through 06:00 on 20 May, regardless of what end time they typed anywhere else.

This is why the date-range request from the panel thread cannot be met with the basic control: the second timestamp has nothing to attach to. You can step the start, you can change how far forward the window runs only by editing the project, and that is the whole vocabulary.

For the axis formatting question that operators hit next, once the window does display, the separate article on why a Comfort Panel trend axis shows points instead of time covers the time-axis display settings.

How do you build a usable date search on the panel anyway? #

Fix the window length and give the operator control of the start, in steps the workflow tolerates. Concretely:

  • Choose a window length that matches how people actually review the process, for example 24 hours, and set the time-axis length to that value in the trend properties.
  • Add a Date/Time input field bound to an HMI tag that feeds the external time tag of the trend view, so the operator types the day and hour they want.
  • Add previous and next buttons that subtract or add the window length to that tag, giving day-by-day paging through the archive.
  • Log the process values to a data log with a cyclic acquisition mode, sized for the retention you need, on an SD card, USB stick or network path.

An operator asking "show me process X from yesterday at 06:00" is served exactly: start 06:00, window one day. An operator asking "show me 06:00 to 09:00" gets the same screen with the wrong width, and no panel-side fix exists.

What does the long-term logging example change? #

It makes the day the unit of selection instead of the timestamp. Siemens publishes a long-term data archiving application for SIMATIC HMI panels (entry ID 109477071) that stores the process values in daily segments and adds a runtime screen where the user selects the time and date of the period to display. The trend view in its display screen specifies an external time for the x axis, which is the timestamp of the long-term archive segment to be shown. That gets you calendar-day search on the panel, which covers most audit requests, but the segment boundaries are fixed and the window length still comes from configuration.

The log segmentation behind that pattern is the same mechanism discussed in the article on Siemens HMI log file size limits and segmented circular logs.

When do you have to leave the panel runtime? #

When the requirement is genuinely two free timestamps, or when scripts must drive the window. The honest decision table:

Requirement Panel runtime answer
Jump to a start date, fixed window External Date/Time tag on the trend time axis
Calendar-day selection by an operator Long-term logging pattern with daily segments
Free start and end entered independently Not supported; move to a PC runtime
Script-driven window, custom trend control Not supported; custom controls exist only on Runtime Advanced and Professional

A PC runtime gives you the searchable historical control and the scripting; the panel runtime cannot be extended to it. If the migration decision has been made because the panel cannot carry the application, the hardware that runs that PC runtime at the machine is an industrial panel PC rather than the proprietary terminal.

What is the decision for each case? #

For start-date navigation with a fixed window, stay on the panel and wire the external time tag; that is fully supported. For day-at-a-time operator search, adopt the segmented long-term logging pattern. For a true start-and-end search, script control, or a custom trend control, the Comfort Panel runtime is the wrong platform; plan the application on WinCC Runtime Advanced or Professional from the start instead of discovering the boundary in commissioning.

Questions asked

Can a script change the trend window length at runtime on a Comfort Panel?

No. The panel runtime does not expose trend view properties to scripts, so neither VB script nor any user-defined function block can write the end of the window or dynamize it. The only runtime-writable input is the external tag wired to the start of the time axis. Changing the window length means changing the configured time-axis length in the project and re-downloading, or moving the start tag to step through the archive in fixed windows.

How does the long-term logging example choose a date on a Comfort Panel?

The published long-term data archiving sample for SIMATIC HMI panels splits the process values into daily segments and gives the operator a date selection screen. The operator picks the day, the screen loads that segment, and the window start lands on it.

What replaces a Comfort Panel when operators must search any date range?

Move the visualization to a PC runtime that exposes a searchable historical control: WinCC Runtime Advanced with an extended trend control, or WinCC Runtime Professional. A PC-based operator station also gives you the screen space and scripting that the panel firmware withholds. If the touch surface or the computer behind the runtime is what fails or ages, industrial panel PCs and touchscreen computers are the replacement path.

Keep reading

  • Explainer

    Why a Comfort Panel trend axis shows points instead of time

    A Comfort Panel trend plots point indices instead of clock time when its axis mode is Points >> F(x). Switch the trend view's axis mode to Time >> F(t) and the horizontal axis becomes time. WinCC RT cannot be installed on a Comfort Panel, so the fix is a setting, not a runtime change.

    HMI and touchscreens

  • Explainer

    Where HMI Panel Simulation Saves Historical Data

    Yes. In the panel simulation, every data log whose storage location is set to Storage Card SD writes its archive files into a stand-in folder on the root partition of the engineering PC's drive C:. The files remain after the session ends, and the next simulation overwrites them, so the folder is scratch space for testing, not productive logging.

    HMI and touchscreens

  • How-to

    How to set up Pro-face historical trend channels in GP-Pro EX

    The channel selector reads undetermined because a historical trend pen can only select channels from a saved sampling group. In GP-Pro EX, open Common Settings, create the Sampling group with your RSLogix 5000 tags, then bind the trend pens to those logged channels. No PLC-side buffer list is needed.

    HMI and touchscreens

Why a PanelView 600 runs an hour ahead after daylight saving