Giter Club home page Giter Club logo

easymodbus's Introduction

EasyModbus

最简单好用的Modbus控件 根据EasyModbus修改而来,修复了几个bug,增加了几个接口,简单好用。 .NET版本Modbus TCP、Modbus UDP、Modbus RTU client/poll库

支持的功能代码: 读线圈(FC1) 读取离散输入(FC2) 读寄存器(FC3) 读输入寄存器(FC4) 写单线圈(FC5) 写入单个寄存器(FC6) 写多个线圈(FC15) 写入多个寄存器(FC16) 读/写多个寄存器(FC23)


ModbusClient从机修改版:


2023-6-29:删除numberOfClientsChanged、NumberOfConnectedClientsChanged事件 2020-8-13:解决ModbusUDP无法二次启动问题 关闭未结束线程 listenerThread 2020-8-2:增加ReceiveDataChanged(Byte[] data) SendDataChanged(Byte[] data)回调 2020-8-2:解决从机模式接收数据debug信息全部为00的问题 2020-8-1:增加ModbusType 规范化编程 2020-8-1:解决UDP从机模式关闭后不能打开的问题 2020-7-30:解决ModbusRTU从机模式下数据接收错误的问题 详见:SerialHandler


ModbusPoll主机修改版:


2023-6-27:修复NumberOfRetries无效错误 if (NumberOfRetries > countRetries) 2023-6-27:修复TCP连接断线无法触发ConnectedChanged的问题 2020-8-15:增加响应延时属性ResposeDelay 事件ResposeDelayChanged 2020-8-11:修正Modbus主机模式下退出报不能为Null异常错误 详见:~ModbusClient() 2020-8-11:修正UDP连接connected属性一直为True的问题 2020-8-2:规范化ReceiveDataChanged(Byte[] data) SendDataChanged(Byte[] data)回调 2020-8-1:增加ModbusType 规范化编程 2020-8-1:增加UDP模式发送回传(全模式支持发送、接收通信数据回传) 2020-7-31:修正Modbus主机模式下连接超时 详见:connectTimeout


注意:


原版client/server类是反的 本分支已修正 本分支未提供测试GUI 使用EasyModbus非常简单 推荐在您的工程中直接引用EasyModbus.dll: https://github.com/lijinshang/EasyModbus/tree/main/EasyModbus/bin/Release/

GUI程序可以帮助您快速评估本控件: https://github.com/lijinshang/GM_ModbusDebug

尽管本控件已经用在项目中测试过了,但不排除它依然有bug隐患,如果您发现有bug, 请与我联系,尽可能一次描述清楚问题,感谢。


[email protected]

easymodbus's People

Contributors

lijinshang 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.