摘要
为解决嵌入式PLC和手持编程器的通信问题,分析了嵌入式PLC和手持编程器的通信工作过程,提出了采用LPC2478以及其自带的CAN控制器进行通信节点硬件设计。针对系统通信特点,设计了CAN扩展协议,并重点介绍了CAN扩展协议的格式含义及采用uC/OS-II实时操作系统和CAN扩展协议进行系统软件应用程序的设计及编写方法。通过实验结果表明,该设计可以实现手持编程器和嵌入式PLC远程下载、读取、监控等通信功能。
To solve communication problems of embedded PLC and hand-held programmer,communication working process of embedded PLC and hand-held programmer is analyzed,and communication node hardware design by LPC2478 and its own CAN controller is proposed.According to system communication characteristics,a custom CAN expand agreement is designed,and CAN expand agreement format meaning and software application design and program method by uC/OS-II real-time operating system and the custom CAN expand protocol are emphatically introduced.Tests show that this design can realize communication functions of handheld programmer and embedded PLC,such as remote downloading,reading,monitoring and so on.
出处
《计算机工程与设计》
CSCD
北大核心
2012年第2期535-539,共5页
Computer Engineering and Design
基金
广西自然科学基金项目(桂科基0991067)