ISumCommand Interface

Interface for SumCommands (Combined commands)

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

Syntax

C#

public interface ISumCommand

The ISumCommand type exposes the following members.

Properties

 

Name

Description

ISumCommand Interface 1:

Connection

The connection used for communication.

ISumCommand Interface 2:

ErrorStrategy

Gets the error strategy of the ISumCommand

ISumCommand Interface 3:

Executed

Gets a value indicating whether this ISumCommand was already executed.

ISumCommand Interface 4:

Failed

Gets a value indicating whether this ISumCommand failed.

ISumCommand Interface 5:

FailedCount

Gets the count of failed subcommands.

ISumCommand Interface 6:

Result

Gets the AdsErrorCode of the main SumCommandBase ADS Request

ISumCommand Interface 7:

SubResults

Gets the sub results of the single Sub Requests.

ISumCommand Interface 8:

Succeeded

Gets a value indicating whether this ISumCommand is succeeded.

ISumCommand Interface 9:

SucceededCount

Gets the count of succeeded subcommands.

Extension Methods

 

Name

Description

AllFailed

Gets a value indicating, that all SubCommands failed. (Defined by ISumCommandExtension.)

AllSucceeded

Gets a value indicating, that all SubCommands succeeded. (Defined by ISumCommandExtension.)

FirstSubError

Gets the first SubError that is not NoError (Defined by ISumCommandExtension.)

OneFailed

Gets a value indicating, whether the overall Sumcommand failed (checking all subcommand results). (Defined by ISumCommandExtension.)

OneSucceeded

Gets a value indicating, whether the overall SumCommand succeeded (including all subcommands) (Defined by ISumCommandExtension.)

OverallError

Gets the Overall (combined error) from SumCommand AND SubCommands. (Defined by ISumCommandExtension.)

Remarks

ADS offers powerful and fast communication to exchange any kind of information. It's possible to read single variables or complete arrays and structures with each one single ADS-API call. The ADS Sum Command command offers to read with one singale ADS call multiple variables which are not structured within a linear memory. As a result the ADS caller application (like scada Systems etc.) can extremly speed up cyclic polling : Sample :

REQUIREMENTS AND IMPORTANT LIMITATIONS: Note that ADS is just a transport layer, but there could be important side effects. So read this requirements and take care on limitations:

Reference

TwinCAT.Ads.SumCommand Namespace