问题描述
有人可以推荐一个用于 Microchip PIC18 处理器的 Modbus RTU 从设备的开源实现吗?我正在寻找用于 RS-232/RS-485 的 Modbus RTU 实现,但也欢迎 Modbus TCP/IP 实现.
Can someone suggest an open source implementation of a Modbus RTU Slave for a Microchip PIC18 processor? I'm looking for an implementation of Modbus RTU for RS-232/RS-485, but a Modbus TCP/IP implementation would be welcome as well.
推荐答案
我已经为 PIC18 实现了一个 Modbus RTU(和 ASCII)从机,但使用 USB 而不是 RS232/485.转换为 RS232/485 非常容易,因为协议代码只需要字符发送和接收功能.如果需要,我可以帮助您.
I've implemented a Modbus RTU (and ASCII) slave for PIC18 but using USB instead of RS232/485. It would be very easy to convert to RS232/485 though as the protocol code only requires character transmit and receive functions. I can help you with this if required.
看看我的 USB Modbus I/O 页面 http://www.fieldofcows.com/index.php?title=USB_Modbus_Interface 看看它是否满足您的需求.该页面包含源代码的下载链接.源代码在 GNU GPL 下发布.
Take a look at my USB Modbus I/O page at http://www.fieldofcows.com/index.php?title=USB_Modbus_Interface to see if it meets your needs. The page includes a download link for the source code. The source is released under GNU GPL.
这篇关于Microchip PIC 的 Modbus 堆栈的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!