Skip to content
Beltr documentation home
beltr.ai

Catalog

Teach Beltr your tag names

How a grammar profile reads a tag name into area, function, loop and suffix, the built-in profiles, making your own and choosing the order profiles are tried in.

Most plants build their tag names by a rule, such as 41-MT-1001.PV: an area, a function code, a loop number and a suffix. A grammar profileGrammar profile The rule your tag names follow, such as an area, a function code, a loop number and a suffix. Beltr uses it to fill in a tag's area, function code and loop. describes that rule, so Beltr can read each name into its parts and fill in the tag’s area, function code and loop.

When a profile reads a name, Beltr writes:

  • the Function code, such as MT in 41-MT-1001.PV, and the quantity the code suggests (Quantity from name, such as temperature for TI);
  • the Area, from the area part of the name;
  • the Loop: tags that share a name up to the suffix and whose suffixes have different roles, such as .PV and .SP, form one control loop.

You see these under Parsed name in a tag’s details. When a tag’s unit does not fit the quantity its name suggests, the tag is marked Unit doesn’t match name, and Unit vs name filters the tag list on it.

Beltr comes with three profiles. They are read-only.

  • ISA-5.1, active in a new workspace: names such as 41-MT-1001.PV, with an area of digits, a function code of letters, a loop number and an optional suffix.
  • KKS, for power-plant identifiers. It is never active until you choose it.
  • No grammar, which reads no name, for a site whose names follow no rule.

Open Catalog › Grammar. Pick a profile in the list at the top; badges say whether it is Active, a Fallback, or Built-in · read-only.

The Grammar tab with the profile ISA-5.1, Active and Built-in · read-only. Marker 1 is on the profile: How a tag name is read, with 31-ST-1000.PV split into Area 31, Function ST, Loop 1000 and Suffix .PV, then Pattern mode Named parts, the parts Plant and System Not used, Area, Function, Loop and Suffix with their patterns and 24 / 24, and the suffix roles. Marker 2 is on the preview: 24 of 24 sample tags match, All 24 and Unmatched 0, and the table of sample tags with their Area, Function, Loop, Suffix and Quantity.
The Grammar tab with the profile ISA-5.1, Active and Built-in · read-only. Marker 1 is on the profile: How a tag name is read, with 31-ST-1000.PV split into Area 31, Function ST, Loop 1000 and Suffix .PV, then Pattern mode Named parts, the parts Plant and System Not used, Area, Function, Loop and Suffix with their patterns and 24 / 24, and the suffix roles. Marker 2 is on the preview: 24 of 24 sample tags match, All 24 and Unmatched 0, and the table of sample tags with their Area, Function, Loop, Suffix and Quantity.
  • How a tag name is read shows one of your tags split into its parts.
  • Pattern mode is Named parts, with one pattern per part (Plant, System, Area, Function, Loop, Suffix), or Expression, one pattern for the whole name.
  • Suffix roles say which suffix is the measured value, the setpoint, the output or the mode of a loop: pv, sp, op and mode.
  • Function codes say which quantity a function code suggests.
  • The preview on the right runs the profile over up to 200 of your tags: “n of m sample tags match”. Unmatched lists the names it cannot read.
  1. Pick the built-in profile closest to your names and choose Duplicate to edit.
  2. Give it a Profile name.
  3. Change the patterns of the parts, or switch Pattern mode to Expression and write one pattern.
  4. Write Suffix roles (suffix=role, one per line), such as PV=pv, and Function codes (CODE=quantity,quantity, one per line), such as TT=temperature.
  5. Watch the preview: the count of matching tags changes as you type, and Unmatched shows what still fails.
  6. Leave Use this profile ticked to make it the active profile. Tick Reparse grammar-derived fields of candidate tags to read the names again with it.
  7. Choose Save profile, or press CommandCtrlReturnEnter.

You should see

You should see your profile in the list, marked Active if you chose to use it, and the new parts in the tags’ Parsed name.

A pattern that takes too long on the sample is stopped: “This pattern took too long on the sample and was stopped. Simplify it.” A workspace keeps up to 20 profiles of your own besides the built-in ones.

To share a profile with a colleague, use More grammar actions › Copy profile JSON. They add it with Paste profile JSON…; the JSON is at most 16 KiB.

One profile is active and reads every name first. Up to three fallbacks, in order, read the names it cannot.

  1. Choose Grammar order in the Grammar tab, or open Settings › Tag grammar.
  2. Pick the Active profile.
  3. Under Fallbacks, choose Add fallback, and order them with the arrows.
  4. Leave Reparse grammar-derived fields of candidate tags ticked to read the names again with the new order.
  5. Choose Save order.

You should see

You should see the new order on the Grammar order button, such as “ISA-5.1 → KKS”.

No grammar takes no fallbacks.