ADS device identification

The unique identification of ADS devices is implemented with the aid of two identifiers:

AMS ports

ADS devices in a TwinCAT message router are uniquely identified by a number, called the ADS port no. This is specified and fixed for ADS devices, whereas pure ADS client applications (e.g. a HMI system) are allocated a variable port number when they first access the message router.

The following AMS port numbers are already assigned:

AMS port

Device

1

ADS router

2

AMS debugger

10

TCom server

11

TCom server task, RT context

12

TCom server, passive level

20

TwinCAT debugger

21

TwinCAT debugger task

30

License server

100

Logger

110

Event logger

120

Application for EtherCAT devices

130

Event logger user mode (V2)

131

Event logger real-time (V2)

132

Event logger publisher (V2)

200

Ring 0 real-time

290

Ring 0 trace

300

Ring 0 IO

400

Ring 0 PLC (legacy)

500

Ring 0 NC

501

Ring 0 NC SEC

511

Ring 0 NC SPP

520

NC instance

550

Ring ISG

600

Ring 0 CNC

700

Ring 0 line

800

Ring 0 TC2 PLC

801

TC2 PLC runtime system 1

811

TC2 PLC runtime system 2

821

TC2 PLC runtime system 3

831

TC2 PLC runtime system 4

850

Ring 0 TC3 PLC

851

TC3 PLC runtime system 1

852

TC3 PLC runtime system 2

853

TC3 PLC runtime system 3

854 - …

TC3 PLC runtime system 4 - …

900

Cam controller

950

CAM tool

1000–1199

Ring 0 IO ports

2000

Ring 0 user

2500

Crestron server

10000

System service

10201

TCP/IP server

10300

System Manager

10400

SMS server

10500

Modbus server

10502

AMS logger

10600

XML data server

10700

Automatic configuration

10800

PLC control

10900

FTP client

11000

NC control system

11500

NC interpreter

11600

GST interpreter

12000

Track control

13000

CAM control

14000

Scope server

14100

Condition monitoring

15000

Sine CH1

16000

CONTROL NET

17000

OPC server

17500

OPC client

18000

Mail server

19000

Virtual COM EL60xx

19100

Management server

19200

Miele@home server

19300

CP-Link 3

19310

Touch lock

19500

Vision service

19800

HMI server

21372

Database server

25000–25999

Reserved port range for ADS servers

25013

FIAS server

25014

Bang&Olufsen server

26000–26999

Private port range for customers

32768–65535

Reserved port range for ADS clients

AMS NetId

Each TwinCAT device in the network is identified by the AMS NetId. The AMS NetId consists of six octets. The first four octets can be freely selected. The last two octets (usually .1.1) serve as subnet mask for fieldbuses or further devices. The AMS NetId must be unique for all communication partners.

Configuration:

The AMS NetId of a local or remote TwinCAT device can be set in SYSTEM\Routes\NetId Management of a TC3 project.

ADS device identification 1:

Alternatively, the AMS NetId can be configured locally via the Router category in the TwinCAT SysTray menu. The device must be restarted after changing the AMS NetId.

ADS device identification 2: