Coder Social home page Coder Social logo

0000duck / modbus-tcp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from goddland16/modbus-tcp

0.0 1.0 0.0 178 KB

Modbus TCP client library to interact with Modbus servers such as PLCs.

License: GNU General Public License v2.0

C++ 95.14% C 4.86%

modbus-tcp's Introduction

README

Overview

This is an Arduino library for communicating with Modbus server over Ethernet (via TCP protocol). Arduino will act as a Modbus client and request data from Modbus Server(which could be any device or PLC).

Hardware

This library has been tested with an Arduino Mega with following Compatible Ethernet ICs.

  1. Wizent W5100 - Ethernet library.
  2. ENC28J60 - UIPEthernet library.
  3. ESP8266 - ESP8266 library.

Note: It can be made compatible with Wiznet W5500 model, by adding new Ethernet2 library in the header file.

Settings

Depending on the ic used set the following Macros.

  1. define WIZNET_W5100 = 0
  2. define ENC28J60 = 0
  3. define ESP8266 = 1

Features

The following Modbus functions have been implemented:

Discrete Coils/Flags

  • 0x01 - Read Coils
  • 0x02 - Read Discrete Inputs
  • 0x05 - Write Single Coil
  • 0x0F - Write Multiple Coils

Registers

  • 0x03 - Read Holding Registers
  • 0x04 - Read Input Registers
  • 0x06 - Write Single Register
  • 0x10 - Write Multiple Registers
  • 0x16 - Mask Write Register
  • 0x17 - Read Write Multiple Registers

modbus-tcp's People

Contributors

flouk19 avatar goddland16 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.