OPCUAClient_GetConfig (FUN) ¶ FUNCTION OPCUAClient_GetConfig : POINTER TO OpcUa_ApplicationDescription Retrieve the configuration of specific OPC UA client. InOut: Scope Name Type Comment Return OPCUAClient_GetConfig POINTER TO OpcUa_ApplicationDescription Input hClient RTS_IEC_HANDLE Handle to the OPC UA client. pResult POINTER TO RTS_IEC_RESULT Result of the operation.
Connection ¶ OPCUAClient_Connect (Function) OPCUAClient_Disconnect (Function)
OPCUAClient_Connect (FUN) ¶ FUNCTION OPCUAClient_Connect : RTS_IEC_HANDLE Connect an OPC UA client to a server. The create session can be used to send services to the OPC UA server. The endpoint in the connection configuration should only contain the user token policy that must be used to connect to the server. InOut: Scope Name Type Comment Return OPCUAClient_Connect RTS_IEC_HANDLE A handle to the connection itself. Input hClient RTS_IEC_HANDLE Handle of the client which should be used to create the connection. pConnectionConfiguration POINTER TO OPCUAClientConnectionConfiguration The configuration of the connection. Contains the endpoint to connect to and the timeouts. connectionCallback IOPCUAClientConnectionCallback A callbackinterface which is called on connection state changes or to retrieve user tokes and to verify the servers certificate.
OPCUAClient_Disconnect (FUN) ¶ FUNCTION OPCUAClient_Disconnect : RTS_IEC_RESULT Disconnect the OPC UA client. All ressources dedicated to this session will be cleand up. InOut: Scope Name Type Comment Return OPCUAClient_Disconnect RTS_IEC_RESULT Input hConnection RTS_IEC_HANDLE Handle to the connection to disconnect.
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.