论文部分内容阅读
近年来,以太网技术与嵌入式技术的融合,使以太网技术开始应用于工业控制。本文为设计一个满足工业控制对实时性、稳定性和可靠性要求的以太网控制系统提供了一套性价比高、通用性强的解决方案。先介绍了ARM内核的微控制器LPC2368的以太网接口的硬件设计原理,并阐述了实时操作系统μC/OS-Ⅱ移植的过程。接着简要的分析了μC/TCP-IP协议栈的架构以及各层次之间的依赖关系,在此基础上详细分析了NIC驱动程序的设计方法和程序流程。最后对系统进行了测试,并应用于远程直流电机调速。结果表明,本系统稳定可靠、响应时间短、比传统的串口通信具有更高的带宽和传输距离,能够实现工业现场控制层与企业信息管理层的无缝连接。
In recent years, Ethernet technology and embedded technology integration, Ethernet technology began to be used in industrial control. This article provides a cost-effective, versatile solution for designing an Ethernet control system that meets the real-time, stability and reliability requirements of industrial control. First introduced the hardware design principle of Ethernet interface of LPC2368 in ARM core microcontroller and explained the process of μC / OS-Ⅱ porting in real-time operating system. Then briefly analyzed the architecture of the μC / TCP-IP protocol stack and the dependencies between the various levels. On this basis, the design method and program flow of the NIC driver are analyzed in detail. Finally, the system was tested and applied to remote DC motor speed control. The results show that the system is stable and reliable, the response time is short, and has higher bandwidth and transmission distance than the traditional serial communication, which can realize the seamless connection between industrial field control layer and enterprise information management layer.