蒋玉新, 蔡启仲, 李克俭. 基于ARM-FPGA的PLC通讯与编译的设计[J]. 微电子学与计算机, 2013, 30(6): 165-168.
引用本文: 蒋玉新, 蔡启仲, 李克俭. 基于ARM-FPGA的PLC通讯与编译的设计[J]. 微电子学与计算机, 2013, 30(6): 165-168.
JIANG Yu-xin, CAI Qi-zhong, LI Ke-jian. Compilation System of PLC Source Program Based on ARM-FPGA[J]. Microelectronics & Computer, 2013, 30(6): 165-168.
Citation: JIANG Yu-xin, CAI Qi-zhong, LI Ke-jian. Compilation System of PLC Source Program Based on ARM-FPGA[J]. Microelectronics & Computer, 2013, 30(6): 165-168.

基于ARM-FPGA的PLC通讯与编译的设计

Compilation System of PLC Source Program Based on ARM-FPGA

  • 摘要: 为了提高PLC(可编程控制器)的通讯稳定性及指令执行速度,采用一种以ARM为控制模块FPGA为并行处理模块的PLC主机结构.一方面,ARM控制模块通过CAN总线与手持编程器及人机界面通讯,组成控制局域网,实现点对点通讯,提高信息传输的稳定性与有效性;另一方面,针对新型指令系统按照FPGA并行运算的特点设计PLC源程序的编译方法,提出两次编译,静态编译与动态编译,用链表数据结构组织PLC指令将它们重新编译成适合FPGA并行运算的新用户指令序列,并通过ARM与FPGA之间的信息交换接口按照通信规范发送给FPGA处理.通过测试,验证了该方法的有效性.

     

    Abstract: In order to improve the communication stability and instruction execution speed of PLC-programmable controller,use a PLC host structure with ARM for control module and FPGA for parallel processing module.On the one hand,ARM control module needs to communicate with hand programmer and human-computer interface through the CAN bus.They form a control LAN and realize point-to-point communication.In this way,the system can enhance information transmission stability and validity.On the other hand,facing the new instruction system this paper has designed a method of program compiling according to the characteristics of the parallel arithmetic FPGA.The method of program compiling has two processes with static and dynamic compiler.They organize PLC instruction into a list data structure and recompile them into new user instruction sequences which are suitable for FPGA parallel operation and then send to FPGA to process through the interface of message exchanging between ARM and FPGA according to the communication standard.By testing,verify the effectiveness of the method.

     

/

返回文章
返回