DeviceNet与ModBus协议转换系统由DeviceNet主站,嵌入式I/O模块,ModBus从站三部分组成,实现DeviceNet与ModBus之间的数据交互。嵌入式I/O模块采用ARM7控制器LPC2129实现DeviceNet与ModBus之间的通信,同时以软件的形式实现了一个仅限组2的DeviceNet从站和一个ModBus主站。DeviceNet从站用来解码从DeviceNet主站端接收到的数据,解码后的数据由MCU通过另一个UART接口发送给ModBus从站。UART接口旨在向ModBus从站发送读/写指令。结果表明,基于DeviceNet总线的嵌入式I/O模块可以很好地与基于ModBus总线的设备进行通信。% DeviceNet and ModBus protocols′ conversion system is composed of DeviceNet master station,embedded I/O module and ModBus slave station to realize the data exchange between DeviceNet and ModBus protocols. In this paper,ARM7 controller LPC2129 is adopted in the embedded I/O module to implement the communication between ModBus and DeviceNet. The DeviceNet slave and a CAN master stations which limit Group 2 only are realized in the form of software. DeviceNet slave station is designed to decode the data received from the DeviceNet master station. After that,the decoded data from MCU through another UART interface is sent to the ModBus slave station. UART interface send data to ModBus. The results show that the embedded I/O module based on the DeviceNet bus can communicated with the equipment based on ModBus bus well.
展开▼