DataSourceTransactionResult (ENUM) ¶ TYPE DataSourceTransactionResult : InOut: Name TR_Ok TR_Pending TR_UnknownTransaction TR_Error
DriverInitConstants (GVL) ¶ InOut: Scope Name Type Initial Constant CustomerMask DWORD 16#FFFF0000 DriverMask DWORD 16#FFFF Customer_Standard WORD 16#0 Driver_Unknown WORD 16#0 Driver_Monitoring_Standard WORD 16#1 Driver_OPC_Standard WORD 16#2 Driver_SymbolicMonitoring_Standard WORD 16#3
DriverInitInfo (STRUCT) ¶ TYPE DriverInitInfo : STRUCT InOut: Name Type Comment dwDataTag DWORD identifies the kind of given initialization data dwDataVersion DWORD for extensibility of the init data dwDataSize DWORD size of the given data, correlated to dwDataVersion
ICallback (ITF) ¶ INTERFACE ICallback EXTENDS IGeneric -> IGeneric Methods: Callback GetInterface , inherited from IGeneric Structure: Callback (Method)
ICallback.Callback (METH) ¶ METHOD Callback InOut: Scope Name Type Comment Input pParam POINTER TO BYTE A generic parameter, depending on the specific callback
ICredentialsProvider (ITF) ¶ INTERFACE ICredentialsProvider EXTENDS IGeneric -> IGeneric Methods: GetCredentials IsGetCredentialsFinished LoginFailed StartGetCredentials GetInterface , inherited from IGeneric Structure: GetCredentials (Method) IsGetCredentialsFinished (Method) LoginFailed (Method) StartGetCredentials (Method)
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