IDriverStateMachine.Connecting (METH) ¶ METHOD Connecting : SysTypes.RTS_IEC_RESULT Using this method the driver is polled whether the startup of the connection is already finshed. InOut: Scope Name Type Comment Return Connecting SysTypes.RTS_IEC_RESULT An error code representing the result of the polling operation. In case the operation is not yet finished, ERR_PENDING should be returned. When it finished successfully, ERR_OK should be returned. When connecting failed, an error code should be returned and then the whole connection will be set up again.
IDriverStateMachine.PollRequestResult (METH) ¶ METHOD PollRequestResult : SysTypes.RTS_IEC_RESULT Using this method the driver is polled whether the given request is already finshed. InOut: Scope Name Type Comment Return PollRequestResult SysTypes.RTS_IEC_RESULT An error code representing the result of the polling operation. In case the operation is not yet finished, ERR_PENDING should be returned. When it finished successfully, ERR_OK should be returned. When sending a request failed, an error code should be returned and then the whole connection will be set up again. Input request IDriverRequest The request object to check for it’s result
IDriverStateMachine.ResetAfterError (METH) ¶ METHOD ResetAfterError This method is called after a failed call to one of the other methods where IDriverStateMachine.ShutdownAfterError returns FALSE. Implementations can use this call to get into a state where it is possible to start a new connection after some delay.
IDriverStateMachine.SendRequest (METH) ¶ METHOD SendRequest : SysTypes.RTS_IEC_RESULT Using this method a request should be sent by the driver. InOut: Scope Name Type Comment Return SendRequest SysTypes.RTS_IEC_RESULT An error code representing the result of the polling operation. In case the operation is not yet finished, ERR_PENDING should be returned. This will then cause followup calls to IDriverStateMachine.PollRequestResult . In case the operation finished synchronously, ERR_OK should be returned. When sending a request failed, an error code should be returned and then the whole connection will be set up again. Input request IDriverRequest The request object representing the information that should be sent to the connected device.
IDriverStateMachine.ShutdownAfterError (PROP) ¶ PROPERTY ShutdownAfterError : BOOL This property returns TRUE when the shutdown sequence should be called after a previous error. The property will be evaluated after there was an error return from one of the state machine methods.
IDriverStateMachine.ShuttingDown (METH) ¶ METHOD ShuttingDown : SysTypes.RTS_IEC_RESULT This method is called during the shutdown sequence. Implementations can use it to implement the shutdown sequence (like loggint out from the connected device, closing connection resources etc.) InOut: Scope Name Type Comment Return ShuttingDown SysTypes.RTS_IEC_RESULT An error code representing the result of this operation. In case an error happens, an according eror code should be returned. In case the sequence is not yet finished, ERR_PENDING should be returned. After a successfull or failed return, the implementation should be in a state where a new connection could be setup using a possible followup call to IDriverStateMachine.StartConnect .
IDataItem.DriverSpecific (PROP) ¶ PROPERTY DriverSpecific : IDriverSpecificData This property can be used by the connected driver to optionally attach some driver specific data to this item.
IDataItem.Name (PROP) ¶ PROPERTY Name : REFERENCE TO ItemName Returns a readonly reference to the name information of this item. Note Please remark that this property returns the name of the according item on the side of the connected datasource. This name might be different from the instance path it is accessible on the HMI device.
IDataItem.SetError (METH) ¶ METHOD SetError Assigns an error situation to this item. Will set IDataItemBase.ErrorCode and IDataItemBase.Quality to ItemQuality.Bad InOut: Scope Name Type Comment Input errorCode SysTypes.RTS_IEC_RESULT The error code to assign. Note It is not possible to reset an error using ERR_OK
IDataItem.SizeLocal (PROP) ¶ PROPERTY SizeLocal : __UXINT Returns the size of the variable represented by this item on the local device (the one running IDatasourcesMgr