Discovery ¶ OPCUAClient_FindServers (Function) OPCUAClient_FindServersOnNetwork (Function) OPCUAClient_GetEndpoints (Function)
OPCUAClient_FindServers (FUN) ¶ FUNCTION OPCUAClient_FindServers : RTS_IEC_RESULT This function sends a FindServers request to an OPC UA server. As this service does not need a valid session this service can be sent using a client instance. An unsecure channel is automatically created to send this service. InOut: Scope Name Type Comment Return OPCUAClient_FindServers RTS_IEC_RESULT Input hClient RTS_IEC_HANDLE Handle to the client to send the FindServers service. psEndpointURL POINTER TO OpcUa_String The URL to send the FindServers request to. callback IOPCUAClientDiscoveryCallback Callback interface to get the results.
OPCUAClient_FindServersOnNetwork (FUN) ¶ FUNCTION OPCUAClient_FindServersOnNetwork : RTS_IEC_RESULT This function sends a FindServersOnNetwork request to an OPC UA server. As this service does not need a valid session this service can be sent using a client instance. An unsecure channel is automatically created to send this service. InOut: Scope Name Type Comment Return OPCUAClient_FindServersOnNetwork RTS_IEC_RESULT Input hClient RTS_IEC_HANDLE Handle to the client to send the FindServersOnNetwork service. psEndpointURL POINTER TO OpcUa_String The URL to send the FindServersOnNetwork request to. udiStartingRecordId OpcUa_UInt32 Only recoreds with a greater ID than this are returned by the server. udiMaxRecordsToReturn OpcUa_UInt32 maximum number of records to be sent to the client. numServerCapabilityFilters OpcUa_Int32 Number of filter criteria psServerCapabilityFilters POINTER TO OpcUa_String Pointer to an array of server capabilities filter. callback IOPCUAClientDiscoveryCallback Callback interface to get the results.
NSClientTaskBase.abstrCallbackReceived (METH) ¶ METHOD abstrCallbackReceived : UDINT Implementers of this function should return ERR_OK if they stored the passed nodeInfo in any way or an error code otherwise. That information will be used to know when the memory of such objects has to be released. InOut: Scope Name Type Return abstrCallbackReceived UDINT Input addrNode NSC_NodeAddress nodeInfo NSC_NodeInfoInt
NSClientTaskBase.abstrInitialized (METH) ¶ METHOD abstrInitialized : UDINT InOut: Scope Name Type Return abstrInitialized UDINT
NSClientTaskResolveAllNodes (FB) ¶ FUNCTION_BLOCK NSClientTaskResolveAllNodes EXTENDS NSClientTaskBase IMPLEMENTS IResolveCallbackHandler Properties: Finished , inherited from NSClientTaskBase Pending , inherited from NSClientTaskBase Methods: abstrCallbackFailed abstrCallbackReceived Initialize , inherited from NSClientTaskBase ResolveCallback , inherited from NSClientTaskBase abstrInitialized , inherited from NSClientTaskBase Structure: abstrCallbackFailed (Method) abstrCallbackReceived (Method)
NSClientTaskResolveAllNodes.abstrCallbackFailed (METH) ¶ METHOD abstrCallbackFailed : UDINT InOut: Scope Name Type Return abstrCallbackFailed UDINT Input udiError RTS_IEC_RESULT
NSClientTaskResolveAllNodes.abstrCallbackReceived (METH) ¶ METHOD abstrCallbackReceived : UDINT InOut: Scope Name Type Return abstrCallbackReceived UDINT Input addrNode NSC_NodeAddress nodeInfo NSC_NodeInfoInt
NSClientTaskSearchForSpecificNode (FB) ¶ FUNCTION_BLOCK NSClientTaskSearchForSpecificNode EXTENDS NSClientTaskBase IMPLEMENTS IResolveCallbackHandler Properties: Pending Finished , inherited from NSClientTaskBase Methods: FB_Exit GetFoundNode IsMatch IsOurAddress SetSearchInfo abstrCallbackFailed abstrCallbackReceived abstrInitialized prvParentAddrMatches Initialize , inherited from NSClientTaskBase ResolveCallback , inherited from NSClientTaskBase Structure: FB_Exit (Method) GetFoundNode (Method) IsMatch (Method) IsOurAddress (Method) Pending (Property) SetSearchInfo (Method) abstrCallbackFailed (Method) abstrCallbackReceived (Method) abstrInitialized (Method) prvParentAddrMatches (Method)
NSClientTaskSearchForSpecificNode.FB_Exit (METH) ¶ METHOD FB_Exit : BOOL InOut: Scope Name Type Return FB_Exit BOOL Input bInCopyCode BOOL