Font Size: a A A

Research And Design Of Compiled PLC System Based On Language Conversion

Posted on:2024-04-08Degree:MasterType:Thesis
Country:ChinaCandidate:J Y XuFull Text:PDF
GTID:2568307157999919Subject:Electronic information
Abstract/Summary:PDF Full Text Request
With the rapid development of industrialization,industrial production is becoming more and more complex,and the demand for control in industrial production is also becoming higher and higher.The communication ability and data processing ability of traditional programmable logic controller(PLC)have been difficult to meet such complex industrial environment.In this environment,the soft PLC technology,which has the advantages of strong communication ability,fast data processing and stable operation,has developed rapidly and has been widely used in complex industrial control fields in recent years.The soft PLC technology in the Chinese market is monopolized by foreign countries all the year round.In order to improve the competitiveness of domestic PLC products,reduce the threshold for users to use,and break the foreign software monopoly.Based on the research of a compiled PLC(NEWLAD)independently developed by Shandong Provincial Computing Center,this paper designs a complete method of translating ladder diagram into C language,and designs and implements the high-speed pulse output function(PTO and PWM),high-speed counter function(HSC)and PLC hardware adaptation function in the software.The functions of the above modules are experimentally verified by building an experimental platform,At last,the NEWLAD design software system and the hardware system with SK2109 PLC as the control core are used to form a control system that can realize the multi-mode precision plot test field seeding,and the seeding experiment is carried out in the real environment.Through the statistical analysis of the seeding experiment,it is verified that the seeding controller has ultra-high precision and stability in the seeding operation,greatly improving the seeding efficiency and precision,This experiment also directly proves that ladder diagram programming through NEWLAD software can perfectly adapt to SK2109 PLC hardware.(1)A method of translating ladder diagram statements into C is designed.The translation method classifies the ladder diagram according to its functions,designs the translation templates according to its types,and finally completes the integration after sorting the positions according to its functions.Finally,the complete C language file is obtained.The translation template is accurate,and can completely reproduce the ladder diagram program function.It does not need to call the interpretation statement during execution,which greatly improves the execution efficiency of PLC in large programs.(2)The PTO,PWM and HSC function modules in NEWLAD are realized.On the basis of NEWLAD,this function module designs a human-computer interaction interface that is convenient for users to set parameters,which improves user experience and reduces the threshold of use.In order to adapt to a wide range of PLC hardware,functional hardware configuration is also added in the hardware configuration interface.The use of functional modules in different PLC hardware is realized by increasing or decreasing the number of functional modules and setting the input and output pins of functional modules.By designing a variety of working modes and adding a variety of control algorithms in the function module driver,it meets the needs of different industrial application scenarios and provides stable,accurate,fast and efficient control for industrial production.Finally,according to its design method and translation template,the program translation from function creation and function initialization to the final realization of module input and output functions is realized.(3)The adaptation function between NEWLAD software and different PLC hardware is designed and implemented.In order to improve the competitiveness of domestic PLC hardware and break the monopoly of foreign PLC software in the domestic market,this chapter designs a set of PLC hardware selection functions in NEWLAD software.Through the design of hardware configuration interface in the software,it can realize the functions of common pin definition,HSC input pin definition,interrupt resource configuration,communication port configuration and compilation file selection of different hardware.The PLC hardware selection dialog box is designed and added when creating the project.Through this dialog box,the selection of different hardware models can be realized,and the corresponding associated design can be carried out in the system.The software system will automatically call the corresponding hardware resource packaging file according to the hardware model selected by the user,and then realize the control and adaptation of the corresponding PLC hardware.At the end of this chapter,a set of hardware system is built with the SK2109 PLC hardware as the core.The NEWLAD software is used to program and control the hardware,and the experimental results are analyzed.It is successfully proved that the NEWLAD software can accurately and stably control the SK2109 PLC hardware,achieving the desired adaptation effect.(4)A set of plot seeding control system is designed and field seeding experiment is carried out.The effectiveness and practicability of NEWLAD in practical application are verified by ideal and stable experimental results.The system has multi-function software system and high-performance hardware system.The software system is implemented based on NEWLAD,while the hardware system is implemented by combining many selected hardware into a seeding control box.In the design of the software system,a variety of seeding modes are realized through different algorithms.Different modes can be matched with corresponding hardware equipment to achieve the precision seeding of the community.In this chapter,the seeding control system is also used for actual field seeding and multi-cell data collection according to different modes.Through sorting and analyzing the data,it is fully verified that the seeding control system has the advantages of numerous functional modes,high seeding accuracy,fast seeding speed,and good seeding stability,which can meet the needs of most actual environments and effectively solve the problem of manual seed clearing and inversion,It has greatly improved the efficiency of seeding in the small experimental field.In the Beidou mode,the difference of seeding units is no more than 2 cm,the error is only one tenth of the traditional mode,and the seeding speed has also increased by nearly 16.7 times.
Keywords/Search Tags:compiled PLC software, language conversion, high speed pulse, seeding controller
PDF Full Text Request
Related items