Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rayandrew/modbus-cpp

Modbus master and slave implementation in C++
https://github.com/rayandrew/modbus-cpp

asio cpp mit-license modbus modbus-client modbus-master modbus-server modbus-slave modbus-tcp

Last synced: about 1 month ago
JSON representation

Modbus master and slave implementation in C++

Awesome Lists containing this project

README

        

[![Actions Status](https://github.com/rayandrews/modbus-cpp/workflows/MacOS/badge.svg)](https://github.com/rayandrews/modbus-cpp/actions)
[![Actions Status](https://github.com/rayandrews/modbus-cpp/workflows/Windows/badge.svg)](https://github.com/rayandrews/modbus-cpp/actions)
[![Actions Status](https://github.com/rayandrews/modbus-cpp/workflows/Ubuntu/badge.svg)](https://github.com/rayandrews/modbus-cpp/actions)
[![Actions Status](https://github.com/rayandrews/modbus-cpp/workflows/Style/badge.svg)](https://github.com/rayandrews/modbus-cpp/actions)
[![Actions Status](https://github.com/rayandrews/modbus-cpp/workflows/Install/badge.svg)](https://github.com/rayandrews/modbus-cpp/actions)
[![codecov](https://codecov.io/gh/rayandrews/modbus-cpp/branch/master/graph/badge.svg)](https://codecov.io/gh/rayandrews/modbus-cpp)

# ModbusC++ (modbus-cpp)

Modbus master and slave implementation in C++ using Boost Asio

## Supported Functions

- Read Coils (0x01)
- Read Discrete Inputs (0x02)
- Read Holding Registers (0x03)
- Read Input Registers (0x04)
- Write Single Coil (0x05)
- Write Single Register (0x06)
- Write Multiple Coils (0x0F)
- Write Multiple Registers (0x10)
- Mask Write Register (0x16)
- Read/Write Multiple Registers (0x17)

## Usage

### Modbus slave (server)

See [server.cpp](standalone/source/server.cpp)

### Modbus master (client)

See [client.cpp](standalone/source/client.cpp)

## TODOs

- [ ] Add tests
- [ ] Complete modbus client/master
- [ ] ...

## Authors

Ray Andrew

## Acknowledgement

- [PyModbus](https://github.com/riptideio/pymodbus)
- [Libmodbus](https://github.com/stephane/libmodbus)

## LICENSE

[MIT](LICENSE)