AmsConfiguration Class
Static configuration of the Ams Router system.
Inheritance Hierarchy
System.Object
TwinCAT.Ams.AmsConfiguration
Namespace: TwinCAT.Ams
Assembly: TwinCAT.Ads.Abstractions (in TwinCAT.Ads.Abstractions.dll) Version: 7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470
Syntax
C#
public static class AmsConfigurationThe AmsConfiguration type exposes the following members.
Properties
|
|
Name |
Description |
|---|---|---|
|
|
Gets or sets the type of the channel port. | |
|
|
Gets the default router end point (IPAddress.Loopback, Port 0xBF02) | |
|
|
Gets the actually configured router loopback address. | |
|
|
Gets or sets the default router IPEndPoint. | |
|
|
Gets actually configured router port. | |
|
|
Gets actually configured router port (TcpIp port for external communication) | |
|
|
Gets or sets the router protocol. | |
|
|
Gets or sets the UDP discovery port. |
Fields
|
|
Name |
Description |
|---|---|---|
|
|
The default TCP port (0xBF02, 48898), unsecured | |
|
|
The default ADSSecure Port (0x1f50, 8016), secured | |
|
|
The default UDP discovery port (UDPDISCO_PORT, 0xBF03, 48899) | |
|
|
The used Router TcpPort (Default: DEFAULT_TCP_PORT) |
Remarks
If the router is intended to run seperately of the (virtual) system that instantiates the AdsClient or AdsServer (e.g. in UnitTests), some global static settings must be adopted to enable different network scenarious. In the default case the AdsServers and AdsClients uses the Loopback TCP port 0xBF02 to communicate internally. If the systems of AdsServer/AdsClient is split from the router (e.g. running the router isolated in a virtual machine), the Router Endpoint must be set via RouterLoopbackEndPoint setter.
See Also
- AmsConfiguration.ChannelPortType Property
- AmsConfiguration.DefaultRouterLoopbackEndPoint Property
- AmsConfiguration.RouterLoopbackAddress Property
- AmsConfiguration.RouterLoopbackEndPoint Property
- AmsConfiguration.RouterLoopbackPort Property
- AmsConfiguration.RouterProtocol Property
- AmsConfiguration.UdpDiscoveryPort Property
- AmsConfiguration.DEFAULT_UDP_DISCOVERY_PORT Field
- AmsConfiguration.s_routerPort Field
- AmsConfiguration.RouterLoopbackEndPoint Property