CmpOPCUAClient ¶ OPCUAClient_Create (Function) OPCUAClient_Delete (Function) OPCUAClient_GetConfig (Function)
OPCUAClient_Delete (FUN) ¶ FUNCTION OPCUAClient_Delete : RTS_IEC_RESULT Delete an OPC UA client. This will close all connections and cleanup all ressources used by this client instance. InOut: Scope Name Type Comment Return OPCUAClient_Delete RTS_IEC_RESULT Input hClient RTS_IEC_HANDLE Hanlde of the OPC UA client created with OPCUAClient_Create.
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)