/modbuspp

A C++ Library for Modbus TCP Protocol

Primary LanguageC++GNU General Public License v3.0GPL-3.0

MODBUS++ (MODBSPP) V0.1

MODBUS++ (MODBUSPP) is an open source c++ class/ library making an encapsulation of Modbus TCP Protocol published by Modicon (Now Schneider Electirc).

MODBUS++ is based on Object-Oriented Programming. While it keeps the efficiency of C++ Code , it provides a higher level of abstraction than other C Modbus Library. Generally, it is easier for programmers to use in their development requiring MODBUS TCP Protocol.

Attention: The code has dependencies on libary on Linux for TCP/IP, if you want to use this in windows, check winsock2 and rewrite portion of code based on socket, Thanks!

Usage

Following the steps:

Download

Download the MODBUS++, you can:

Include In your code

To include Modbus++ in your code, just simply type this in the start of your program:

include "modbus.h"
include "modbus_exception.h"

Documentation

Due to the time limit, I cannot provide a full document in a website format.

However, please look at the example.c, where I showed examples of how each functions work. There are also extremely detailed comment in the source code. Take 5 minutes go through the comments and then you will totally know how to use it!


Also, you can leave me message via Issues, or you can email me at:

lvfanzhe@hotmail.com

I usually make a response within 12 hours.