Registers Overview

A register is a named variable in the Unified Data Manager that holds a single value and exposes it as a tag. A register can read its value from an input tag, write its value to an output tag, or simply hold a value that clients write to it. Use registers to copy data between two data sources, to give clients a single point of access to a data source, or to create global variables that all displays share.

How a Register Works

A register has three parts:

  • Input—Where the register gets its value. The input is either an input tag that the register reads at the configured scan rate, or no tag at all. A register with no input tag starts with an optional initial value.

  • Register value—The value that the register currently holds. Clients read this value through the register's tag.

  • Output—An optional output tag that the register writes its value to. The propagation style controls whether the register writes to the output tag.

When the input tag changes, the register stores the new value and, if propagation allows it, writes the value to the output tag.

Register Patterns

You can combine the input and output settings to create registers for different purposes:

Pattern

Configuration

Bridging

The input tag and output tag are different tags. The register reads one data source and writes the value to another. This is the default configuration for a new register.

Aggregation

The input tag and output tag are the same tag, and propagation is disabled. Clients connect to the register instead of to the data source, so a display that uses data from several servers connects to the Unified Data Manager only.

Input

The register has an input tag and no output tag. Clients read the input tag's value through the register.

Holding

The register has no input tag and is writable. It holds a value that clients write to it, and works as a global variable shared by all displays.

If a register is writable and has an input tag but no output tag, a value that a client writes is stored in the register only. The value is not written to the input tag, and the next input value replaces it.

Propagation

The propagation style controls when the register writes its value to the output tag:

  • Enabled—The register always writes its value to the output tag.

  • Disabled—The register never writes its value to the output tag.

  • Enabled On Tag—The register writes its value to the output tag while the propagation tag returns a value other than 0, false, or a bad quality.

  • Disabled On Tag—The register writes its value to the output tag while the propagation tag returns 0, false, or a bad quality.

The register converts the propagation tag value to a Boolean value. A string value, such as Hello world, converts to false.

Input Delay

The input delay holds each input value for the configured time before the register applies it. The delay shifts the whole input signal later in time and keeps the spacing between values. For example, with a delay of 60000 milliseconds, the following input values reach the register one minute after they arrive:

Input value

Time received

Time applied

10

10:46:20

10:47:20

20

10:46:22

10:47:22

30

10:46:24

10:47:24

40

10:46:26

10:47:26

The maximum delay is 60000 milliseconds. The register queues delayed values, and the queue holds up to 1000 values. If the input tag changes faster than the queue can hold for the configured delay, the register discards values.

Client Writes

When a register is writable, a client such as GraphWorX can write a value to the register's tag. A value written by a client takes priority over the input value, so the register shows the written value immediately.

The register continues to process queued input values, so the next input value replaces the written value. For example, if a register delays input values by one second and a client writes a value 0.5 seconds before the next queued value is due, the written value appears for 0.5 seconds.

The Client writes directly to output setting changes what happens to a client write:

  • When the setting is cleared, the client write updates the register value, and the register writes the value to the output tag. All clients see the new value at once.

  • When the setting is selected, the register value does not change. The register passes the write to the output tag, and clients see the new value when it returns through the input tag. Use this setting when the input and output tags are the same tag and the register acts as a cache for it.

The setting applies only to writes to the register's tag. A client that writes to the input tag directly updates the register value in the usual way.

Tag Management

By default, the register subscribes to its input, output, and propagation tags at all times, and it works whether or not any client is using it. When Release tags when not in use is selected, the server releases those tags while no client is subscribed to the register tag, which reduces the number of active subscriptions.

A bridging register with Release tags when not in use selected copies data only while a client, such as a GraphWorX display or an alarm, subscribes to the register.

Register Tags

Register tags use the reg: prefix followed by the folder path and the register name. Browse for registers in the Data Browser under Platform Services > Registers.

Tag

Description

reg:Setpoint

A register named Setpoint at the top level.

reg:Line1.Setpoint

A register named Setpoint in the Line1 folder.

reg:Line1.

The Line1 folder.

The legacy format @rgs64:Line1.Setpoint.Value is also supported.

What's Next?

Creating a Register