T_AmsPort

TYPE T_AmsPort : UINT;
END_TYPE

 

ADS devices in the TwinCAT network are identified by an AMS network address and a port number. The port number and the network address are both required as input parameters when the ADS blocks are called.

 

Table with some specified ADS port numbers:

ADS device

Port number

PLC runtime system of the BCxxxx Bus Controllers

800

Cam controller

900

PLC runtime system 1 on the PC
PLC runtime system 2 on the PC
PLC runtime system 3 on the PC
PLC runtime system 4 on the PC

801

811
821
831

NC

500

Reserved

400

I/O

300

Real-time kernel

200

Event System (logger)

100

 

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v2.7.0 Build > 517

TwinCAT v2.8.0 Build > 729

BC9xxx (165) firmware version >= 0xB7

TcAdsBC.Lb6