TOpcUaClient

 

Constructor

constructor TOpcUaClient.Create(AClientConfig: SpxClientConfig);

 

Connect

 

function TOpcUaClient.Connect(): SpxBoolean; overload;

 

Connect with security mode

 

function TOpcUaClient.Connect(ASecurityMode: SpxMessageSecurityMode; ASecurityPolicyUri: SpxString): SpxBoolean; overload;

 

Disconnect

 

function TOpcUaClient.Disconnect(): SpxBoolean;

 

Client is connected

 

property TOpcUaClient.IsConnect: SpxBoolean read GetIsConnect;


Last error code


property TOpcUaClient.LastErrorCode: SpxStatusCode read GetLastErrorCode;


Get string  error code


function TOpcUaClient.GetErrorInfoCode(AStatusCode: SpxStatusCode): SpxString;


Get error message


function TOpcUaClient.GetErrorInfoMessage(AStatusCode: SpxStatusCode): SpxString;


Find servers

 

function TOpcUaClient.FindServers(out Aservers: SpxApplicationDescriptionArray): SpxBoolean;

 

Get endpoints

 

function TOpcUaClient.GetEndpoints(out Aendpoints: SpxEndpointDescriptionArray): SpxBoolean;

 

Initialize session

 

function TOpcUaClient.InitSession(): SpxBoolean;

 

Read value

 

function TOpcUaClient.ReadValue(AMaxAge: SpxDouble; ATimestampsToReturn: SpxTimestampsToReturn; AReadValueIdList: SpxReadValueIdArray; out Avalues: SpxDataValueArray): SpxBoolean;

 

Read history

 

function TOpcUaClient.ReadHistory(AIsReadModified: SpxBoolean; AStartTime, AEndTime: SpxDateTime; AnumValuesPerNode: SpxUInt32; AReturnBounds: SpxBoolean; AtimestampsToReturn: SpxTimestampsToReturn; AReleaseContinuationPoints: SpxBoolean; ANodesToRead: SpxHistoryReadValueIdArray; out AhistoryValues: SpxHistoryReadResultArray): SpxBoolean;

 

Write value

 

function TOpcUaClient.WriteValue(AWriteValueList: SpxWriteValueArray; out AResults: SpxStatusCodeArray): SpxBoolean;

 

Call method

 

function TOpcUaClient.CallMethod(AMethodsToCall: SpxCallMethodRequestArray; out AResults: SpxCallMethodResultArray): SpxBoolean;

 

Browse

 

function TOpcUaClient.Browse(AMaxReferencesPerNode:SpxUInt32; ABrowseDescriptions: SpxBrowseDescriptionArray; out ABrowseResultList: SpxBrowseResultArray): SpxBoolean;

 

Browse next

 

function TOpcUaClient.BrowseNext(AReleaseContinuationPoints: SpxBoolean; AContinuationPoints: SpxByteArrayArray; out ABrowseResultList: SpxBrowseResultArray): SpxBoolean;

 

Create subscription

 

function TOpcUaClient.CreateSubscription(APublishingEnabled: SpxBoolean; ASubscription: SpxSubscription; out ASubcriptionId: SpxUInt32; out AsubscriptionResult: SpxSubscriptionResult): SpxBoolean;

 

Modify subscription

 

function TOpcUaClient.ModifySubscriptiont(ASubcriptionId: SpxUInt32; ASubscription: SpxSubscription; out ASubscriptionResult: SpxSubscriptionResult): SpxBoolean;

 

Delete subscriptions

 

function TOpcUaClient.DeleteSubscriptions(ASubcriptionIds: SpxUInt32Array; out AResults: SpxStatusCodeArray): SpxBoolean;

 

Delete all subscriptions

 

function TOpcUaClient.DeleteAllSubscriptions: SpxBoolean;

 

Create monitored items

 

function TOpcUaClient.CreateMonitoredItems(ASubcriptionId: SpxUInt32; AMonitoredItems: SpxMonitoredItemArray; out AMonitoredItemResult: SpxMonitoredItemResultArray) : SpxBoolean; overload;

 

function TOpcUaClient.CreateMonitoredItems(ASubcriptionId: SpxUInt32; ATimestampsToReturn: SpxTimestampsToReturn; AMonitoredItems: SpxMonitoredItemArray; out AMonitoredItemResult: SpxMonitoredItemResultArray): SpxBoolean; overload;

 

function TOpcUaClient.CreateMonitoredItems(ASubcriptionId: SpxUInt32; ATimestampsToReturn: SpxTimestampsToReturn; AFilter: SpxDataChangeFilter; AmonitoredItems: SpxMonitoredItemArray; out AMonitoredItemResult: SpxMonitoredItemResultArray): SpxBoolean; overload;

 

function TOpcUaClient.CreateMonitoredItems(ASubcriptionId: SpxUInt32; ATimestampsToReturn: SpxTimestampsToReturn; AFilter: SpxAggregateFilter; AMonitoredItems: SpxMonitoredItemArray; out AmonitoredItemResult: SpxMonitoredItemResultArray): SpxBoolean; overload;

 

function TOpcUaClient.CreateMonitoredItems(ASubcriptionId: SpxUInt32; ATimestampsToReturn: SpxTimestampsToReturn; AFilter: SpxFilterParams; AMonitoredItems: SpxMonitoredItemArray; out AMonitoredItemResult: SpxMonitoredItemResultArray): SpxBoolean; overload;

 

Modify monitored items

 

function TOpcUaClient.ModifyMonitoredItems(ASubcriptionId: SpxUInt32; AMonitoredItems: SpxModifyMonitoredItemArray; out AMonitoredItemResult: SpxModifyMonitoredItemResultArray): SpxBoolean; overload;

 

function TOpcUaClient.ModifyMonitoredItems(ASubcriptionId: SpxUInt32; ATimestampsToReturn: SpxTimestampsToReturn; AMonitoredItems: SpxModifyMonitoredItemArray; out AMonitoredItemResult: SpxModifyMonitoredItemResultArray): SpxBoolean; overload;

 

function TOpcUaClient.ModifyMonitoredItems(ASubcriptionId: SpxUInt32; ATimestampsToReturn: SpxTimestampsToReturn; AFilter: SpxDataChangeFilter; AMonitoredItems: SpxModifyMonitoredItemArray; out AMonitoredItemResult: SpxModifyMonitoredItemResultArray): SpxBoolean; overload;

 

function TOpcUaClient.ModifyMonitoredItems(ASubcriptionId: SpxUInt32; ATimestampsToReturn: SpxTimestampsToReturn; AFilter: SpxAggregateFilter; AMonitoredItems: SpxModifyMonitoredItemArray; out AmonitoredItemResult: SpxModifyMonitoredItemResultArray): SpxBoolean; overload;

 

function TOpcUaClient.ModifyMonitoredItems(ASubcriptionId: SpxUInt32; ATimestampsToReturn: SpxTimestampsToReturn; AFilter: SpxFilterParams; AMonitoredItems: SpxModifyMonitoredItemArray; out AmonitoredItemResult: SpxModifyMonitoredItemResultArray): SpxBoolean; overload;

 

Set monitoring mode

 

function TOpcUaClient.SetMonitoringMode(ASubcriptionId: SpxUInt32; AMonitoringMode: SpxMonitoringMode; AMonitoredItemIds: SpxUInt32Array; out AResults: SpxStatusCodeArray): SpxBoolean;

 

Delete monitored items

 

function TOpcUaClient.DeleteMonitoredItems(ASubcriptionId: SpxUInt32; AMonitoredItemIds: SpxUInt32Array; out AResults: SpxStatusCodeArray): SpxBoolean;