IDriverStateMachine2 ¶ WaitingForCommSetting (Method)
IDriverStateMachineNotifyBeforeShutdown ¶ BeforeShutdown (Method)
WriteRequest.Send (METH) ¶ METHOD Send : SysTypes.RTS_IEC_RESULT InOut: Scope Name Type Return Send SysTypes.RTS_IEC_RESULT Inout conn PlcConnection
RootAddressDatasourceIndex.DatasourceIndex (PROP) ¶ PROPERTY DatasourceIndex : INT
RootAddressDatasourceIndex.QueryInterface (METH) ¶ METHOD QueryInterface : POINTER TO POINTER TO BYTE InOut: Scope Name Type Comment Return QueryInterface POINTER TO POINTER TO BYTE Input iid DWORD InterfaceID pResult POINTER TO UDINT
StateMachine.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, CmpErrors.Errors.ERR_PENDING should be returned. When it finished successfully, CmpErrors.Errors.ERR_OK should be returned. When connecting failed, an error code should be returned and then the whole connection will be set up again.
StateMachine.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, CmpErrors.Errors.ERR_PENDING should be returned. When it finished successfully, CmpErrors.Errors.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 IDatasources.IDriverRequest The request object to check for it’s result
StateMachine.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.
StateMachine.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, CmpErrors.Errors.ERR_PENDING should be returned. This will then cause followup calls to |IDriverStateMachine.PollRequestResult| . In case the operation finished synchronously, CmpErrors.Errors.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 IDatasources.IDriverRequest The request object representing the information that should be sent to the connected device.
StateMachine.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.