SCADA Manual · Chapter 11

License — external tag count

External tags (tags whose source is not LOCAL) read and write the PLC only up to the count the license allows. For license keys and feature codes in general, see the License manual.

What is counted

  • Counted: tags in the tag table, tags registered with X.TAG.Register from C# libraries, drivers and the like, and temporary tags written as PLC.Source.Address on screens, whose source is not LOCAL.
  • Not counted: LOCAL tags (script variables).
  • Not counted: reading the PLC directly through the communication object in scripts (COM["PLC1"]), the existing way.

Allowed count

LicenseExternal tags allowed
Free (no dongle, trial expired)0 — communication itself is blocked
TrialUnlimited
License key (RunTime) — no SCADA grade32
License key (RunTime) + SCADA gradeGrade codes 3001 to 3098 give the last two digits × 100 (3005 = 500 · 3020 = 2,000); 3099 = unlimited
Developer key2,000 (or the SCADA grade if larger)
Master keyUnlimited

SCADA grade codes are code items of the license key. For the code system see License — Feature codes and counts; for the difference between key types see License — Developer and RunTime compared.

With several keys

  • With several keys that carry a SCADA grade, the grades are added (the same as axis counts).
  • If one key holds several grade codes, only the largest is used.
  • With a SCADA grade, only the grade count applies; 32 is not added. The 32 is given once per PC when there is no grade (several keys without a grade still give 32).
  • SCADA grade codes written to a V1 dongle are not counted. Rewrite the dongle as V2 or add the grade with a S/W file license.
Keys plugged inExternal tags allowed
Two RunTime keys (no grade)32
RunTime key (3005) + RunTime key (3010)1,500
One RunTime key holding 3005 and 30202,000 (the larger one)
Developer key + RunTime key (no grade)2,000
Developer key (3005)2,000 (larger than the grade of 500)
Developer key (3030)3,000
RunTime key (3099) + any other keyUnlimited

Beyond the count

  • Tags higher in the tag table run first; the rest get the quality Unlicensed and are neither read nor written (red mark on screens, writes rejected).
  • Tags registered with X.TAG.Register and temporary screen tags are counted after the tag table. A temporary screen tag holds its place only while its screen is open, and temporary tags of closed screens are not counted.
  • This order is set when the project opens. A tag added to the table while running starts right away only if a place is free; otherwise it waits until the next open.
  • Exception — if the on write (1) of a screen Momentary button was accepted because the tag had a place when pressed, the off value (0) on release is still written to the PLC even if the place is taken back while the button is held. This keeps an output from staying on. The tag is not read back after the release write, so its quality stays Unlicensed. A tag that had no place from the start sends neither the press nor the release.
  • If tags are over the count when the project opens, a notice appears once. In the Free edition, with no license at all, communication itself is blocked, so only a log entry is written.
  • The Tag Editor shows External tags n / licensed m next to the Find box (with ⚠ in front when over) and puts a ⚠ warning on rows beyond the count. Editing and saving are not blocked. The New Tag window also warns when the count is exceeded.

When the count changes while running

  • If the count drops (a Developer key is removed from several keys, a key is plugged in after the trial, and so on), a notice appears and, unless the license comes back within 30 seconds, the tags over the count stop, starting from the lowest running tags in the table.
  • The 30-second delay keeps tags from stopping when one of several keys drops out for a moment; if the count drops again while waiting, the 30 seconds start over.
  • When the count rises, waiting tags start right away. The license is also rechecked every 10 seconds when no license change notice comes, for example when a dongle briefly could not be read and then recovered.

Project code, structure signature, and dongle loss

  • Even with a key, external tags do not run if the project code or structure signature does not match (the same condition that blocks starting the sequence). The Tag Editor then shows External tags n / licensed 0 — project code or structure sign does not match. (License — Project code and structure signature)
  • When all dongles are removed, tags keep running with the last key's count through the momentary-loss window (30 seconds) and grace operation. When the grace period ends, external tags stop along with communication. (License — Grace operation)
  • With only an empty or unreadable dongle plugged in, the count is 0.

Checking the current state

See the current state in the license window (Tools → Check License) lines Available External Tag Count(License) and External Tag Count(Project). (License — License window)

License window — the last two lines show the available external tag count and the project's external tag count
License window — the last two lines show the available external tag count and the project's external tag count

The External Tag Count(Project) line reads External Tag Count(Project) : n (running m) ------ RESULT:'…', where n is the number of external tags in the project and m is how many of them run now.

ResultMeaning
OKAll external tags are within the count.
ERRORSome tags are over the count.
BLOCKEDThe project code or structure signature does not match.
SKIPThe project has no external tags.
  • The same window also lists the key's code items one per line, and SCADA grade codes appear with a name, such as 3020 : SCADA 2000 and 3099 : SCADA UNLIM. The About QMachineStudio window, the splash screen and the license checker (LicenseChecker) use the same names.
  • A V2 dongle does not store the names, so they come from the code dictionary included in QMS 4.0.1 or later. Older versions of QMS and the license checker may show only the number (a software file license shows its stored names). This does not affect the allowed count.
Subscribe