Giter Club home page Giter Club logo

modbus-dotnet's Introduction

Modbus Client Library for .NET

Yet another Modbus client library for .NET.

Features

  1. RTU, ASCII and TCP protocols via serial or network connection.
  2. Implemented read/write functions (Modbus function codes):
    • Read Coils / Discrete Inputs / Holding Registers / Input Registers (1/2/3/4)
    • Write Single Coil / Holding Register (5/6)
    • Write Multiple Coils / Holding Registers (15/16)
  3. Splitting single read/write requests into multiple requests with valid number of memory elements.
  4. Automatic reconnection to device.
  5. Support of multiple devices on the same serial port (lock (SerialPort)).
  6. Possibility of other Modbus function code (including user-defined) implementation.

Not implemented and user-defined Modbus function codes

All implemented Read/Write methods internally use PL.Modbus.Client.Command method. For Modbus TCP and Modbus ASCII this method can be used with any function code, since these protocols allow to receive responce data without knowing its size beforehand. For Modbus RTU descendant class should be created with overriden PL.Modbus.Client.ReadRtuData method.

Examples

ModbusClient

Simple Modbus client application.

ModbusSpeedTest

Tests client-server connection and measures transaction rate.

ModbusMemoryTest

Tests Modbus server by writing to random memory locations, reading back and comparing data.

Documentation

Modbus (Wikipedia)
Modbus Protocol Specification
Modbus Serial Line Protocol and Implementation Guide

modbus-dotnet's People

Contributors

plasmapper avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

hovinhhieu

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.