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 following port numbers are invariably specified on every individual TwinCAT system. Table with specified ADS port numbers:

ADS device

Port number

Camshaft controller value

900

PLC

Run-time system 1 :801

Run-time system 2 :811
Run-time system 3 :821
Run-time system 4 :831

NC

500

Reserved

400

I/O 

300

Real-time kernel

200

Message system

100

 

Up to 4 independent PLC run-time systems can run on each computer, and each run-time system is to be looked on as an independent PLC. The port number and the network address are both required as input parameters when the ADS blocks are called.

Requirements

Development environment

Target system type

PLC libraries to include

TwinCAT v2.8.0

PC or CX (x86)

TcSystem.Lib

TwinCAT v2.10.0 Build >= 1301

CX (ARM)

TcSystem.Lib