Skip to main content

Tags and templates in Excel

Create or change many tags at once in Microsoft Excel (or LibreOffice Calc), then import the workbook again.

Export​

On the Tag Management page, click Export at the bottom of the sidebar and choose Excel workbook (.xlsx). To export only one group, right-click the group in the tag tree and choose Export group to Excel.

Export menu: Excel workbook or full configuration

The workbook has these sheets:

SheetOne row perNotes
TagstagEvery setting of the tag: source, scaling and offset, deadband, log changes, history.
Templatestag of a templateAll rows with the same Template name form one template.
Bound groupsgroup bound to a templateGroup, template, connector, device, poll group, base address and structure (what {base} becomes).
HelpWhat each column means.

Tags generated from a template are not on the Tags sheet (extra tags you added to a bound group are). Change the template on the Templates sheet, or the group's base address on Bound groups.

Edit​

  • Orange column headers must be filled in (Path on Tags; Template and Tag on Templates; Group and Template on Bound groups). Hover a header for help.
  • Data type, Display, Access, deadband modes, Yes/No columns, Interpolation and Aggregate have drop-down lists; Connector and Template have lists of the names in WiConnector.
  • Copy rows to add tags: give each a new Path. Folders in the path become groups.
  • Leave all scaling columns empty for no scaling. An Offset on its own keeps Raw 0…1 = EU 0…1.
  • Options holds per-tag driver options as name=value, several separated by ;, for example wordOrder=CDAB or encoding=BCD;byteOrder=BA.
  • Columns can be moved, and extra columns of your own are ignored. Keep the header row.

Import​

Import from Excel: the check of every row before anything is changed

Click Import at the bottom of the sidebar and choose the .xlsx file. WiConnector checks the whole workbook first and shows:

  • how many tags, templates and bound groups are new, changed and unchanged;
  • every problem, with its sheet, row and column, for example "Tags, row 14, Raw max: 'abc' is not a number".

Nothing is saved while the workbook has problems: fix them in Excel and import again. When the check is clean, Import N changes saves everything in one step, and connectors whose tags changed restart on their own.

Rules:

  • A row whose path (or template name, or group) already exists replaces it. New rows are added.
  • Nothing is deleted. Tags you remove from the workbook stay in WiConnector; delete them in the tag tree.
  • A template on the Templates sheet replaces the template of that name as a whole, and every group bound to it is regenerated.
  • Extra tags you added to a bound group by hand are on the Tags sheet and import like any other tag. A row whose path is a tag the template generates is refused: change the template instead.

The JSON Export and Import (full configuration, including connectors) work as before; see Backup, import and change history.