计算机应用与软件
計算機應用與軟件
계산궤응용여연건
COMPUTER APPLICATIONS AND SOFTWARE
2013年
9期
179-182
,共4页
蒋玉新%蔡启仲%李克俭%张炜
蔣玉新%蔡啟仲%李剋儉%張煒
장옥신%채계중%리극검%장위
PLC%编译%软元件%ARM%FPGA
PLC%編譯%軟元件%ARM%FPGA
PLC%편역%연원건%ARM%FPGA
PLC%Compilation%Soft component%ARM%FPGA
在研究PLC程序编译执行过程和新指令特点的基础上,基于ARM-FPGA的PLC主机结构,提出一种新型PLC指令的编译方法。静态编译将指令的操作数转换为PLC软元件的直接地址,建立转移类指令的转移地址链表,编译成为新的PLC程序代码序列;动态编译在PLC程序执行过程中将新程序指令中操作数的直接地址转换为立即数,由FPGA模块执行。通过对PLC用户源程序的编译与执行,表明该方法能够充分应用FPGA高速并行处理的功能,提高了PLC程序执行的速度。
在研究PLC程序編譯執行過程和新指令特點的基礎上,基于ARM-FPGA的PLC主機結構,提齣一種新型PLC指令的編譯方法。靜態編譯將指令的操作數轉換為PLC軟元件的直接地阯,建立轉移類指令的轉移地阯鏈錶,編譯成為新的PLC程序代碼序列;動態編譯在PLC程序執行過程中將新程序指令中操作數的直接地阯轉換為立即數,由FPGA模塊執行。通過對PLC用戶源程序的編譯與執行,錶明該方法能夠充分應用FPGA高速併行處理的功能,提高瞭PLC程序執行的速度。
재연구PLC정서편역집행과정화신지령특점적기출상,기우ARM-FPGA적PLC주궤결구,제출일충신형PLC지령적편역방법。정태편역장지령적조작수전환위PLC연원건적직접지지,건립전이류지령적전이지지련표,편역성위신적PLC정서대마서렬;동태편역재PLC정서집행과정중장신정서지령중조작수적직접지지전환위립즉수,유FPGA모괴집행。통과대PLC용호원정서적편역여집행,표명해방법능구충분응용FPGA고속병행처리적공능,제고료PLC정서집행적속도。
Based on the study of compilation and execution process of PLC program and the features of new instructions , we propose a novel compilation method of PLC program on a PLC platform designed by ARM-FPGA.The static compilation converts the instruction operands to direct address of PLC soft components , sets up the branch address link list of branch instructions , and the new PLC program code sequence is complied;the dynamic compilation converts the direct address of operands in new program instructions to immediate data during the execution process of PLC program and this is done by FPGA module .By compiling and executing PLC user source program , it is demonstrated that our proposed method can speed up the processing of PLC program by fully utilising the high speed parallel processing functions of FPGA.