Modbus ADS Diagnosis Interface

Modbus ADS diagnostic interface

The following information can be queried via ADS:

AMSNetID: AMSNetID of the system. If the local system is used, leave blank.

Port: 10500 (AMSPORT_R3_MODBUSSERV)

ADSRead: see : ADSREAD in the TwinCAT 3 PLC manual Lib: Tc2_System

Index Group

Index Offset

Access

Data type

Description

Minimum Modbus server version

0x2000

0

ADS Read

UINT32

GetConnectedClientCount
Returns the number of connected Modbus clients

1.0.50

0x2000

1

ADS Read

UINT32

GetModbusRequestCount
Returns the received Modbus requests

1.0.50

0x2000

2

ADS Read

UINT32

GetModbusResponseCount
Returns the Modbus responses sent

1.0.50