DataAccess ¶ OPCUAClient_Read (Function) OPCUAClient_Write (Function)
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.
NSClientTaskSearchForSpecificNode.abstrInitialized (METH) ¶ METHOD abstrInitialized : UDINT InOut: Scope Name Type Return abstrInitialized UDINT
NSClientTaskSearchForSpecificNode.prvParentAddrMatches (METH) ¶ METHOD prvParentAddrMatches : BOOL InOut: Scope Name Type Return prvParentAddrMatches BOOL Input bSecond BOOL Inout nodeInfo NSC_NodeInfoInt
ReadArbitraryStringFromBuffer (FUN) ¶ FUNCTION ReadArbitraryStringFromBuffer : BOOL InOut: Scope Name Type Comment Return ReadArbitraryStringFromBuffer BOOL Input udiStrLength UDINT pStringSrc POINTER TO UINT wchar udiStaticSpace UDINT pStaticDestination POINTER TO WSTRING pOverFlowFlag POINTER TO BOOL pDynamicallyAllocFlag POINTER TO BOOL ppDynamicMem POINTER TO POINTER TO UINT bUseDynamicMem BOOL
ResetNodeInfo (FUN) ¶ FUNCTION ResetNodeInfo : BOOL InOut: Scope Name Type Return ResetNodeInfo BOOL Input pNodeInfo POINTER TO NSC_CompleteNodeInfo