IMDTouchKnowledge BaseShop main store

Troubleshooting

Where HMI Audit Trail Data Goes: SD Card and Server Logging

HMI and touchscreens Published 6 min read

Short answer

Audit trail destinations are set in the HMI project, not by panel age or hardware. Records sent to a backup server do not also land on the SD card unless the project adds a local logging destination plus a script or system function that copies the files. Stop Runtime before removing the card, and verify each destination with the same known test event.

On this page
  1. Read the project's logging destinations first
  2. Make the card and the server two separate writes
  3. A known-event test with counts you can check
  4. Stop Runtime before the card comes out
  5. Trace prompt visibility separately from panel age
  6. The decision for each case
  7. Questions asked

The logging destinations an audit trail gets are set in the HMI project, not by the panel's age or its hardware. Records that reach the backup server while the SD card stays empty mean the project enables one destination only; no destination duplicates records to another by itself. To hold the same record in both places, configure a local logging destination in the project and add a script or a documented system function that copies the log files to the server. Stop Runtime before the card comes out, and prove each destination with the same known test event. The prompts that appear only after an active-step change are a second, separate fault with its own trace. Work through the checks below before spending anything on new hardware.

Read the project's logging destinations first #

Storage of the audit trail files is a project setting. The flexible-era tool behind a panel of this generation sets the audit log's destination in the project, and current WinCC Unified panels work the same way: select the HMI device in the project tree, open the Logs work area and configure the Audit Trail tab there. If your project lists only the server path, the card is empty by design, and no script changes that until the destination list does.

Work one known event through each path independently:

  • Read the configured destinations. One destination means the project is the cause, not the panel.
  • Generate one known audit event, a named user writing to a test tag, and look for the matching record at the server. Present there means the server path works.
  • Stop Runtime, then read the card. An empty card beside a working server path confirms a local destination was never configured.
  • Compare records, not files. A file present at the server with the specific event missing means the copy step dropped content.

Changing any of this takes the editable project. If your team inherited only a copy read back from the panel, an uploaded HMI copy is not an editable project, so recover the original project source before touching destinations.

Make the card and the server two separate writes #

Decide first what the requirement is: two independent log destinations, or a local log that is copied to the server afterwards. A record on the card and a record at the server are two write operations, and the project must contain both. Local logging writes the record as the event happens. The server side is a separate transfer of the closed log files, done by a project script or a documented system function; the vendor also documents a network-drive backup route for the Comfort and Advanced panel line, where the panel copies logging backup data to a connected share such as \\backup-server\hmi-logs\, and on this flexible-era panel the equivalent is the script or system-function copy.

There is no generic code that fits every project. The copy depends on the system functions the project supports, its script environment, the event that closes a log file, and how a failed transfer is reported. Give the copy step its own fault indication so a failed transfer raises an alarm instead of failing silently, and write down what is configured so the next session can tell logging from copying.

Know what each record must carry before comparing destinations; how HMI audit trails record tag changes with user and time shows the fields a record holds. Where these records fall under 21 CFR Part 11, the trail must be computer-generated, time-stamped and retained for review, so the destination list is a compliance decision, not a convenience.

A known-event test with counts you can check #

Run the verification as counts, on the bench with a test tag. Worked example with illustrative numbers: log in a commissioning user and write to the test tag twelve times at 5-second intervals. Each audited write creates one record, so each destination must hold 12 writes × 1 record = 12 records, and the run spans (12 - 1) × 5 s = 55 s from the first write to the last.

Suppose the card then shows 12 records and the server file shows 9: the copy path lost 12 - 9 = 3 records, and the fault is the transfer, in the script, the share access or the connection, not record generation, because the local destination caught every event. If the card holds fewer than 12 instead, the local destination or its storage is the fault. Judge both destinations against the same event list before changing anything.

Stop Runtime before the card comes out #

The rule follows the runtime state, not a blanket prohibition. The vendor's operating instructions for the Comfort Panels line state that removing the system storage card while a project is running ends the project, and that removal requires no active write access to the memory. The same pending-write logic governs this older flexible-era panel: Runtime may be mid-write at the moment you pull the card, and an interrupted write can cost the open log file, not just the last record. Stop Runtime cleanly, let it close its files, then remove the card to read or exchange it; removal with Runtime stopped is the routine, documented way to handle media. Do not use card-pulling as a transfer method, because the copy belongs in the project.

Before swapping media, check what else the card has to hold: whether an HMI memory card holds a restorable panel backup tells you what a swap can cost you.

Trace prompt visibility separately from panel age #

The observation proves the active step influences prompt visibility; it does not say whether the prompt's condition, the sequence state or the screen update is broken. Trace it directly: read the prompt's visibility expression, log the active-step value and the expression's result at the moment the prompt should appear, then compare one occurrence that worked with one that failed, driven by the same operator action. If the expression is true and the screen still shows nothing, the fault is the screen's visibility logic or its update. If the expression never goes true without the forced step change, the fault is the step or condition logic in the project.

Age is a lifecycle risk, not a diagnosis. A project with one configured audit destination produces the same empty card on a new terminal, and a prompt conditioned on the wrong expression misbehaves on a new terminal too. Fix what the project can fix first, then judge the panel on measured hardware behavior: touch accuracy, backlight, boot reliability and spare-part availability for a discontinued model.

The decision for each case #

  • Records at the server, card empty: the project has one destination. Add the local logging destination, add the script or system-function copy, and pass the known-event count test at both places. No hardware change is involved in this branch.
  • Card handling: stop Runtime before every removal; with Runtime stopped, reading or exchanging the card is routine.
  • Prompts: fix the visibility or sequence defect the trace exposes, because a new panel inherits the same fault.
  • Replacement: swap the panel only for proven hardware failure or an accepted lifecycle risk, and pass the same known-event test on the migrated project, Comfort Panel or otherwise, before declaring either symptom solved. When the repair is not worth it, industrial panel PCs replace a terminal like this with a touchscreen computer that runs the HMI runtime at the machine.

Questions asked

What makes a known test event readable in an audit trail?

Log in a named commissioning user and write to a test tag from the HMI at a noted wall-clock time. Each destination should then hold exactly one record with that user, that tag, the old value, the new value and the timestamp. Fixing the record count before the run turns a missing, duplicated or stale entry into an obvious defect instead of a vague gap.

Is a card-only audit trail a valid configuration?

Yes. The destination list is a project choice, so a card-only trail is as valid as a server-only one. What the card cannot do is duplicate itself: if the record must exist in both places, the project needs the local destination and the copy step. Match the destinations to the plant's record-retention requirement, then prove both with one known event.

Does panel age explain missing audit records?

Storage destinations come from the project: a project with no local audit destination leaves the card empty on a brand-new terminal too. If the same known event reaches the card after the configuration is fixed, age was never the cause. Age belongs in the replacement decision, and only after hardware faults are proven.

Will the prompt faults disappear after a panel migration?

Only if the trace proves the cause was hardware. A prompt conditioned on the wrong expression, or on a screen object that never refreshes, behaves the same on a new terminal running the migrated project. Re-verify the visibility condition and the sequence logic during migration, and rerun the same operator-action comparison on the new panel before closing the fault.

Keep reading

  • 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

  • Selection guide

    HMI panel as local data logger for a PLCnext controller

    An HMI panel with an integrated datalogger, CSV file output and an FTP service can log PLCnext data locally with no separate PC or historian. The decision turns on two numbers: the log volume per day against the panel's free storage, and the controller's protocol server against the panel's driver list, where Modbus TCP is the lowest-friction choice.

    HMI and touchscreens

  • Explainer

    How HMI Audit Trails Record Tag Changes With User and Time

    An HMI audit trail writes each operator tag change to a file with the logged-in user and a timestamp; a tag-value archive only shows what the value was. Enable the audit option on Comfort panels and RT Advanced, the Unified audit logging on Unified targets, and prove attribution with two accounts on a bench.

    HMI and touchscreens

Where to Set HMI Project Version and Author in Vijeo Designer