FieldTalk Modbus® Slave Library
C++ Editions
FOCUS Software Engineering

Main Page | Modules | Class Hierarchy | Class List | Class Members | Related Pages

MODBUS/TCP Protocol


Detailed Description

The Server Engine of the MODBUS/TCP slave protocol is implemented in the class MbusTcpSlaveProtocol.

It provides functions to start-up and to execute the server engine. This server engine can handle multiple master connections and is implemented as a single threaded TCP server. Upon receipt of a valid master query the server engine calls Data Provider methods to exchange data with the user application. For a more detailed description which Modbus data and control functions have been implemented in the server engine see section Server Functions common to all Protocol Flavours.

Note:
If the configured TCP port is below IPPORT_RESERVED (usually 1024), the process has to run with root privilege! This applies if you are using the default MODBUS/TCP port 502.
See section The MODBUS/TCP Protocol for some background information about MODBUS/TCP.

See section Using MODBUS/TCP Protocol for an example how to use the MbusTcpSlaveProtocol class.


Classes

class  MbusTcpSlaveProtocol
 MODBUS/TCP Slave Protocol class. More...

Defines

#define MAX_CONNECTIONS   16
 Maximum concurrent TCP/IP connections handled by server engine.