Skip to main content

Groups and tags

A tag is one value on a device: a register, a data block word, an OPC UA node. A poll group is the timer that reads a set of tags together. Every tag lives in exactly one group, and every group belongs to one device.

Device line1-modbus with the group fast of 1000 ms and its tags
Device line1-modbus with the group fast of 1000 ms and its tags

How it works​

  • The Site Runtime reads all tags of a group in one cycle, every Interval (ms). Where the protocol allows it, it merges neighbouring addresses into fewer requests.
  • Uplinks subscribe to groups, not to single tags. If a downstream system needs two tags at different rates, put them in two groups.
  • Tag changes inside the form are stored when you click Create & connect or Save on the device.
  • Only tags with both a name and an address are saved.

Groups​

Open the device (Connectivity → Devices, Edit or Tags) and choose Groups & tags in the left rail.

Step by step​

  1. If the device has no group, the page says "Create a poll group first — tags live inside a group." Click Create group. Otherwise click New above the group list.
  2. Enter Group name. The default names are group-1, group-2. The limit is 128 characters.
  3. Enter Interval (ms).
  4. To remove a group, use the icon Delete group.

The group list shows <interval> ms · N tags for every group.

Group fields​

FieldMeaningDefaultNotes
Group nameName of the group. Shown in topics, rules and the Uplink subscription tree.group-1Up to 128 characters. Rules refer to it as group_name.
Interval (ms)The poll interval.1000Minimum 100, step 100. A smaller value is raised to 100.
Two different intervals

Many plugins also have a connection setting called Interval or Send Interval (ms) (the pause between two commands on the wire). That is not the group interval. The group interval is the polling period of the group.

Choose the interval​

SignalInterval
Fast process values (speed, pressure)500 to 1000 ms
Counters, states, temperatures1000 to 5000 ms
Energy counters, setpoints5000 to 60000 ms

Do not poll faster than the equipment can answer. A group that takes longer to read than its interval makes the device lag or fail. Measure before you tighten: look at the sample rate on the runtime page.

Tags​

Click Add first tag (empty group) or Add tag. The dialog is titled "Add Tag" (or "Edit Tag"). Each tag row shows its attribute and type, and the buttons Safe write (shield icon, only for writable tags on a saved device), Edit and Delete.

Add Tag dialog with name, attribute, type, address, decimal and bias
Add Tag dialog with name, attribute, type, address, decimal and bias

Tag fields​

FieldMeaningDefaultNotes
Name *The tag name.noneUp to 128 characters. Unique in the group. It becomes the tag of the equipment, in history, topics and rules. Prefer letters, digits, _ and -. Other characters are replaced by _ in paths.
Attribute *Read, Write, Subscribe. Tick one or more.ReadAt least one: "Please select tag attribute." See Attributes.
Type *Data type of the value on the device.Depends on the plugin: UINT16 (Modbus, S7), FLOAT (EtherNet/IP), FLOAT otherwiseThe list depends on the plugin. See Data types and quality.
Address *Where the value is on the device.noneUp to 128 characters. Syntax depends on the plugin. The dialog shows an example as a placeholder and a hint under the field. See Addressing.
DescriptionFree text.emptyUp to 256 characters.
DecimalMultiplier applied to the raw value.1Only with Read. 0 counts as 1.
BiasOffset added after the multiplier.0At most 3 decimal places ("Bias cannot have more than 3 decimal places."). Disabled when Write is ticked.
PrecisionDecimal places kept in the value.empty0 to 17. Only for FLOAT and DOUBLE.
UnitEngineering unit, free text.emptyUp to 32 characters. Example °C, bar, kWh.

The buttons are Cancel and Create (when adding) or Submit (when editing).

Scaling​

The runtime computes

value = raw × Decimal + Bias (Decimal 0 is treated as 1)

and then rounds to Precision if you set it. The demo Filler stores temperature in tenths of a degree in an INT16 register: raw 41 with Decimal 0.1 gives 4.1.

Scaled tags and writes

A tag with scaling cannot use safe write. If you need limits for a setpoint, keep it unscaled. A write sends the device value, not the engineering value.

Attributes​

AttributeMeaning
ReadThe tag is polled at the group interval.
WriteThe tag may be written (see Writes). Ticking Write with Read makes it a read-write tag.
SubscribeReport the tag when it changes instead of on every cycle (the report mode becomes on-change).

The Console stores the choice as a bitmask: Read = 1, Write = 2, Subscribe = 4. A tag is writable when the Write bit is set. For setpoints and commands tick Read and Write together, so the value is also in history.

Not every protocol accepts the Write attribute. If the plugin has no write, the Console refuses the tag. See Writes.

Example: the Filler​

Group fast (1000 ms) of line1-modbus, read only:

NameTypeAddressDecimalPrecisionUnitDescription
StateUINT161!400010 stopped, 1 running, 2 fault, 3 setup
SpeedUINT161!40002bottles/minFiller speed
TemperatureINT161!400030.1°CRegister holds °C times 10
PressureFLOAT1!400042barTwo registers, ABCD
GoodCountUINT321!40006Two registers
RejectCountUINT321!40008Two registers
PowerFLOAT1!400101kW
EnergyFLOAT1!400121kWh
MotorCurrentFLOAT1!400141A
LevelFLOAT1!400161%

Group control (1000 ms), read and write:

NameTypeAddressAttributeDescription
SpeedSetpointUINT161!40020Read, WriteTarget speed
RunCmdUINT161!40021Read, Write0 stop, 1 run

The first number of an address is the Modbus unit id: 1 is the Filler, 4 the Compressor. The Compressor pressure is 4!40004.

Bulk import and export​

No CSV import in the Console

The Devices page has no import or export button for tags and no CSV format. A tag is added one by one in the dialog. For larger sets use the API below, which takes JSON.

Bulk upsert through the API​

POST /api/v2/devices/{id}/groups/{groupId}/tags/batch adds or updates up to 1000 tags in one call. The caller needs the right to configure devices. A tag is matched by name: an existing name is updated.

{
"tags": [
{ "name": "State", "address": "1!40001", "dataType": "uint16", "attribute": "read" },
{ "name": "Speed", "address": "1!40002", "dataType": "uint16", "attribute": "read", "unit": "bottles/min" },
{ "name": "Temperature", "address": "1!40003", "dataType": "int16", "attribute": "read", "multiplier": 0.1, "unit": "°C" },
{ "name": "Pressure", "address": "1!40004", "dataType": "float32", "attribute": "read", "decimalPlaces": 2, "unit": "bar" },
{ "name": "SpeedSetpoint", "address": "1!40020", "dataType": "uint16", "attribute": "write",
"parameters": { "attributeMask": 3 } }
],
"pruneToNames": ["State", "Speed", "Temperature", "Pressure", "SpeedSetpoint"]
}
FieldMeaning
name, addressRequired.
dataTypeLower-case type: bool, int8, int16, int32, int64, uint8 to uint64, float32, float64, bit, string, bytes. Aliases such as float, real, double, dint, word are accepted.
attributeread (default), write or subscribe. Only one value. For Read+Write use write with parameters.attributeMask 3.
multiplier, offsetThe UI fields Decimal and Bias.
decimalPlacesThe UI field Precision. 0 to 10 in the API.
unitThe unit text.
deadband, reportModeNot in the dialog. reportMode is always (default) or on-change.
pruneToNamesOptional. After the upsert, tags in the group whose name is not in the list are removed. An empty list clears the group.

The answer lists one result per tag (index, id, name, status, and for a failure error and code), so one bad address does not stop the rest. For more than 1000 tags send chunks without pruneToNames, then a last request with the full name list.

Planning sheet in CSV​

If you keep your tag list in a spreadsheet, keep these columns. They match the dialog fields one to one, so a script can turn them into the JSON above, or you can type them into the dialog.

group,name,address,type,attribute,decimal,bias,precision,unit,description
fast,State,1!40001,UINT16,R,,,,,0 stopped 1 running 2 fault 3 setup
fast,Speed,1!40002,UINT16,R,,,,bottles/min,Filler speed
fast,Temperature,1!40003,INT16,R,0.1,,,°C,Register holds °C x 10
fast,Pressure,1!40004,FLOAT,R,,,2,bar,Two registers ABCD
fast,GoodCount,1!40006,UINT32,R,,,,,
fast,RejectCount,1!40008,UINT32,R,,,,,
fast,Power,1!40010,FLOAT,R,,,1,kW,
fast,Energy,1!40012,FLOAT,R,,,1,kWh,
fast,MotorCurrent,1!40014,FLOAT,R,,,1,A,
fast,Level,1!40016,FLOAT,R,,,1,%,
control,SpeedSetpoint,1!40020,UINT16,RW,,,,,Target speed
control,RunCmd,1!40021,UINT16,RW,,,,,0 stop 1 run

R is Read, W is Write, S is Subscribe, RW is Read and Write. This sheet format is only a convention of this page. The Console does not read it.

Whole configuration​

GET /api/v2/config/export and POST /api/v2/config/import move the complete configuration (devices, groups, tags and more) between Consoles. Use them for backups and for copying a setup, not for editing single tags. See Backup and restore.

Bind tags to ISA-95 equipment​

A device tag only becomes a Plant tag (a tag with a path such as DEMOFOODS/IZMIR/BOTTLING/LINE1/FILLER/Speed) when it is bound to equipment. Trends, alarms, OEE, the plant graph and the MQTT topic tree use that path.

Automatic binding​

When you save a device, complete tags become Plant tags of the equipment selected in the section Device. If you selected none, an equipment is created from the device name. The toast says "N Plant tags linked to equipment". New tags added later to a device that has an equipment are bound automatically.

Manual binding​

If tags are not bound (for example the device had no equipment when you added them), open Groups & tags on the saved device. The panel Unbound device tags lists them:

ColumnMeaning
Device tagThe tag name.
State"not a model tag" or "not mapped to the class".
Class propertyA property of the equipment's template class (dropdown, "— none —").

Click Bind on a row, or select rows and click "Bind to equipment (N)". The toast says "N tag(s) bound". When everything is bound the panel says "All tags are bound to the equipment." If the device has no equipment it says "Bind the device to an equipment first; its tags then become tags of that equipment."

Binding keeps polling, history and the historian path as they are. For classes and properties see Templates.

Limits and good practice​

  • Name tags once and keep the name. The tag name is part of its path and of the MQTT topic, so renaming moves both.
  • Keep one group per polling rate, and put tags with neighbouring addresses in the same group. The runtime can then read them in one request.
  • Put setpoints and commands in their own group so they are not mixed with fast process values.
  • A group's tags should belong to one equipment. An Uplink with ISA-95 topics needs that, otherwise the group keeps its default topic ("tags in this group belong to different equipment").
  • A bad address makes only that tag bad. It does not stop the group.

Troubleshooting​

SymptomCauseFix
"Name and Address are required."One of them is empty.Fill both.
"Invalid address for UINT16 (e.g. 1!40001)"The address does not fit the type or the plugin.Use the hint under the field. See Addressing.
"Please select tag attribute."No attribute ticked.Tick Read, Write or Subscribe.
"Bias cannot have more than 3 decimal places."Bias has too many decimals.Use at most 3.
Decimal or Bias is greyedDecimal needs Read. Bias needs Read and no Write.Change the attribute.
Precision is greyedThe type is not FLOAT or DOUBLE.Use a float type.
The tag is not in Plant browseThe tag is incomplete, or the device has no equipment.Give name and address. Bind the tags.
The value looks 10 times too largeRaw value is in tenths.Set Decimal 0.1.
A tag shows bad qualityAddress wrong, type does not fit the registers, device refuses the read.See Data types and quality.