Configuration design method and device and electronic equipment
Through the configuration design method based on the preset template library, the problems of inefficiency and high cost in the traditional configuration design process are solved, and the configuration design is automated and efficient, and the design reliability and consistency are improved.
Patent Information
- Application Number
- CN202411803902.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-10
- Publication Date
- 2025-04-15
- Estimated Expiration
- 2044-12-10
AI Technical Summary
During the traditional configuration design process, there are problems such as large workload, low efficiency, easy errors, high communication costs and poor work connection, resulting in low efficiency and high cost of configuration design.
Through the configuration design method based on the preset template library, the adaptive configuration template is determined, the bit numbers are replaced, and the execution files are generated to achieve automation and efficiency of the configuration design.
It improves the efficiency and reliability of the configuration design, reduces the design cost and difficulty, avoids repeated labor and errors of manual input, and ensures the accuracy and consistency of the configuration design.
Smart Images

Figure CN119829023A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automated development technology, and in particular to a configuration design method, device and electronic equipment. Background Art
[0002] Configuration, as a software configuration method, enables users to complete complex system functions through modular operations, thereby meeting the control requirements of different projects without having to write underlying computer programs. The configuration process is divided into HMI (Human-Machine Interface, HMI, human-machine interface) configuration and program configuration. After both are completed, the variables in the HMI and the variables in the program are associated to form a complete configuration. HMI configuration displays information such as the process flow or operation interface of the designed project in a graphical form, while program configuration converts the project's process control plan into a logical language.
[0003] In the traditional configuration design process, the design of HMI configuration and program configuration can be carried out separately or in parallel by multiple engineers. During this period, engineers need to manually create, associate and debug a large number of control variables, interface elements and program logic to meet the specific needs of the project. This manual operation method has the following main problems:
[0004] 1. Large workload and low efficiency. That is, the traditional configuration process relies on engineers to understand the control scheme and then manually configure and design it item by item. Especially in large projects, there are many control variables and interface elements involved, which easily leads to tedious and repeated operations, increasing the implementation time and labor costs of the project.
[0005] 2. Error-prone, that is, when manually associating and configuring control variables, omissions or errors are very likely to occur, especially in the HMI interface design and program logic construction of the project. If you are not careful, you may cause problems such as unassociated variables and logical errors, which will affect the normal operation and stability of the system used by the configuration;
[0006] 3. When multiple engineers work in parallel, problems such as high communication costs, poor work coordination, and difficulty in unifying design standards may arise.
[0007] The above problems will lead to inefficient configuration design and high costs. Summary of the invention
[0008] The problem solved by the present invention is: how to improve the efficiency and reliability of configuration design and reduce the design cost.
[0009] To solve the above problems, the present invention provides a configuration design method, device and electronic equipment.
[0010] In a first aspect, the present invention provides a configuration design method, comprising:
[0011] Based on a preset template library, determine a first configuration template in the preset template library that is compatible with the project to be designed; wherein the first configuration template includes the first bit number of each component in the corresponding control system, and first configuration information about HMI configuration and program configuration corresponding to the first bit number;
[0012] Matching the first bit number corresponding to the second bit number of each component in the control system corresponding to the project to be designed;
[0013] Replacing the first bit number in the first configuration template with the second bit number matching 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 corresponding to the second bit number;
[0014] An execution file for the control system corresponding to the project to be designed is generated according to the second configuration template.
[0015] Optionally, the matching of the first bit number corresponding to the second bit number of each component in the control system corresponding to the project to be designed includes:
[0016] 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 project to be designed is matched.
[0017] Optionally, the first bit number and the second bit number both include a hard point bit number, a custom bit number, and a function block bit number; matching the first bit number corresponding to the second bit number of each component 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 bit number includes:
[0018] According to the unit number information, matching the hard point number in the first number corresponding to the hard point number in the second number;
[0019] According to the unit number information, matching the custom bit number in the first bit number corresponding to the custom bit number in the second bit number;
[0020] According to the description information, the function block number in the first bit number corresponding to the function block number in the second bit number is matched.
[0021] Optionally, replacing the first bit number in the first configuration template with the second bit number matching 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 includes:
[0022] According to the matching situation of the first bit number and the second bit number, the first bit number that passes the match in the first configuration template is replaced by the matching second bit number, the first bit number that fails the match is replaced by a preset identifier, the second bit number that fails the match is added to the first configuration template, and the third configuration information corresponding to the newly added second bit number is determined, so as 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, based on the preset template library, a first configuration template in the preset template library that is compatible with the project to be designed comprises:
[0024] Determine a first configuration template file in the preset template library that is compatible with the project to be designed, and convert the format of the first configuration template file into XML format;
[0025] The step of generating an execution file for the control system corresponding to the project to be designed according to the second configuration template includes:
[0026] The obtained second configuration template in XML format is converted into a format to generate the execution file in an executable format corresponding to the control system of the project to be designed.
[0027] Optionally, before determining, based on the preset template library, a first configuration template in the preset template library that is compatible with the project to be designed, the configuration design method further includes:
[0028] Extract configuration data of corresponding control systems from previous projects;
[0029] The configuration data is preprocessed to generate a configuration template and a preset template library including the configuration template; wherein the preprocessing includes: bit number sorting, repeated bit number integration and template splitting.
[0030] Optionally, after preprocessing the configuration data to generate a configuration template and a preset template library including the configuration template, the configuration design method further includes:
[0031] The preset template library is stored in the cloud and in a local offline library.
[0032] Optionally, after 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 includes:
[0033] Performing software debugging on the execution file;
[0034] If the debugging is successful, the execution file is deployed to the control system corresponding to the project to be designed. After the control system corresponding to the project to be designed is successfully put into operation, the project to be designed is finally archived into the completion data;
[0035] Extracting a third configuration template related to the project to be designed from the completion data;
[0036] The third configuration template is updated to the preset template library.
[0037] In a second aspect, the present invention provides a configuration design device, comprising:
[0038] A template matching unit, configured to determine, based on a preset template library, a first configuration template in the preset template library that is compatible with the project to be designed; wherein the first configuration template includes a first bit number of each component in the corresponding control system, and first configuration information about HMI configuration and program configuration corresponding to the first bit number;
[0039] A bit number matching unit, used for matching the first bit number corresponding to the second bit number of each component in the control system corresponding to the project to be designed;
[0040] A bit number replacing unit, used for replacing the first bit number in the first configuration template with the second bit number matching 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 corresponding to the second bit number;
[0041] The file generating unit is used 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 invention provides an electronic device, including a memory and a processor;
[0043] The memory is used to store computer programs;
[0044] The processor is used to implement the configuration design method as described in the first aspect when executing the computer program.
[0045] In a fourth aspect, the present invention provides a computer-readable storage medium storing a computer program, wherein when the computer program is read and executed by a processor, the configuration design method as described in the first aspect is implemented.
[0046] Compared with the prior art, the present invention has the following beneficial effects: the present invention is used to realize the configuration design of the project to be designed based on the preset template library, so as to make full use of the past project experience and technical assets, improve the efficiency and reliability of the configuration design, 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 project to be designed is accurately matched 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 control system corresponding to the project to be designed can quickly inherit the settings of the first configuration template, avoiding the situation of starting from scratch, repeated labor and errors in the manual input process, while ensuring the accuracy and reliability of the configuration design of the project to be designed, the configuration design efficiency is further improved. And the first configuration information is the configuration information of the HMI configuration and program configuration of the corresponding components. The configuration design is performed based on the first configuration information, which effectively avoids the time-consuming and labor-intensive process of performing the HMI configuration and program configuration separately, or the high communication cost, unsmooth work connection, and difficulty in unifying the design standards caused by the parallel operation of multiple engineers, and improves the efficiency and consistency of the overall configuration design. Based on the bit number matching, efficient docking with the standardized templates in the preset template library is achieved, thereby accelerating the configuration generation of the project to be designed and further ensuring the configuration accuracy and consistency of the configuration design. According to the second configuration template, an execution file for the control system corresponding to the project to be designed is generated, so that the configuration information in the second configuration template can be accurately mapped to the operating 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 THE DRAWINGS
[0047] Figure 1 A schematic diagram of a flow chart of a configuration design method in an embodiment of the present invention;
[0048] Figure 2 A schematic diagram of a flow chart of a configuration design method in an embodiment of the present invention;
[0049] Figure 3 is a structural block diagram of a configuration design device in an embodiment of the present invention;
[0050] Figure 4 Schematic diagram of the structure of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION
[0051] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0052] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein.
[0053] Combination Figure 1 As shown, an embodiment of the present invention provides a configuration design method, including:
[0054] Step 200: Based on the preset template library, determine the first configuration template in the preset template library that is compatible with the project to be designed; wherein the first configuration template includes the first number of each component in the corresponding control system, and the first configuration information about the HMI configuration and the program configuration corresponding to the first number.
[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 mature design and programming results in previous projects), by pre-building a template library of past project configuration data (referred to as a preset template library), the effective integration and utilization of past scattered project experience and technical assets can be achieved, the cost of subsequent project configuration design can be reduced, and the efficiency of configuration design can be improved. The preset template library contains multiple pre-defined configuration templates, each of which corresponds to a specific type of control system or project requirement, and can cover the configuration information of various components in different types of control systems.
[0056] Based on the preset template library, the configuration template (referred to as the first configuration template) that matches the requirements of the project to be designed is selected from the preset template library. For example, according to the architecture, functional requirements, control logic, bit number distribution and other characteristics of the control system corresponding to the project to be designed (such as an industrial process control system), the most suitable template is matched from the template library as the first configuration template, which is used as the basis for the configuration design of the project to be designed, so as to reduce the difficulty of improving the configuration design of the project to be designed and improve the efficiency of the configuration design of the project to be designed. Among them, the configuration design of the project to be designed is aimed at realizing the automatic control of the control system corresponding to the project to be designed; the first configuration template includes the bit number (i.e., the unique identifier corresponding to the component in the control system, recorded as the first bit number) of each component (such as equipment, sensors, actuators and other components of the control system) of the control system corresponding to the project to be designed, and the first configuration information corresponding to the first bit number about HMI (Human-Machine Interface, HMI, human-machine interface) configuration and program configuration. In this way, the HMI configuration information and program configuration information in the existing configuration template can be utilized to avoid creating configuration files from scratch, which significantly improves the efficiency and reliability of configuration design and reduces the cost of configuration design.
[0057] Step 300: Match the first bit number corresponding to the second bit number of each component in the control system corresponding to the project to be designed.
[0058] Specifically, on the basis of the first configuration template, the actual bit number (recorded as the second bit number) of each component in the control system corresponding to the project to be designed 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 that in the subsequent steps, the corresponding configuration information is matched for each component in the control system corresponding to the project to be designed, thereby realizing the accurate configuration of the component corresponding to the matched second bit number. In this way, through bit number matching, the repeated labor of manually defining a large amount of configuration information is avoided, and the possibility of human error is reduced.
[0059] Step 400: Replace the first bit number in the first configuration template with the second bit number that matches the first bit number, and 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 that matches the second bit number.
[0060] Specifically, the first bit number in the first configuration template after the matching is completed is replaced with the second bit number used by the project to be designed, and a configuration template (recorded as the second configuration template) that retains the logical structure and functional configuration of the first configuration template, but replaces the first bit number with the actual bit number (i.e., the second bit number) of the project to be designed is obtained, so as to ensure that the control system corresponding to the project to be designed can directly adopt the functional modules and operation procedures of the control system corresponding to the first configuration template, thereby improving the efficiency, accuracy and reliability of the configuration design of the project to be designed, and reducing the difficulty and cost of configuration design. In some embodiments, batch replacement (i.e., replacing multiple bits at the same time) can be used to further improve the efficiency of configuration design.
[0061] Step 500: Generate an execution file for a control system corresponding to the project to be designed according to the second configuration template.
[0062] Specifically, according to the second configuration template, an execution file is generated that is ultimately used for the control system corresponding to the project to be designed. Exemplarily, the information format contained in the second configuration template is converted into the executable format of the control system corresponding to the project to be designed to obtain the corresponding execution file, ensuring that the execution file complies with the input format and operation standards of the control system; the execution file is used to import into the control system to achieve automatic configuration and operation (or debugging) of the control system. Among them, the format conversion process may involve the adjustment of the encoding format, the reconstruction of the data structure, and the parsing of different configuration parameters, so that the configuration information in the second configuration template can be accurately mapped to the operating instructions of the control system through the execution file. Exemplarily, according to the second configuration template including the second bit number and the second configuration information corresponding to the second bit number (including the corresponding HMI configuration information and program configuration information), an execution file for the control system corresponding to the project to be designed is generated, and the data about the HMI 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 with the control system of the project to be designed through the human-machine interface (such as monitoring, control, etc.), for example, through the corresponding HMI software or the corresponding development tool, based on the HMI configuration information, a graphical human-machine interface is generated; the data about the program configuration information in the execution file can be used to implement various automation logics and functional controls in the control system of the project to be designed. Moreover, by associating the program configuration information corresponding to the same bit number with the HMI configuration information, the association (or mapping) of the corresponding variables in the HMI and the corresponding variables in the program is realized, that is, the corresponding interface on the HMI (such as the button on the corresponding operation panel of the HMI) is associated with the corresponding device of the control system of the project to be designed and its input and output variables, so that the engineering personnel can accurately and effectively control and manage the various components of the control system of the project to be designed based on the human-machine interface.
[0063] In this way, the method of this embodiment is used to realize the configuration design of the project to be designed based on the preset template library, so as to make full use of past project experience and technical assets, improve the efficiency and reliability of configuration design, 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 project to be designed is accurately matched 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 control system corresponding to the project to be designed can quickly inherit the settings of the first configuration template, avoiding the situation of starting from scratch, repeated work and errors in the manual input process, while ensuring the accuracy and reliability of the configuration design of the project to be designed, further improving the efficiency of configuration design. And the first configuration information is the configuration information of the HMI configuration and program configuration of the corresponding components. The configuration design is performed based on the first configuration information, which effectively avoids the time-consuming and labor-intensive process of performing HMI configuration and program configuration separately, or the high communication cost, unsmooth work connection, and difficulty in unifying design standards caused by the parallel operation of multiple engineers, thereby improving the efficiency and consistency of the overall configuration design. Based on the bit number matching, efficient docking with the standardized templates in the preset template library is achieved, thereby accelerating the configuration generation of the project to be designed and further ensuring the configuration accuracy and consistency of the configuration design. According to the second configuration template, an execution file for the control system corresponding to the project to be designed is generated, so that the configuration information in the second configuration template can be accurately mapped to the operating 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.
[0064] In addition, the configuration design of the project to be designed using the method of this embodiment can realize the automation of configuration design, or reduce the engineering personnel required for configuration design. For example, one engineer can simultaneously complete HMI configuration and program configuration, and can also generate configuration screens and programs in batches, which greatly reduces the design manpower investment and reduces the design errors caused by human factors.
[0065] Optionally, step 300 includes:
[0066] According to at least one of the description information and the unit number information corresponding to the first number, the first number corresponding to the second number of each component in the control system corresponding to the project to be designed is matched.
[0067] Specifically, considering that the bit number information used in different projects or control systems may be different, it is necessary to combine the description information corresponding to the first bit number and at least one of the unit number information to perform bit number matching. The description information generally includes a brief description or text description of the corresponding component and its function, which is used to indicate the location, purpose or attribute of the component in the control system; in the process of matching bit numbers through the description information, the description information is compared to identify whether the component corresponding to the corresponding second bit number is consistent with (or similar to) the description information of the component corresponding to the corresponding first bit number, and the first bit number with the consistent (or similar) description information is matched with the second bit number, such as matching the first bit number with the second bit number with the consistent function of the corresponding component. The unit number information is a more detailed classification identification of the bit number, for example, it is used to distinguish different ports, submodules or areas of the same device; in the process of matching the bit number through the unit number information, by comparing the unit number information, the components in the control system corresponding to the project to be designed and the corresponding components in the control system corresponding to the first configuration template can be identified and matched 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 with the same structure or position in the control system corresponding to the project to be designed, reducing the probability of incorrect matching. Moreover, by combining the description information and the unit number information, the components in the control system corresponding to the project to be designed and the components in the control system corresponding to the first configuration template can be double-checked and matched, so as to greatly improve the accuracy and consistency of the bit number matching or component matching, so that the configuration design can be completed more quickly and accurately.
[0068] In this way, by using description information and / or unit number information to perform bit number matching, accurate, efficient and standardized configuration of configuration design can be effectively achieved, thereby providing strong support for high-quality operation of the control system corresponding to the project to be designed.
[0069] Optionally, the first number and the second number both include a hard point number, a custom number, and a function block number;
[0070] According to at least one of the description information and the unit number information corresponding to the first number, matching the first number corresponding to the second number of each component in the control system corresponding to the project to be designed includes:
[0071] According to the unit number information, the hard point number in the first number is matched with the hard point number in the second number;
[0072] According to the unit number information, matching the custom bit number in the first bit number corresponding to the custom bit number in the second bit number;
[0073] According to the description information, the function block number in the first number corresponding to the function block number in the second number is matched.
[0074] By distinguishing the bit number type (hard point bit number, custom bit number, function block bit number), and combining the description information and unit number information for precise matching, efficient and accurate configuration can be achieved. Specifically, hard point bit number matching: the hard point bit number corresponds closely to the actual hardware device of the control system. Therefore, matching through the unit number information (such as the bit number block) can ensure that the hardware configuration in the project to be designed corresponds to the hardware configuration in the template, thereby ensuring the accuracy of the physical connection. Custom bit number matching: custom bit numbers allow engineers to name according to project requirements, and match through unit number information (such as the bit number block) to ensure that custom settings can accurately correspond in different systems and templates, avoiding misoperation or misconfiguration caused by inconsistent custom numbers. Function block bit number matching: the function block bit number refers to a specific function module or process at the control logic level. Therefore, when matching, the description of the corresponding function module is compared according to the description information (such as the function block), so that the bit number of the function module in the project to be designed is consistent with the setting of the function module in the template. This logical level matching makes the function block setting more flexible and meets the logical design requirements of the control system.
[0075] In this way, by classifying and matching different bit numbers such as hard points, customization, and function blocks, the risk of misconfiguration caused by confusion in bit number types is avoided, thereby improving the accuracy of bit number matching; by supporting multi-type bit number matching, especially the flexible adaptation of custom bit numbers, configuration templates can be flexibly applied between different projects and systems (such as by redefining or mapping the specific meaning of custom bit numbers), thereby improving template reusability and reducing the workload of repeated configuration.
[0076] Optionally, step 400 includes:
[0077] According to the matching situation of the first bit number and the second bit number, the first bit number that passes the match in the first configuration template is replaced by the matching second bit number, the first bit number that fails the match is replaced by a preset identifier, the second bit number that fails the match is added to the first configuration template, and the third configuration information corresponding to the newly added second bit number is determined, so as to obtain a second configuration template including the second bit number, the second configuration information, the preset identifier and the third configuration information.
[0078] Specifically, considering that there may be certain 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, this may cause all the second bit numbers of the project to be designed to be unable to correspond one-to-one with all the first bit numbers of the first configuration template. Therefore, in step 400, according to the matching situation of the first bit number and the second bit number obtained in step 300, for the first bit number and the second bit number that pass the match, that is, the first bit number and the second bit number that can find a one-to-one correspondence, the second bit number directly replaces the matching first bit number in the first configuration template, and inherits its configuration information (that is, the second configuration information), to ensure that the settings of the project to be designed and the first configuration template at these positions are consistent, thereby quickly completing the configuration of the known (or matched) components. For the first number that fails to match, that is, the first number that exists in the first configuration template but has no corresponding relationship in the project to be designed (that is, the match fails), a preset identifier (recorded as a preset identifier) that can indicate that the first number fails to match is used to replace or fill it, and mark it, so as to prevent the subsequent generation of the execution file from misquoting these old, unmatched first numbers and causing corresponding problems (such as misquoting leading to maloperation of the control system or error alarm, etc.). For the second number that exists in the project to be designed but has no corresponding relationship in the first configuration template (that is, the match fails), it is added to the first configuration template, and at the same time, the third configuration information corresponding to the second number 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 obtained second configuration template includes: the second number that replaces the original first number that passes the match and the second configuration information corresponding to the second number, the preset identifier that replaces the original first number that fails to match, the newly added second number that fails to match, and the third configuration information corresponding to the second number. Among them, the third configuration information can be manually generated or inherited by a template. For manual generation, that is, manually analyzing the component requirements corresponding to the unmatched second bit number, creating new third configuration information to meet the specific configuration requirements of the project to be designed; for template inheritance, that is, according to the component characteristics in the project to be designed, the first configuration information of the similar component already in the first configuration template is used as the third configuration information, and is appropriately adjusted and assigned an unmatched bit number. It is worth noting that for the second configuration information corresponding to the second bit number that replaces the original matched first bit number, if the original first bit number information exists in the second configuration information, it needs to be replaced together.
[0079] In addition, the preset identifier is a special symbol or code used to mark and distinguish the first position number in the first configuration template that fails to match the second position number in the project to be designed. Its main function is to identify these unmatched first positions and process them independently to ensure that when the second configuration template is generated, these unmatched components can be effectively marked and identified, avoiding the situation where these position numbers are misquoted when the execution file is subsequently generated. Exemplarily, the preset identifier can be a new character, or a corresponding prefix or suffix (such as a serial number) is added to the original second position number. In this way, the use of the preset identifier helps to quickly identify the unmatched (i.e., the match fails) position numbers, provide convenient identification for subsequent design, inspection and maintenance, and improve the flexibility and efficiency of configuration design.
[0080] Optionally, in step 500, in the process of generating an execution file for the control system corresponding to the project to be designed according to the second configuration template, the preset identifier and its corresponding information can be filtered out based on the preset identifier in the second configuration template to avoid the unmatched first bit number, i.e., the corresponding old configuration information, from being mistakenly introduced into the execution file. Through this filtering mechanism, it can be ensured that the generated execution file only contains valid bit numbers and configuration information that are correctly associated with the control system corresponding to the project to be designed, thereby improving the accuracy of the execution file and the reliability of the operation of the corresponding control system.
[0081] Optionally, when matching and replacing the bit number, corresponding adjustment information (such as matching status, replacement status, unmatched items and newly added items, etc.) can be generated at the same time, so that subsequent engineering personnel can review or proofread the replacement process, and verify and confirm the bit number replacement results when necessary. Among them, the adjustment information can be used to record the details of the replacement process, which helps to improve the accuracy of bit number matching and the reliability of project configuration, and prevent control system malfunctions caused by erroneous replacement.
[0082] Optionally, when matching and replacing the bit numbers, engineers can perform checks, such as confirmation before replacement, to ensure that all replacements, unmatched items, and new items are as expected. Through this pre-replacement confirmation, engineers can manually check special or important bit numbers to ensure that the actual control requirements are accurately reflected in the final 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 configuration design.
[0083] Optionally, based on the fact that both the first bit number and the second bit number include hard point bit numbers, custom bit numbers, and function block bit numbers, when replacing the bit numbers, the function block bit numbers can be replaced first, and then the bit numbers in the program page file can be replaced, ensuring that the order of the replacement process can effectively handle the references to the function block bit numbers in the program page file. Specifically, the replacement of the function block bit numbers should be given priority, because some bit numbers in the program page file will depend on the definition of the function block bit numbers. Replacing the function block bit numbers first can ensure that the replacement of all bit numbers can be correctly matched. If the function block bit numbers are not replaced first, the accuracy of subsequent replacements may be affected due to failure to reference the correct function block bit numbers. In this way, through this replacement order, the consistency and accuracy of the bit number replacement can be ensured, and errors and conflicts caused by replacement order problems can be reduced.
[0084] Optionally, step 200 includes:
[0085] Determine a first configuration template file in a preset template library that is compatible with the project to be designed, and convert the format of the first configuration template file into an XML format;
[0086] Step 500 includes:
[0087] The obtained second configuration template in XML format is converted into a format to generate an execution file in an executable format corresponding to the control system of the project to be designed.
[0088] Specifically, in step 200, the first configuration template file that is most suitable for the project to be designed is selected from the preset template library, and the first configuration template file is converted into XML format. The XML format is structured and editable, which is convenient for automated processing and script operations to reduce the risk of human errors; after the template is converted into the XML format, operations such as bit number replacement and configuration adjustment can be performed efficiently without the need for tedious manual modifications in the original format of the first configuration template file, and the structured characteristics of XML can simplify the parsing, editing and replacement operations of the file content, which helps to further improve the efficiency of configuration design.
[0089] Based on the first configuration template file in XML format obtained in step 200, a second configuration template in 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 XML format) that has completed bit number replacement and configuration information adjustment is converted into an executable file in an executable format corresponding to the control system. The converted executable file is in a format that can be directly recognized, loaded and executed by the control system, so that the configuration design and the actual control system application are seamlessly connected, avoiding manual loading or additional conversion steps, etc.
[0090] Optionally, the bit number matching and replacement can be performed based on a comparison table (Excel table can be used) to reduce the engineering personnel's operating requirements for the configuration software, and make full use of Excel's functions (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 efficiency. Exemplarily, a corresponding comparison table can be generated according to the first configuration template, and the comparison table contains 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 engineering personnel in the bit number replacement. In some embodiments, the comparison table also includes information such as the description information of the bit number, the unit number information, the bit number type (such as hard point bit number, custom bit number, function block bit number, etc.), etc., which is convenient for rapid identification and proofreading during the bit number matching and replacement process. In this way, through this comparison table method, effective management of the replacement process can be achieved, avoiding the misalignment of the bit number caused by manual operation, and improving the accuracy and efficiency of the configuration design.
[0091] Optionally, in step 200, based on the preset template library, when determining the first configuration template that is compatible with the project to be designed in the preset template library, the files to be processed in the first configuration template (such as files related to HMI configuration information and program configuration information) can be further screened and selected to provide data support for subsequent steps. Exemplarily, after the engineer confirms the selected first configuration template through the corresponding device (such as the control station) that can access the preset template, the file to be processed (including the program page file and the HMI file) can be selected from it, and the selected file will be displayed in the preview box of the display interface of the corresponding device for the engineer to check and confirm. On this basis, according to the actual needs of the project to be designed, the program page file is pre-selected to the corresponding control station directory, so that the logic configuration and program deployment can be carried out in the control station later; at the same time, the HMI file is pre-selected to the specified repository directory, so that the human-machine interface can be generated and managed later, which is convenient for interactive operation with the control system. This file management method based on pre-selection and preview can effectively simplify the operation steps of the engineer, improve the accuracy and efficiency in the configuration design process, etc.
[0092] Optionally, combined Figure 2 As shown, before step 200, the configuration design method further includes:
[0093] Step 110, extracting configuration data of corresponding control systems in previous projects;
[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, repeated bit number integration and template splitting.
[0095] In order to make full use of the large amount of scattered project experience and technical assets (such as mature design and programming results in previous projects) accumulated in the long-term project implementation process, a template library of past project configuration data is pre-built (referred to as the preset template library) to achieve effective integration (such as systematic organization and modular packaging) and utilization of past scattered project experience and technical assets, reduce the cost of subsequent project configuration design, and improve configuration design efficiency; and the preset template library can make full use of and iterate relationships (achieved by updating and supplementing configuration templates), further reducing the cost of subsequent project configuration design.
[0096] Specifically, first extract relevant configuration information from completed projects to ensure that past experience and technical accumulation can be fully utilized when designing new projects. This information includes the configuration information, bit number information, program logic, HMI interface configuration, etc. of the corresponding control system. Afterwards, the normalization and standardization of the configuration data are ensured through preprocessing, and a configuration template and a preset template library including the configuration template are generated, so as to provide high-quality data support for the configuration configuration of the project to be designed through the configuration template and the preset template library, avoiding errors caused by data redundancy or inconsistency, etc., and helping to achieve fast matching and efficient calling of configuration templates. Bit number sorting is to sort all bit numbers according to predefined rules to unify the arrangement order of bit numbers in the configuration template, ensure that the bit numbers are presented in a logical and easy-to-understand order in the configuration template, make the subsequent configuration design more concise and clear, easy to identify and use, and reduce the time for searching and comparing. Repeated bit number integration is to merge bit numbers with the same or repeated functions in the extracted configuration data to eliminate redundant configurations, make the configuration template structure more concise, and reduce the amount of data storage. Template splitting is to split large configuration data into categories such as projects, control systems or equipment to generate independently usable module templates for flexible combination and reuse, thereby improving the flexibility and reusability of configuration design and helping to meet the customization requirements of various projects.
[0097] Optionally, the preset template library also includes configuration templates specifically developed by engineering personnel.
[0098] For the construction (or generation) of the preset template library, for example, the templates are developed for the relevant industries of the corresponding control system or the corresponding templates are extracted from historical projects. Specifically, first, according to the corresponding control system's own interface and file type, the custom function blocks, program pages, and HMI files involved are extracted as needed and stored in a fixed format; then, the bit numbers and custom variables in the program pages and HMI files are extracted; then, the extracted program page bit number table and the HMI file bit number table are merged into an EXCEL table, and the repeated bit numbers are integrated during the merging process, and the bit numbers are arranged in the order of the equipment; then, the control system configuration is split into a set of templates according to the project device, which is convenient for engineers to combine.
[0099] Optionally, after step 120, the configuration design method further includes:
[0100] The preset template library uses cloud storage and local offline library storage.
[0101] Specifically, for the sake of data security, flexibility, and accessibility, the preset template library is stored in both cloud storage and offline library storage. The preset template library is stored on a cloud server, and remote access (online browsing) and calling of the template can be achieved through the network, which is convenient for real-time updating and sharing of data, and supports permission management, so that authorized personnel or devices can use the latest version of the preset template library anytime and anywhere. The preset template library is stored in a local offline library, such as an offline storage device or an intranet, so that even in the absence of a network connection, the corresponding personnel can call the local preset template library data to ensure that the configuration design work is not interrupted due to network problems.
[0102] For example, cloud storage plus offline library is used, and the control system interface is used to realize online browsing and offline management of configuration templates. Encryption can also be used to achieve data security backup, that is, the configuration template is stored in encrypted form in the server and offline library, and a certain management system can be used to effectively avoid leakage; by regularly backing up the template library, data security can be ensured.
[0103] Optionally, after step 500, the configuration design method further includes:
[0104] Perform software debugging on the executable file.
[0105] After step 500, corresponding operations are performed to further improve and optimize the configuration design method to ensure the smooth implementation of the project and enhance the continuous updating and expansion capabilities of the template library.
[0106] Specifically, by debugging the execution file, potential logic errors or performance problems in the execution file can be detected and eliminated before the execution file is applied to the real control system corresponding to the project to be designed, so as to ensure the correctness and stability of the execution file. The debugging process is usually carried out in a test environment to timely discover and solve problems in the file, avoid failures when the control system is put into operation, thereby improving the reliability and stability of the project implementation and reducing downtime and maintenance costs caused by errors.
[0107] If the debugging is successful, the execution file will be deployed to the control system corresponding to the design project. After the control system corresponding to the design project is successfully put into operation, the design project will be finally archived into the completion data;
[0108] Specifically, after the software debugging is passed, the execution file is formally deployed to the actual control system and put into operation. The control system enters the normal operation state, marking the successful operation. After the successful operation, the project to be designed is finally filed into the completion data, that is, according to the configuration and operation of the successfully put into operation project to be designed, the completion data is sorted and generated, which records the final configuration and operation data of the project.
[0109] In this way, the execution file is run in a real environment to verify whether the functions of the control system meet the design requirements. At the same time, the generated completion data provides a detailed configuration reference for subsequent project maintenance, ensures the completeness of the record files, and lays the foundation for project acceptance and filing.
[0110] Extract the third configuration template of the project to be designed from the completion data;
[0111] Specifically, the optimized and revised configuration information in the actual application process is extracted from the completion data to form a corresponding configuration template (recorded as the third configuration template). This template reflects the final optimized configuration of the project during the commissioning process, including parameters, logic and functional improvements that meet 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] Update the third configuration template to the preset template library.
[0114] Specifically, the third configuration template that has been verified and optimized after commissioning will be updated to the preset template library to ensure that the content in the template library is continuously enriched with the implementation of new projects, covering more practical scenarios and optimization solutions, and improving the applicability of the preset template library.
[0115] In this way, the preset template library can be dynamically expanded and optimized due to the continuous accumulation of projects, forming a more complete 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] Combination Figure 3 As shown, another embodiment of the present invention provides a configuration design device, comprising:
[0117] A template matching unit, for determining, based on a preset template library, a first configuration template in the preset template library that is compatible with the project to be designed; wherein the first configuration template includes a first number of each component in the corresponding control system, and first configuration information about HMI configuration and program configuration corresponding to the first number;
[0118] A bit number matching unit is used to match the first bit number corresponding to the second bit number of each component in the control system corresponding to the project to be designed;
[0119] A bit number replacement unit, used to replace the first bit number in the first configuration template with a second bit number matching 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 corresponding to the second bit number;
[0120] The file generating unit is used 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 this embodiment is used to implement the above-mentioned configuration design method. Its advantages over the prior art are the same as the advantages of the above-mentioned configuration design method over the prior art, which will not be repeated here.
[0122] Combination Figure 4 As shown, another embodiment of the present invention provides an electronic device, including a memory 401 and a processor 402;
[0123] Memory 401, used for storing computer programs;
[0124] The processor 402 is used to implement the above configuration design method when executing the computer program.
[0125] In other words, an electronic device includes 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] Based on the preset template library, determine a first configuration template in the preset template library that is compatible with the project to be designed; wherein the first configuration template includes the first number of each component in the corresponding control system, and first configuration information about HMI configuration and program configuration corresponding to the first number;
[0127] Match the first digit corresponding to the second digit of each component in the control system corresponding to the project to be designed;
[0128] The first bit number in the first configuration template is replaced with a second bit number matching the first bit number, so as 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 corresponding to the second bit number;
[0129] According to the second configuration template, an execution file for the control system corresponding to the project to be designed is generated.
[0130] The electronic device of this embodiment can be used to implement the above-mentioned configuration design method. Its advantages over the prior art are the same as the advantages of the above-mentioned configuration design method over the prior art, which will not be described in detail here.
[0131] Another embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is read and executed by a processor, the above-mentioned configuration design method is implemented.
[0132] In other words, 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] Based on the preset template library, determine a first configuration template in the preset template library that is compatible with the project to be designed; wherein the first configuration template includes the first number of each component in the corresponding control system, and first configuration information about HMI configuration and program configuration corresponding to the first number;
[0134] Match the first digit corresponding to the second digit of each component in the control system corresponding to the project to be designed;
[0135] The first bit number in the first configuration template is replaced with a second bit number matching the first bit number, so as 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 corresponding to the second bit number;
[0136] According to the second configuration template, an execution file for the control system corresponding to the project to be designed is generated.
[0137] The technical solution of the embodiment of the present invention, in essence or in other words, 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, which is stored in a storage medium and includes several instructions for making a computer device (which can be a personal computer, server, or network device, etc.) or a processor perform all or part of the steps of the method of the embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
[0138] The computer-readable storage medium of this embodiment can be used to implement the above-mentioned configuration design method. Its advantages over the prior art are the same as the advantages of the above-mentioned configuration design method over the prior art, which will not be repeated here.
[0139] Although the present invention is disclosed as above, the protection scope of the present invention is not limited thereto. Those skilled in the art may make various changes and modifications without departing from the spirit and scope of the present invention, and these changes and modifications will fall within the protection scope of the present invention.
Claims
1. A configuration design method, characterized in that: include: Based on a preset template library, determine a first configuration template in the preset template library that is compatible with the project to be designed; wherein the first configuration template includes the first bit number of each component in the corresponding control system, and first configuration information about HMI configuration and program configuration corresponding to the first bit number; Matching the first bit number corresponding to the second bit number of each component in the control system corresponding to the project to be designed; Replacing the first bit number in the first configuration template with the second bit number matching 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 corresponding to the second bit number; An execution file for the control system corresponding to the project to be designed is generated according to the second configuration template.
2. The configuration design method according to claim 1, characterized in that: The matching of the first bit number corresponding to the second bit number of each component in the control system corresponding to the project to be designed includes: 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 project to be designed is matched.
3. The configuration design method according to claim 2, characterized in that: The first bit number and the second bit number both include a hard point bit number, a custom bit number, and a function block bit number; the first bit number corresponding to the second bit number of each component in the control system corresponding to the project to be designed is matched according to at least one of the description information and the unit number information corresponding to the first bit number, and includes: According to the unit number information, matching the hard point number in the first number corresponding to the hard point number in the second number; According to the unit number information, matching the custom bit number in the first bit number corresponding to the custom bit number in the second bit number; According to the description information, the function block number in the first bit number corresponding to the function block number in the second bit number is matched.
4. The configuration design method according to claim 1, characterized in that: The step of replacing the first bit number in the first configuration template with the second bit number matching 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 includes: According to the matching situation of the first bit number and the second bit number, the first bit number that passes the match in the first configuration template is replaced by the matching second bit number, the first bit number that fails the match is replaced by a preset identifier, the second bit number that fails the match is added to the first configuration template, and the third configuration information corresponding to the newly added second bit number is determined, so as to obtain the second configuration template including the second bit number, the second configuration information, the preset identifier and the third configuration information.
5. The configuration design method according to claim 1, characterized in that: The step of determining, based on the preset template library, a first configuration template in the preset template library that is compatible with the project to be designed comprises: Determine a first configuration template file in the preset template library that is compatible with the project to be designed, and convert the format of the first configuration template file into XML format; The step of generating an execution file for the control system corresponding to the project to be designed according to the second configuration template includes: The obtained second configuration template in XML format is converted into a format to generate the execution file in an executable format corresponding to the control system of the project to be designed.
6. The configuration design method according to any one of claims 1 to 5, characterized in that: Before determining the first configuration template in the preset template library that is compatible with the project to be designed based on the preset template library, the configuration design method further includes: Extract configuration data of corresponding control systems from previous projects; The configuration data is preprocessed to generate a configuration template and a preset template library including the configuration template; wherein the preprocessing includes: bit number sorting, repeated bit number integration and template splitting.
7. The configuration design method according to claim 6, characterized in that: After the configuration data is preprocessed to generate a configuration template and a preset template library including the configuration template, the configuration design method further includes: The preset template library is stored in the cloud and in a local offline library.
8. The configuration design method according to any one of claims 1 to 5, characterized in that: After 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 includes: Performing software debugging on the execution file; If the debugging is successful, the execution file is deployed to the control system corresponding to the project to be designed. After the control system corresponding to the project to be designed is successfully put into operation, the project to be designed is finally archived into the completion data; Extracting a third configuration template related to the project to be designed from the completion data; The third configuration template is updated to the preset template library.
9. A configuration design device, characterized in that: include: A template matching unit, configured to determine, based on a preset template library, a first configuration template in the preset template library that is compatible with the project to be designed; wherein the first configuration template includes a first bit number of each component in the corresponding control system, and first configuration information about HMI configuration and program configuration corresponding to the first bit number; A bit number matching unit, used for matching the first bit number corresponding to the second bit number of each component in the control system corresponding to the project to be designed; A bit number replacing unit, used for replacing the first bit number in the first configuration template with the second bit number matching 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 corresponding to the second bit number; The file generating unit is used to generate an execution file for the control system corresponding to the project to be designed according to the second configuration template.
10. An electronic device, characterized in that: including memory and processor; The memory is used to store computer programs; The processor is used to implement the configuration design method according to any one of claims 1 to 8 when executing the computer program.
Citation Information
Patent Citations
Configuration method and device
CN112764396A
Configuration method and device for monitoring page and computer readable storage medium
CN114020582A
Automatic generation method and device of Wincc configuration picture icon and electronic equipment
CN118502757A
Cited By
DCS system processing method and system, electronic equipment and storage medium
CN120892127A