Kanoa Tags
Kanoa MES uses two tag providers:
| Provider | Type | What it holds |
|---|---|---|
Kanoa | Standard, created by you | The tags Kanoa runs on: one folder per asset with its assetOEE, counter and measure UDT instances, the kanoa system folder (timers and debug flags), and the Kanoa tag UDT definitions |
kanoaMES | Managed, created by the module | Read-only installation and license information, and each OEE asset's live OEE tags for its current run and current shift |
The Kanoa Tag Provider
Setting It Up
The Kanoa provider is a standard Ignition tag provider that you create once, before installing or starting the kanoaAPP module. See Configure the Tag Provider for the steps. In short:
- Type: Standard
- Mode: Realtime
- Name:
Kanoa. The name is required: the UDTs and Kanoa scripts expect it.
Whenever the module is installed or restarted, Kanoa installs or updates the kanoa system folder and the Kanoa UDT definitions under _types_/Kanoa. Your own tags in the provider are left alone.
In scripts, get the provider name from system.kanoa.config.getTagProvider() rather than hard-coding [Kanoa]:
mesTagProvider = system.kanoa.config.getTagProvider('mes') # '[Kanoa]'
debug = system.tag.readBlocking([mesTagProvider + 'kanoa/debug/tags/debugStates'])[0].value
Don't edit the UDT definitions under _types_/Kanoa, or the tags in the kanoa folder, directly. A module update replaces them. To change behavior, override the instance (for example a tag change script on one asset's tag), or create your own UDT that inherits from the Kanoa one.
What's in It
[Kanoa]
├── <Enterprise>/<Site>/<Area>/<Line> one folder per OEE Enabled asset
│ ├── Line assetOEE UDT instance
│ ├── Tooling assetTooling UDT instance (machines that use tooling)
│ ├── counters/<counter name> counter UDT instances (Counters tab, Tag ticked)
│ └── measures/<measure name> measure UDT instances (Measures, Tag ticked)
├── kanoa
│ ├── timers the remaining tagTimer jobs, and data the gateway timers write
│ ├── debug logging switches
│ ├── qds/config Kanoa Quality settings
│ └── marquees marquee refresh timestamp
└── _types_
├── Kanoa Kanoa tag UDT definitions
└── assetSimulator simple asset simulator UDT
Other folders you see, such as CoreForge Sim or erpSim on a training gateway, are your own tags. Kanoa doesn't manage them.
Asset Folders
When you tick OEE Enabled on an asset, Kanoa creates a folder that mirrors the asset's path, with an assetOEE instance named Line inside it. For example, CoreForge\Philadelphia\Machining\Machine 1 becomes:
[Kanoa]CoreForge/Philadelphia/Machining/Machine 1/Line
Counters and measures created with Tag ticked are added next to it, in counters and measures folders. Use system.kanoa.asset.getAssetTagPath({'assetPath': ...}) to get an asset's folder from its path.
The kanoa Folder
Timers
Most of Kanoa's background jobs run as gateway timers, not tags. They're listed on the Timers tab of the Kanoa gateway config page (Kanoa > Settings), where you can see whether each one is running and change its interval, and system.kanoa.config.getJobs() returns the same list. Don't turn them off unless Kanoa support asks you to. Several features stop updating without them.
| Gateway timer | Default interval | What it does |
|---|---|---|
| Asset Schedule | 60 s | Puts each OEE line into the mode, item and work order its operations schedule has for now, for modes set to auto-schedule, and back to Idle when the scheduled event ends |
| Active Orders | 60 s | Reads the active production orders into kanoa/timers/getActiveOrdersTimer/data, which the order screens use |
| OEE Tags | 60 s | Recalculates every OEE asset's OEE tags, including the older Line/OEE tags |
| Shift Events | 3600 s | Builds each OEE asset's shift events from yesterday to two days ahead |
| Quality Schedule | 60 s | Kanoa Quality: creates the quality checks that are coming due, and moves active checks to their current state |
| Quality Checks | 60 s | Kanoa Quality: reads the active quality checks into kanoa/timers/qdsScheduleChecks/data |
| CMMS Schedule | 60 s | Kanoa Maintenance: creates the maintenance work orders that are due, by schedule or condition |
| Counter Ids | 300 s | Fills any empty counter id and user id tags in each OEE asset's Line/Configuration |
getActiveOrdersTimer and qdsScheduleChecks are now plain folders holding just their data tag, which screens bind to.
The rest of kanoa/timers are tagTimer instances:
| Timer | Default interval | What it does |
|---|---|---|
getAssetShiftOEETimer | 60 s | Gets OEE by shift for the last day for each asset |
getActiveAssetScheduleTimer | 60 s | Refreshes the active asset schedule |
checkForDuplicateEvents | 360 s | Checks the mode event table for duplicate entries |
checkZeroCounts | 300 s | Deletes counter events with a zero value that are more than 60 minutes old |
Each tagTimer's lastUpdated, error and data tags show when it last ran and what happened. Set its debug tag to true to log how long each run takes.
These timer tags were replaced by gateway timers and are removed on upgrade: updateAssetOEETimer, updateAssetShiftTimer, checkAssetScheduleTimer, shiftEventTimer, qdsIntervalTimer, qdsRecurringTimer and checkCMMSSchedule.
Debug
Set a flag in kanoa/debug/tags to true to write detailed logs for that area to the Gateway console. Set it back to false when you're done: debug logging is verbose.
| Tag | Logs |
|---|---|
debugAssets | Asset functions |
debugCounts | Count events |
debugDashboards | Dashboards |
debugDTAnalysis | Downtime analysis |
debugFlag | State changes from the assetOEE State tag |
debugLots | Lot functions |
debugModes | Mode changes |
debugOrders | Production orders |
debugQuality | Quality functions |
debugQualityChecks | Quality check scheduling |
debugScheduler | The scheduler |
debugShifts | Shifts |
debugSimulator | The asset simulator |
debugStates | State functions |
debugUsers | Users and security |
kanoa/debug/LoggerName sets the logger name (default Kanoa), so you can filter the Gateway logs on it.
Other Settings
| Tag | Purpose |
|---|---|
kanoa/qds/config/enableDivisionLimits | Kanoa Quality: turns on the division limits (ldl, udl) in attribute tolerances |
kanoa/marquees/lastUpdated | When the marquee data was last refreshed |
The kanoaMES Tag Provider
kanoaMES is a managed tag provider that the module creates and keeps up to date. It's read-only: you don't create or edit anything in it. Use it to check what's installed and licensed, and for each OEE asset's live OEE values, from a screen or a script.
Asset OEE Tags
Each enabled OEE asset has an OEE folder at its asset path, the same path as its folder in the Kanoa provider. For example, [kanoaMES]CoreForge/Philadelphia/Molding/Injection Press 1/OEE. The Operator Station's info panel reads these tags.
| Folder | What it holds |
|---|---|
OEE/Status | What the run and the shift share: the state (stateName, stateStart, colors), mode, work order, item, units, and the current shift (shiftName, shiftStart, shiftEnd) |
OEE/Current Run | The current run since it started (startDate): times, infeedCount, outfeedCount, wasteCount, targetCount, rates, availability, performance, quality and oee, the run's speed loss, and itemCounts |
OEE/Current Shift | The same times, counts, rates and OEE for the current shift so far, from its start (startDate), and its itemCounts |
OEE/Thresholds | The asset's OEE targets and tolerances (oee, oeeTolerance, a, aTolerance, p, pTolerance, q, qTolerance) |
OEE/info | All of the above in one Document tag (see The OEE Info Document) |
itemCounts is a dataset of the outfeed and waste for each item: itemId, itemName, isCoProduct, outfeed, waste and outfeedRatePerMinute (its outfeed over the minutes since the run or shift started). With a family tool mounted, its other items are listed as co-products (see Tooling Tags).
When they update.
- Counts and
itemCountschange as each count is recorded. - The state, mode, item and work order change when they do.
- Times, rates and OEE are recalculated every minute. That recalculation also brings the counts back in line with the database.
system.kanoa.event.refreshOEETags(assetId)recalculates an asset straight away.OEE/infochanges whenever any of the others does.
They follow the asset. Renaming or moving an asset moves its OEE tags. Turning OEE off, disabling or deleting the asset removes them. Because the provider doesn't keep tags over a gateway restart, they come back within a minute of the module starting.
They replace the assetOEE OEE folder. The OEE folder of each asset's assetOEE instance ([Kanoa]<asset path>/Line/OEE) is deprecated. The same every-minute recalculation still writes it, so existing screens and scripts keep working, and it replaces the updateAssetOEETimer tag timer, which is removed on upgrade. But the folder gets nothing new: current shift values, counts by item and speed loss are only in the kanoaMES tags, and its counts still change once a minute. Use the kanoaMES tags for new screens and scripts, and move existing ones when you next change them.
Reading them. A folder in the kanoaMES provider can't be read or bound as a whole (it reads as Bad_Unsupported), unlike a UDT instance. Read or bind each tag you need, or the asset's OEE/info document, which holds the whole folder:
base = '[kanoaMES]CoreForge/Philadelphia/Molding/Injection Press 1/OEE/'
outfeed, oee = [qv.value for qv in system.tag.readBlocking([base + 'Current Run/outfeedCount', base + 'Current Run/oee'])]
The OEE Info Document
OEE/info is one Document tag holding every value in the asset's OEE folder, grouped by folder. Kanoa rewrites it in the same update that writes the individual tags, so it changes whenever any of them does, each recorded count included.
{
"Status": {"modeName": "Production", "stateName": "Running", "stateStart": 1794067200000, "itemName": "EC-32", "...": "..."},
"Current Run": {
"startDate": 1794063600000, "outfeedCount": 1804.0, "availability": 0.98, "performance": 1.006, "quality": 1.0, "oee": 0.986,
"itemCounts": [{"itemId": 4863, "itemName": "EC-32", "isCoProduct": false, "outfeed": 1804.0, "waste": 0.0, "outfeedRatePerMinute": 3.2}],
"...": "..."
},
"Current Shift": {"startDate": 1794034800000, "outfeedCount": 2210.0, "...": "..."},
"Thresholds": {"oee": 0.85, "oeeTolerance": 0.05, "...": "..."}
}
It differs from the individual tags in two ways:
- Dates are numbers: milliseconds since 1970 (UTC). Turn one into a date with
system.date.fromMillis(value). itemCountsis a list of rows, not a dataset.
Which to Use
Use OEE/info when a display works from several values. An asset card that shows the mode, state, counts and OEE, or a calculation that combines availability, performance and quality, needs most of the folder. Bound to OEE/info, it takes one binding instead of one per tag, and it recalculates whenever any value changes, with no timer and no binding per value. Kanoa's own screens work this way: the Asset Overview, the dashboard asset, cell and OEE widgets, the Operator Station info panel and Run Control.
On a screen, use a tag binding on the asset's OEE/info path, with a script transform that picks out what the display needs:
# A tag binding on [kanoaMES]CoreForge/Philadelphia/Molding/Injection Press 1/OEE/info
run, status = value['Current Run'], value['Status']
return {
'mode': status['modeName'],
'outfeed': run['outfeedCount'],
'oee': run['oee'],
'started': system.date.fromMillis(run['startDate']) if run['startDate'] else None,
}
In a script, read it and decode it:
qv = system.tag.readBlocking(['[kanoaMES]CoreForge/Philadelphia/Molding/Injection Press 1/OEE/info'])[0]
info = system.util.jsonDecode(str(qv.value))
print info['Current Run']['oee'], info['Status']['stateName']
Use the individual tags when you need one value, or need the tag itself.
- One value on a screen, such as a label showing
Current Run/outfeedCount: bind that tag. The binding only fires when that value changes. - Tag History and alarms: history and alarms work on single values. A Document tag can't be trended or alarmed on, so historize or alarm on
Current Run/oee,Status/stateNameand so on. - Work that should run only when one value changes: a binding on
OEE/infofires on every change in the folder, including every count. If a transform runs a query or other slow work, trigger it from the one tag it depends on, such asStatus/modeName, rather than fromOEE/info. - A script that needs one or two values:
system.tag.readBlockingon those tags is simpler than decoding the document.
installationInfo
| Tag | Example | Meaning |
|---|---|---|
kanoaMESVersion | 1.15.9-beta1 | Installed Kanoa MES version, including any -beta or -rc suffix |
previouslyInstalledVersion | Reinstalling 1.15.9 | The version that was installed before this one |
installationDate | 2026-10-04T21:04:01 | When this version was installed |
hawthornStatus | Hawthorn Success | Result of the database update the installer ran |
ignitionVersion | 8.1.54 | Ignition version |
ignitionSystemName | Ignition-gateway | Gateway system name |
systemTimeZone | Etc/UTC | Gateway time zone |
dbProduct, dbVersion | Microsoft SQL Server, 16.00.4255 | The Kanoa database server |
driverName, driverVersion | Microsoft JDBC Driver 9.4 for SQL Server, 9.4.0.0 | The JDBC driver in use |
licenseInfo
Two flags per product: <product>Licensed means a license is installed, and <product>Active means the product is running (licensed or in trial).
| Product | Tags |
|---|---|
| Kanoa Ops | opsLicensed, opsActive |
| Kanoa Quality | qdsLicensed, qdsActive |
| Kanoa Trace | traceLicensed, traceActive |
| Kanoa Maintenance | cmmsLicensed, cmmsActive |
| Kanoa Inventory | invLicensed, invActive |
| Trial | trialActive |
qv = system.tag.readBlocking(['[kanoaMES]licenseInfo/opsActive', '[kanoaMES]installationInfo/kanoaMESVersion'])
print 'Ops active:', qv[0].value, 'version:', qv[1].value
Kanoa Tag UDTs
The UDT definitions live in [Kanoa]_types_/Kanoa. Most are created for you by Kanoa configuration screens; a few (the lot and quality trigger UDTs) you add yourself where you need them.
| UDT | Created by | Use it for |
|---|---|---|
| assetOEE | Kanoa, when an asset is OEE Enabled | The interface between equipment data and Kanoa Ops |
| assetInputs | You | A staging area for an asset's inputs, read by assetOEE through its MQTT path |
| assetTooling | Kanoa, when Uses tooling is turned on for a machine | Mounting tools, blocking positions and counting tool cycles from the PLC, and showing what's mounted |
| counters/counter | Kanoa, from the Counters tab | Extra infeed, outfeed, waste and general counters |
| measure | Kanoa, from the Measures screen | Collecting and summarizing a process value |
| tagTimer | Kanoa (kanoa/timers), or you | Running a script on an interval |
| timer | You | A simple once-a-minute script trigger |
| qds/chkShtTrigger | You | Starting a check sheet from a tag change |
| qds/chkEvents | You | A live list of due and recent check sheet events |
| lotTracker | You | Recording a lot operation when a lot name is scanned or written |
| lotOperationManager | You | Starting a lot operation event from a tag |
| lotAccumulator | You | Building an output lot from a count |
| lotQueueFIFO | You | Consuming input lots first-in, first-out from a count |
| counter, generalCounter | Older versions | Kept for existing instances |
assetOEE
One instance, named Line, per OEE Enabled asset. It receives the equipment's state, counts and production context, turns changes into Kanoa events, and holds live OEE values for screens and dashboards. Its one parameter, MQTTPath, links all its inputs to a source structure such as an assetInputs instance.
See Data Interface Tag for every folder and tag, how to connect it, and what Kanoa does when each input changes.
Its OEE folder is deprecated: use the asset's OEE tags in the kanoaMES provider instead.
assetInputs
A staging UDT with the same Inputs tags as assetOEE, all memory or expression tags. Use it where you calculate or combine values before Kanoa records them (for example, deriving outfeed from two sensors), then point the assetOEE MQTTPath at it. The definition's default expressions read Ignition's Generic Simulator, so override them on each instance.
assetTooling
One instance, named Tooling, per machine that uses tooling. It's created when Uses tooling is turned on and removed when it's turned off. Its Inputs mount a tool by name, block positions, and pass on the machine's cycle count and the tool's shot counter; its Primary, Alerts, Mounted and Positions tags show the mounted tool, its life and its positions.
See Tooling Tags for every tag.
counters/counter
Created under <asset>/counters/<counter name> when you add a counter with Tag ticked on the Counters tab.
| Tag | Purpose |
|---|---|
countValue | Reference tag. Point it at your count source. Each change is recorded as a counter event, with resets handled as for assetOEE |
counterType | infeed, outfeed, waste or general |
counterId, assetId | Set on startup from the tag's folder and name, creating the counter if needed |
itemId, itemStateId, workOrderId | Optional. Written with each count, for example an itemStateId to record waste against a reason |
update | Set to true to look up assetId and counterId again |
measure
Created under <asset>/measures/<measure name> when you tick Tag on a measure. See Measures for the full reference.
| Tag | Purpose |
|---|---|
measureValue | Point it at the value to measure. Each change is added to data while enabled is true |
enabled | Starts and stops collecting |
maxSampleCount, maxSampleDurationSecs | When the window is full by either count or time, update fires and one record (mean, min, max, standard deviation, sample count, duration) is written to the database |
data | The samples collected so far. Cleared after each record |
spcCheckEnabled | Runs SPC rules (individuals chart, Western Electric and Nelson) on the window as samples arrive |
outOfControl, ruleViolations | The result of the SPC check |
spec | The linked attribute's limits for this asset and the item running. Set spec/refresh to true to reload them; it also reloads when the item changes |
measureId, lastUpdated, error, debug | Housekeeping |
tagTimer
The timer behind every tag in kanoa/timers, and a good base for your own interval jobs.
| Tag | Purpose |
|---|---|
enable | Turns the timer on or off |
intervalSecs | How often it runs (default 60) |
update | Set to true when the timer fires. The instance's update script does the work, then resets it. Write true to run it now |
lastUpdated, error | When it last ran, and the error if it failed |
description, data, debug | A note on what it does, a dataset for results, and logging of each run's duration |
To make your own, create an instance, override the update tag's change script with your work in place of the pass line, and set enable and intervalSecs.
timer
A simpler timer that sets update once a minute while enabled is true. Override the update script the same way as tagTimer.
qds/chkShtTrigger
Starts a Kanoa Quality check sheet from a tag. Place the instance in an asset's folder, next to Line. Set chkShtVersionGroupId to the check sheet, then either set trigger to true or point referenceTag at a tag whose change should start it (at most once every intervalSecs). The released version of the check sheet is started for the asset, with its current item and shift.
qds/chkEvents
Keeps chkEventData filled with check sheets that are Due, Overdue or Coming Due, plus those completed in the last day. It refreshes once a minute, or when updateChkEventData is set to true. Useful as a data source for a quality screen.
lotTracker
Place it in an asset's folder, next to Line. Set lotOperationName, then write a lot name to lotName (for example from a scanner). Kanoa records the lot operation on the asset, creating the lot for the running item if it doesn't exist. message shows success or the reason it failed.
lotOperationManager
Parameters: assetId, lotOperationName. Changing setupLotOperation starts a new lot operation event for the asset and writes its ID to lotOperationEventId, for lotAccumulator and lotQueueFIFO instances to use.
lotAccumulator
Builds an output lot from a count. Parameters: assetPath (the asset's tag folder), lotOperationPath (a lotOperationManager instance), countOnIncrease, alwaysMakeNewOutputLot. Point sourceTag at a count and set enabled to true. Each increase is added to the output lot for the current lot operation event, which is created from outputLotInfo (item, units, a lot name root numbered -001, -002 and so on) and outputLotEventInfo (state, reason, order, shift).
lotQueueFIFO
Consumes input lots in first-in, first-out order from a count. Parameters: inputAssetId, assetPath, lotOperationPath, countOnIncrease. Each increase of sourceTag is drawn from the oldest lots with quantity on the input asset, moving to the next lot when one runs out. inputLotEventFilter limits which lots are used by state and reason.
Older Counter UDTs
counter and generalCounter in _types_/Kanoa are earlier counter UDTs, kept so existing instances keep working. Use counters/counter for new counters.
assetSimulator
[Kanoa]_types_/assetSimulator generates simple states and counts for an asset without equipment. See Simulator.