MBTCP Protocol
PLX30 Series
User Manual
Ethernet and Serial Gateways
Page 96 of 200
ProSoft Technology, Inc.
September 19, 2012
The following illustration describes the flow of data between the Ethernet Clients
and the internal database.
Multiple Server Access to Database
The MBTCP gateway provides server functionality using reserved Service Port
502 for Modbus TCP/IP MBAP messages, as well as Service Ports 2000 and
2001 to support the TCP/IP Encapsulated Modbus version of the protocol used
by several HMI manufacturers. Server support in the gateway permits Client
applications (for example: HMI software, Quantum processors, etc) to read from
and write to the gateway’s database. This section discusses the requirements for
attaching to the gateway using Client applications.
The server driver is able to support multiple concurrent connections from several
Clients. Up to five (5) Clients can simultaneously connect on Service Port 502
and five (5) more can also simultaneously connect on Service Port 2000. Service
Port 2001 is used by the MBTCP protocol to pass Encapsulated Modbus
commands through from the Ethernet por
t to the gateway’s serial port.
When configured as a server, the internal database of the MBTCP gateway is
used as the source for read requests and the destination for write requests from
remote Clients. Access to the database is controlled by the command type
received in the incoming message from the Client. The following table specifies
the relationship of the gatewa
y’s internal database to the addresses required in
the incoming Modbus TCP/IP requests.
Database Address
Modbus Address
0
40001
1000
41001
2000
42001
3000
43001
3999
44000