IMDTouchKnowledge BaseShop main store

Explainer

How HMI Audit Trails Record Tag Changes With User and Time

HMI and touchscreens Published 7 min read

Short answer

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.

On this page
  1. What an audit trail records that a tag archive cannot
  2. Platform first: what each target supports
  3. Where the user identity comes from
  4. The configuration path
  5. Prove the record on a bench
  6. The decision, case by case
  7. Questions asked

An HMI audit trail is the record that answers who changed a tag and when: the runtime writes each operator change to a file with the logged-in user, a timestamp, the action and the affected tag. A tag-value archive cannot answer that question, because it stores what a value was over time and attaches no person to any change. On Siemens panel targets and RT Advanced the feature is WinCC Audit; on WinCC Unified it is the platform's own audit logging; on a terminal that is not in the documented target list, the record has to be built on the controller side. This page separates the two record types, maps each platform to its mechanism, walks the configuration path and ends with a bench test that proves the attribution.

What an audit trail records that a tag archive cannot #

The two records answer different questions. The tag archive stores process values over time, at whatever scan or change-based cadence the archive is set to, and no person is attached to a sample. The audit trail is a chronological record of actions, each attributed to the authenticated user who performed it, with the time of the action. When the requirement reads record tag modification information, which user and when, in a file, it is the second record that meets it.

Change being investigated Record that answers it What the recorded identity means
Operator enters a setpoint at the panel Audit record: user, timestamp, action, affected tag The authenticated HMI user
Controller writes the value in the program Process-value archive or controller event record No person; an automatic write
A script writes the tag Whatever the platform's documentation assigns to that action The session user, under the documented rule
Engineer changes the tag definition in the project Engineering change and version record The engineering account, outside runtime

Decide the scope before configuring anything. If only operator entries at the panel need attribution, runtime auditing covers the requirement. If every write path must be attributable, the controller and the engineering environment need records of their own, because no single HMI feature sees all four rows of that table.

Platform first: what each target supports #

Name the device and the runtime edition before any configuration, because the mechanism is per platform. The split that matters is a panel target against a Windows runtime: RT Advanced, Unified or Professional.

WinCC Audit is the documented feature for panel targets: the audit documentation in its V20 and V21 editions names panels, Comfort Panels and RT Advanced as supported targets, and an exact model and firmware version that appears in that list carries the option. WinCC Unified keeps a separate audit logging concept of its own, and its documented recipe feature can register recipe manipulations in the audit logs, so recipe edits are attributable there as well. The same separation exists across vendors: Rockwell's compliance documentation for FactoryTalk View notes that ViewPoint generates operator action audit messages when tag values are changed.

A model that is not in the supported list has no audit option, and the Professional runtime is not named in the panel documentation's target list, so neither target gets a promised audit file. For an unsupported terminal, build the record on the controller side and key it by the user the panel hands to the controller at login: Sending the Active HMI User to the PLC With Login Macros shows that handshake.

Where the user identity comes from #

The audit record attributes an action to whoever is logged in to that runtime session, so identity quality is a user-administration question before it is an audit question. Individual accounts make the record distinguish people. A shared login makes every action attribute to the shared account, and an operator working under someone else's open session produces a technically valid record carrying the wrong person's name. Designing HMI user access levels for operators and maintenance covers the account and permission structure; pair it with logout discipline so a session ends with the person who opened it.

The same logic marks the record's boundary. A value the controller writes itself has no operator behind it, so it lands in the value archive, not the audit file, and that gap is exactly what Why HMI operation records miss PLC start stop transitions examines for start and stop events.

The configuration path #

For a Comfort panel or an RT Advanced project, the documented path runs through the device settings: right-click the HMI device in the project, open Properties, and activate the Audit Trail option for the panel under Options. Place an Audit view screen object on a screen so records can be read in runtime, then configure the record destination and the retrieval procedure the way the audit documentation for your version sets them out. Match every step against the documentation for the installed version, because the wording of these settings moves between releases.

Set the clock deliberately. Configure the runtime clock against the site's time source and note how exported timestamps map to local time, time zone included, because the file is only as trustworthy as that reference. Plan storage with retrieval in mind: the documented behavior when the storage medium fills decides what history one file holds and what happens next, so the retrieval and backup cycle is part of the configuration, not an afterthought.

Prove the record on a bench #

Prove the record on an isolated bench with verified test tags, and use a tag with no process consequence, never a live setpoint on a running line.

The sequence below is a worked example: the account names, the tag and the values are illustrative, and the arithmetic is what you check against your own file.

  1. At 08:00:00, test account operator_a logs in.
  2. At 08:02:30, operator_a changes the example tag Fill_Temp_SP from 180 to 185.
  3. operator_a logs out, and at 08:05:45 test account operator_b logs in and changes Fill_Temp_SP from 185 to 190.

Expect two entries: one naming operator_a with a timestamp at 08:02:30 and the entered value 185, one naming operator_b at 08:05:45 with 190. The arithmetic that proves attribution: 08:05:45 minus 08:02:30 is 3 min 15 s, and a file showing that spacing with a different user on the second entry demonstrates per-action, per-session records rather than a single dump of session logins. If the requirement also needs the previous value or a change reason on every record, confirm those fields in your version's record format before the test, because the audit documentation defines which fields each record carries.

Check the clock the same way. If the panel clock reads 10:07:12 while the plant reference reads 10:07:20, the terminal runs 8 s behind, and every exported timestamp carries that 8 s offset plus its time zone; note the offset with the export procedure.

Close with the boundary test: have the controller change the tag while the file records. Expect no operator-attributed entry for that write, because the controller holds no session; if one appears, an HMI object is also driving that tag and the test tag is not isolated.

The decision, case by case #

  • Comfort panel or RT Advanced, and the requirement is which user and when, in a file: enable WinCC Audit with individual accounts, place the Audit view, configure storage and retrieval, and run the two-account bench test. That combination meets the requirement as stated.
  • WinCC Unified: use the platform's audit logging, and register recipe manipulations with the documented recipe feature so recipe changes land in the audit logs.
  • A terminal outside the supported list: do not promise an audit file; build a controller-side record keyed by the login user the panel transfers.
  • A line that runs one shared login: the record attributes honestly to that account and stops there; individual accounts are the fix when people must be distinguishable.
  • A regulated line: design the whole path, creation, export, retention and access control, against 21 CFR Part 11, which requires time-stamped audit trails that show who entered or changed an electronic record and when. The audit option is one component of that design, not a compliance verdict on its own.

Questions asked

Do audit records exist for changes made before the option was activated?

No. Audit logging starts when the activated project is transferred to the terminal, so tag changes made under an earlier project are not in the file. Plan the activation as a project change with a download window, then repeat the two-account bench test to confirm the file is filling. For history older than activation, the only source is whatever archive or controller record already existed.

How long does the audit file keep records?

As long as your storage design keeps them. The runtime writes records until the configured storage is full and then follows the documented rollover behavior of your version, so retention is set by where you keep the files, how often you retrieve and back them up, and your site procedure. A regulated site states the retention period in its own procedures rather than trusting the terminal.

Does the audit function need a separate license?

Treat the audit function as a separately enabled option, not a feature every runtime carries: availability and licensing depend on the exact device family and on the engineering and runtime versions. Confirm both against the audit documentation for your installed version before the schedule commits to it, because a project that activates an option the target does not carry will not behave as intended.

Can I tell which operator made a change if the line uses one shared login?

Not afterward. The record names the shared account, and every change under it looks identical no matter who stood at the screen. The fix is individual accounts with a logout or inactivity timeout, so each session belongs to one person from login to logout. Until that exists, the audit trail attributes changes to the shared account and cannot do more.

Is alarm history a substitute for the audit trail?

No. Alarm history documents alarm events with their own timestamps, and some platforms even embed variable values in the alarm text, but it is a different record class: it shows what the machine complained about, not who changed a setpoint. An auditor asking for user and time on a tag change needs the audit file; the alarm list answers a different question.

Keep reading

  • How-to

    How to timestamp Weintek HMI alarm history

    Timestamp the history with the panel's own real-time clock: save every event in the Event (Alarm) Log, retrieve the records with an Event Display, and set the clock from the panel's date and time setup or the documented settable system registers. The S7-1200 supplies the trigger bits only; its clock is not needed.

    HMI and touchscreens

  • Troubleshooting

    Why HMI operation records miss PLC start stop transitions

    An HMI operation record writes an entry only when a touch changes a value, so background transitions of PLC output Y5 never reach it. Build the start/stop history from a state-driven event log on Y5 that stores both the activation and the return transition, verify the tag reads back live, and latch in the PLC any state shorter than the panel's polling period.

    HMI and touchscreens

  • Troubleshooting

    Why WinCC 7.5 Runtime Fails Under a New Windows User

    Runtime failing under a newly created Windows account while Explorer opens is a Windows security-context problem, not a WinCC project problem. Put the account in the SIMATIC HMI group, sign out fully, verify effective access to the project, and after an Admin password change update the logon identities of services and scheduled tasks.

    HMI and touchscreens

Why HMI User Credentials Do Not Show in User Administration