GetMonitoredItems is used to get information about monitored items of a subscription. Its intended use is defined in OPC 10000-4.

Signature

GetMonitoredItems(

[in] UInt32 subscriptionId

[out] UInt32[] serverHandles

[out] UInt32[] clientHandles

);

Argument

Description

subscriptionId

Identifier of the subscription.

serverHandles

Array of monitoredItemIds (serverHandles) for all MonitoredItems of the Subscription identified by subscriptionId

clientHandles

Array of clientHandles for all MonitoredItems of the Subscription identified by subscriptionId

Method Result Codes (defined in Call Service)

Result Code

Description

Bad_SubscriptionIdInvalid

Defined in OPC 10000-4

Bad_UserAccessDenied

Defined in OPC 10000-4

The Method was not called in the context of the Session that owns the Subscription.

Table 114 specifies the AddressSpace representation for the GetMonitoredItems Method.

Table 114 – GetMonitoredItems Method AddressSpace definition

Attribute

Value

BrowseName

GetMonitoredItems

References

NodeClass

BrowseName

DataType

TypeDefinition

ModellingRule

HasProperty

Variable

InputArguments

Argument[]

PropertyType

Mandatory

HasProperty

Variable

OutputArguments

Argument[]

PropertyType

Mandatory

Conformance Units

Base Info ServerType

ResendData is used to get the current values of the data monitored items of a Subscription where the MonitoringMode is set to Reporting. Its intended use is defined in OPC 10000-4.

Signature

ResendData(

[in] UInt32 subscriptionId

);

Argument

Description

subscriptionId

Identifier of the Subscription to resend.

Method Result Codes (defined in Call Service)

Result Code

Description

Bad_SubscriptionIdInvalid

Defined in OPC 10000-4

Bad_UserAccessDenied

Defined in OPC 10000-4

The Method was not called in the context of the Session that owns the Subscription.

Table 115 specifies the AddressSpace representation for the ResendData Method.

Table 115 – ResendData Method AddressSpace definition

Attribute

Value

BrowseName

ResendData

References

NodeClass

BrowseName

DataType

TypeDefinition

ModellingRule

HasProperty

Variable

InputArguments

Argument[]

PropertyType

Mandatory

Conformance Units

Base Info ServerType

SetSubscriptionDurable Method is used to set a Subscription into a mode where MonitoredItem data and event queues are stored and delivered even if an OPC UA Client was disconnected for a longer time or the OPC UA Server was restarted. Its intended use is defined in OPC 10000-4.

Signature

SetSubscriptionDurable(

[in] UInt32 subscriptionId

[in] UInt32 lifetimeInHours

[out] UInt32 revisedLifetimeInHours

);

Argument

Description

subscriptionId

Identifier of the Subscription.

lifetimeInHours

The requested lifetime in hours for the durable Subscription.

revisedLifetimeInHours

The revised lifetime in hours the Server applied to the durable Subscription.

Method Result Codes (defined in Call Service)

Result Code

Description

Bad_SubscriptionIdInvalid

Defined in OPC 10000-4

Bad_InvalidState

Defined in OPC 10000-4

This is returned when a Subscription already contains MonitoredItems.

Bad_UserAccessDenied

Defined in OPC 10000-4

The Method was not called in the context of the Session that owns the Subscription.

Table 116 specifies the AddressSpace representation for the SetSubscriptionDurable Method.

Table 116 – SetSubscriptionDurable Method AddressSpace definition

Attribute

Value

BrowseName

SetSubscriptionDurable

References

NodeClass

BrowseName

DataType

TypeDefinition

ModellingRule

HasProperty

Variable

InputArguments

Argument[]

PropertyType

Mandatory

HasProperty

Variable

OutputArguments

Argument[]

PropertyType

Mandatory

Conformance Units

Base Info ServerType

The Method RequestServerStateChange allows a Client to request a state change in the Server.

The Client shall provide credentials with administrative rights when invoking this Method on the Server.

Signature

RequestServerStateChange(

[in] ServerState state

[in] DateTime estimatedReturnTime

[in] UInt32 secondsTillShutdown

[in] LocalizedText reason

[in] Boolean restart

);

Argument

Description

state

The requested target state for the Server. If the new state is accepted by the Server, the State in the ServerStatus is updated with the new value.

estimatedReturnTime

Indicates the time at which the Server is expected to be available in the state RUNNING_0. If no estimate is known, a null DateTime shall be provided. This time will be available in the EstimatedReturnTime Property.

This parameter shall be ignored by the Server and the Property EstimatedReturnTime shall be set to null if the new state is RUNNING_0.

secondsTillShutdown

The number of seconds until a Server shutdown. This parameter is ignored unless the state is set to SHUTDOWN_4 or restart is set to True.

reason

A localized text string that describes the reason for the state change request.

restart

A flag indicating if the Server should be restarted before it attempts to change into the requested change. If the restart is True the server changes it state to SHUTDOWN_4 before the restart if secondsTillShutdown is not 0.

Method Result Codes (defined in Call Service)

Result Code

Description

Bad_UserAccessDenied

The current user is not authorized to invoke the method

Bad_InvalidState

The requested state was not accepted by the server

Table 117 specifies the AddressSpace representation for the RequestServerStateChange Method.

Table 117 – RequestServerStateChange Method AddressSpace definition

Attribute

Value

BrowseName

RequestServerStateChange

References

NodeClass

BrowseName

DataType

TypeDefinition

ModellingRule

HasProperty

Variable

InputArguments

Argument[]

PropertyType

Mandatory

Conformance Units

Base Info ServerType