Font Size: a A A

The Design Of Compilation For PLC Instructions And Configuration Of Data For Computation On ARM

Posted on:2013-05-15Degree:MasterType:Thesis
Country:ChinaCandidate:B X WuFull Text:PDF
GTID:2248330362475130Subject:Control theory and control engineering
Abstract/Summary:PDF Full Text Request
With the technology’s quickly updating, the technology of PLC has been applying inevery filed of industry control widly,but the usual PLC instruction has its shortage thatthe performance of parallel is not high as expected when PLC System executes it.In orderto make the efficience of the PLC system higher when executing PLC instruction,manyrelated work and reseach have been running in both domestic and foreign area.This paperpresents a menthod of compilation that original PLC program could be compiled to theobject codes that can be recoglized and executed by FPGA and a menthod to config thedata that makes PLC instructions convient to be parallelly executed by ARM and FPGAbased on a PLC consists of ARM and FPGA and a new PLC instrcution system.The PLCinstructions’ compilation includes two steps,they are static compilation and dynamiccompilation,especially a method called “Traceback” is presented in designing the staticcompilation which is used to sovle the problem that the address of jumping is behind thejump instructions while the ARM system even couldn’t predict where the address is,and aPLC ladder diagram is used to describe the two kinds of compilation,takes use of theadvantage of the parallelly computation with high speed of FPGA to make it higher ofthe efficience of the PLC system when executing PLC instruction.At last,the ARMsystem’s function of compilation and the whole PLC system have been tested with everyaspect in this paper.The main achievements have been listed as follows:(1) Complished the design of PLC instruction’s static compilation.According to thedemand of the system,the paper designed a total plan of related PLCinstrutions’compilation for the system,the compilation needs two step that is called staticcompilation and dynamic compilation.While,the idea of compiling all base instructionsand functional instructions,detailed designation are included. Especially a method called“Traceback” is presented which is used to sovle the problem that the address of jumpingis behind the jump instructions while the ARM system even couldn’t predict where theaddress is.(2) Complished the design of PLC instruction’s dynamic compilation.According tothe demand of the system,the paper designed a total plan of related PLCinstrutions’compilation for the system,the compilation needs two step that is called staticcompilation and dynamic compilation.While,the idea of compiling all base instructionsand functional instructions,detailed designation and code format are included.(3) Complished the design of the data configurationfor parallelly computation.Thepaper presents the idea of design an detailed designation that include the develop environment and vary tools,the plantation of the OS called μC/OS-II to the ARMsysytem, configuration of main data in memories, configuration of data when ARMcommunicating with FPGA,dispatchment of tasks in the μ C/OS-II OS andcommunication within the tasks.(4) Complished the test of the system. By self-tests in ARM system and tests withother systems,the paper verified that the efficience when using the PLC program coded bynew instrucions is higher,verified the correction of the compilation designed by this paperwhen compiling all base instructions and jump instructions,and finally verified the processthat the total PLC system could run PLC programs coded by new instructions.
Keywords/Search Tags:Compilation of PLC instructions, Parallel computation, Data configuration, ARM
PDF Full Text Request
Related items