.NET 中有处理 Modbus 协议的好库吗?

发布于 2024-07-05 04:08:24 字数 1835 浏览 20 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

思念绕指尖 2024-07-12 04:08:25

查看 Colway Solutions http://www.colwaysolutions.com 提供的产品。 他们有一个独特的许可方案,您可以为您想要使用的每个 Modbus 功能代码付费。 它不是免费的,但定价似乎很低。 我还看到了该库对一些流行的微控制器和 RTOS 的一些移植。

Have a look at the offering from Colway Solutions http://www.colwaysolutions.com. They have a unique licensing scheme where you pay for each Modbus function code that you desire to use. Its not free but the pricing seems to be low. I also saw a few ports of the library to some popular microcontrollers and RTOS.

陌若浮生 2024-07-12 04:08:25

FieldTalk Modbus 库 - 处理所有 Modbus 功能

FieldTalk Modbus Library - handles all Modbus functions

层林尽染 2024-07-12 04:08:25

AdvancedHMI 包含一个驱动程序包,几乎适用于所有通信,但如果您只需要 Modbus,它可能会有点重。 AdvancedHMI 也正在积极开发中,并拥有强大的用户基础。
http://sourceforge.net/projects/advancedhmi/

NModbus 似乎最有可能继续开发,并且互联网上散布着许多示例项目。
https://code.google.com/p/nmodbus/

我喜欢使用这个过去(通过 TCP 的 Modbus):
http://www.codeproject.com/Tips/16260/Modbus-TCP-class

Modbus 与西门子徽标 PLC 略有不同。 我有一个示例项目,可以根据要求发送。

AdvancedHMI has a drivers package included that's just great for almost anything comms, though it may be a bit heavy if all you want is Modbus. AdvancedHMI is also under active development and has a strong user base.
http://sourceforge.net/projects/advancedhmi/

NModbus seems to be the most likely to have continued development and there are lots of example projects scattered over the internet.
https://code.google.com/p/nmodbus/

I have liked using this one in the past (Modbus via TCP):
http://www.codeproject.com/Tips/16260/Modbus-TCP-class

Modbus to a Siemens Logo PLC is a little different. I have an example project I could send upon request.

多情癖 2024-07-12 04:08:25

Modbus 是一个实现起来非常简单的协议。 您需要的所有信息都可以在互联网上轻松免费找到。

如果您选择自己实施,我将很乐意回答您在此过程中遇到的任何问题。

如果您选择使用 Modbus 主库,我会寻找:

  • Modbus TCP 支持。
  • 基于 TCP/UDP 和 COM 端口的 Modbus RTU。
  • 可配置的字节交换、字交换
  • 可配置的“基”地址,因此您可以选择地址 1 实际上是地址 0(听起来很愚蠢,但我更喜欢始终按照记录的方式指定地址)
  • 它必须支持将多个地址读取为一个块,但它需要灵活,如果块中的任何地址未使用/保留,一些 modbus 从站将返回错误)。

Modbus is a very simple protocol to implement. All information you need can easily be found for free on the Internet.

If you choose to implement it yourself, I will be happy to answer any questions you have along the way.

If you choose to go for a modbus master library I would look for:

  • Modbus TCP support.
  • Modbus RTU over TCP/UDP and COM-port.
  • Configurable byte swapping, word swapping
  • Configurable "base" address so you can choose address 1 to actually be address 0 (sounds stupid, but I prefer to always specify addresses the same way they are documented)
  • it must support reading several addresses as a block, but it need to be flexible, some modbus slaves will return error if any address in the block is unused/reserved).
生生不灭 2024-07-12 04:08:24

自从我在一家家庭自动化公司工作以来,过去几年我与设备进行了大量通信,但我们不使用 Modbus。 我们使用设备 Web 服务 (WSD) 以标准且开放的方式进行通信,该服务也称为设备配置文件Web 服务(DPWS)

在此期间,我确实听说过一个名为 NModbus 的项目。 它是一个用于使用 modbus 的开源库。 我没有使用过它,但查看了该网站以及 Google 代码上的变更集 ,看起来很活跃。 您可能想看一下甚至参与其中。这是我听说过的唯一一个针对 .Net 的库。

I have done a lot of communication with devices for the past few years, since I work for a home automation company, but we don't use Modbus. We do communication in a standard and open way using Web Services for Devices(WSD) which is also know as Devices Profile for Web Services(DPWS).

During this time at one point, I did hear of a project called NModbus. It is an open source library for working with modbus. I have not used it, but looking at the site and the changesets on Google Code, it looks pretty active. You may want to give it a look and even get involved in. This is the only library that I have heard of that targets .Net.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文