OPCUAClient_CreateMonitoredItems (FUN) ¶ FUNCTION OPCUAClient_CreateMonitoredItems : RTS_IEC_RESULT This function creates monitored items and addes these items to an existing subscription. Monitored items can be used to sample a single data point or to watch for events sent by specific event notifiers. To get informed on state changes and the actual new values sent by the monitored item the callback interface IOPCUAClientMonitoredItemCallback can be added to each monitored item. The interface contains callbacks for data changes and event notifications as well as for state and parameter changes. InOut: Scope Name Type Comment Return OPCUAClient_CreateMonitoredItems RTS_IEC_RESULT Input hSubscription RTS_IEC_HANDLE Handle to the subscription which should be used to handle the monitored items. eTimestampsToReturn OpcUa_TimestampsToReturn The timestamps to be returned by the Monitored items. noOfItemsToCreate OpcUa_Int32 Number of monitored items to create. pMonitoredItemsToCreate POINTER TO OPCUAClientMonitoredItemConfiguration Pointer to an array of monitored item configurations
OPCUAClient_DeleteMonitoredItems (FUN) ¶ FUNCTION OPCUAClient_DeleteMonitoredItems : RTS_IEC_RESULT This function deletes a set of monitored items from a subscription. InOut: Scope Name Type Comment Return OPCUAClient_DeleteMonitoredItems RTS_IEC_RESULT Input hSubscription RTS_IEC_HANDLE Handle to the subscription of the monitored items noOfItemsToDelete OpcUa_Int32 Number of items to delete. phItems POINTER TO RTS_IEC_HANDLE Pointer to an array of monitored item handles.
OPCUAClient_ModifyMonitoredItems (FUN) ¶ FUNCTION OPCUAClient_ModifyMonitoredItems : RTS_IEC_RESULT This function changes the parameters of a monitored item. The new parameters are sent to the server. The server thae revices these parameters and send back the selected values. The client will be informed using the parameter change callback. InOut: Scope Name Type Comment Return OPCUAClient_ModifyMonitoredItems RTS_IEC_RESULT Input hSubscription RTS_IEC_HANDLE Handle to the subscription of the monitored items. eTimestampsToReturn OpcUa_TimestampsToReturn The timestamps that should be returned by the notifications. noOfItemsToModify OpcUa_Int32 Number of items to be modified. pMonitoredItemsToModify POINTER TO OPCUAClientMonitoredItemConfiguration Pointer to an array of monitored item configurations. Note: It is only possible to change the following values: SamplingInterval Filter QueueSize DiscardOldest
OPCUAClient_SetDataChangeFilterStatic (FUN) ¶ FUNCTION OPCUAClient_SetDataChangeFilterStatic : RTS_IEC_RESULT Use this function to convert the DataChangeFilter into a OPC UA extension object needed to create or modify monitored items. InOut: Scope Name Type Return OPCUAClient_SetDataChangeFilterStatic RTS_IEC_RESULT Input pFilterExtensionObject POINTER TO OpcUa_ExtensionObject pDataChangeFilter POINTER TO OpcUa_DataChangeFilter
OPCUAClient_SetEventFilterStatic (FUN) ¶ FUNCTION OPCUAClient_SetEventFilterStatic : RTS_IEC_RESULT Use this function to convert the EventFilter into a OPC UA extension object needed to create or modify monitored items. InOut: Scope Name Type Return OPCUAClient_SetEventFilterStatic RTS_IEC_RESULT Input pFilterExtensionObject POINTER TO OpcUa_ExtensionObject pEventFilter POINTER TO OpcUa_EventFilter
OPCUAClient_SetMonitoringMode (FUN) ¶ FUNCTION OPCUAClient_SetMonitoringMode : RTS_IEC_RESULT This function changes the monitoring mode of set of monitored items. InOut: Scope Name Type Comment Return OPCUAClient_SetMonitoringMode RTS_IEC_RESULT Input hSubscription RTS_IEC_HANDLE Handle to the subscription of the monitored items. monitoringMode OpcUa_MonitoringMode The new monitorng mode for the sent items. noOfMonitoredItems OpcUa_Int32 Number of monitored items to be changed. phItems POINTER TO RTS_IEC_HANDLE Pointer to an array of monitored item handles to be changed.
Subscription ¶ OPCUAClient_CreateSubscription (Function) OPCUAClient_DeleteSubscription (Function) OPCUAClient_ModifySubscription (Function) OPCUAClient_SetPublishingMode (Function)
OPCUAClient_CreateSubscription (FUN) ¶ FUNCTION OPCUAClient_CreateSubscription : RTS_IEC_HANDLE This function creates a subscription on the OPC UA server. The subscription parameters are typically changed by the OPC UA server and sent back as reviced parameters. These parameters are used for timeout calculation and so on. The sending of publish requests is done by the runtime system itself. So no publish requests must be sent. InOut: Scope Name Type Comment Return OPCUAClient_CreateSubscription RTS_IEC_HANDLE A handle to the subscription. Input hConnection RTS_IEC_HANDLE Handle to the connection where to create the subscription. publishingInterval OpcUa_Double The publishing interval that should be used by the server. lifetimeCount OpcUa_UInt32 The liftetime count of the subscription. maxKeepAliveCount OpcUa_UInt32 The maximum number of publishing intervals befor a keepalive is sent. maxNotificationsPerPublish OpcUa_UInt32 The maximum number of notificaitons returned by one publihs response. publishingEnabled OpcUa_Boolean Flag if publishing is enabled on the server. priority OpcUa_Byte The priority of the subscription in respect to other subscriptions of the same session. pResult POINTER TO RTS_IEC_RESULT Result of the operation. callback IOPCUAClientSubscriptionCallback Callback interface to get informed on state and parameter changes.
OPCUAClient_DeleteSubscription (FUN) ¶ FUNCTION OPCUAClient_DeleteSubscription : RTS_IEC_RESULT This function deletes a subscription and all assigned monitored items on the server. InOut: Scope Name Type Comment Return OPCUAClient_DeleteSubscription RTS_IEC_RESULT Input hSubscription RTS_IEC_HANDLE Handle to the subscription to delete.
OPCUAClient_ModifySubscription (FUN) ¶ FUNCTION OPCUAClient_ModifySubscription : RTS_IEC_RESULT This function modifies the parameters of a subscription. InOut: Scope Name Type Comment Return OPCUAClient_ModifySubscription RTS_IEC_RESULT Input hSubscription RTS_IEC_HANDLE Handle to the connection where to create the subscription. reqPublishingInterval OpcUa_Double The publishing interval that should be used by the server. reqLifeTimeCount OpcUa_UInt32 The liftetime count of the subscription. reqMaxKeepAliveCount OpcUa_UInt32 The maximum number of publishing intervals befor a keepalive is sent. maxNotificationsPerPublish OpcUa_UInt32 The maximum number of notificaitons returned by one publihs response. priority OpcUa_Byte The priority of the subscription in respect to other subscriptions of the same session.