A configuration method, device and electronic equipment

By matching and replacing tag numbers based on a preset template library, the configuration design is automated, which solves the problems of low efficiency and error in traditional configuration design, improves design efficiency and reliability, and reduces costs.

CN119829023BActive Publication Date: 2025-12-26SUPCON TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411803902.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-10
Publication Date
2025-12-26
Estimated Expiration
2044-12-10

AI Technical Summary

Technical Problem

Traditional configuration design is labor-intensive, inefficient, and prone to errors. Furthermore, when multiple engineers work in parallel, communication costs are high, work coordination is not smooth, and it is difficult to unify design standards, resulting in low efficiency and high cost of configuration design.

Method used

Based on a preset template library, configuration templates adapted to the project to be designed are generated by matching and replacing tag numbers and utilizing configuration data from previous projects. This enables automated design of HMI configuration and program configuration, and generates executable files for automated control.

Benefits of technology

It improves the efficiency and reliability of configuration design, reduces design costs and difficulty, avoids repetitive work and errors in manual input, ensures the accuracy and consistency of configuration design, and reduces the input and communication costs of engineers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119829023B_ABST
    Figure CN119829023B_ABST
Patent Text Reader

Abstract

The application provides a configuration design method and device and electronic equipment, and relates to the technical field of automation development. The method comprises the following steps: determining a first configuration template matched with a to-be-designed project in a preset template library; matching a first bit number with a second bit number corresponding to each component in a control system corresponding to the to-be-designed project; replacing the first bit number in the first configuration template with the second bit number matched with the first bit number to obtain a second configuration template comprising the second bit number and second configuration information corresponding to the second bit number; and generating an execution file for the control system corresponding to the to-be-designed project according to the second configuration template. The application is based on the preset template library, and bit number matching and bit number replacement are used to fully utilize the experience and technical assets of past projects, improve the configuration design efficiency and reliability, and reduce the design cost and difficulty.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of automation development, in particular to a configuration design method and device and electronic equipment. BACKGROUND

[0002] As a software configuration method, configuration enables users to complete complex system functions through modularized operations, thereby meeting the control requirements of different projects without the need to write underlying computer programs. The configuration process is divided into HMI (Human-Machine Interface, HMI) configuration and program configuration. After both are completed, the variables in the HMI and the program variables are associated to form a complete configuration. The HMI configuration displays the process flow or operation interface information of the designed project in a graphical form, while the program configuration converts the process control scheme of the project into a logical language.

[0003] In the traditional configuration design process, the design of HMI configuration and program configuration can be performed separately or by multiple engineers in parallel. During this period, engineers need to manually create, associate and debug a large number of control variables, interface elements and program logic to adapt to the specific requirements of the project. This manual operation method has the following main problems:

[0004] 1. Large workload and low efficiency. The traditional configuration process relies on engineers to manually configure and design one by one after understanding the control scheme. Especially for large projects involving a large number of control variables and interface elements, it is easy to lead to tedious repetitive operations, increasing the implementation time and labor cost of the project.

[0005] 2. Error-prone. When manually associating and configuring control variables, it is easy to miss or make mistakes, especially in the design of the HMI interface of the project and the construction of the program logic. A slight mistake may cause problems such as unassociated variables and logic errors, thereby affecting the normal operation and stability of the system to which the configuration is applied.

[0006] 3. When multiple engineers work in parallel, there may be problems such as high communication cost, incoherent work connection, and difficulty in unifying design standards.

[0007] The above problems can lead to low efficiency and high cost of configuration design. SUMMARY

[0008] The problem solved by the present application is: how to improve the efficiency and reliability of configuration design and reduce design cost.

[0009] To solve the above problems, the present application provides a configuration design method, device and electronic equipment.

[0010] In a first aspect, the present application provides a configuration method, comprising:

[0011] determining a first configuration template in a preset template library that is suitable for a project to be designed, wherein the first configuration template comprises first addresses of components in a corresponding control system and first configuration information about HMI configuration and program configuration corresponding to the first addresses;

[0012] matching the first addresses corresponding to second addresses of the components in the control system corresponding to the project to be designed;

[0013] replacing the first addresses in the first configuration template with the second addresses matched with the first addresses to obtain a second configuration template comprising the second addresses and second configuration information corresponding to the second addresses, wherein the second configuration information is the first configuration information corresponding to the first addresses corresponding to the second addresses;

[0014] generating an execution file for the control system corresponding to the project to be designed according to the second configuration template.

[0015] Optionally, the matching the first addresses corresponding to the second addresses of the components in the control system corresponding to the project to be designed comprises:

[0016] matching the first addresses corresponding to the second addresses of the components in the control system corresponding to the project to be designed according to at least one of description information and unit number information corresponding to the first addresses.

[0017] Optionally, the first addresses and the second addresses each comprise hard point addresses, custom addresses and function block addresses, and the matching the first addresses corresponding to the second addresses of the components in the control system corresponding to the project to be designed according to at least one of the description information and the unit number information corresponding to the first addresses comprises:

[0018] matching the hard point addresses in the first addresses corresponding to the hard point addresses in the second addresses according to the unit number information;

[0019] matching the custom addresses in the first addresses corresponding to the custom addresses in the second addresses according to the unit number information;

[0020] matching the function block addresses in the first addresses corresponding to the function block addresses in the second addresses according to the description information.

[0021] Optionally, the replacing the first bit number in the first configuration template with the second bit number matched with the first bit number to obtain the second configuration template including the second bit number and second configuration information corresponding to the second bit number comprises:

[0022] According to the matching of the first bit number and the second bit number, the first bit number that passes the matching is replaced by the matched second bit number, the first bit number that fails the matching is replaced by a preset identifier, the second bit number that fails the matching is added to the first configuration template, and third configuration information corresponding to the added second bit number is determined to obtain the second configuration template including the second bit number, the second configuration information, the preset identifier, and the third configuration information.

[0023] Optionally, the determining the first configuration template in the preset template library that is adapted to the to-be-designed project comprises:

[0024] The first configuration template file in the preset template library that is adapted to the to-be-designed project is determined, and the first configuration template file is converted into an XML format;

[0025] The generating the execution file for the control system corresponding to the to-be-designed project according to the second configuration template comprises:

[0026] The execution file in an executable format for the control system corresponding to the to-be-designed project is generated by performing format conversion on the obtained second configuration template in the XML format.

[0027] Optionally, before the determining the first configuration template in the preset template library that is adapted to the to-be-designed project based on the preset template library, the configuration design method further comprises:

[0028] The configuration data of the corresponding control system in the past projects is extracted;

[0029] The configuration data is preprocessed to generate a configuration template and a preset template library including the configuration template; wherein the preprocessing comprises bit number sorting, repeated bit number integration, and template splitting.

[0030] Optionally, after the preprocessing the configuration data to generate a configuration template and a preset template library including the configuration template, the configuration design method further comprises:

[0031] The preset template library is stored by using cloud storage and local offline library storage.

[0032] Optionally, after the generating the execution file for the control system corresponding to the project to be designed according to the second configuration template, the configuration design method further comprises:

[0033] performing software debugging on the execution file;

[0034] if the debugging is passed, deploying the execution file to the control system corresponding to the project to be designed, and after the control system corresponding to the project to be designed is successfully put into operation, finally archiving the project to be designed to completion data;

[0035] extracting a third configuration template about the project to be designed from the completion data;

[0036] updating the third configuration template to the preset template library.

[0037] In a second aspect, the present application provides a configuration design device, comprising:

[0038] a template matching unit configured to determine a first configuration template in a preset template library which is suitable for a project to be designed based on the preset template library; wherein the first configuration template comprises first addresses of each component in a corresponding control system and first configuration information about HMI configuration and program configuration corresponding to the first addresses;

[0039] an address matching unit configured to match the first addresses corresponding to second addresses of each component in a control system corresponding to the project to be designed;

[0040] an address replacing unit configured to replace the first addresses in the first configuration template with the second addresses matched with the first addresses, to obtain a second configuration template comprising the second addresses and second configuration information corresponding to the second addresses; wherein the second configuration information is the first configuration information corresponding to the first addresses corresponding to the second addresses;

[0041] a file generating unit configured to generate an execution file for the control system corresponding to the project to be designed according to the second configuration template.

[0042] In a third aspect, the present application provides an electronic device comprising a memory and a processor;

[0043] the memory is configured to store a computer program;

[0044] the processor is configured to implement the configuration design method of the first aspect when executing the computer program.

[0045] In a fourth aspect, the present application provides a computer readable storage medium, which stores a computer program, and the computer program, when read and run by a processor, implements the configuration design method according to the first aspect.

[0046] Compared with the prior art, the present application has the following beneficial effects: the present application is used to realize the configuration design of the to-be-designed project based on the preset template library, so as to fully utilize the experience and technical assets of past projects, improve the configuration design efficiency and reliability, and reduce the design cost and difficulty. Moreover, through the bit number matching and bit number replacement, the actual bit number (i.e., the second bit number) of the to-be-designed project is accurately corresponded and replaced with the first bit number in the first configuration template obtained according to the preset template library, so that the configuration information of each component of the corresponding control system of the to-be-designed project can quickly inherit the settings of the first configuration template, avoiding the occurrence of starting from zero, repeated labor and errors in the manual input process, while ensuring the accuracy and reliability of the configuration design of the to-be-designed project, further improving the configuration design efficiency. Moreover, the first configuration information is the configuration information about the HMI configuration and the program configuration of the corresponding component, and the configuration design is performed based on the first configuration information, effectively avoiding the time-consuming and labor-consuming problems caused by the HMI configuration and the program configuration being performed respectively, or the problems of high communication cost, incoherent work connection and difficulty in unifying design standards caused by the parallel operation of multiple engineering personnel, improving the efficiency and consistency of the overall configuration design. Moreover, based on the bit number matching, efficient docking with the standardized template in the preset template library is realized, thereby accelerating the configuration generation of the to-be-designed project, further ensuring the configuration accuracy and consistency of the configuration design. According to the second configuration template, an execution file for the corresponding control system of the to-be-designed project is generated, so that the configuration information in the second configuration template can be accurately mapped to the operation instructions of the control system through the execution file, realizing the automatic control of the corresponding control system, meeting the corresponding design requirements, and improving the user (or engineering personnel) experience. BRIEF DESCRIPTION OF DRAWINGS

[0047] Figure 1 FIG. 1 is a flowchart of a configuration design method according to an embodiment of the present application;

[0048] Figure 2 FIG. 2 is a flowchart of a configuration design method according to another embodiment of the present application;

[0049] Figure 3 FIG. 3 is a structural block diagram of a configuration design device according to an embodiment of the present application;

[0050] Figure 4 FIG. 4 is a structural diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0051] In order to make the above objectives, characteristics and advantages of the present application more apparent, concrete embodiments of the present application will be described in detail below with reference to the drawings.

[0052] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above drawings are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein.

[0053] In combination Figure 1 As shown in the drawings, the embodiments of the present application provide a configuration design method, comprising:

[0054] Step 200, based on a preset template library, determine a first configuration template in the preset template library that is adapted to the project to be designed; wherein the first configuration template includes first addresses of each component in the corresponding control system, and first configuration information about HMI configuration and program configuration corresponding to the first addresses.

[0055] Specifically, in order to make full use of the large amount of project experience and technical assets accumulated in the long-term project implementation process (such as the mature design and programming results in past projects), by pre-constructing a template library (denoted as a preset template library) about configuration data of past projects, the effective integration and utilization of the past scattered project experience and technical assets is realized, the cost of subsequent project configuration design is reduced, and the configuration design efficiency is improved. The preset template library contains a plurality of pre-defined configuration templates, each configuration template corresponds to a specific type of control system or project requirement, and can cover the configuration information of each component in different types of control systems.

[0056] Based on the preset template library, a configuration template (denoted as a first configuration template) in the preset template library that is adapted to the requirements of the to-be-designed project is screened out, such as a template that is most matched from the template library according to the architecture, functional requirements, control logic, and bit number distribution of the to-be-designed project corresponding control system (such as an industrial process control system), as the first configuration template, used as the basis for the configuration design of the to-be-designed project, to reduce the difficulty of the configuration design of the to-be-designed project and improve the efficiency of the configuration design of the to-be-designed project. The configuration design of the to-be-designed project aims to realize the automation control of the to-be-designed project corresponding control system; the first configuration template includes the bit number (i.e., a unique identifier corresponding to a component in the control system, denoted as a first bit number) of each component (such as a device, a sensor, an actuator, and other components of the control system) of the to-be-designed project corresponding control system, and first configuration information about HMI (Human-Machine Interface, HMI, human-machine interface) configuration and program configuration corresponding to the first bit number. In this way, the utilization of the HMI configuration information and the program configuration information in the existing configuration template is realized, the creation of a configuration file from scratch is avoided, and the efficiency and reliability of the configuration design are significantly improved, and the configuration design cost is reduced.

[0057] Step 300, matching the first bit number corresponding to the second bit number of each component in the to-be-designed project corresponding control system.

[0058] Specifically, on the basis of the first configuration template, the actual bit number (denoted as a second bit number) of each component in the to-be-designed project corresponding control system is matched with the corresponding first bit number in the first configuration template, that is, the first bit number corresponding to the second bit number is matched in the first configuration template, so as to match the corresponding configuration information for each component in the to-be-designed project corresponding control system in the subsequent steps, thereby realizing the accurate configuration of the component corresponding to the matched second bit number. In this way, through bit number matching, the repetitive labor of manually defining a large amount of configuration information is avoided, and the possibility of human error is reduced.

[0059] Step 400, replacing the first bit number in the first configuration template with the second bit number matched with the first bit number to obtain a second configuration template including the second bit number and second configuration information corresponding to the second bit number; wherein the second configuration information is the first configuration information corresponding to the first bit number matched with the second bit number.

[0060] Specifically, the first position number in the first configuration template after matching is replaced by the second position number used by the to-be-designed project, to obtain a configuration template (denoted as a second configuration template) that retains the logical structure and functional configuration of the first configuration template, but the first position number is replaced by the actual position number (i.e., the second position number) of the to-be-designed project, so as to ensure that the to-be-designed project corresponding control system can directly use the functional modules and operation processes of the first configuration template corresponding control system, thereby improving the efficiency, accuracy and reliability of the configuration design of the to-be-designed project, and reducing the difficulty and cost of configuration design. In some embodiments, batch replacement (i.e., replacing multiple position numbers at the same time) can be used to further improve the configuration design efficiency.

[0061] Step 500, generating an execution file for the to-be-designed project corresponding control system according to the second configuration template.

[0062] Specifically, the execution file for the to-be-designed project corresponding control system is generated according to the second configuration template. For example, the information format contained in the second configuration template is converted into an executable format of the to-be-designed project corresponding control system, to obtain a corresponding execution file, which ensures that the execution file conforms to the input format and running standard of the control system, etc. The execution file is used to import into the control system to realize the automatic configuration and running (or debugging) of the control system. In the process of format conversion, the adjustment of coding format, the reconstruction of data structure, and the parsing of different configuration parameters may be involved, so that the configuration information in the second configuration template can be accurately mapped to the operation instructions of the control system through the execution file. For example, according to the second configuration template including the second position number and the second configuration information corresponding to the second position number (including the corresponding HMI configuration configuration information and program configuration configuration information), the execution file for the to-be-designed project corresponding control system is generated. The data about the HMI configuration configuration information in the execution file can be used to create (or generate, configure) a human-machine interface, so that the engineering personnel can interact (such as monitoring, control, etc.) with the control system of the to-be-designed project through the human-machine interface. For example, a graphical human-machine interface is generated based on the HMI configuration configuration information through the corresponding HMI software or the corresponding development tool. The data about the program configuration configuration information in the execution file can be used to realize various automation logic and functional control in the control system of the to-be-designed project. Moreover, by associating the program configuration configuration information corresponding to the same position number with the HMI configuration configuration information, the association (or mapping) between the corresponding variables in the HMI and the corresponding variables in the program is realized, i.e., the corresponding interface on the HMI (such as the button on the operation panel corresponding to the HMI) is associated with the corresponding device and its input and output variables of the control system of the to-be-designed project, so as to enable the engineering personnel to accurately and effectively control and manage the components of the control system of the to-be-designed project based on the human-machine interface.

[0063] Thus, the method of the embodiment is used to realize the configuration design of the to-be-designed project based on the preset template library, so as to fully utilize the experience and technical assets of past projects, improve the configuration design efficiency and reliability, and reduce the design cost and difficulty. Moreover, through the bit number matching and bit number replacement, the actual bit number (i.e., the second bit number) of the to-be-designed project is accurately corresponded and replaced with the first bit number in the first configuration template obtained according to the preset template library, so that the configuration information of each component of the corresponding control system of the to-be-designed project can quickly inherit the settings of the first configuration template, avoiding the occurrence of starting from zero, repeated labor and errors in the manual input process, while ensuring the accuracy and reliability of the configuration design of the to-be-designed project, further improving the configuration design efficiency. Moreover, the first configuration information is configuration information about HMI configuration and program configuration of the corresponding component, and the configuration design is performed based on the first configuration information, which effectively avoids the time-consuming and laborious problems caused by the separate HMI configuration and program configuration, or the problems of high communication cost, incoherent work connection and difficulty in unifying design standards caused by parallel operation of multiple engineering personnel, improving the efficiency and consistency of the overall configuration design. Moreover, based on the bit number matching, efficient docking with the standardized template in the preset template library is realized, thereby accelerating the configuration generation of the to-be-designed project, further ensuring the configuration accuracy and consistency of the configuration design. According to the second configuration template, an execution file for the corresponding control system of the to-be-designed project is generated, so that the configuration information in the second configuration template can be accurately mapped to the operation instruction of the control system through the execution file, realizing the automatic control of the corresponding control system, meeting the corresponding design requirements, and improving the user (or engineering personnel) experience.

[0064] In addition, the configuration design of the to-be-designed project is performed by using the method of the embodiment, which can realize the automatic configuration design, or reduce the engineering personnel required for the configuration design, such as simultaneously completing the HMI configuration and program configuration by one engineering personnel, while also being able to batch generate configuration pictures and programs, greatly reducing the design manpower investment and the design error problems caused by human factors.

[0065] Optionally, the step 300 comprises:

[0066] According to at least one of the description information and the unit number information corresponding to the first bit number, the first bit number corresponding to the second bit number of each component in the control system corresponding to the to-be-designed project is matched.

[0067] Specifically, considering that the bit number information used by different projects or control systems can be different, at least one of the description information and the unit number information corresponding to the first bit number is combined for bit number matching. The description information generally includes a brief description or a textual description of the corresponding component and its function, which is used to indicate the position, purpose or attribute of the component in the control system; in the process of bit number matching through the description information, the description information is compared to identify whether the component corresponding to the second bit number is consistent (or similar) with the description information of the component corresponding to the first bit number, and the first bit number and the second bit number are matched if the description information is consistent (or similar), such as matching the first bit number and the second bit number corresponding to the components with consistent functions. The unit number information is a more detailed classification identification of the bit number, for example, used to distinguish different ports, submodules or regions of the same device; in the process of bit number matching through the unit number information, the unit number information is compared to identify and match the components in the control system corresponding to the to-be-designed project and the corresponding components in the control system corresponding to the first configuration template at a more detailed level. This detailed matching method can ensure that each component in the control system corresponding to the first configuration template is accurately mapped to the component of the same structure or position in the control system corresponding to the to-be-designed project, reducing the probability of incorrect matching. Moreover, the components in the control system corresponding to the to-be-designed project and the components in the control system corresponding to the first configuration template can be double-checked and matched by combining the description information and the unit number information, so as to greatly improve the accuracy and consistency of bit number matching or component matching, and enable the configuration design to be completed more quickly and accurately.

[0068] In this way, by using the description information and / or the unit number information for bit number matching, accurate, efficient and standardized configuration of the configuration design can be effectively realized, thereby providing strong support for high-quality operation of the control system corresponding to the to-be-designed project.

[0069] Optionally, the first bit number and the second bit number each include a hard point bit number, a custom bit number and a function block bit number.

[0070] According to at least one of the description information and the unit number information corresponding to the first bit number, the first bit number corresponding to each component in the control system corresponding to the to-be-designed project is matched, including:

[0071] According to the unit number information, the hard point bit number in the first bit number corresponding to the hard point bit number in the second bit number is matched.

[0072] According to the unit number information, the custom bit number in the first bit number corresponding to the custom bit number in the second bit number is matched.

[0073] According to the description information, the function block bit number in the first bit number corresponding to the function block bit number in the second bit number is matched.

[0074] By distinguishing the bit number types (hard point bit number, custom bit number, function block bit number), and combining with the description information and unit number information for accurate matching, efficient and accurate configuration is realized. Specifically, hard point bit number matching: hard point bit number corresponds closely to the actual hardware devices of the control system, so matching through unit number information (such as bit number block) can ensure that the hardware configuration in the to-be-designed project corresponds one-to-one with the hardware configuration in the template, thereby ensuring the accuracy of physical connection. Custom bit number matching: custom bit number allows engineers to name according to project needs, and matching through unit number information (such as bit number block) ensures that custom settings can be accurately corresponded in different systems and templates, avoiding misoperation or misconfiguration caused by inconsistent custom numbering. Function block bit number matching: function block bit number refers to specific function modules or processes at the control logic level, so matching according to the description information (such as function block) to compare the descriptions of the corresponding function modules makes the bit number of the function module in the to-be-designed project consistent with the settings of the function module in the template. This logical level matching makes the function block settings more flexible, meeting the logical design needs of the control system.

[0075] In this way, by classifying and matching different bit numbers such as hard points, customizations, and function blocks, the risk of misconfiguration caused by bit number type confusion is avoided, thereby improving the accuracy of bit number matching; by supporting multiple types of bit number matching, especially flexible adaptation to custom bit numbers, the configuration template can be flexibly applied between different projects and systems (such as by redefining or mapping the specific meaning of custom bit numbers), improving template reusability, reducing repeated configuration workload, etc.

[0076] Optionally, step 400 comprises:

[0077] According to the matching situation of the first bit number and the second bit number, the first bit number that matches through in the first configuration template is replaced by the matched second bit number, the first bit number that does not match through is replaced by a preset identifier, the second bit number that does not match through is added to the first configuration template, and the third configuration information corresponding to the added second bit number is determined, to obtain a second configuration template comprising the second bit number, the second configuration information, the preset identifier, and the third configuration information.

[0078] Specifically, considering that there can be some differences between the components of the control system corresponding to the selected first configuration template and the control system corresponding to the project to be designed, which can result in that all the second position numbers of the project to be designed cannot be one-to-one corresponding to all the first position numbers of the first configuration template, therefore, in step 400, according to the matching of the first position numbers and the second position numbers obtained in step 300, for the first position numbers and the second position numbers that pass the matching, i.e. the first position numbers and the second position numbers that can find a one-to-one correspondence, the second position numbers are directly replaced in the first configuration template corresponding to the matching first position numbers, and the configuration information (i.e. the second configuration information) is inherited, ensuring that the settings of the project to be designed and the first configuration template are consistent at these positions, thereby quickly completing the configuration of the known (or matching passed) components. For the first position numbers that do not pass the matching, i.e. the first position numbers that exist in the first configuration template but have no corresponding relationship (i.e. do not pass the matching) in the project to be designed, a preset identifier (denoted as a preset identifier) that can indicate that the first position number does not pass the matching is used to replace or fill in the first position number, and the first position number is marked to prevent subsequent generation of an execution file from misquoting these old, unmatched first position numbers and causing corresponding problems (such as misquoting causing the control system to malfunction or false alarms, etc.). For the second position numbers that exist in the project to be designed but have no corresponding relationship (i.e. do not pass the matching) in the first configuration template, the second position numbers are added to the first configuration template, and at the same time, the third configuration information corresponding to the second position numbers added to the first configuration template is determined. In this way, the new first configuration template after the above adjustment (such as replacement, addition, etc.) is used as the second configuration template, and the second configuration template obtained includes: the second position numbers replacing the original matching passed first position numbers and the second configuration information corresponding to the second position numbers, the preset identifiers replacing the original matching failed first position numbers, the newly added matching failed second position numbers and the third configuration information corresponding to the second position numbers. The third configuration information can be manually generated or inherited from the template. For manual generation, i.e. manually analyzing the component requirements corresponding to the unmatched second position numbers, creating new third configuration information to adapt to the specific configuration requirements of the project to be designed; for template inheritance, i.e. according to the characteristics of the components in the project to be designed, using the first configuration information of similar components in the first configuration template as the third configuration information, and appropriately adjusting and assigning the unmatched position numbers. It is worth noting that for the second configuration information corresponding to the second position numbers replacing the original matching passed first position numbers, if the original first position number information exists in the second configuration information, the original first position number information needs to be replaced.

[0079] In addition, the preset identifier is a special symbol or code used to mark and distinguish the first position number that fails to match the second position number in the first configuration template. The main function of the preset identifier is to identify and independently process the unmatched first position number, so as to ensure that the unmatched components can be effectively marked and identified when the second configuration template is generated, thereby avoiding the mismatch of the position number in the subsequent generation of the execution file. For example, the preset identifier can be a new character or a corresponding prefix or suffix (such as a serial number) added to the original second position number. In this way, the use of the preset identifier helps to quickly identify the unmatched (i.e., failed to match) position number, provides a convenient identification for subsequent design, inspection and maintenance, and improves the flexibility and efficiency of configuration design.

[0080] Optionally, in step 500, during the generation of the execution file for the control system corresponding to the to-be-designed project according to the second configuration template, the preset identifier and the information corresponding thereto can be filtered out based on the preset identifier in the second configuration template, so as to avoid the misintroduction of the unmatched first position number and the corresponding old configuration information into the execution file. Through this filtering mechanism, it can be ensured that the generated execution file only contains valid and correctly associated position numbers and configuration information of the control system corresponding to the to-be-designed project, thereby improving the accuracy of the execution file and the reliability of the corresponding control system.

[0081] Optionally, during the matching and replacement of the position number, corresponding adjustment information (such as including matching conditions, replacement conditions, unmatched items and added items, etc.) can be generated at the same time, so that the replacement process can be reviewed or proofread by the engineering personnel, and the replacement result can be checked and confirmed if necessary. The adjustment information can be used to record the details in the replacement process, which helps to improve the accuracy of the position number matching and the reliability of the project configuration, and prevents abnormal functions of the control system caused by misreplacement.

[0082] Optionally, during the matching and replacement of the position number, the engineering personnel can be combined for inspection, such as pre-replacement confirmation, to ensure that all replacement items, unmatched items and added items meet the expectations. Through this pre-replacement confirmation, the engineering personnel can manually check special or important position numbers to ensure that the actual control requirements are accurately reflected in the finally generated configuration. In addition, this process can effectively avoid system failures or control errors caused by automatic replacement errors, thereby improving the safety and reliability of the configuration design.

[0083] Optionally, based on the fact that the first bit number and the second bit number both include hard point bit numbers, custom bit numbers, and function block bit numbers, when the bit numbers are replaced, the function block bit numbers are replaced first, and then the bit numbers in the program page file are replaced, to ensure that the order of the replacement process can effectively handle references to the function block bit numbers in the program page file. Specifically, the replacement of the function block bit numbers should be prioritized, because some bit numbers in the program page file depend on the definition of the function block bit numbers, and replacing the function block bit numbers first can ensure that all bit numbers are replaced correctly. If the function block bit numbers are not replaced first, it may lead to an inability to reference the correct function block bit numbers, thereby affecting the accuracy of subsequent replacements. In this way, through this replacement order, the coherence and accuracy of the bit number replacement can be ensured, and errors and conflicts caused by the replacement order can be reduced.

[0084] Optionally, step 200 includes:

[0085] determining a first configuration template file in the preset template library that is suitable for the to-be-designed project, and converting the first configuration template file into an XML format;

[0086] Step 500 includes:

[0087] performing format conversion according to the obtained second configuration template in the XML format, to generate an execution file in an executable format of a control system corresponding to the to-be-designed project.

[0088] Specifically, in step 200, a first configuration template file that is most suitable for the to-be-designed project is selected from the preset template library, and the first configuration template file is converted into an XML format. The XML format has structuralization and editability, which facilitates automated processing and script operation, to reduce the risk of human error. After the template is converted into the XML format, bit number replacement, configuration adjustment, and other operations can be efficiently performed without tedious manual modification in the original format of the first configuration template file, and the structuralization of the XML format can simplify the parsing, editing, and replacement operations of the file content, which helps to further improve the efficiency of the configuration design.

[0089] Based on the first configuration template file in the XML format obtained in step 200, the second configuration template in the XML format is obtained through bit number matching in step 300 and bit number replacement in step 400. In step 500, the second configuration template (in the XML format) that has completed bit number replacement and configuration information adjustment is converted into an execution file in an executable format of a corresponding control system. The converted execution file is in a format that can be directly recognized, loaded, and executed by the control system, so that the configuration design is seamlessly connected with the application implementation of the actual control system, and manual loading or additional conversion steps are avoided.

[0090] Optionally, the bit number matching and replacing can be based on a comparison table (which can be an Excel table) to reduce the operation requirements of the engineers on the configuration software and make full use of the functions of Excel (such as checking duplicates, data sorting and filtering, etc.) to assist in checking the bit number information, thereby reducing the difficulty of configuration design and improving the efficiency. For example, a corresponding comparison table can be generated according to the first configuration template, which includes the original bit number (or old bit number, i.e. the first bit number), the new bit number (i.e. the second bit number), the configuration information corresponding to the bit number, etc., so as to provide comprehensive reference data for the engineers in the bit number replacing. In some embodiments, the comparison table further includes description information of the bit number, unit number information, bit number type (such as hard point bit number, custom bit number, function block bit number, etc.) and other information, so as to facilitate quick identification and correction in the bit number matching and replacing process. In this way, through this comparison table, the replacement process can be effectively managed, the wrong bit number caused by manual operation can be avoided, and the accuracy and efficiency of the configuration design can be improved.

[0091] Optionally, in step 200, when determining the first configuration template that is suitable for the to-be-designed project based on the preset template library, the files required to be processed in the first configuration template (such as the files related to the HMI configuration information and the program configuration information) can be further filtered and selected to provide data support for the subsequent steps. For example, after the engineers confirm the selected first configuration template through the corresponding device (such as the control station) that can access the preset template, they can select the files to be processed (including the program page file and the HMI file) from the first configuration template. The selected files will be displayed in the preview box of the display interface of the corresponding device for the engineers to check and confirm. On this basis, according to the actual requirements of the to-be-designed project, the program page file is preselected to the corresponding control station directory, so as to facilitate the subsequent logical configuration and program deployment in the control station; at the same time, the HMI file is preselected to the specified storage library directory, so as to facilitate the subsequent generation and management of the human-machine interface and the interactive operation with the control system. This file management method based on preselection and preview can effectively simplify the operation steps of the engineers and improve the accuracy and efficiency in the configuration design process.

[0092] Optionally, in combination with Figure 2 As shown in FIG. 1, before step 200, the configuration design method further includes:

[0093] Step 110, extracting the configuration data of the corresponding control system in the past project;

[0094] Step 120, preprocessing the configuration data to generate a configuration template and a preset template library including the configuration template; wherein the preprocessing includes bit number sorting, duplicate bit number integration and template splitting.

[0095] To make full use of the long-term project implementation process, a large number of and scattered project experience and technical assets (such as the mature design and programming results in the past projects), by pre-constructing a template library about the configuration data of the past projects (denoted as a preset template library), the effective integration (such as systematic arrangement and modular encapsulation) and utilization of the past scattered project experience and technical assets are realized, the cost of subsequent project configuration design is reduced, and the configuration design efficiency is improved; and the preset template library can make full use of and iterative relationship (by updating and supplementing the configuration template), further reducing the cost of subsequent project configuration design.

[0096] Specifically, the relevant configuration information is extracted from the past completed projects, so that the past experience and technical accumulation can be fully utilized when designing new projects. These information includes the configuration information of the corresponding control system, the bit number information, the program logic, the HMI interface configuration, etc. Then, by preprocessing, the normalization and standardization of the configuration data are ensured, the configuration template and the preset template library including the configuration template are generated, so as to provide high-quality data support for the configuration configuration of the to-be-designed project through the configuration template and the preset template library, avoid errors caused by data redundancy or inconsistency, and help to realize the rapid matching and efficient calling of the configuration template. Bit number sorting is to sort all bit numbers according to the predefined rules to unify the arrangement order of the bit numbers in the configuration template, so that the bit numbers are presented in the configuration template in a logical and easy-to-understand order, making the subsequent configuration design more concise and clear, facilitating identification and use, and reducing the time for searching and comparing. Repeated bit number integration is to merge the bit numbers with the same function or repetition in the extracted configuration data to eliminate redundant configuration, make the configuration template structure more concise, and reduce the data storage amount. Template splitting is to split large configuration data according to the project, control system or equipment, etc. to generate independent module templates, so as to flexibly combine and reuse, improve the flexibility and reusability of the configuration design, and help to meet the customization requirements of various projects.

[0097] Optionally, the preset template library further includes the configuration template developed by the engineering personnel.

[0098] For the construction (or generation) of the preset template library, exemplarily, templates are developed for the relevant industry of the corresponding control system or extracted from historical projects. Specifically, first, the custom function blocks, program pages, and HMI files involved are extracted as needed according to the interface and file types of the corresponding control system, and stored in a fixed format; then, the bit numbers in the program pages and HMI files are extracted and combined into an EXCEL table, and the repeated bit numbers are integrated during the combining process, and the bit numbers are arranged in the order of the devices; then, the control system configuration is split into a set of templates according to the devices of the project, facilitating the combination by engineers.

[0099] Optionally, after step 120, the configuration design method further comprises:

[0100] The preset template library is stored in the cloud and offline.

[0101] Specifically, for the sake of data security, flexibility, and accessibility, the preset template library is stored in the cloud and offline. The preset template library is stored in the cloud server, and the templates can be accessed remotely (online browsing) and called through the network, facilitating real-time updating and sharing of data, and supporting permission management, so that authorized personnel or devices can use the latest version of the preset template library at any time and anywhere. The preset template library is stored in the local offline library, such as in an offline storage device or an intranet, so that even without network connection, the corresponding personnel can call the local preset template library data, ensuring that the configuration design work is not interrupted due to network problems.

[0102] Exemplarily, the cloud storage and offline library are used in combination with the interface of the control system to realize online browsing and offline management of the configuration templates. Encryption can also be used to realize data security backup, that is, the configuration templates are stored in encrypted form in the server and offline library, and with certain management system, leakage can be effectively avoided; by regularly backing up the template library, data security can be ensured.

[0103] Optionally, after step 500, the configuration design method further comprises:

[0104] The execution file is software debugged.

[0105] After step 500, the configuration design method is further perfected and optimized through corresponding operations to ensure the smooth implementation of the project and improve the continuous updating and expansion capability of the template library.

[0106] Specifically, by software debugging on the execution file, potential logical errors or performance problems in the execution file are detected and eliminated before the execution file is applied to the real control system corresponding to the to-be-designed project, so as to ensure the correctness and stability of the execution file. Among them, the debugging process is usually carried out in a test environment, so as to discover and solve the problems in the file in time, avoid failures in the operation of the control system, improve the reliability and stability of the project implementation, and reduce downtime and maintenance costs caused by errors.

[0107] If the debugging is passed, the execution file is deployed to the control system corresponding to the to-be-designed project, and after the control system corresponding to the to-be-designed project is successfully put into operation, the to-be-designed project is finally archived to the completion data;

[0108] Specifically, after the software debugging is passed, the execution file is formally deployed to the actual control system and starts to be put into operation, and the control system enters the normal running state, indicating that the operation is successful. After the operation is successful, the to-be-designed project is finally archived to the completion data, that is, according to the configuration and running situation of the to-be-designed project after the operation is successful, the completion data is sorted and generated. These data record the final configuration and running data of the project.

[0109] In this way, the execution file is run in the real environment to verify whether the function of the control system meets the design requirements. At the same time, the generated completion data provides detailed configuration reference for subsequent maintenance of the project, ensures the completeness of the record file, and lays a foundation for project acceptance and archiving.

[0110] Extracting a third configuration template about the to-be-designed project in the completion data;

[0111] Specifically, the configuration information optimized and corrected in the actual application process is extracted in the completion data to form a corresponding configuration template (denoted as a third configuration template). The template reflects the final optimized configuration of the project in the operation process, including parameters, logic and function improvements that meet the actual needs.

[0112] In this way, the third configuration template can retain the optimization data in the real environment of the project, extract and record these improvements, make the template more practical and complete, and provide a reliable reference for the design of subsequent similar projects.

[0113] Updating the third configuration template to a preset template library.

[0114] Specifically, the third configuration template that has been verified and optimized in the operation is updated to the preset template library, so as to ensure that the content in the template library is continuously enriched with the implementation of new projects, cover more practical scenarios and optimization schemes, and improve the applicability of the preset template library.

[0115] In this way, the preset template library is dynamically expanded and optimized due to continuous project accumulation, forming a more perfect template resource library; the continuous updating of the template library can improve the design efficiency and template applicability of subsequent projects, and reduce the time cost of repeated design.

[0116] In combination Figure 3 Another embodiment of the present application provides a configuration design device, which comprises:

[0117] a template matching unit, configured to determine, based on the preset template library, a first configuration template in the preset template library that is suitable for the project to be designed; wherein the first configuration template comprises first addresses of components in the corresponding control system, and first configuration information about HMI configuration and program configuration corresponding to the first addresses;

[0118] an address matching unit, configured to match the first addresses corresponding to second addresses of the components in the control system corresponding to the project to be designed;

[0119] an address replacing unit, configured to replace the first addresses in the first configuration template with the second addresses matched with the first addresses, to obtain a second configuration template comprising the second addresses and second configuration information corresponding to the second addresses; wherein the second configuration information is the first configuration information corresponding to the first addresses corresponding to the second addresses;

[0120] a file generating unit, configured to generate an execution file for the control system corresponding to the project to be designed according to the second configuration template.

[0121] The configuration design device of the present embodiment is used to implement the configuration design method described above, and has the same advantages as the configuration design method described above compared with the prior art, which will not be repeated here.

[0122] In combination Figure 4 Another embodiment of the present application provides an electronic device, which comprises a memory 401 and a processor 402;

[0123] The memory 401 is configured to store a computer program;

[0124] The processor 402 is configured to implement the configuration design method described above when executing the computer program.

[0125] Alternatively, an electronic device comprises a memory 401 and a processor 402 coupled to the memory 401; the memory 401 is configured to store a computer program; and the processor 402 is configured to perform the following operations when executing the computer program:

[0126] determine, based on the preset template library, a first configuration template in the preset template library that is adapted to the to-be-designed project; the first configuration template comprises first position numbers of components in a corresponding control system and first configuration information about HMI configuration and program configuration corresponding to the first position numbers;

[0127] match the first position numbers with second position numbers of the components in the control system corresponding to the to-be-designed project;

[0128] replace the first position numbers in the first configuration template with the second position numbers matched with the first position numbers, to obtain a second configuration template comprising the second position numbers and second configuration information corresponding to the second position numbers; the second configuration information is the first configuration information corresponding to the first position numbers corresponding to the second position numbers;

[0129] generate an execution file for the control system corresponding to the to-be-designed project according to the second configuration template.

[0130] The electronic device of the embodiment can be used to implement the configuration design method described above, and has the same advantages as the configuration design method described above compared with the prior art, which will not be described here again.

[0131] Another embodiment of the present application provides a computer-readable storage medium storing a computer program, which is read and run by a processor to implement the configuration design method described above.

[0132] Alternatively, a non-volatile computer-readable storage medium stores a computer program, which, when executed by a processor, causes the processor to perform the following operations:

[0133] determine, based on the preset template library, a first configuration template in the preset template library that is adapted to the to-be-designed project; the first configuration template comprises first position numbers of components in a corresponding control system and first configuration information about HMI configuration and program configuration corresponding to the first position numbers;

[0134] match the first position numbers with second position numbers of the components in the control system corresponding to the to-be-designed project;

[0135] replace the first position numbers in the first configuration template with the second position numbers matched with the first position numbers, to obtain a second configuration template comprising the second position numbers and second configuration information corresponding to the second position numbers; the second configuration information is the first configuration information corresponding to the first position numbers corresponding to the second position numbers;

[0136] generate an execution file for the control system corresponding to the to-be-designed project according to the second configuration template.

[0137] The technical solution of the embodiment of the present application, in essence, or the part that contributes to the prior art, or the whole or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the embodiment method of the present application. The aforementioned storage medium includes a U disk, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, and various media that can store program codes.

[0138] The computer readable storage medium of the embodiment can be used to implement the above-mentioned configuration design method, and has the same advantages as the above-mentioned configuration design method compared with the prior art, which will not be described here.

[0139] Although the present application is disclosed as above, the protection scope of the present application is not limited to this. Those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present application, and these changes and modifications will fall within the protection scope of the present application.

Claims

1. A configuration method, characterized by, The method comprises the following steps: determining a first configuration template in a preset template library that is suitable for a to-be-designed project, wherein the first configuration template comprises first position numbers of components in a corresponding control system and first configuration information about HMI configuration and program configuration corresponding to the first position numbers; matching the first position numbers with second position numbers of the components in the control system corresponding to the to-be-designed project; replacing the first position numbers in the first configuration template with the second position numbers matched with the first position numbers to obtain a second configuration template comprising the second position numbers and second configuration information corresponding to the second position numbers, wherein the second configuration information is the first configuration information corresponding to the first position numbers corresponding to the second position numbers; generating an execution file for the control system corresponding to the to-be-designed project according to the second configuration template; wherein the step of replacing the first position numbers in the first configuration template with the second position numbers matched with the first position numbers to obtain a second configuration template comprising the second position numbers and second configuration information corresponding to the second position numbers comprises: according to the matching of the first position numbers and the second position numbers, replacing the first position numbers that pass the matching with the second position numbers that pass the matching, replacing the first position numbers that fail the matching with a preset identifier, adding the second position numbers that fail the matching to the first configuration template, determining third configuration information corresponding to the added second position numbers, and obtaining the second configuration template comprising the second position numbers, the second configuration information, the preset identifier, and the third configuration information.

2. The design method of claim 1, wherein The step of matching the first position numbers with the second position numbers of the components in the control system corresponding to the to-be-designed project comprises: matching the first position numbers with the second position numbers of the components in the control system corresponding to the to-be-designed project according to at least one of description information and unit number information corresponding to the first position numbers.

3. The design method of claim 2, wherein The first position numbers and the second position numbers each comprise hard point position numbers, custom position numbers, and function block position numbers, and the step of matching the first position numbers with the second position numbers of the components in the control system corresponding to the to-be-designed project according to at least one of description information and unit number information corresponding to the first position numbers comprises: matching the hard point position numbers in the first position numbers with the hard point position numbers in the second position numbers according to the unit number information; matching the custom position numbers in the first position numbers with the custom position numbers in the second position numbers according to the unit number information; matching the function block position numbers in the first position numbers with the function block position numbers in the second position numbers according to the description information.

4. The design method of claim 1, wherein The step of determining a first configuration template in a preset template library that is suitable for a to-be-designed project comprises: determining a first configuration template file in the preset template library that is suitable for the to-be-designed project, and converting the first configuration template file into an XML format. The generating, according to the second configuration template, of an execution file for the control system corresponding to the project to be designed comprises: According to the obtained XML format of the second configuration template, format conversion is performed to generate the execution file in an executable format of the control system corresponding to the project to be designed.

5. The design method according to any one of claims 1 to 4, wherein Before the determining, based on the preset template library, of the first configuration template in the preset template library that is suitable for the project to be designed, the configuration design method further comprises: Extracting configuration data of the corresponding control system in the past projects; The configuration data is preprocessed to generate a configuration template and a preset template library comprising the configuration template; wherein the preprocessing comprises bit number sorting, repeated bit number integration and template splitting.

6. The design method of claim 5, wherein After the preprocessing of the configuration data to generate a configuration template and a preset template library comprising the configuration template, the configuration design method further comprises: The preset template library is stored in the cloud and stored offline.

7. The design method according to any one of claims 1 to 4, wherein After the generating, according to the second configuration template, of an execution file for the control system corresponding to the project to be designed, the configuration design method further comprises: The execution file is subjected to software debugging; If the debugging is passed, the execution file is deployed to the control system corresponding to the project to be designed, and after the control system corresponding to the project to be designed is successfully put into operation, the project to be designed is finally archived to the completion data; A third configuration template about the project to be designed is extracted from the completion data; The third configuration template is updated to the preset template library.

8. A configuration device, characterized by comprising: Comprise: The template matching unit is configured to determine, based on a preset template library, a first configuration template in the preset template library that is suitable for a project to be designed; wherein the first configuration template comprises first bit numbers of components in a corresponding control system, and first configuration information about HMI configuration and program configuration corresponding to the first bit numbers; The bit number matching unit is configured to match the first bit numbers corresponding to second bit numbers of components in a control system corresponding to the project to be designed; The bit number replacing unit is configured to replace the first bit numbers in the first configuration template with the second bit numbers matched with the first bit numbers, to obtain a second configuration template comprising the second bit numbers and second configuration information corresponding to the second bit numbers; wherein the second configuration information is the first configuration information corresponding to the first bit numbers corresponding to the second bit numbers; The file generating unit is configured to generate, according to the second configuration template, an execution file for the control system corresponding to the project to be designed. The replacing, in the first configuration template, of the first bit numbers with the second bit numbers matched with the first bit numbers to obtain a second configuration template comprising the second bit numbers and second configuration information corresponding to the second bit numbers comprises: According to the matching of the first bit number and the second bit number, the first bit number that passes the matching is replaced by the second bit number that matches, the first bit number that fails the matching is replaced by a preset identifier, the second bit number that fails the matching is added to the first configuration template, and third configuration information corresponding to the added second bit number is determined, to obtain the second configuration template including the second bit number, the second configuration information, the preset identifier, and the third configuration information.

9. An electronic device, comprising: comprising a memory and a processor; the memory, configured to store a computer program; the processor, configured to, when executing the computer program, implement the configuration design method in any one of claims 1-7.

Citation Information

Patent Citations

  • Configuration method and device

    CN112764396A

  • Automatic generation method and device of Wincc configuration picture icon and electronic equipment

    CN118502757A