Optimization method of automatic line upper computer and computer readable storage medium
Patent Information
- Application Number
- CN202411646324.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-18
- Publication Date
- 2025-02-28
AI Technical Summary
[0005]针对现有技术存在的问题,本发明提供一种自动化线体上位机的优化方法以及计算机可读存储介质,以解决如何降低基于上位机的自动化线体控制系统软件的设计和开发难度、缩短开发周期的问题
[0019]本发明实施例提供的自动化线体上位机的优化方法,在上位机中对所有通讯类定义统一通信接口、对所有模块类定义统一类实例化接口以及定义固定界面显示框架,采用标准统一化的接口结合xm l信息中间件,不仅简化了通信方式,并且由于采用模块化设计而支持系统的功能扩展和升级,同时,采用统一的系统配置格式,可快速配置新项目。由此,该方案可以极大地简化自动化的上位机控制系统软件的开发过程,缩短开发周期、节约项目开发成本,降低开发难度。
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automation control technology, and in particular to an optimization method for an automation line host computer and a computer-readable storage medium. Background Art
[0002] The supervisory control and data acquisition (SCADA) platform of industrial automation plays a vital role in industrial control systems. The SCADA platform is usually used to monitor and control on-site devices and collect data for further analysis and optimization.
[0003] In the automation line based on host computer control in industrial manufacturing workshop, the development process of its control system software is as follows: Figure 1 As shown in the figure, the main processes include: (1) Requirements analysis: clarify the functional and non-functional requirements of the project, determine the system's performance indicators, interface requirements and user requirements; (2) System design: design the system architecture, user interface and detailed plan, and determine the selection and configuration of hardware and software; (3) Development and testing: carry out coding implementation, unit testing and integration testing; (4) Deployment and debugging: deploy the system, conduct on-site debugging and user training; (5) Maintenance and optimization: monitor system operation, handle faults and optimize performance.
[0004] Since automation lines usually need to connect to lower-level devices from different manufacturers and with different communication protocols, the semantics of each lower-level device are different, which makes the design and development of control system software difficult and takes a long development cycle. Summary of the invention
[0005] In view of the problems existing in the prior art, the present invention provides an optimization method for an automation line host computer and a computer-readable storage medium to solve the problem of how to reduce the design and development difficulty of the automation line control system software based on the host computer and shorten the development cycle.
[0006] In order to achieve the above object, the present invention adopts the following technical solutions:
[0007] One aspect of the present invention is to provide an optimization method for an automation line host computer, comprising:
[0008] S101, defining a unified communication interface for all communication classes in the host computer, and setting a communication configuration list based on an XML file, using the XML file as the information middleware for communication;
[0009] S102, defining a unified class instantiation interface for all module classes in the host computer, and setting a class instantiation configuration list based on an XML file, and calling the instantiated specific object through the class instantiation configuration list;
[0010] S103, defining a fixed interface display framework in the host computer, and setting an interface configuration list based on an XML file, in which the UI interface class objects instantiated in step S102 are configured to corresponding positions.
[0011] Preferably, in the step S101, all communication classes are uniformly implemented using the ICommunicationHandle interface, and an XML file is used in the communication configuration list to instantiate all communication classes that need to be used.
[0012] Preferably, when a communication class of a new communication protocol is added, the communication configuration list is updated using a corresponding XML file.
[0013] Preferably, in the step S102, all module classes are uniformly implemented using the IInitialization interface, and the class name and class initialization parameters required for the project instantiation are instantiated using an XML file in the class instantiation configuration list.
[0014] Preferably, when a new module class is added, the class instantiation configuration list is updated using the corresponding XML file.
[0015] Preferably, in step S103, the fixed interface display frame includes common data information of each project, and the common data information includes product yield, product inspection NG, and product inspection PASS.
[0016] Preferably, the fixed interface display framework also reserves a difference information display area for a specific project. When a specific project requires a customized information interface, a corresponding XML file is used to insert it into the corresponding instantiated specific object.
[0017] Another aspect of the present invention is to provide an automated production line host computer, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the automated production line host computer optimization method as described above when executing the computer program.
[0018] Furthermore, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the optimization method of the automation line host computer as described above are implemented.
[0019] The optimization method of the automation line host computer provided by the embodiment of the present invention defines a unified communication interface for all communication classes, a unified class instantiation interface for all module classes, and a fixed interface display framework in the host computer, and adopts a standard unified interface combined with XML information middleware, which not only simplifies the communication method, but also supports the function expansion and upgrade of the system due to the modular design. At the same time, a unified system configuration format is adopted to quickly configure new projects. Therefore, the solution can greatly simplify the development process of the automated host computer control system software, shorten the development cycle, save project development costs, and reduce development difficulty. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 It is the general flow chart of the development of the automation line control system software in the prior art;
[0021] Figure 2 It is a flow chart of the optimization method of the automation line host computer in the embodiment of the present invention;
[0022] Figure 3 is a flow chart of the design phase of the control system software in an embodiment of the present invention;
[0023] Figure 4 It is a general flow chart of the development of the control system software in the embodiment of the present invention. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical scheme and advantages of the present invention clearer, the specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. Examples of these preferred embodiments are illustrated in the accompanying drawings. The embodiments of the present invention shown in the accompanying drawings and described according to the accompanying drawings are merely exemplary, and the present invention is not limited to these embodiments.
[0025] It should be noted that the same or similar numbers in the drawings of the embodiments of the present invention correspond to the same or similar parts; in the description of the present invention, it should be understood that if the terms "upper", "lower", "left", "right" and the like indicate directions or positional relationships based on the directions or positional relationships shown in the drawings, it is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific direction, be constructed and operated in a specific direction. Therefore, the terms describing the positional relationship in the drawings are only used for illustrative purposes and cannot be understood as limitations on this patent. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to specific circumstances.
[0026] It should also be noted that, in order to avoid obscuring the present invention due to unnecessary details, only structures and / or processing steps closely related to the solutions according to the present invention are shown in the accompanying drawings, while other details that are not closely related to the present invention are omitted.
[0027] The embodiment of the present invention first provides an optimization method for an automation line host computer, such as Figure 2 As shown, the optimization method comprises the following steps:
[0028] Step S101: define a unified communication interface for all communication classes in the host computer, set a communication configuration list based on the XML file, and use the XML file as the information middleware for communication.
[0029] Step S102: define a unified class instantiation interface for all module classes in the host computer, and set a class instantiation configuration list based on an XML file, and call the specific instantiation object through the class instantiation configuration list.
[0030] Step S103: define a fixed interface display framework in the host computer, and set an interface configuration list based on the XML file, in which the UI interface class objects instantiated in step S102 are configured to corresponding positions.
[0031] Specifically, in step S101, all communication classes are uniformly implemented using the ICommunicationHandle interface, and all communication classes to be used are instantiated using an XML file in the communication configuration list. When a communication class of a new communication protocol is added, the communication configuration list is updated using the corresponding XML file.
[0032] By defining a unified communication interface, communications with different protocols can be quickly replaced. Use the unified interface to implement the communication class, and initialize the communication class by passing XML format parameters. In actual use, only the interface is used to implement functions such as sending and receiving information. When changing the communication protocol, you only need to use the corresponding XML file to update the communication configuration list, and there is no need to update the code that uses the communication.
[0033] Specifically, in step S102, all module classes are uniformly implemented using the IInitialization interface, and the class name and class initialization parameters required for the instantiation project are instantiated using an XML file in the class instantiation configuration list. When a new module class is added, the class instantiation configuration list is updated using the corresponding XML file.
[0034] By unifying the class instantiation interface, the instantiation of the class can be configured and unified. In the class instantiation configuration list, the specific class of the project is instantiated by passing in the DLL name, class name, and initialization parameter table. In this way, different classes can be configured according to the actual project to implement different functions, and a specific project only needs to implement a specific class.
[0035] Specifically, in step S103, the fixed interface display framework includes common data information of each project, including product yield, product test NG, and product test PASS. Furthermore, the fixed interface display framework also reserves a difference information display area for a specific project. When a specific project requires a special information interface, the corresponding xml file is used to insert it into the corresponding instantiated specific object.
[0036] By defining a fixed interface display framework, different display windows can be flexibly configured. If a special statistical information interface is required in the project, a specific interface can be implemented and then inserted into the relevant position. To change the interface, you only need to change the xml file to implement the specific interface.
[0037] The host computer optimized by the optimization method of the above embodiment of the present invention develops the control system software, and its development process is as follows: Figure 3 and Figure 4 As shown, Figure 3 This is a flow chart of the design phase. Figure 4 is the overall development flow chart. Figure 1 The existing development process shown in the figure only requires the use of corresponding XML files to update the corresponding configuration lists for the communication configuration, specific project module configuration and UI interface configuration in the design phase, without the need to rewrite a large amount of software code. This can greatly simplify the development process of the automated host control system software, shorten the development cycle, save project development costs and reduce development difficulty.
[0038] Based on the optimization method of the automated line host computer provided in the above embodiment, an embodiment of the present invention also provides an automated line host computer, wherein the automated line host computer comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the optimization method of the automated line host computer as described above when executing the computer program.
[0039] The memory is a computer-readable storage medium that can be used to store software programs, computer executable programs, and modules. The processor executes various functional applications and data processing of the device by running the software programs, instructions, and modules stored in the memory, that is, the steps of the optimization method of the automation line host computer provided in the aforementioned embodiment of the present invention are implemented.
[0040] Based on the optimization method of the automation line host computer provided in the above embodiment, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the optimization method of the automation line host computer as described above are implemented. The computer storage medium can be any available medium or data storage device that can be accessed by a computer, including but not limited to magnetic memory, optical memory, and semiconductor memory.
[0041] The above is only a specific implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. An optimization method for an automation line host computer, characterized in that: include: S101, defining a unified communication interface for all communication classes in the host computer, and setting a communication configuration list based on an XML file, using the XML file as the information middleware for communication; S102, defining a unified class instantiation interface for all module classes in the host computer, and setting a class instantiation configuration list based on an XML file, and calling the instantiated specific object through the class instantiation configuration list; S103, defining a fixed interface display framework in the host computer, and setting an interface configuration list based on an XML file, in which the UI interface class objects instantiated in step S102 are configured to corresponding positions.
2. The optimization method of the automation line host computer according to claim 1, characterized in that: In the step S101, all communication classes are uniformly implemented using the ICommunicationHandle interface, and all communication classes to be used are instantiated using an XML file in the communication configuration list.
3. The optimization method of the automation line host computer according to claim 2, characterized in that: When a communication class of a new communication protocol is added, the communication configuration list is updated using the corresponding XML file.
4. The optimization method of the automation line host computer according to claim 1, characterized in that: In the step S102, all module classes are uniformly implemented using the IInitialization interface, and the class name and class initialization parameters required for the project are instantiated using an XML file in the class instantiation configuration list.
5. The optimization method of the automation line host computer according to claim 4 is characterized in that: When a new module class is added, the class instantiation configuration list is updated using the corresponding XML file.
6. The optimization method of the automation line host computer according to claim 1, characterized in that: In the step S103, the fixed interface display frame includes common data information of each project, and the common data information includes product yield, product inspection NG, and product inspection PASS.
7. The optimization method of the automation line host computer according to claim 6, characterized in that: The fixed interface display framework also reserves a difference information display area for a specific project. When a specific project requires a customized information interface, the corresponding xml file is used to insert it into the corresponding instantiated specific object.
8. An automated production line host computer, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the optimization method of the automation line host computer as described in any one of claims 1 to 7 are implemented.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the optimization method of the automation line host computer as described in any one of claims 1 to 7 are implemented.