IDataSourceDriver5 (ITF) ¶ INTERFACE IDataSourceDriver5 EXTENDS IDataSourceDriver4 Properties: CredentialsNeeded , inherited from IDataSourceDriver3 LastError , inherited from IDataSourceDriver State , inherited from IDataSourceDriver Methods: IsSwappingNeeded ProcessDataServerReply ProcessDataServerRequest AssignCredentials , inherited from IDataSourceDriver3 Connecting , inherited from IDataSourceDriver GetInterface , inherited from IDataSourceDriver3 GetRequestResult , inherited from IDataSourceDriver GetSetting , inherited from IDataSourceDriver Initialize , inherited from IDataSourceDriver ReadRequest , inherited from IDataSourceDriver ReadRequest2 , inherited from IDataSourceDriver4 Reset , inherited from IDataSourceDriver ShutdownFinished , inherited from IDataSourceDriver2 ShuttingDown , inherited from IDataSourceDriver StartConnect , inherited from IDataSourceDriver StartShutdown , inherited from IDataSourceDriver UpdateRequest , inherited from IDataSourceDriver WriteRequest , inherited from IDataSourceDriver WriteRequest2 , inherited from IDataSourceDriver4 Structure: IsSwappingNeeded (Method) ProcessDataServerReply (Method) ProcessDataServerRequest (Method)
IDataSourceDriver5.IsSwappingNeeded (METH) ¶ METHOD IsSwappingNeeded : SwappingInfo This method determines, whether the data source requires a swapping of the data, that was read from the remote device. InOut: Scope Name Type Return IsSwappingNeeded SwappingInfo
IDataSourceDriver5.ProcessDataServerReply (METH) ¶ METHOD ProcessDataServerReply : UDINT This method will be called after a request has been sent using method ProcessDataServerRequest. InOut: Scope Name Type Comment Return ProcessDataServerReply UDINT Input dwTransactionId DWORD The ID of the transaction, that we got by method ProcessDataServerRequest. itfRequestParameter IRequestParameter The parameters for executing the request itfRequestResult IRequestResult This instance allows to store the result
IDataSourceDriver5.ProcessDataServerRequest (METH) ¶ METHOD ProcessDataServerRequest : UDINT Generic method to pass a request from the data server to the PLC. The return value indicates, whether the processing was successful. The result (i.e. the number of rows) will be returned asynchronuously by method ProcessDataServerReply. InOut: Scope Name Type Comment Return ProcessDataServerRequest UDINT Input itfRequestParameter IRequestParameter The parameters for executing the request Output dwTransactionId DWORD Returns the ID of the transaction for the request
IGeneric (ITF) ¶ INTERFACE IGeneric In fact this interface defines an equivalent mechanism Methods: GetInterface Structure: GetInterface (Method)
IGeneric.GetInterface (METH) ¶ METHOD GetInterface : POINTER TO BYTE Optionally returns an interface with the given id when it is implemented by the impelementing function block. The return value will be pointer to the requested interface InOut: Scope Name Type Return GetInterface POINTER TO BYTE Input dwItfId DWORD
IProvidesConcreteType (ITF) ¶ INTERFACE IProvidesConcreteType EXTENDS IGeneric -> IGeneric Properties: ImplementingTypeId Instance Methods: GetInterface , inherited from IGeneric Structure: ImplementingTypeId (Property) Instance (Property)
IProvidesConcreteType.ImplementingTypeId (PROP) ¶ PROPERTY ImplementingTypeId : UDINT
ICredentialsProvider.GetCredentials (METH) ¶ METHOD GetCredentials : UDINT Must return ERR_OK if called after a successfull <see cref=”IsGetCredentialsFinished”> InOut: Scope Name Type Return GetCredentials UDINT Input udiRequestId UDINT Output stUserName STRING stPassword STRING
ICredentialsProvider.IsGetCredentialsFinished (METH) ¶ METHOD IsGetCredentialsFinished : UDINT Will return ERR_OK if the request is finished, ERR_PENDING if it is not yet finished, ERR_DS_RETRYLOGIN if the login should be tried again, another error code in case of an error InOut: Scope Name Type Return IsGetCredentialsFinished UDINT Input udiRequestId UDINT