This Serviceis used to create and delete triggering links for a triggering item. The triggering item and the items to report shall belong to the same Subscription.

Each triggering link links a triggering item to an item to report. Each link is represented by the MonitoredItemid for the item to report. An error code is returned if this id is invalid.

See 5.12.1.6for a description of the triggering model.

Table 78defines the parameters for the Service.

Table 78– SetTriggering Service Parameters

Name

Type

Description

Request

requestHeader

Request Header

Common request parameters (see 7.33for RequestHeaderdefinition).

subscriptionId

IntegerId

The Server-assigned identifier for the Subscriptionthat contains the triggering item and the items to report (see 7.19for IntegerIddefinition).

triggeringItemId

IntegerId

Server-assigned id for the MonitoredItemused as the triggering item.

linksToAdd []

IntegerId

The list of Server-assigned ids of the items to report that are to be added as triggering links. The list of linksToRemoveis processed before the linksToAdd.

linksToRemove []

IntegerId

The list of Server-assigned ids of the items to report for the triggering links to be deleted. The list of linksToRemoveis processed before the linksToAdd.

Response

responseHeader

Response Header

Common response parameters (see 7.34for ResponseHeaderdefinition).

addResults []

StatusCode

List of StatusCodesfor the items to add (see 7.39for StatusCodedefinition). The size and order of the list matches the size and order of the linksToAddparameter specified in the request.

addDiagnosticInfos []

Diagnostic Info

List of diagnostic information for the links to add (see 7.12for DiagnosticInfo definition). The size and order of the list matches the size and order of the linksToAddrequest parameter. This list is empty if diagnostics information was not requested in the request header or if no diagnostic information was encountered in processing of the request.

removeResults []

StatusCode

List of StatusCodesfor the items to delete. The size and order of the list matches the size and order of the linksToRemoveparameter specified in the request.

removeDiagnosticInfos []

Diagnostic Info

List of diagnostic information for the links to delete. The size and order of the list matches the size and order of the linksToRemoverequest parameter. This list is empty if diagnostics information was not requested in the request header or if no diagnostic information was encountered in processing of the request.

Table 79defines the Serviceresults specific to this Service. Common StatusCodesare defined in 7.39.

Table 79– SetTriggering Service Result Codes

Symbolic Id

Description

Bad_NothingToDo

See Table 182for the description of this result code.

Bad_TooManyOperations

See Table 182for the description of this result code.

Bad_SubscriptionIdInvalid

See Table 182for the description of this result code.

Bad_MonitoredItemIdInvalid

See Table 183for the description of this result code.

Table 80defines values for the results parameters that are specific to this Service. Common StatusCodesare defined in Table 183.

Table 80– SetTriggering Operation Level Result Codes

Symbolic Id

Description

Bad_MonitoredItemIdInvalid

See Table 183for the description of this result code.