| The winch is a widely used engineering machine.Different winches have different functional requirements which leads to poor versatility of the winch control system.At the same time,due to the wide variety of winch motion controllers and industrial configuration software,the interoperability of different products is bad.For a specific demand of winches,it’s needed to select hardware and design the architecture of program.The process is called "making wheels repeatedly",leading to the increase of development time.Therefore,the development of a universal control system design platform for winches with can well make up the shortcomings of current controller products and industrial configuration software products in the development of winch control system.The topic has great application value.In this thesis,the winch control system is taken as the research object,and a generalized control system design platform based on Codesys for winch is proposed.Based on the requirements of winch control,analyzing the characteristics of winch control system,adopting template-based code generation technology,model-driven code generation technology,graphical programming method and signal slot mechanism,the thesis design simple and efficient GUI by using Python programming language.The database technology is used to save the development process of the winch control system sub-module,to re-modify and use the development process,and to improve its versatility.For the purpose of operating simply,the graphic programming method of touch screen communication configuration module and key data power-off retention module is designed.Based on the dictionary data structure,combined with the characteristics of main program architecture,the function for generating the main program is designed and implemented.The template of IO definition table is designed,and the source code can be quickly generated.Finally,in order to facilitate the experimental data acquisition,based on the OPC standard communication and general protocol,the OPC client is designed to realize the access to the field device data,and the electric winch for retracting and placing heavy objects is used as the test object.The universal design platform for control system development validates the versatility and speed of the universal design platform for winch control systems based on Codesys. |