Table of Contents

Class AmsRoute

Namespace
TwinSharp
Assembly
TwinSharp.dll

Represents a route to a TwinCAT target system, including its name, address, AmsNetId, protocol, and flags. Provides functionality to retrieve the state information of the route.

public class AmsRoute
Inheritance
AmsRoute
Inherited Members

Properties

Adress

Address of tue TwinCAT target system The address depends on the transport protocol being used.In addition to TCP/IP addresses, addresses of Profibus devices are possible, which in turn must support the ADS protocol in order to be addressed as "target system" or "remote system".

public string Adress { get; }

Property Value

string

AmsNetId

AmsNetId of the target system

public AmsNetId AmsNetId { get; }

Property Value

AmsNetId

Flags

Bitmask of flags that describe the route.

public int Flags { get; }

Property Value

int

Name

Name of the possible target system logged on to the current TwinCAT router

public string Name { get; }

Property Value

string

Protocol

Protocol used for communication with the target system.

public string Protocol { get; }

Property Value

string

Methods

GetStateInfo()

Gets the state information for this ams route.

public StateInfo GetStateInfo()

Returns

StateInfo

ToString()

Returns a string representation of the route.

public override string ToString()

Returns

string