Skip to main content
Version: 3.2
SECS/GEM Collection Events Trigger nodeSECS/GEM Collection Events Trigger node

SECS/GEM Collection Events trigger node

SECS/GEM Trigger Nodes

Start a pipeline with every collection event or alarm a GEM tool reports.

Status
Beta
Triggers
Collection Events · Alarms
Output
One event per tool message
Dedup
None: every event starts a run

Overview​

Two trigger nodes start a MaestroHub pipeline from what a GEM tool reports. Each uses a function of the matching type on a SECS/GEM connection:

NodeFunctionStarts a run for
SECS/GEM Collection Events Trigger (trigger.secsgem.events)Collection EventsEvery collection event (S6F11) the function's CEIDs include
SECS/GEM Alarms Trigger (trigger.secsgem.alarms)AlarmsEvery alarm set or cleared (S5F1) the function's ALIDs include

The tool is answered (S6F12, S5F2) as soon as its message arrives, before the pipeline runs. For each listed collection event, MaestroHub defines a report of its own with the variables the function asks for, links it and enables the event, and checks it again after every connect; see the connection guide. Removing the last trigger that lists an event, while the connection is up, disables that event on the tool; a connect never disables or deletes anything.

Reconnection Handling​

  • When the link to the tool drops, each trigger fires once with _metadata.quality bad and the reason under _metadata.error. Its result is the last event delivered (an empty object if none had arrived yet).
  • The connection reconnects on its own and checks the reports and alarm enables, setting up again what the tool lost.
  • MaestroHub turns on the alarms its triggers need and never turns alarms off, because a tool's alarm settings are shared with the MES; a removed trigger simply stops receiving them.
  • A trigger that lists variables fires with quality uncertain and a qualityDetail saying why when the event does not carry the report MaestroHub defined for it (the tool lost or changed the definition just before MaestroHub checked it), or when MaestroHub could not set that report up (the reason from the setup). Its values hold nothing it cannot vouch for. A trigger that lists no variables takes every event as the tool sent it.
  • A tool without spooling does not resend events reported while the link was down. Spooling (S2F43) is the way to lose nothing over an outage; this connector does not set it up yet.
  • When pipelines fall behind by more than 256 events, the newest are dropped (the tool was still answered) and counted in the connection's error count.

Configuration Options​

FieldMeaning
ConnectionA SECS/GEM connection
FunctionA function of the trigger's type on it
EnabledOff keeps the node but never subscribes

Collection Events Output​

{
"result": {
"ceid": 3001,
"dataId": 1,
"values": { "1001": 231.5, "1002": "LOT-0425", "1003": "2026111710140322" },
"reports": [
{ "rptid": 9000, "items": [
{ "vid": 1001, "format": "F4", "value": 231.5 },
{ "vid": 1002, "format": "A", "value": "LOT-0425" },
{ "vid": 1003, "format": "A", "value": "2026111710140322" }
] }
],
"quality": "good",
"sourceTimestamp": "2026-11-17T10:14:03.22Z",
"serverTimestamp": "2026-11-17T10:14:03.241Z"
},
"_metadata": {
"protocol": "secsgem",
"ceid": "3001",
"dataId": "1",
"quality": "good",
"sourceTimestamp": "2026-11-17T10:14:03.22Z",
"serverTimestamp": "2026-11-17T10:14:03.241Z"
}
}
KeyMeaning
$trigger.result.ceidThe collection event
$trigger.result.dataIdThe tool's DATAID for this report
$trigger.result.valuesEach reported VID → its value: numbers, text, booleans, arrays for multi-value items; null for a value the tool sent empty
$trigger.result.reportsThe reports exactly as sent, each item with its SECS-II format
$trigger.result.qualitygood when the event carries the report MaestroHub defined with the variables this trigger lists (or the trigger lists none); uncertain when it does not, or the report could not be set up
$trigger.result.qualityDetailPresent when uncertain: which report was expected and what arrived, or why the report could not be set up
$trigger.result.sourceTimestampThe time in the function's clock variable, UTC; absent when no clock variable is set
$trigger.result.serverTimestampWhen MaestroHub received the event

_metadata.ceid, _metadata.dataId, _metadata.quality, _metadata.sourceTimestamp and _metadata.serverTimestamp carry the same facts as strings.

Alarms Output​

{
"result": {
"alid": 120,
"alarmSet": true,
"category": 2,
"categoryName": "equipment safety",
"text": "Chamber door open",
"quality": "good",
"serverTimestamp": "2026-11-17T10:14:03.241Z"
},
"_metadata": {
"protocol": "secsgem",
"alid": "120",
"alarmSet": "true",
"quality": "good",
"serverTimestamp": "2026-11-17T10:14:03.241Z"
}
}
KeyMeaning
$trigger.result.alidThe alarm
$trigger.result.alarmSettrue when the alarm was set, false when cleared
$trigger.result.categoryThe E5 alarm category (ALCD bits 1 to 7)
$trigger.result.categoryNameThe category's name: personal safety, equipment safety, parameter control warning or error, irrecoverable error, equipment status warning, attention flags, data integrity
$trigger.result.textThe alarm text the tool sent
$trigger.result.qualitygood on every alarm the tool sent
$trigger.result.serverTimestampWhen MaestroHub received the alarm

_metadata.alid, _metadata.alarmSet, _metadata.quality and _metadata.serverTimestamp carry the same facts as strings.