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 .
IDriverStateMachine.StartConnect (METH) ¶ METHOD StartConnect : SysTypes.RTS_IEC_RESULT InOut: Scope Name Type Comment Return StartConnect 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. Please remark that this operation is not expected to return ERR_PENDING. A successfull return (ERR_OK) of this method will then cause followup calls to IDriverStateMachine.Connecting .
IDriverStateMachine.StartShutdown (METH) ¶ METHOD StartShutdown : SysTypes.RTS_IEC_RESULT This method is called to start the shutdown sequence. Implementations can use it to start logging out from the connected device for example. This method is not called while a request is pending. InOut: Scope Name Type Comment Return StartShutdown 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. Please remark that this operation is not expected to return ERR_PENDING. A successfull return (ERR_OK) of this method will then cause followup calls to IDriverStateMachine.ShuttingDown .
IDriverStateMachine2 (ITF) ¶ INTERFACE IDriverStateMachine2 EXTENDS IDriverStateMachine Properties: ShutdownAfterError , inherited from IDriverStateMachine Methods: WaitingForCommSetting Connecting , inherited from IDriverStateMachine PollRequestResult , inherited from IDriverStateMachine ResetAfterError , inherited from IDriverStateMachine SendRequest , inherited from IDriverStateMachine ShuttingDown , inherited from IDriverStateMachine StartConnect , inherited from IDriverStateMachine StartShutdown , inherited from IDriverStateMachine Structure: WaitingForCommSetting (Method)
IDriverStateMachine2.WaitingForCommSetting (METH) ¶ METHOD WaitingForCommSetting : SysTypes.RTS_IEC_RESULT InOut: Scope Name Type Comment Return WaitingForCommSetting 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. Please remark that this operation is not expected to return ERR_PENDING. A successfull return (ERR_OK) of this method will then cause followup calls to IDriverStateMachine.StartConnect . Input xPreview BOOL
ICDSV3Request.SetContentData (METH) ¶ METHOD SetContentData : SysTypes.RTS_IEC_RESULT Assigns the content of the CODESYS V3 Service that should be sent InOut: Scope Name Type Comment Return SetContentData SysTypes.RTS_IEC_RESULT An error code representing the result of this operation. Input pData POINTER TO BYTE A pointer to the data that should be sent by the service Note This data does not include the header part so only the service content must be used here. Important Please remark that this buffer must be valid until the response is received, ie. ICustomRequestCallback.RequestFinished is called for the current request uxiSize __UXINT The size of the data
ICDSV3RequestHandling (ITF) ¶ INTERFACE ICDSV3RequestHandling EXTENDS ICustomRequestHandling Properties: TargetByteorder Methods: CreateCDSV3Request ReleaseRequest , inherited from ICustomRequestHandling Structure: CreateCDSV3Request (Method) TargetByteorder (Property)
ICDSV3RequestHandling.CreateCDSV3Request (METH) ¶ METHOD CreateCDSV3Request : ICDSV3Request Creates a request that can be sent to a CODESYS V3 PLC. This method might fail in case a different kind of PLC is connected. InOut: Scope Name Type Return CreateCDSV3Request ICDSV3Request Input uiServiceGroup UINT uiService UINT
ICDSV3RequestHandling.TargetByteorder (PROP) ¶ PROPERTY TargetByteorder : ByteOrder Returns the byteorder used by the system managed by the related IDatasource . Note It is not expected that this value changes at runtime.