IDriverCDSV3 (ITF) ¶ INTERFACE IDriverCDSV3 EXTENDS IDriver This interface can be implemented by drivers that (can) connect to CODESYS V3 PLCs. Properties: CredentialsHandling , inherited from IDriver DataByteOrder , inherited from IDriver RequestFactory , inherited from IDriver StateMachine , inherited from IDriver TargetByteOrder , inherited from IDriver Methods: CanSendCDSV3CustomRequest Init , inherited from IDriver Structure: CanSendCDSV3CustomRequest (Method)
IDataItem.SizeLocal (PROP) ¶ PROPERTY SizeLocal : __UXINT Returns the size of the variable represented by this item on the local device (the one running IDatasourcesMgr
IDataItem.SizeRemote (PROP) ¶ PROPERTY SizeRemote : __UXINT Returns the size of the variable represented by this item on the remote device (the one IDriver connects to.
IDataItemValueAssigner (ITF) ¶ INTERFACE IDataItemValueAssigner EXTENDS __SYSTEM.IQueryInterface Implementations of this interface represent a mechanism for assigning values retrieved from a device connected by a IDriver to the local value or the other way round. Methods: GetRawValue SetRawValue Structure: GetRawValue (Method) SetRawValue (Method)
IDataItemValueAssigner.GetRawValue (METH) ¶ METHOD GetRawValue : POINTER TO BYTE This method can be called to retrieve the value in a form that can be written to a device connected by a IDriver from the local value InOut: Scope Name Type Comment Return GetRawValue POINTER TO BYTE A pointer to the data that should be sent. The data will be in byte order according to IDriver.DataByteOrder and the size will be the one returned by IDataItem.SizeRemote Important The returned value will not be guaranteed to be valid longer than the typically current call of IDriverStateMachine.SendRequest
IDataItemValueAssigner.SetRawValue (METH) ¶ METHOD SetRawValue This method can be called to assign a value retrieved from a device connected by a IDriver to the local value InOut: Scope Name Type Comment Input pData POINTER TO BYTE A pointer to the data retrieved from the device. The byte order is expected to be IDriver.DataByteOrder and the size is IDataItem.SizeRemote
IDriver (ITF) ¶ INTERFACE IDriver EXTENDS __SYSTEM.IQueryInterface This interface must be implemented by communication drivers that provide data for the Datasources data aquisition mechanism. Properties: CredentialsHandling DataByteOrder RequestFactory StateMachine TargetByteOrder Methods: Init Structure: CredentialsHandling (Property) DataByteOrder (Property) Init (Method) RequestFactory (Property) StateMachine (Property) TargetByteOrder (Property)
IDriverCredentialsHandling.SetCredentials (METH) ¶ METHOD SetCredentials : SysTypes.RTS_IEC_RESULT Assigns a credentials object to the driver instance. InOut: Scope Name Type Comment Return SetCredentials SysTypes.RTS_IEC_RESULT Input credentials ICredentials An object containing the resulting credentials. Note Please remarkt that is object is not required to be alive longer than the call to the current method so it should not be stored by the callee.
IDriverCredentialsHandlingEveryLogin (ITF) ¶ INTERFACE IDriverCredentialsHandlingEveryLogin EXTENDS IDriverCredentialsHandling Optional extension interface of IDriverCredentialsHandling that can be used in case credentials should be requested on every connection or after every connection loss. Otherwise the driver instance must keep them in memory. Properties: AskCredentialsEveryLogin CredentialsNecessary , inherited from IDriverCredentialsHandling Methods: SetCredentials , inherited from IDriverCredentialsHandling Structure: AskCredentialsEveryLogin (Property)
IDriverCredentialsHandlingEveryLogin.AskCredentialsEveryLogin (PROP) ¶ PROPERTY AskCredentialsEveryLogin : BOOL