微电子学与计算机
微電子學與計算機
미전자학여계산궤
MICROELECTRONICS & COMPUTER
2013年
6期
165-168
,共4页
PLC%CAN%编译%ARM%FPGA
PLC%CAN%編譯%ARM%FPGA
PLC%CAN%편역%ARM%FPGA
PLC%CAN%compilation%ARM%FPGA
为了提高PLC(可编程控制器)的通讯稳定性及指令执行速度,采用一种以ARM 为控制模块FPGA为并行处理模块的PLC主机结构.一方面,ARM控制模块通过CAN总线与手持编程器及人机界面通讯,组成控制局域网,实现点对点通讯,提高信息传输的稳定性与有效性;另一方面,针对新型指令系统按照FPGA并行运算的特点设计PLC源程序的编译方法,提出两次编译,静态编译与动态编译,用链表数据结构组织 PLC指令将它们重新编译成适合FPGA并行运算的新用户指令序列,并通过ARM与FPGA之间的信息交换接口按照通信规范发送给FPGA处理.通过测试,验证了该方法的有效性.
為瞭提高PLC(可編程控製器)的通訊穩定性及指令執行速度,採用一種以ARM 為控製模塊FPGA為併行處理模塊的PLC主機結構.一方麵,ARM控製模塊通過CAN總線與手持編程器及人機界麵通訊,組成控製跼域網,實現點對點通訊,提高信息傳輸的穩定性與有效性;另一方麵,針對新型指令繫統按照FPGA併行運算的特點設計PLC源程序的編譯方法,提齣兩次編譯,靜態編譯與動態編譯,用鏈錶數據結構組織 PLC指令將它們重新編譯成適閤FPGA併行運算的新用戶指令序列,併通過ARM與FPGA之間的信息交換接口按照通信規範髮送給FPGA處理.通過測試,驗證瞭該方法的有效性.
위료제고PLC(가편정공제기)적통신은정성급지령집행속도,채용일충이ARM 위공제모괴FPGA위병행처리모괴적PLC주궤결구.일방면,ARM공제모괴통과CAN총선여수지편정기급인궤계면통신,조성공제국역망,실현점대점통신,제고신식전수적은정성여유효성;령일방면,침대신형지령계통안조FPGA병행운산적특점설계PLC원정서적편역방법,제출량차편역,정태편역여동태편역,용련표수거결구조직 PLC지령장타문중신편역성괄합FPGA병행운산적신용호지령서렬,병통과ARM여FPGA지간적신식교환접구안조통신규범발송급FPGA처리.통과측시,험증료해방법적유효성.
@@@@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 .