PLC configuration data automatic generation method
By defining configuration tag sets in the PLC programming software and synchronizing them to the configuration data file in real time, configuration screens are automatically generated, solving the problems of repetitive configuration and inconsistency in traditional PLC development, and improving development efficiency and consistency.
Patent Information
- Application Number
- CN202511036223.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-26
- Publication Date
- 2025-11-07
AI Technical Summary
In the traditional PLC development process, engineers need to repeatedly configure the PLC programming environment and configuration software, which leads to tedious work, increased labor intensity, and the risk of inconsistency between PLC program variables and configuration elements, thus reducing development efficiency.
By defining a configuration label set in the PLC programming software, including graphical icon-associated labels, text content labels, and operation permission labels, and synchronizing it to the configuration data file in real time, the configuration screen is automatically generated in combination with the icon binding engine and permission executor.
It enables the automated generation of PLC configuration data, reduces repetitive configuration work, improves development efficiency, and ensures the consistency between PLC program variables and configuration elements.
Smart Images

Figure CN120909208A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the technical field of industrial automation control, and particularly relates to a PLC configuration data automatic generation technology. BACKGROUND
[0002] In the traditional development process, engineers need to perform repeated configuration in the PLC programming environment (such as STEP7) and configuration software (such as WinCC) respectively, which is tedious and increases labor intensity, and there is consistency risk: manual operation is easy to cause the mismatch between the PLC program variables and the configuration elements, the configuration configuration consumes more than 30% of the total project time, and reduces the development efficiency of the PLC. SUMMARY
[0003] A PLC configuration data automatic generation method, comprising:
[0004] (a) defining a configuration tag set for each programming object in the attribute configuration interface of the PLC programming software, the tag set at least containing a graphical icon associated tag;
[0005] (b) in response to the modification of the graphical icon associated tag, writing the changed content into an independent configuration data file in real time;
[0006] (c) when the PLC program is compiled, parsing the configuration data file to generate a configuration picture description file.
[0007] The configuration tag set further contains a text content tag for defining object description text; the modification of the text content tag is synchronized to the configuration data file in real time.
[0008] The configuration tag set further contains an operation permission tag for configuring visibility and operation rules; the modification of the operation permission tag is synchronized to the configuration data file in real time.
[0009] Icon binding engine: persistently storing the graphical icon associated tag to the object attribute data structure; permission executor: when there is an operation permission tag, dynamically controlling the operation permission of the configuration picture. BRIEF DESCRIPTION OF DRAWINGS
[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can also be obtained by those skilled in the art according to these drawings.
[0011] Figure 1 is a method flowchart of the present application;
[0012] Figure 2is a label set configuration interface prototype provided by the embodiment one of the present application and described above;
[0013] Figure 3 is a system data flow diagram provided by the embodiment two of the present application and described above;
[0014] Figure 4 is a generated water pump configuration picture example provided by the embodiment one of the present application and described above. DETAILED DESCRIPTION
[0015] In order to make the purpose, technical solutions and advantages of the present application more clear, the present application is further described in detail below in combination with the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and do not limit the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.
[0016] Embodiment 1
[0017] Open the water pump object Y0 in the PLC programming software, enter the configuration label set configuration interface, and configure the graphical icon associated label: select the "water pump" icon from the standard icon library, and upload the custom icon file "emergency water pump.png", and the content description is "water pump"; perform the same operation on the valve object Y1, bind the standard "valve" icon, save the modification, and the system automatically generates the "water system.scada" configuration data file; when the PLC program compilation is completed, the system parses the file and automatically generates the configuration picture: the water pump position displays the blue water pump icon, and the valve position displays the standard valve icon.
[0018] Embodiment 2
[0019] First, configure the motor object M1: select the "three-phase motor" standard icon, and edit the text content label: display name: "main drive motor", and note: "drive packaging line conveyor belt"; configure the sensor X0: select the "photoelectric sensor" icon, and input the text content: "packaging in-place detection". All modifications are synchronized to the "packline.scada" file in real time, and the generated configuration picture after compilation: the "main drive motor" text description is displayed below the motor icon, and the sensor position displays the corresponding icon and text.
[0020] Embodiment 3
[0021] The icon and permission label definition are configured in the valve object attribute interface, the graphical icon associated label, the normal state "green valve icon", the alarm state "red flashing valve icon", and the content description is "valve".
[0022] The authority performs verification, the engineer logs in the configuration picture, and can click the valve icon to operate; the operator logs in, only shows the gray icon, the chlorine concentration exceeds the standard, all roles are locked, and the icon flashes red.
[0023] The storage medium described in the embodiments of the present application is intended to include, but not limited to, these and any other suitable types of memories.
[0024] Those skilled in the art should be aware that functions described in the above one or more examples can be realized by a combination of hardware and software. When the software is applied, the corresponding functions can be stored in a computer readable medium or transmitted as one or more instructions or codes on the computer readable medium. The computer readable medium includes a computer storage medium and a communication medium, wherein the communication medium includes any medium facilitating the transmission of computer programs from one place to another. The storage medium can be any available medium accessible by a general or special purpose computer.
[0025] The above detailed description of the specific implementation of the present application further explains the purpose, technical solutions and beneficial effects of the present application. It should be understood that the above description is only a specific implementation of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made on the basis of the technical solutions of the present application should be included in the protection scope of the present application.
Claims
1. A method for automatically generating PLC configuration data, characterized by, Comprising: (a) defining a set of configuration tags for each programming object in the property configuration interface of the PLC programming software, the set of tags including at least graphical icon association tags; (b) writing changes in real time to a separate configuration data file in response to modifications to the graphical icon association tags; (c) generating a configuration screen description file by parsing the configuration data file when the PLC program is compiled.
2. The method for automatically generating PLC configuration data according to claim 1, wherein: The set of configuration tags further includes text content tags for defining object description text; modifications to the text content tags are synchronized in real time to the configuration data file.
3. The method for automatically generating PLC configuration data as described in claim 1, characterized in that: The set of configuration tags further includes operation permission tags for configuring visibility and operation rules; modifications to the operation permission tags are synchronized in real time to the configuration data file.
4. The method of claim 1-3, wherein Comprising: Icon binding engine: persistently storing graphical icon association tags to object property data structures; Permission executor: dynamically controlling configuration screen operation permissions when operation permission tags exist.