The library provides two flavours of TCP/IP based Modbus protocols. More...
Classes | |
class | MbusTcpMasterProtocol |
MODBUS/TCP Master Protocol class. More... | |
class | MbusRtuOverTcpMasterProtocol |
Encapsulated Modbus RTU Master Protocol class. More... |
The library provides two flavours of TCP/IP based Modbus protocols.
The MODBUS/TCP master protocol is implemented in the class MbusTcpMasterProtocol. The MbusTcpMasterProtocol class provides functions to establish and to close a TCP/IP connection to the slave as well as data and control functions which can be used after a connection to a slave device has been established successfully. For a more detailed description of the data and control functions see section Data and Control Functions for all Modbus Protocol Flavours.
Using multiple instances of a MbusTcpMasterProtocol class enables concurrent protocol transfers using multiple TCP/IP sessions. They should be executed in separate threads.
See section The MODBUS/TCP Protocol for some background information about MODBUS/TCP.
See section TCP/IP Protocols for an example how to use the MbusTcpMasterProtocol class.