OPCUAClient_Read (FUN) ¶ FUNCTION OPCUAClient_Read : RTS_IEC_RESULT This function sends a Read request to the OPC UA server. Several operations can be done in one call. The results of the operation are returned by an callback interface. InOut: Scope Name Type Comment Return OPCUAClient_Read RTS_IEC_RESULT Input hConnection RTS_IEC_HANDLE Handle to the connection where to send the read request. maxAge LREAL Maximum age of the values to be read. timestampsToReturn OpcUa_TimestampsToReturn The type of timestamps that should be returned by the server. pNodesToRead POINTER TO OpcUa_ReadValueId Pointer to an array of nodeID and attributes to read. numNodes OpcUa_Int32 Number of nodes to read. iReadCallback IOPCUAClientDataAccessCallback Callback interface to get the results.
OPCUAClient_Write (FUN) ¶ FUNCTION OPCUAClient_Write : RTS_IEC_RESULT This function sends a write request to the OPC UA server. Several operations can be done in one call. The results of the operation are returned by an callback interface. InOut: Scope Name Type Comment Return OPCUAClient_Write RTS_IEC_RESULT Input hConnection RTS_IEC_HANDLE Handle to the connection where to send the write request. pNodesToWrite POINTER TO OpcUa_WriteValue Pointer to an array of nodeID and attributes and values to write. numOfNodes OpcUa_Int32 Number of nodes to write. iWriteCallback IOPCUAClientDataAccessCallback Callback interface to get the results.
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