Skip to main content

Kanoa Tags

Kanoa MES uses two tag providers:

ProviderTypeWhat it holds
KanoaStandard, created by youThe 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
kanoaMESManaged, created by the moduleRead-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
Updates overwrite the Kanoa UDTs

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 timerDefault intervalWhat it does
Asset Schedule60 sPuts 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 Orders60 sReads the active production orders into kanoa/timers/getActiveOrdersTimer/data, which the order screens use
OEE Tags60 sRecalculates every OEE asset's OEE tags, including the older Line/OEE tags
Shift Events3600 sBuilds each OEE asset's shift events from yesterday to two days ahead
Quality Schedule60 sKanoa Quality: creates the quality checks that are coming due, and moves active checks to their current state
Quality Checks60 sKanoa Quality: reads the active quality checks into kanoa/timers/qdsScheduleChecks/data
CMMS Schedule60 sKanoa Maintenance: creates the maintenance work orders that are due, by schedule or condition
Counter Ids300 sFills 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:

TimerDefault intervalWhat it does
getAssetShiftOEETimer60 sGets OEE by shift for the last day for each asset
getActiveAssetScheduleTimer60 sRefreshes the active asset schedule
checkForDuplicateEvents360 sChecks the mode event table for duplicate entries
checkZeroCounts300 sDeletes 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.

TagLogs
debugAssetsAsset functions
debugCountsCount events
debugDashboardsDashboards
debugDTAnalysisDowntime analysis
debugFlagState changes from the assetOEE State tag
debugLotsLot functions
debugModesMode changes
debugOrdersProduction orders
debugQualityQuality functions
debugQualityChecksQuality check scheduling
debugSchedulerThe scheduler
debugShiftsShifts
debugSimulatorThe asset simulator
debugStatesState functions
debugUsersUsers and security

kanoa/debug/LoggerName sets the logger name (default Kanoa), so you can filter the Gateway logs on it.

Other Settings​

TagPurpose
kanoa/qds/config/enableDivisionLimitsKanoa Quality: turns on the division limits (ldl, udl) in attribute tolerances
kanoa/marquees/lastUpdatedWhen 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.

FolderWhat it holds
OEE/StatusWhat 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 RunThe 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 ShiftThe same times, counts, rates and OEE for the current shift so far, from its start (startDate), and its itemCounts
OEE/ThresholdsThe asset's OEE targets and tolerances (oee, oeeTolerance, a, aTolerance, p, pTolerance, q, qTolerance)
OEE/infoAll 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 itemCounts change 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/info changes 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).
  • itemCounts is 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/stateName and so on.
  • Work that should run only when one value changes: a binding on OEE/info fires 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 as Status/modeName, rather than from OEE/info.
  • A script that needs one or two values: system.tag.readBlocking on those tags is simpler than decoding the document.

installationInfo​

TagExampleMeaning
kanoaMESVersion1.15.9-beta1Installed Kanoa MES version, including any -beta or -rc suffix
previouslyInstalledVersionReinstalling 1.15.9The version that was installed before this one
installationDate2026-10-04T21:04:01When this version was installed
hawthornStatusHawthorn SuccessResult of the database update the installer ran
ignitionVersion8.1.54Ignition version
ignitionSystemNameIgnition-gatewayGateway system name
systemTimeZoneEtc/UTCGateway time zone
dbProduct, dbVersionMicrosoft SQL Server, 16.00.4255The Kanoa database server
driverName, driverVersionMicrosoft JDBC Driver 9.4 for SQL Server, 9.4.0.0The 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).

ProductTags
Kanoa OpsopsLicensed, opsActive
Kanoa QualityqdsLicensed, qdsActive
Kanoa TracetraceLicensed, traceActive
Kanoa MaintenancecmmsLicensed, cmmsActive
Kanoa InventoryinvLicensed, invActive
TrialtrialActive
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.

UDTCreated byUse it for
assetOEEKanoa, when an asset is OEE EnabledThe interface between equipment data and Kanoa Ops
assetInputsYouA staging area for an asset's inputs, read by assetOEE through its MQTT path
assetToolingKanoa, when Uses tooling is turned on for a machineMounting tools, blocking positions and counting tool cycles from the PLC, and showing what's mounted
counters/counterKanoa, from the Counters tabExtra infeed, outfeed, waste and general counters
measureKanoa, from the Measures screenCollecting and summarizing a process value
tagTimerKanoa (kanoa/timers), or youRunning a script on an interval
timerYouA simple once-a-minute script trigger
qds/chkShtTriggerYouStarting a check sheet from a tag change
qds/chkEventsYouA live list of due and recent check sheet events
lotTrackerYouRecording a lot operation when a lot name is scanned or written
lotOperationManagerYouStarting a lot operation event from a tag
lotAccumulatorYouBuilding an output lot from a count
lotQueueFIFOYouConsuming input lots first-in, first-out from a count
counter, generalCounterOlder versionsKept 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.

TagPurpose
countValueReference tag. Point it at your count source. Each change is recorded as a counter event, with resets handled as for assetOEE
counterTypeinfeed, outfeed, waste or general
counterId, assetIdSet on startup from the tag's folder and name, creating the counter if needed
itemId, itemStateId, workOrderIdOptional. Written with each count, for example an itemStateId to record waste against a reason
updateSet 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.

TagPurpose
measureValuePoint it at the value to measure. Each change is added to data while enabled is true
enabledStarts and stops collecting
maxSampleCount, maxSampleDurationSecsWhen 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
dataThe samples collected so far. Cleared after each record
spcCheckEnabledRuns SPC rules (individuals chart, Western Electric and Nelson) on the window as samples arrive
outOfControl, ruleViolationsThe result of the SPC check
specThe 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, debugHousekeeping

tagTimer​

The timer behind every tag in kanoa/timers, and a good base for your own interval jobs.

TagPurpose
enableTurns the timer on or off
intervalSecsHow often it runs (default 60)
updateSet to true when the timer fires. The instance's update script does the work, then resets it. Write true to run it now
lastUpdated, errorWhen it last ran, and the error if it failed
description, data, debugA 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.