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
ICredentialsProvider.LoginFailed (METH) ¶ METHOD LoginFailed : UDINT Will be called when a login failed due to wrong credentials The behaviour of the datasource afterwards depends on the return value. In case of ERR_PENDING, the logincycle will be started again with a call to GetCredentials. In all other cases the driver will go to it’s error state. InOut: Scope Name Type Comment Return LoginFailed UDINT Input udiRequestId UDINT Output udiRetryWaitTime UDINT The time that is waited until the next try to login is started
ICredentialsProvider.StartGetCredentials (METH) ¶ METHOD StartGetCredentials : UDINT Will return an id of the question for credentials. This id can be used in the following calls to <see cref=”IsGetCredentialsFinished”/> InOut: Scope Name Type Comment Return StartGetCredentials UDINT Input pstDataSource POINTER TO STRING The name of the datasource Output udiErrorCode UDINT
IDataGroup (ITF) ¶ INTERFACE IDataGroup EXTENDS __SYSTEM.IQueryInterface Methods: AddItem Clear Release Use Structure: AddItem (Method) Clear (Method) Release (Method) Use (Method)