FOCUS Software Engineering has a new name: proconX - Professional Fieldbus Connections   

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.


Compounds

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


Defines

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

   Back | Top of page Info | Support | Contact | About   
Information in this document is subject to change without notice. Copyright © 2000-2010 proconX Pty Ltd. All rights reserved.
All product and brand names mentioned on this page may be trademarks or registered trademarks of their respective owners.