Updating the tag value in runtime (RT Unified) - WinCC Unified

Configuring tags (RT Unified)

ft:publication_title
Configuring tags (RT Unified)
Product
WinCC Unified
Version
V20
Publication date
06/2025
Language
en-US
Updating the tag value in runtime

Introduction

Tags contain process values which change while runtime is running. Value changes are handled differently at internal and external tags.

Principle

When runtime starts, the value of a tag is equal to its start value. Tag values change in runtime.

In runtime, you have the following options for changing the value of a tag:

  • A value change in an external tag in the PLC.

  • By input, for example, in an I/O field.

  • A value assignment in a script.

Updating the value of external tags

The value of an external tag is updated as follows:

  • Cyclic in operation

    If you select the "Cyclic in operation" acquisition mode, the tag is updated in runtime while it is displayed in a screen or is logged. The acquisition cycle determines the update cycle for tag value updates on the HMI device. You can either choose a default acquisition cycle or define a user-specific cycle.

  • On demand

    If you select the "On demand" acquisition mode, the tag is not updated cyclically. The update is only carried out on demand, for example, by using the "UpdateTag" system function (Tags.SysFct.UpdateTag (updateID)). The system function requires an update ID, which you create when you configure the tags. To update multiple tags at the same time, an update ID can be assigned to multiple tags.