机电工程技术
機電工程技術
궤전공정기술
MACHANICAL & ELECTRICAL ENGINEERING TECHNOLOGY
2014年
12期
210-214
,共5页
Modbus%编译型PLC%DMA%操作系统
Modbus%編譯型PLC%DMA%操作繫統
Modbus%편역형PLC%DMA%조작계통
Modbus%complied PLC%DMA%operating system
在编译型PLC的研发过程中,为使PLC的通信具有通用性和开放性,采用了Modbus协议。针对中断数据收发会占用大量CPU的问题,以及几种常用PLC通信方式的优缺点,通过对Modbus协议的研究,在ARM技术和操作系统的支持下,结合编译型PLC的特点,提出了一种中断组合DMA的数据收发新方法和一种多任务通信方法,实现了一种实时性较好、CPU占用量较少的适合于编译型PLC串行链路上的Modbus服务器通信。测试结果表明了程序的正确性。
在編譯型PLC的研髮過程中,為使PLC的通信具有通用性和開放性,採用瞭Modbus協議。針對中斷數據收髮會佔用大量CPU的問題,以及幾種常用PLC通信方式的優缺點,通過對Modbus協議的研究,在ARM技術和操作繫統的支持下,結閤編譯型PLC的特點,提齣瞭一種中斷組閤DMA的數據收髮新方法和一種多任務通信方法,實現瞭一種實時性較好、CPU佔用量較少的適閤于編譯型PLC串行鏈路上的Modbus服務器通信。測試結果錶明瞭程序的正確性。
재편역형PLC적연발과정중,위사PLC적통신구유통용성화개방성,채용료Modbus협의。침대중단수거수발회점용대량CPU적문제,이급궤충상용PLC통신방식적우결점,통과대Modbus협의적연구,재ARM기술화조작계통적지지하,결합편역형PLC적특점,제출료일충중단조합DMA적수거수발신방법화일충다임무통신방법,실현료일충실시성교호、CPU점용량교소적괄합우편역형PLC천행련로상적Modbus복무기통신。측시결과표명료정서적정학성。
In order to make the communication of complied PLC which is researched and implemented to be compatible and open, Modbus protocol is adopted. Aiming at data transmission through interrupt will take up a lot of CPU time, and the advantages and disadvantages of several kinds of PLC communication mode,through the study of Modbus protocol,with the support of ARM technology and RTOS, and according to the characteristics of compiled PLC, a new combinational way of DMA and interrupt, and a effective multitask way is proposed. Finally, a kind of serial link Modbus communication that is higher real-time, lesser CPU occupation, and suitable to complied PLC is implemented. The test results turned out that the correctness of the program.