Virtual tag functions

Functions available in a virtual tag read or write script, grouped by category.

These functions are available in virtual tag scripts, which run server-side (on the Edge) to compute a tag’s value. Read and write scripts don’t expose the same set — each function’s page says where it can be used. Tags and alarms are always addressed by their path string.

Categories

  • Tags — read and write other tags and their history.
  • Alarms — read alarm state.
  • Time — work with timestamps.
  • Conversions — pack and unpack register values.

External data (read scripts only, each needs its source available):

From integrations (each works only once its integration is installed):

Write scripts:

  • Input — the value being written to the tag.