摘要
针对现有编程装置仅能存储一套PLC程序、无法查看源程序等缺点,设计一种以LPC1768微控制器为控制核心的便携式PLC编程装置,其存储和反编译模块的设计,实现了12套源程序的存储,且源程序不会丢失;能随时查看源指令文件;提高了编辑指令的效率。采用FAT32文件系统的设计方法建立PLC文件系统来暂存指令文件。运用IAP编程技术使用片内Flash存储源指令文件。源指令文件以二进制目标代码的形式存在Flash中。运用反编译技术将目标代码文件编译成源指令文件,便于查看或编制。实验表明该装置的存储和反编译模块的可行性和可靠性,克服了已有技术的缺点。
In light of the defect of existing programming device that only one set of PLC program can be stored and not able to view source program,etc.,we designed a portable PLC programming device which uses LPC1768 microprocessor as the control centre.The design of its storage and decompiling modules achieved the storage of 12 sets of PLC source program without losing anyone.The source command file could be viewed at any time,the efficiency of instructions edition was improved as well.We used the design way of FAT32 file system to set up PLC file system to temporarily store the source instruction file.We also used IAP programming technology to store source instruction files with on-chip Flash.Source instruction file was stored in Flash in the form of binary object code.We employed the decompilation technology to com-pile the object code files into source instruction files,to view or edit them was convenient.Experiment showed that the store and decompila-tion module of the device was feasible and reliable,and had overcome the shortcomings of existing technologies.
出处
《计算机应用与软件》
CSCD
2015年第10期236-239,共4页
Computer Applications and Software
基金
广西研究生教育创新计划项目(2013105940811M01)