IMDTouchKnowledge BaseShop main store

Selection guide

Storing and Recalling Tank Profiles on a Unified Panel

HMI and touchscreens Published 7 min read By IMDTouch engineering team

Short answer

Keep only the active profile in the S7-1500 as an array of 100 UDTs and make the WinCC V8 SQL archive the master store for completed profiles. The Unified panel's SD or USB medium is retention-bounded and loses data if power fails while it is disconnected, so it serves only as a cache of recent profiles. Recall works by profile identifier through a staging buffer in the PLC that both displays read.

On this page
  1. What one profile is
  2. The working array in the PLC
  3. Choosing the store for completed profiles
  4. Sizing the archive for 12 profiles a day kept five years
  5. Recalling a profile onto both displays
  6. Decisions for each case
  7. Questions asked

Keep the working profile in the S7-1500 as one array of UDTs and hand every completed profile to the WinCC V8 SQL archive as the master store. A Unified panel is not an archive: its log retention is bounded by the storage medium you fit, and a removable medium is one unplug away from being the wrong copy. Recall is a dataset operation, not a trend scroll — the operator picks a profile identifier, the station writes that profile into a staging buffer in the PLC data block, and both displays redraw the same points. The sections below commit each piece, with the sizing arithmetic for a five-year plan.

What one profile is #

One profile is a fixed dataset: 100 points, and every point carries three measured values — position, temperature and density. Two fields turn it into a record instead of a pile of numbers: a profile identifier that separates one completed set from every other set, and the point index that preserves order inside the set. Add a completion state, written only after all points pass their validity checks, and a transfer state that stops acquisition from overwriting the buffer before the archive acknowledges it.

The display rule, committed: the operator asked for three curves, so the point index is the common horizontal axis and position, temperature and density are three series over it. If the operator actually wants position as the physical axis, position stops being a curve and becomes the axis, with two series over it. Settle this before configuring either runtime — the tag plumbing is identical, the trend setup is not.

The working array in the PLC #

Declare one UDT for a measurement point — position, temperature and density as REAL in this design — and an array of that UDT in a data block, with the identifier and the two states alongside it. The points arrive from the tank level meter over Modbus RTU on RS-485, so the data block is the right place for acquisition, validation and staging. WinCC Unified takes the data type straight from STEP 7, does not convert it into an HMI data type, and fixes the access type as "Symbolic access": you select the PLC tag by name, connect it to an external HMI tag, and the valid HMI data type follows automatically. No absolute byte offsets.

Two fixed buffers are enough. Acquisition fills one; the completion state closes it, the transfer state locks it until the archive acknowledges, and then the roles alternate. Do not grow the data block to hold history — controller memory is finite, and retention inside the PLC ties the archive to PLC downloads, recovery and project management.

One safety line: the recall path writes only into the display buffer. Nothing in the archive flow may write a tag the control program acts on.

Choosing the store for completed profiles #

Start from the documented limits. The Unified runtime saves logs on a local drive or on the panel's storage medium, and adds a network drive when long-term saving is wanted; how much history the panel keeps is bounded by that medium. For a local log you choose the storage location in the "Storage medium" field, and with "Local" you enter the path under "Storage directory". The failure mode is documented as well: interrupt the power supply while the storage medium is not connected, and that log data is lost — exactly the state of a USB stick in somebody's pocket. The panel-versus-server split is the same decision walked through for where HMI audit trail data goes: SD card and server logging.

Store Strength Limit Commit it to
S7-1500 DB array Acquisition, validation, one source both displays read Work memory is finite; history ties retention to the PLC project The active profile and two buffers, nothing more
Panel SD or USB files Local, simple, works with the server down Bounded by the medium; removable; lost on power interruption while disconnected; no retrieval key A bounded cache of the newest profiles
Panel log to a network drive Longer retention than the panel medium, still panel-written A share of files carries no index and no backup owner unless you add both A secondary copy at most
WinCC V8 SQL archive Indexed, server-sized retention, database backup and maintenance Recall depends on the station being available Master for every completed profile

The last row decides the architecture. WinCC V8 archives into an SQL database on station hardware, so retention is sized by the server, indexed, and covered by ordinary database backup — the qualities "unlimited" was really asking for. Whatever retention figure you commit to, prove it on the medium you actually fitted, with the checks in verifying HMI historical trend retention before committing.

Sizing the archive for 12 profiles a day kept five years #

Inputs, with sources:

  • 100 points a profile and 3 values a point — position, temperature, density: fixed by the application.
  • 4 bytes a value: the three values declared REAL, the 32-bit type of IEC 61131-3. An example declaration; wider types raise the byte count.
  • 12 profiles a day and a 5-year retention: example planning figures. Replace them with the measured rate and the stated retention; the arithmetic does not change.

Rule, in words: one stored profile is points × values records; the retention total is profiles kept × records a profile; the raw payload is records × bytes a value. The working data block carries only the active profile and its buffers.

Arithmetic:

  • Records a profile: 100 points × 3 values = 300 value records.
  • Working array in the DB: 300 × 4 bytes = 1200 bytes (1.2 kB) before the identifier and state members, so two alternating buffers sit near 2.4 kB.
  • Profiles in a year: 12 a day × 365 days = 4380.
  • Profiles in retention: 4380 × 5 years = 21,900.
  • Value records in retention: 21,900 × 300 = 6,570,000.
  • Raw payload: 6,570,000 × 4 bytes = 26,280,000 bytes ≈ 26.3 MB, before database overhead, identifiers and timestamps.

What moves it: double the rate or the retention and every total doubles; move a value to an 8-byte type and the payload grows with it.

Result: five years of this profile is about 26.3 MB of raw values in roughly 6.6 million records — a load any server database carries with indexing and backup, and 21,900 files that no removable medium stuck in a panel should own.

Decision: retention expressed in years makes the WinCC V8 SQL archive the master, full stop. A panel-medium store is only for a cache you can bound in weeks and size with margin; past that boundary the panel medium is never the only copy.

Recalling a profile onto both displays #

A historical trend is the wrong tool for recall. It replays logged tag values against time — sampling behavior of the kind behind why a WinCC Unified on-demand trend exports 4 samples per second — and the operator asked for a dataset by name, not a time range. Build recall as a transfer:

  1. The operator picks a profile identifier from a list the V8 station serves out of its database.
  2. The station reads that record, writes its points into the recall buffer in the PLC data block, and sets a flag both displays watch.
  3. The panel reads the buffer with array multiplexing: each value tag is bound to the array with a tag as the index, so one tag per value plus the index tag covers the whole profile.
  4. Panel and station draw the same buffer at the same time — one selected identifier, one picture everywhere.

If profiles must be recalled while the V8 station is down, that is a separate requirement with a price: also write each completed profile to the bounded panel cache, sized with the arithmetic above and capped at the newest profiles. Everything older waits for the server.

One configuration check before any of this: the project line-up names both an MTP1200 Comfort Unified and an MTP1000 Unified. Confirm which device is actually configured in TIA Portal V21 — storage media and runtime features follow the configured device, and WinCC Unified V21 is the engineering side this is built in.

Decisions for each case #

  • Active profile: S7-1500 data block, one UDT array, symbolic access only, two alternating buffers with completion and transfer states.
  • Every completed profile: the WinCC V8 SQL archive is the master, and someone is assigned as the owner of its backup.
  • "Unlimited storage": replace it with four numbers before configuring anything — profiles a day, retention in years, the retrieval key, and whether every old profile needs immediate online access. A requirement still worded "unlimited" is not ready for storage selection.
  • Standalone recall required: add the bounded cache on the panel medium — weeks of profiles, sized with margin, never the master.
  • Both displays: one staging buffer in the PLC, one selected identifier, array multiplexing at the panel.
  • SD card or USB: a copy or a cache, never the only copy.

Questions asked

Can the panel read the WinCC V8 archive directly?

Not with its native trend object, which reads the panel's own logs. The engineered path is the staging buffer: the V8 station reads its database and writes the selected profile into the PLC, where the panel picks it up symbolically. Any direct station-to-panel transfer is a separate interface you would have to design, document and maintain.

How many HMI tags does the profile display need?

One per value plus an index tag. Array multiplexing binds each value tag to the array with a tag as the index, so position, temperature and density are three tags and a fourth walks the index from the first point to the last. You configure four tags and one trend setup, not a tag for every point.

What makes a good retrieval key for the operator?

One identifier that the PLC writes into the dataset and the archive stores with every record; a run number carrying date and tank works well. The operator picks from a list of identifiers, never from file names or time ranges, and the point index only orders values inside the selected profile, so it must never double as the key.

Can old profiles be recalled while the V8 station is down?

Only from the local cache, if you built one. Size that cache with the same profile arithmetic, cap it at the newest profiles and treat it as a copy; anything older waits for the server. If recall during server downtime is a hard requirement, write it down as one, because it turns a single-master design into master plus bounded copy.

Is the S7-1500 big enough for the working data?

Yes, with room to spare. One profile's three REAL values occupy 1200 bytes before the identifier and state members, so two alternating buffers sit near 2.4 kB. Controller memory only becomes an argument when someone tries to keep history in the data block instead of in the archive.

Keep reading

  • Troubleshooting

    Why a WinCC Unified on-demand trend exports 4 samples per second

    The export reads the stored log, not the screen, so a file at 4 samples per second means the exported series is still written on a fixed cycle of 250 ms. Set Logging mode to On demand with a Trigger mode other than none, bind the Trigger tag, point the trend series at the logging tag, and export only records written after the download.

    HMI and touchscreens

  • Troubleshooting

    Why WinCC Flexible Logging Fails to Create Oracle Tables

    Oracle is not among the databases tested and released for WinCC flexible, so the table-definition and insert statements the runtime generates were never validated there. The startup message covers only initialization. Archive to a released database and transfer committed records to Oracle with a separate, restart-safe service.

    HMI and touchscreens

  • Troubleshooting

    Why a Unified panel trend plots only the current value

    The Trend control anchors its time axis at UTC 0, so on a panel running at any other offset the plotted window sits hours away from the samples being written and only the newest value lands inside it. Set the Trend control's own Time zone property to the panel's offset; a firmware update does not fix it.

    HMI and touchscreens

Why WinCC shows only 1000 messages in the alarm list