FieldTalk Modbus Slave C++ Library
Library version 2.9.1
|
Classes | |
class | MbusRtuSlaveProtocol |
This class realises the server-side of the Modbus RTU slave protocol. More... | |
class | MbusAsciiSlaveProtocol |
This class realises the server side of the Modbus ASCII slave protocol. More... | |
The Server Engines of the two serial protocol flavours are implemented in the classes MbusRtuSlaveProtocol and MbusAsciiSlaveProtocol. These classes provide functions to start-up and to execute the server engine which includes opening and closing of the serial port. 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 Modbus Protocol Flavours.
See sections The RTU Protocol and The ASCII Protocol for some background information about the two serial Modbus protocols.
See section Using Serial Protocols for an example how to use the MbusRtuSlaveProtocol and MbusAsciiSlaveProtocol class.