ResultWriteControl.CreateFailed Method (AmsAddress, AdsErrorCode, AdsStateCommand, AdsState, AdsState)

Creates a failed ResultWriteControl object.

Namespace:  TwinCAT.Ads
Assembly:  TwinCAT.Ads.Abstractions (in TwinCAT.Ads.Abstractions.dll) Version: 6.0.328+39e3229

Syntax

C#

public static ResultWriteControl CreateFailed(
    AmsAddress address,
    AdsErrorCode errorCode,
    AdsStateCommand requested,
    AdsState original,
    AdsState reached
)

Parameters

address

Type: TwinCAT.Ads.AmsAddress
The address.

errorCode

Type: TwinCAT.Ads.AdsErrorCode
The error code.

requested

Type: TwinCAT.Ads.AdsStateCommand
The requested.

original

Type: TwinCAT.Ads.AdsState
The original.

reached

Type: TwinCAT.Ads.AdsState
The reached.

Return Value

Type: ResultWriteControl
ResultWriteControl.

Reference

ResultWriteControl Class

CreateFailed Overload

TwinCAT.Ads Namespace