Labels
A label says where a tag belongs. A label such as Line has values such as Line 1 and Line 2. You make a label and its values once, on the Labels page, and then pick them: a tag has at most one value of each label.
The workplace and the article are labels too, with pages of their own: see Workplaces and articles. A value of your own label can be a workplace as well: see A value as a workplace.
Every organisation starts with the five labels of the ISA-95 standard: Enterprise, Site, Area, Cell and Unit (keys enterprise, site, area, cell and unit). They are ordinary labels: rename them, give them fields or delete the ones you do not use.
A label and its values
The Labels page lists every label with its key and its number of values: the ISA-95 labels first, then Workplace and Article, then your own. New label makes one. Click a label to open its page: its values, by name and with a search (New value makes one, click a value to open its page), its name and key, its own fields and KPIs, and delete.
A new label gets a key, derived from its name: the label Line gets the key line. Filters, routes, topics and dashboard columns use the key. Change it only under Advanced: everything that names the old key no longer finds the label.
A value has a name and can be also known as other names. When you rename a value, its old name stays known as it, so everything that selected on the old name keeps working.
The labels of a tag
A tag’s labels are the values it has:
- Set on this tag — the values you pick when you make or edit the tag (also from a rule, with Edit labels), the operation tag or the alert rule. The tag form asks Workplace and the five ISA-95 labels; + Add label adds any other label. Type a value that does not exist yet to make it. A value that is a workplace says Workplace in the list: it is the tag’s workplace, whatever its label. A tag has at most one workplace.
- Via workplace — a tag takes over the values of its workplace for every label it has no value of its own of. A machine with fifty tags is put in a line once, on its workplace. Lists and the tag page show the labels as badges; a value taken over is shown faded and says “Via workplace Oven”. Pick another value on the tag to make an own choice.
A tag that takes over two values of one label, because its workplace serves two lines, has both: a message shows them joined with +, and a destination whose topic prints that label refuses its messages until the tag gets a value of its own.
The tag page shows Labels with Add labels when a tag has none yet.
A value as a workplace
A workplace is a value that UpBlue measures as a place where work happens: its state, its counts, its OEE, its roster, its forms and its operator screens. Which level that is differs per factory: one measures the line, another each machine. So any value of your own labels can be a workplace, not only a value of the label Workplace: the cell Line 1, or the unit CNC 4. An article cannot.
Open the value’s page under Labels and click Make workplace, or click New workplace on the Workplaces page and pick A value of a label. UpBlue first shows what changes: the tags with that value get it as their workplace. A tag that has another workplace already is refused: a tag has one workplace. The value then has a workplace page, linked from its own page, and is on the Workplaces page with its label.
A tag of such a workplace has its value under the key of its label and under workplace: a topic with {workplace}, a route on workplace and the dashboard column label.workplace work as for any workplace. The workplace has the fields and KPIs of its label and those of Workplace, so a field of your label cannot have the key of a field of Workplace.
A workplace can be linked to a value that is a workplace itself, such as the machines of a line that is measured too. The KPIs of that line are then its own figures, not the sum of its machines, and a dashboard panel says so. Once the line is removed as workplace, its KPIs are the sum of its machines again, unless a panel includes removed workplaces and the line ran or counted in its time range.
Removing a value as workplace
When a value no longer is the place you measure, for example because its machines become the workplaces, click Remove as workplace on its workplace page. It is then no workplace any more: it is gone from the Workplaces page and the operator screen, cannot be picked for a new tag, screen or form, and its tags lose the key workplace and the values they took over from it, so another workplace can take them. The value itself stays.
When nothing hangs on it, it is as if it never was a workplace. When it has data of a workplace (its fields, rosters, norms, forms, form entries, screens or order steps), the dialog lists how much, and that data stays stored. Make workplace under More actions on its workplace page brings it back with that data, after the same checks as making it a workplace. Both show what changes first. The value’s page also links to the workplace page of a removed workplace, where you can delete it with its data. A removed value of the label Workplace is still listed on that label’s page, named “(removed)”. Removing it again once nothing hangs on it any more makes it no workplace at all.
A dashboard leaves a removed workplace out of its KPIs, unless the panel asks for it with Include removed workplaces or picks it by name. A value of the label Workplace is always a workplace: removing it keeps its data in the same way, and deleting it is Delete workplace and its data.
Deleting a workplace and its data
Delete workplace and its data, at the bottom of the workplace page, deletes its fields, rosters, norms, forms and screens. A value of the label Workplace is deleted itself, and its tags lose their link to it; a value of another label stays a value, no longer a workplace. Fields of other values that name the deleted workplace, and fields of the value’s own label that name one of its forms, are cleared. Tags and their data, form entries, order steps and delivered messages stay: the registrations and dashboards show the form entries with the workplace’s name followed by “(deleted)”, also when the value is made a workplace again, and an order step on it shows the name followed by “(deleted)”. What each done or cancelled order step on it made is stored on the step first, so the order history keeps showing it. The dialog lists what goes, what stays and which tags, routes and destinations change, and asks you to type the workplace’s name. It is refused while an order step on the workplace is planned, running or paused.
Where labels work
One rule everywhere: a filter line = Line 1 finds the tags whose value of the label line is named Line 1, or is also known as it, without regard to case — also the tags that take it over from their workplace.
- Routes — select tags on a label: all of the values you name (by name or pattern), or any of the values you pick (these follow a rename). Read more about routes.
- Destinations —
{line}in an MQTT-out topic and{{label.line}}or{{objects.line}}in a template print the name of the tag’s value. Read more about destinations. - Dashboards — filter the tags of a query on picked values of labels. Read more about queries.
- The Tags and Operations pages — filter on rows of a label and its values: a tag matches any of the values of a row, and every row.
Labels a system sends
The insert API and a data import name a series by a tag name and labels, such as temperature with line = Line 1. When such a series is new, UpBlue makes its tag and gives it the value Line 1 of the label line, making the label and the value when they do not exist yet. The tag keeps them when you rename the value or pick another one.
Labels are not meant for dynamic data, like a batch number or a production order number. Every such value becomes a value of its own. Dynamic data belongs in Operations, as metadata on a production run.
The insert API finds a tag by its name and its labels. When a system sends other labels for the same tag name, for example a new order number in every message, each combination becomes a new tag, with its own history.
In the API
The API calls a label a kind (object_kind) and a value an object (object); “also known as” names are aliases. An object’s workplace is none, active or inactive. A tag’s values are its objects, the one with workplace true its workplace, and labels in a tag answer lists them by key.