论文部分内容阅读
工业控制中,对由一主机和若干从机所构成的网络,可以采用Modbus协议实现主从之间的信息传递;在实现主从通信的基础上,提高信息交换的准确性和速率显得十分必要;通过定制WinCE操作系统和串口驱动编程,分析Modbus RTU通信协议的原理,并设计Modbus RTU通信协议的主机和从机通信的程序包,实现了将Modbus协议移植到Samsung S3C2440嵌入式处理器上;结果表明,在ARM设备和WinCE环境下实现Modbus通信协议是可行的,这为实时高效地实现主从对话提供了依据。
In industrial control, the Modbus protocol can be used to transfer the information between the master and the slave to the network composed of a host and several slaves. It is very necessary to improve the accuracy and speed of information exchange based on the master-slave communication ; Through custom WinCE operating system and serial port driver programming, analysis of the principle of Modbus RTU communication protocol, and design of Modbus RTU communication protocol host and slave communication package to achieve the Modbus protocol ported to the Samsung S3C2440 embedded processor; The results show that it is feasible to implement Modbus communication protocol in ARM device and WinCE environment, which provides a basis for efficient master-slave dialogue in real time.