FieldTalk Modbus® Slave Library C++ Editions |
![]() |
This class realises the server engine. The server engines processes Modbus messages, parses the function codes and upon receipt of a valid master query it 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.
Server Management Functions | |
int | addDataTable (int slaveAddr, MbusDataTableInterface *dataTablePtr) |
Associates a protocol object with a Data Provider and a slave address. | |
virtual int | serverLoop ()=0 |
Modbus slave server loop. | |
virtual void | shutdownServer () |
Shuts down the Modbus Server. | |
virtual int | isStarted ()=0 |
Returns if server has been started up. | |
virtual int | getConnectionStatus ()=0 |
Associates a protocol object with a Data Provider and a slave address. | |
Protocol Configuration | |
long | setTimeout (long timeOut) |
Configures master transmit time-out supervision. | |
long | getTimeout () |
Returns the master time-out supervision value. | |
Transmission Statistic Functions | |
unsigned long | getTotalCounter () |
Returns how often a message transfer has been executed. | |
void | resetTotalCounter () |
Resets total message transfer counter. | |
unsigned long | getSuccessCounter () |
Returns how often a message transfer was successful. | |
void | resetSuccessCounter () |
Resets successful message transfer counter. | |
Utility Functions | |
static char * | getPackageVersion () |
Returns the package version number. | |
Public Member Functions | |
virtual | ~MbusSlaveServer () |
Destructor. | |
Protected Member Functions | |
MbusSlaveServer (MbusDataTableInterface *dataTablePtr=NULL) | |
Constructs a MbusSlaveServer object and associates it with a Data Provider. |
|
Constructs a MbusSlaveServer object and associates it with a Data Provider.
|
|
Destructor. Shuts down server and releases any resources. |
Copyright © 2002-2006
FOCUS Software Engineering Pty Ltd, Australia.
All rights reserved.
Please see the Notices page for trademark notices. Last updated: 20 Oct 2006 |