Skip to main content
Version: 2027.02 Beta
View as Markdown

system.opcua.acknowledge

This function is used in Python Scripting.

Description​

Acknowledges an OPC UA alarm condition. The eventId is the raw EventId bytes of the event being acknowledged, which an OPC UA event stream event publishes as its eventId metadata value.

Client Permission Restrictions​

This scripting function has no Client Permission restrictions.

Syntax​

system.opcua.acknowledge(connectionName, conditionId, eventId, [comment], [locale])

Parameters​

TypeParameterDescription
StringconnectionNameThe name of the OPC UA connection.
StringconditionIdThe nodeId of the condition instance to acknowledge. Accepts either the namespace index form (ns=2;i=1234), or the namespace URI form (nsu=urn:example;i=1234).
Byte Array, ByteString, base64-encoded StringeventIdThe eventId of the event being acknowledged. Read from the event's eventId metadata value, which carries the raw bytes. An EventId field selected into an event's payload data is not a valid substitute. An empty EventId is forwarded to the server rather than rejected locally, so the returned StatusCode reports the server's verdict, typically Bad_EventIdUnknown.
StringcommentA comment to include with the acknowledgment. Omit or pass None to send a null LocalizedText instead of a blank comment. [Optional]
StringlocaleThe locale for the comment i.e., en-US. Defaults to an empty locale, and is ignored unless a comment is supplied. [Optional]

Returns​

Tuple: A tuple describing the StatusCode the server returned for the call:

  • 0: The code's numeric value, as an integer.
  • 1: The code's name, such as Good or Bad_EventIdUnknown.
  • 2: A description of the code.

Scope​

Gateway, Perspective Session