Font Size: a A A

Research On PLC Automatic Programming Based On Scratch Platform

Posted on:2022-05-15Degree:MasterType:Thesis
Country:ChinaCandidate:Y XiaFull Text:PDF
GTID:2518306494479014Subject:Mechanical engineering
Abstract/Summary:PDF Full Text Request
Since the 1970 s,the most rapid development in the industrial control field is the programmable logic controller(PLC)that replaced the relay control.However,different types of PLCs are not compatible with each other,and different manufacturers have their own dedicated PLC development environment.This makes it difficult to write and modify PLC programs,and the development process is more abstract and cumbersome.Developers need to have a certain only if you have enough programming experience to be competent for the job,this is not conducive to the actual industrial production activities,and the problem will be more prominent when debugging the program.Therefore,it is imperative to realize the automatic programming of PLC and improve the efficiency of project development.The main task of this subject is to design and develop a PLC automatic programming system based on the Scratch platform,which can provide users with an intuitive and efficient graphical programming platform.Developers can directly construct a virtual configuration design environment in the Scratch platform by dragging and dropping component models,and then complete the development of graphic control programs.Then turn on the Qt host computer to realize the automatic generation of PLC source code and format verification.This article first studies the development history and status quo of automatic programming technology and related content of Scratch secondary development,and then proposes the concept of PLC automatic programming.Then carry on the function design and demand analysis to it,construct the overall framework of PLC automatic programming system,divide it into Scratch platform virtual simulation research and Qt upper computer user interface module.For the virtual simulation research platform,this paper uses Solidworks software to complete the drawing of 3D models of common components in the automated production line,and exports the transparent background component models with the help of Photoshop drawing software,and then imports them to the Scratch platform and builds a library.Then it analyzes the Scratch compilation principle,interface and code block parameter storage method,carries out the design of custom building blocks and plug-ins,and then completes the design and construction of the Scratch virtual configuration.For the upper computer user interface module,this article uses the Qt platform for the development and beautification of the human-computer interaction interface.The user can read the block parameters in the Scratch project file through the mouse click event,such as the sequence of component actions and the prerequisites of the actions And so on,and then realize the conversion of the key parameters into the PLC source code that can be executed correctly by writing the algorithm,and finally check the format of the instruction statement.Finally,a system reusability test is required.The results prove that the system can convert the visual expression scheme into PLC source code that can be correctly compiled and executed,which effectively improves the efficiency of PLC programming in the industrial control field.It can be widely used in PLC control systems.Design and maintenance work.
Keywords/Search Tags:Programmable Controller, Qt, Automatic Programming, Scratch
PDF Full Text Request
Related items