Skip to main content
Version: 3.2
ABB Robot Web Services Trigger nodeABB Robot Web Services Trigger node

ABB Robot Web Services trigger node

ABB Robot Web Services Trigger Node

Start a pipeline for every change of a watched persistent, signal, state or event log message of an ABB robot controller, pushed over its WebSocket.

Starts on
Each change, pushed by the controller
Function
Monitor Changes
Output
One event per change of one item
Dedup
None: every change starts a run

Overview​

The ABB Robot Web Services Trigger Node starts a MaestroHub pipeline whenever an item a Monitor Changes function watches changes: a RAPID persistent, an I/O signal, the controller state, the operating mode, RAPID execution, or a new event log message. The controller pushes each change over the Robot Web Services WebSocket; nothing is polled. Unlike the Read nodes, which read inside an already-running pipeline, the trigger starts a new execution per change.

Events of one item run in order, one at a time; events of different items run in parallel.

When the subscription starts, and again after every reconnect, each watched item sends its current value once, with initial true, so a pipeline knows the state without waiting for a change. A current value never arrives after a change newer than it. When several functions watch the event log in different languages, each receives the message text in its own language. The event log sends no current value: only new messages start runs.

Reconnection Handling​

  • When the controller's WebSocket or session is lost, every watched item fires once with _metadata.quality bad, _metadata.quality_reason comm_error and the reason under _metadata.error. Its result is the item's last event (an empty object if none had arrived), with result.quality bad and result.serverTimestamp the moment the link was lost.
  • The trigger does not reconnect by itself: the connection reconnects, with a new session, and the subscription is made again. Each item then sends its current value, good again.
  • An item the controller no longer has after a program change (a removed persistent) fires once bad with the controller's refusal; the function keeps watching the rest. Edit the function.
  • An item whose subscription the controller refuses (a controller limit, such as its 200 persistents per robot shared with other clients), or that does not fit in the subscription groups the controller allows, fires once bad with the reason; the connection stays up, the other items deliver, and the subscription is asked for again on a backoff. Once the controller takes it, the item sends its current value, good again. See Sessions and limits.

Configuration Options​

FieldMeaning
ConnectionAn ABB Robot Web Services connection
FunctionA Monitor Changes function on it
EnabledOff keeps the node but never subscribes

The function sets the persistents, signals and states to watch, the event log, its language and the priority. See Monitor Changes.

Output Data Structure​

Output Format​

{
"_metadata": {
"type": "abbrws_trigger",
"protocol": "abbrws",
"connectionId": "bf29be94-fc0a-4dc4-8e5c-092f1b74eb4b",
"functionId": "aef374c3-aa2b-454e-aabc-5657faac5950",
"kind": "variable",
"name": "T_ROB1/MainModule/nPartCount",
"initial": "false",
"serverTimestamp": "2026-11-20T10:14:03.221Z",
"quality": "good",
"timestamp": "2026-11-20T10:14:03.221123456Z"
},
"result": {
"kind": "variable",
"name": "T_ROB1/MainModule/nPartCount",
"value": 42,
"text": "42",
"initial": false,
"quality": "good",
"serverTimestamp": "2026-11-20T10:14:03.221Z"
}
}

result Fields​

FieldTypeDescription
kindstringvariable, signal, controllerState, operationMode, rapidExecution or eventLog.
namestringThe symbol or signal as written in the function, or the kind itself for the states and the event log.
valueanyThe new value: a RAPID value as JSON (number, boolean, string or nested list), a signal's number, a state's word (motoron, AUTO, running), or for the event log the message (sequence, type, code, title, description, consequences, causes, actions, arguments, controllerTime).
textstringThe value as the controller wrote it; the sequence number for an event log message.
signalStatestringOnly for a signal: simulated or not simulated.
initialbooleantrue for the current value sent when the subscription starts, false for a change.
qualitystringgood for an event the controller sent.
serverTimestampstringWhen MaestroHub received the event, UTC.

_metadata Fields​

FieldTypeDescription
typestringAlways "abbrws_trigger".
protocolstringAlways "abbrws".
connectionIdstringThe connection profile ID.
functionIdstringThe Monitor Changes function ID.
kindstringAs result.kind.
namestringAs result.name.
initialstring"true" or "false", as result.initial.
serverTimestampstringRFC 3339, UTC; when MaestroHub received the event.
qualitystringgood, or bad on the once-per-outage failure event.
quality_reasonstringOnly on a failure event: comm_error.
errorstringOnly on a failure event: why the link was lost.
timestampstringRFC 3339 (nanoseconds); when the trigger event was created, UTC.

Referencing in Downstream Nodes​

  • $trigger.result.kind and $trigger.result.name: what changed
  • $trigger.result.value: the new value
  • $trigger.result.value.title: an event log message's title
  • $trigger.result.initial: true for the current value at start
  • $trigger._metadata.quality: bad on the failure event
  • $trigger._metadata.connectionId, $trigger._metadata.functionId: the connection and function used

Best Practices​

  • Watch persistents and signals at medium priority unless a pipeline must react within milliseconds; high is limited to 64 items per controller.
  • Branch on kind first when one function watches several things.
  • Skip initial events in a counting pipeline: $trigger.result.initial is true for the value at start, not a new part.