PLC module configuration management method and system, electronic equipment and storage medium
By generating the xml description file and parsing interface of the module, the decoupling of PLC programming software and module functions is achieved, and the software update problem when module types are increased or function changes in the existing technology is solved, the development and maintenance are simplified, and the user is improved. Experience.
Patent Information
- Application Number
- CN202411321323.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-23
- Publication Date
- 2025-01-10
AI Technical Summary
When the module type increases or functions change, existing PLC programming software needs to be updated, resulting in difficulty in maintaining and poor user experience, and it is impossible to implement module configuration management without changing the configuration software.
By generating the xml description file of each module, including UI elements and their nested relationships, analyzing and generating module list and parameter configuration interface, realizing dynamic display of the module list interface and parameter configuration interface, avoiding describing UI elements in the xml description file. Implement the decoupling of PLC programming software and module functions.
It realizes that without updating the PLC programming software, meets the needs of flexible module combination, simplifies development and maintenance, avoids secondary software functional development, and improves user experience.
Smart Images

Figure CN119292651A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of industrial automation technology, and in particular to a PLC module configuration management method and system, electronic equipment, and a computer-readable storage medium. Background Art
[0002] PLC (Programmable Logic Controller) is a digital operation controller widely used in the field of industrial automation. It mainly includes CPU modules, various protocol communication modules, digital input / output modules, analog input / output modules and counting modules. When in use, engineers combine various PLC modules into "PLC substations" and configure corresponding working parameters for each module of the substation to achieve specific control functions. This process is called "configuration" and is generally completed by the corresponding PLC programming software.
[0003] Since the PLC programming software needs to display the parameter configuration interface of the module when configuring, and different modules may have different parameter configuration interfaces due to their different functions, parameter numbers and parameter types, the PLC programming software is required to be able to adapt to a variety of different types of modules and realize accurate interface display. There are currently two main methods to solve this problem. The first method is to first embed the module list and the configuration interface of each module in the PLC configuration software, and then establish a mapping between each module in the module list and the corresponding configuration interface. When the user selects a module from the list during configuration, the programming software can call out the corresponding configuration interface for the user to configure. For details, please refer to patent application CN104217068A. The shortcoming of this method is that when the PLC system adds a new module type or changes the existing module configuration interface function, the software developer needs to update the module type or the corresponding configuration interface in the configuration software, which is not conducive to the maintenance of the software, and the software user also needs to update the software version to adapt to the new module, and the user experience is poor. The second method is to first split the functions of the PLC module into several functional units, build a functional unit set, and build a corresponding configuration interface set in the PLC configuration software according to the functional set; then select the corresponding configuration interface combination according to the functional combination of each module to form a complete parameter configuration interface; when a new module is added to the system, if the function of the new module already exists in the original functional unit set, it is only necessary to combine these functional units and write them into the device description file of the module. The configuration software loads the device description file and calls out the corresponding configuration interface according to the functional unit information in the file. When the configuration interface corresponding to all functional units is loaded, the complete configuration interface of the device can be presented, and the user can configure the parameters on this basis. For details, please refer to patent CN115685866A. This method can realize the construction of the configuration interface of the existing functions in the function set without changing the configuration software, but when the function set does not contain the functions of the new module, the same software update problem faced by the first method exists.
[0004] Therefore, there is an urgent need for a PLC module configuration management method that can implement module configuration without changing the configuration software. Summary of the invention
[0005] The present invention provides a PLC module configuration management method and system, electronic equipment, and a computer-readable storage medium, which can meet the demand for flexible module combination with one-time development. When a new module is added or the module function is changed in the PLC system, there is no need for secondary development of the PLC programming software to change the functionality, and the development is simple and easy to maintain.
[0006] According to one aspect of the present invention, a PLC module configuration management method is provided, comprising the following contents:
[0007] According to the types of modules in the PLC and the functions of each module, determine the UI elements and their positions and nesting relationships contained in the parameter configuration interface of each module, and generate the XML description file of each module by mapping the UI elements and labels, and generate the XML description file of the module list at the same time;
[0008] Input the XML description file of each module and the XML description file of the module list into the PLC programming software for parsing, and generate the module list interface and the parameter configuration interface of each module respectively;
[0009] Select a module in the module list interface to build the configuration interface. When a module in the configuration interface is selected, the parameter configuration interface corresponding to the selected module is displayed.
[0010] Furthermore, the XML description file of each module includes a module information node, a configuration data node, an input / output data node, a control data node, a value item node and a text item node, wherein the module information node is used to describe the basic information and functional characteristics of the module, the configuration data node is used to describe the information of the module configuration data, the input / output data node is used to describe the process data frame, the control data node includes configuration parameters and view information definitions, the view information definition is used to define the interface control information and its association with the configuration parameters, the value item node is the option and help text of the drop-down box control in the configuration parameters, and a text ID and storage value are assigned to each option, and the text item node is used to describe the text item information of the module control.
[0011] Furthermore, the xml description file of the module list includes device information and view information of each module, and is used to generate a module list interface on the interface of the PLC programming software.
[0012] Furthermore, the PLC programming software parses the XML description file of each module, and the process of generating the parameter configuration interface of each module includes the following:
[0013] First, deconstruct the information under each node in the XML description file into the corresponding data structure, and then obtain the control information through the interpreter according to the mapping relationship between UI elements and tags in the data structure and the content of the data structure. Then, load the controls layer by layer according to the nested relationship of the controls, and dynamically add the controls and text to the interface for display, thereby generating the parameter configuration interface for each module.
[0014] Furthermore, the obtained module information node information is used to construct the module object. The entire module object consists of a module visualization object and a module parameter management object. The module visualization object is used to manage the generation and refresh of the configuration page, and the module parameter management object is used to manage the reading, writing and updating of configuration parameters; the obtained input and output data node information is used to construct the module's input and output variable object list; the obtained configuration data node information is used to construct the module configuration parameter object list; the obtained control data node information is used to construct the interface and interface dynamic effects; the obtained value item node information and text item node information are used for interface presentation.
[0015] Furthermore, the following contents are also included:
[0016] Complete the parameter configuration of each module in the parameter configuration interface and send the parameter configuration information to the PLC system.
[0017] In addition, the present invention also provides a PLC module configuration management system, comprising:
[0018] The device description file generation module is used to determine the UI elements and their positions and nesting relationships contained in the parameter configuration interface of each module according to the types of modules in the PLC and the functions of each module, and to generate an XML file describing each module by mapping UI elements and labels to each other, and to generate an XML file describing the module list at the same time;
[0019] The device description file parsing module is used to input the XML description file of each module and the XML description file of the module list into the PLC programming software for parsing, and generate the module list interface and the parameter configuration interface of each module respectively;
[0020] The configuration interface building module is used to select a module in the module list interface to build a configuration interface. When a module in the configuration interface is selected, the parameter configuration interface corresponding to the selected module is displayed.
[0021] Furthermore, it also includes:
[0022] The module parameter configuration module is used to complete the parameter configuration of each module in the parameter configuration interface and send the parameter configuration information to the PLC system.
[0023] In addition, the present invention also provides an electronic device, including a processor and a memory, wherein the memory stores a computer program, and the processor executes the steps of the above method by calling the computer program stored in the memory.
[0024] In addition, the present invention also provides a computer-readable storage medium for storing a computer program for performing PLC module configuration management, wherein the computer program executes the steps of the method described above when running on a computer.
[0025] The present invention has the following beneficial effects:
[0026] The PLC module configuration management method of the present invention starts from the UI design perspective of the parameter configuration interface, taking into account that although different PLC modules have different functions, the UI elements required for their parameter configuration interfaces are similar. Therefore, an XML description file of each module is generated by mapping UI elements and tags to each other, avoiding describing UI elements in the XML description file, which is time-saving, universal, and has good scalability. Then, the PLC programming software automatically parses and renders the parameter configuration interface corresponding to each module according to the mapping relationship between control elements and tags and the hierarchical structure of statements in the description file, thereby realizing the display of parameter configuration interfaces of modules of different types, realizing complete decoupling between the PLC programming software and the module functions, that is, the functions of the modules are different and the PLC programming software remains unchanged, which can meet the demand for flexible combination of modules with one development. When a new module is added or the module function is changed in the PLC system, there is no need to perform secondary development of the PLC programming software for functional changes. It is only necessary to increase the XML description file of the new module or make corresponding modifications in the XML description file of the module, which is simple to develop and easy to maintain.
[0027] In addition, the PLC module configuration management system of the present invention also has the above advantages.
[0028] In addition to the above-described purposes, features and advantages, the present invention has other purposes, features and advantages. The present invention will be further described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The drawings constituting a part of this application are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0030] Figure 1 It is a flow chart of the PLC module configuration management method of the preferred embodiment of the present application.
[0031] Figure 2 It is a schematic diagram of generating a device description template for each module in a device library in a preferred embodiment of the present application.
[0032] Figure 3 It is a schematic diagram of the view layout part in the XML description file of the module in the preferred embodiment of the present application after being parsed by the interpreter.
[0033] Figure 4 It is another flow chart of the PLC module configuration management method of the preferred embodiment of the present application.
[0034] Figure 5 It is a schematic diagram of the module structure of a PLC module configuration management system according to another embodiment of the present application. DETAILED DESCRIPTION
[0035] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0036] Reference Figure 1 The preferred embodiment of the present application provides a PLC module configuration management method, comprising the following contents:
[0037] Step S1: According to the types of modules in the PLC and the functions of each module, determine the UI elements and their positions and nesting relationships contained in the parameter configuration interface of each module, and generate an XML description file for each module by mapping UI elements and tags, and generate an XML description file for the module list at the same time;
[0038] Step S2: Input the XML description file of each module and the XML description file of the module list into the PLC programming software for parsing, and generate a module list interface and a parameter configuration interface of each module respectively;
[0039] Step S3: Select a module in the module list interface to build a configuration interface. When a module in the configuration interface is selected, a parameter configuration interface corresponding to the selected module is displayed.
[0040] It can be understood that the PLC module configuration management method of this embodiment starts from the UI design perspective of the parameter configuration interface, taking into account that although different PLC modules have different functions, the UI elements required for their parameter configuration interfaces are similar. Therefore, an xml description file for each module is generated by mapping UI elements and labels to each other, avoiding describing UI elements in the xml description file, which is time-saving, universal, and scalable. The PLC programming software then automatically parses and renders the parameter configuration interface corresponding to each module according to the mapping relationship between control elements and labels and the hierarchical structure of statements in the description file, thereby realizing the display of parameter configuration interfaces for modules of different types, and realizing complete decoupling between the PLC programming software and module functions, that is, the functions of the modules are different and the PLC programming software remains unchanged, which can meet the needs of flexible module combination with one development. When a new module is added or the module function is changed in the PLC system, there is no need to perform secondary development of the PLC programming software for functional changes. It is only necessary to increase the xml description file of the new module or make corresponding modifications in the xml description file of the module, which is simple to develop and easy to maintain.
[0041] It can be understood that in step S1, the PLC device library includes multiple types of modules, each module corresponds to a different function. Although the functions of each module are different, the UI elements required for its parameter configuration interface are similar, such as text boxes, buttons, drop-down lists, radio buttons and other control elements. Therefore, the present invention first determines the UI elements and their positions and nested relationships included in the parameter configuration interface of each module according to the function of each module, and generates an XML description file for each module by mapping UI elements and tags. For example, Figure 2 As shown in the figure, the device library of PLC includes n modules of different functional types. For each module, a device description template for generating a parameter configuration interface is written. The device description template is based on the XML language. The use of each part of the label and attribute in the XML file strictly follows the mapping relationship with the UI elements. For example, the label MenuItem in the XML file is mapped to the container on the configuration interface, and the label ParameterRef is mapped to the configuration parameter. A complete device description template includes module information nodes, configuration data nodes, input and output data nodes, control data nodes, value item nodes and text item nodes. Among them, the module information node is used to describe the basic information and functional characteristics of the module, the configuration data node is used to describe the information of the module configuration data, the input and output data node is used to describe the process data frame, including the process input, process output, extended input and extended output of the module, the control data node includes configuration parameters and view information definitions, and the view information definition is used to define the interface control information and its corresponding relationship, dependency relationship and other related information with the configuration parameters. The value item node is the option and help text of the drop-down box control in the configuration parameter, and a text ID and storage value are assigned to each option. The text item node is used to describe the text item information of the module control. In addition, an XML description file of the module list is generated according to the types of modules in the PLC, wherein the XML description file of the module list includes device information and view information of each module, and is used to generate a module list interface on the interface of the PLC programming software.
[0042] It can be understood that in step S2, after starting the PLC programming software, the xml description file of the module list and the xml description file of each module are input into the PLC programming software for parsing, and the module list interface and the parameter configuration interface of each module are generated respectively. The process in which the PLC programming software parses the xml description file of each module and generates the parameter configuration interface of each module includes the following:
[0043] First, deconstruct the information under each node in the XML description file into the corresponding data structure, and then obtain the control information through the interpreter according to the mapping relationship between UI elements and tags in the data structure and the content of the data structure. Then, load the controls layer by layer according to the nested relationship of the controls, and dynamically add the controls and text to the interface for display, thereby generating the parameter configuration interface for each module.
[0044] Specifically, the PLC programming software first uses Qt's existing classes to read the xml description file to deconstruct the information under each node into a corresponding data structure. The interpreter then obtains the control information based on the mapping relationship between the UI elements and the tags in the data structure and the content of the data structure. The obtained control information includes the control type, name, value, parent-child nesting relationship, dependent binding relationship, etc. Then, the control is loaded layer by layer according to the nesting relationship of the control, and the control and text are dynamically added to the interface for display according to the Qt default position, thereby generating the parameter configuration interface of each module. Among them, the obtained module information node information is used to construct the module object. The entire module object consists of a module visualization object and a module parameter management object. The module visualization object is used to manage the generation and refresh of the configuration page, and the module parameter management object is used to manage the reading, writing and updating of the configuration parameters; the obtained input and output data node information is used to construct the module's input and output variable object list; the obtained configuration data node information is used to construct the module configuration parameter object list; the obtained control data node information is used to construct the interface and interface dynamic effects; the obtained value item node information and text item node information are used for interface presentation. The configuration interface generated by the interpreter after parsing the module's XML description file is mainly divided into a left tree structure and a right container structure. The left tree structure is used to display container names in a hierarchical manner, and the right container structure is used to display specific configuration information. The view uses the Break flag to determine whether a container name needs to be displayed in the left tree structure. That is, when Break = true appears, the left tree structure will no longer display its child node names, and the right container structure will display all information. The schematic diagram of the view layout part of the module's XML description file after being parsed by the interpreter is as follows Figure 3 As shown. In addition, the rendering effects such as font, control size, color, etc. on the configuration interface are constrained by the custom qss style file. In addition, the PLC programming software also generates a module list interface based on the xml description file of the module list. The displayed module list consists of module type, name, type, version, thumbnail and description.
[0045] It can be understood that in step S3, after determining the module type, quantity and position in the PLC system, the user can build a configuration interface by dragging and dropping specific modules in the module list interface. When a module in the configuration interface is selected, the parameter configuration interface corresponding to the selected module is displayed. The configuration interface is dynamically generated and refreshed based on the data in the module visualization object.
[0046] Alternatively, if Figure 4 As shown, the PLC module configuration management method also includes the following contents:
[0047] Step S4: Complete the parameter configuration of each module in the parameter configuration interface, and send the parameter configuration information to the PLC system.
[0048] It can be understood that users can complete the parameter configuration of each module in the parameter configuration interface. The parameter configuration information of each module will be written into the module parameter management object in real time, and then the data in the module parameter management object will be downloaded to the PLC system to complete the parameter configuration of the system.
[0049] In addition, if Figure 5 As shown, another embodiment of the present invention further provides a PLC module configuration management system, preferably using the PLC module configuration management method as described above, including:
[0050] The device description file generation module is used to determine the UI elements and their positions and nesting relationships contained in the parameter configuration interface of each module according to the types of modules in the PLC and the functions of each module, and to generate an XML file describing each module by mapping UI elements and labels to each other, and to generate an XML file describing the module list at the same time;
[0051] The device description file parsing module is used to input the XML description file of each module and the XML description file of the module list into the PLC programming software for parsing, and generate the module list interface and the parameter configuration interface of each module respectively;
[0052] The configuration interface building module is used to select a module in the module list interface to build a configuration interface. When a module in the configuration interface is selected, the parameter configuration interface corresponding to the selected module is displayed.
[0053] It can be understood that the PLC module configuration management system of this embodiment starts from the UI design perspective of the parameter configuration interface, taking into account that although different PLC modules have different functions, the UI elements required for their parameter configuration interfaces are similar. Therefore, the xml description file of each module is generated by mapping UI elements and labels to each other, avoiding describing UI elements in the xml description file, which is time-saving, universal, and scalable. The PLC programming software then automatically parses and renders the parameter configuration interface corresponding to each module according to the mapping relationship between control elements and labels and the hierarchical structure of statements in the description file, thereby realizing the display of parameter configuration interfaces of different types of modules, and realizing complete decoupling between the PLC programming software and module functions, that is, the functions of the modules are different and the PLC programming software remains unchanged, which can meet the needs of flexible combination of modules with one development. When a new module is added or the module function is changed in the PLC system, there is no need to perform secondary development of the PLC programming software for functional changes. It is only necessary to increase the xml description file of the new module or make corresponding modifications in the xml description file of the module, which is simple to develop and easy to maintain.
[0054] In addition, the PLC module configuration management system also includes:
[0055] The module parameter configuration module is used to complete the parameter configuration of each module in the parameter configuration interface and send the parameter configuration information to the PLC system.
[0056] It can be understood that each module in the system embodiment corresponds to each step in the above method embodiment, so the working principle of each module will not be repeated here, and the corresponding reference is made to each step in the above method embodiment.
[0057] In addition, another embodiment of the present invention further provides an electronic device, including a processor and a memory, wherein the memory stores a computer program, and the processor executes the steps of the above method by calling the computer program stored in the memory.
[0058] In addition, another embodiment of the present invention further provides a computer-readable storage medium for storing a computer program for performing PLC module configuration management, wherein the computer program executes the steps of the method described above when running on a computer.
[0059] The general form of computer readable storage media includes: floppy disk, flexible disk, hard disk, magnetic tape, any other magnetic medium, CD-ROM, any other optical medium, punch cards, paper tape, any other physical medium with a pattern of holes, random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), flash erasable programmable read-only memory (FLASH-EPROM), any other memory chip or cartridge, or any other medium that can be read by a computer. The instructions can further be transmitted or received by a transmission medium. The term transmission medium can include any tangible or intangible medium that can be used to store, encode or carry instructions for execution by a machine, and includes digital or analog communication signals or other intangible media that facilitate the communication of the above instructions. Transmission media include coaxial cables, copper wires and optical fibers, which include the wires of a bus used to transmit a computer data signal.
[0060] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code. The scheme in the embodiments of the present application can be implemented in various computer languages, for example, object-oriented programming language Java and literal scripting language JavaScript, etc.
[0061] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0062] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0063] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0064] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0065] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
[0066] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A PLC module configuration management method, characterized in that: Includes the following: According to the types of modules in the PLC and the functions of each module, determine the UI elements and their positions and nesting relationships contained in the parameter configuration interface of each module, and generate the XML description file of each module by mapping the UI elements and labels, and generate the XML description file of the module list at the same time; Input the XML description file of each module and the XML description file of the module list into the PLC programming software for parsing, and generate the module list interface and the parameter configuration interface of each module respectively; Select a module in the module list interface to build the configuration interface. When a module in the configuration interface is selected, the parameter configuration interface corresponding to the selected module is displayed.
2. The PLC module configuration management method according to claim 1, characterized in that: The XML description file of each module includes module information nodes, configuration data nodes, input and output data nodes, control data nodes, value item nodes and text item nodes. Among them, the module information node is used to describe the basic information and functional characteristics of the module, the configuration data node is used to describe the information of the module configuration data, the input and output data node is used to describe the process data frame, the control data node includes configuration parameters and view information definition, the view information definition is used to define the interface control information and its association with the configuration parameters, the value item node is the option and help text of the drop-down box control in the configuration parameters, and a text ID and storage value are assigned to each option, and the text item node is used to describe the text item information of the module control.
3. The PLC module configuration management method according to claim 1, characterized in that: The module list XML description file includes the device information and view information of each module, and is used to generate the module list interface on the interface of the PLC programming software.
4. The PLC module configuration management method according to claim 2, characterized in that: The PLC programming software parses the XML description file of each module and generates the parameter configuration interface of each module. The process includes the following: First, deconstruct the information under each node in the XML description file into the corresponding data structure, and then obtain the control information through the interpreter according to the mapping relationship between UI elements and tags in the data structure and the content of the data structure. Then, load the controls layer by layer according to the nested relationship of the controls, and dynamically add the controls and text to the interface for display, thereby generating the parameter configuration interface for each module.
5. The PLC module configuration management method according to claim 4, characterized in that: The obtained module information node information is used to construct the module object. The entire module object consists of a module visualization object and a module parameter management object. The module visualization object is used to manage the generation and refresh of the configuration page, and the module parameter management object is used to manage the reading, writing and updating of configuration parameters. The obtained input and output data node information is used to construct the module's input and output variable object list. The obtained configuration data node information is used to construct the module configuration parameter object list. The obtained control data node information is used to construct the interface and interface dynamic effects. The obtained value item node information and text item node information are used for interface presentation.
6. The PLC module configuration management method according to claim 1, characterized in that: Also included are the following: Complete the parameter configuration of each module in the parameter configuration interface and send the parameter configuration information to the PLC system.
7. A PLC module configuration management system, characterized in that: include: The device description file generation module is used to determine the UI elements and their positions and nesting relationships contained in the parameter configuration interface of each module according to the types of modules in the PLC and the functions of each module, and to generate an XML file describing each module by mapping UI elements and labels to each other, and to generate an XML file describing the module list at the same time; The device description file parsing module is used to input the XML description file of each module and the XML description file of the module list into the PLC programming software for parsing, and generate the module list interface and the parameter configuration interface of each module respectively; The configuration interface building module is used to select a module in the module list interface to build a configuration interface. When a module in the configuration interface is selected, the parameter configuration interface corresponding to the selected module is displayed.
8. The PLC module configuration management system according to claim 7, characterized in that: Also includes: The module parameter configuration module is used to complete the parameter configuration of each module in the parameter configuration interface and send the parameter configuration information to the PLC system.
9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a computer program, and the processor executes the steps of the method according to any one of claims 1 to 6 by calling the computer program stored in the memory.
10. A computer-readable storage medium for storing a computer program for performing PLC module configuration management, characterized in that: When the computer program is run on a computer, the steps of the method according to any one of claims 1 to 6 are executed.
Citation Information
Patent Citations
PLC (programmable logic controller) patterned configuration designing system and method
CN104217068A
Cited By
System and method for graphically configuring and automatically generating BMS (Battery Management System) upgrading firmware
CN119806601A
Energy storage EMS system communication configuration method
CN120528945A