A new energy station EMS parameter batch configuration method and system

By constructing a parameter configuration interface and using the arithmetic sequence formula and Cartesian product calculation, the problem of multi-dimensional parameter coupling in the EMS configuration of new energy power stations was solved, realizing efficient and intelligent batch configuration and dynamic maintenance, and improving the accuracy of configuration and system consistency.

CN122633693APending Publication Date: 2026-08-25NARI TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610723955.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-05-25
Publication Date
2026-08-25

AI Technical Summary

Technical Problem

Existing EMS configuration tools for new energy power plants are inefficient and prone to errors when dealing with a large number of equipment nodes with similar structures but regular differences in parameters. They also lack support for multi-dimensional coupled logic, have weak dynamic maintenance capabilities, and insufficient configuration consistency verification, leading to potential system operation risks.

Method used

A parameter configuration interface is built, supporting device group configuration mode, batch increment mode by device name, copy and push mode by node, and quantity-linked deletion mode. It uses arithmetic sequence formula and Cartesian product to realize automated batch configuration and dynamic maintenance of parameters, including intelligent generation of device names and adaptive correction of indexes.

Benefits of technology

It improves the efficiency and accuracy of EMS configuration, eliminates zombie configurations, enhances system robustness and user experience, and ensures the consistency and reliability of configuration files.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122633693A_ABST
    Figure CN122633693A_ABST
Patent Text Reader

Abstract

The application discloses a new energy station EMS parameter batch configuration method and system, the method comprises the following steps: constructing a parameter configuration interface, the interface comprises a node number setting area, a tree node display area and a parameter table editing area; dynamically filtering configurable node types according to the station type; in response to double-clicking operation on a node in the tree node display area, the system reads the corresponding configuration section from the structured configuration file according to the complete path of the node, parses the key-value pair and loads it to the parameter table editing area; when modifying the parameter value in the parameter table editing area, the system provides device grouping configuration, batch increment according to device name, node copy pushing and quantity linkage deletion modes according to the operation type; in response to the user's save instruction, the system writes all modified parameter values back to the structured configuration file through the transaction mechanism. The application can solve the problems of low efficiency, easy error, single batch strategy and difficult dynamic maintenance of new energy station EMS parameter configuration.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of new energy power generation control and automation system technology, and in particular to a method and system for batch configuration of EMS parameters for new energy power plants. Background Technology

[0002] With the rapid development of new energy power generation technologies, the installed capacity of wind farms, photovoltaic power stations, energy storage power stations, and integrated wind-solar-storage multi-energy complementary energy systems continues to expand, significantly increasing the configuration complexity of their Energy Management Systems (EMS). In these sites, the EMS needs to perform refined management of a large number of structurally similar but parameter-differentiated equipment nodes, including active power control nodes, reactive power control nodes, telemetry / telecommunications measurement points, wind turbine modules, inverter modules, energy storage converter units, and SVG / SVC reactive power compensation devices. Each type of equipment typically includes dozens to hundreds of configuration parameters, such as telemetry start key values, telecommunications start key values, command issuance cycle, rated capacity, and communication address offset. Since the same type of equipment is often deployed in batches (such as a wind farm containing dozens to hundreds of wind turbines, and an energy storage power station may integrate hundreds of PCS units), if the traditional item-by-item manual configuration method is used, it will not only be extremely inefficient, but also very easy to cause configuration errors due to copy and paste errors, misaligned numbers, inconsistent formats or inconsistent quantities. In severe cases, it may even cause communication interruption, control failure or system alarm.

[0003] In practical engineering, many configuration requirements exhibit clear patterns. For example, telemetry / telecommunications keyword values ​​typically need to increment by a fixed step size to avoid address conflicts; device names or identifiers often require sequential generation with a fixed number of digits (e.g., "WTG_001", "INV_0205"); certain composite parameters (e.g., the starting address of the j-th device in a sub-region) are determined by two or more dimensions and need to cover all combinations. However, existing configuration tools generally only support simple linear increments or static value filling, lacking support for multi-dimensional coupled logic and failing to automatically handle details such as zero padding and string formatting, resulting in significant manual intervention by engineers. Furthermore, during the debugging phase, it is often necessary to quickly reuse the configuration of a verified device for other devices of the same type, but current methods lack a "template copying + intelligent field replacement" mechanism, making repetitive configuration work cumbersome and error-prone.

[0004] Furthermore, the dynamic maintenance capabilities of the configuration are weak. During project design changes, equipment expansion, or decommissioning, the number of devices is frequently adjusted. When reducing the number of devices, all related configuration entries must be manually located and deleted, a cumbersome and easily overlooked process that leaves behind "zombie configurations," wasting system resources and potentially interfering with normal data acquisition and control logic. Adding devices requires recalculating the address offsets and associated parameters of all subsequent devices, a massive workload that can easily introduce a chain of errors. Meanwhile, traditional configuration methods are mostly based on plain text editors or simple spreadsheet tools, failing to intuitively present the hierarchical relationships between devices (e.g., which collector line a wind turbine belongs to, or which battery compartment a certain energy storage unit is located in), making configuration understanding difficult and maintenance costs high. More importantly, existing solutions generally lack configuration consistency verification mechanisms, failing to automatically synchronize and update key metadata (such as "total number of wind turbines," "total number of remote signaling points," etc.) after saving the configuration, leading to logical contradictions within the configuration file and creating potential system operational vulnerabilities.

[0005] Although some manufacturers have launched dedicated EMS configuration assistance tools, their functions are mostly limited to a single scenario, their batch strategies are rigid, their interactive experience is poor, and they have not been systematically optimized for the core pain points unique to new energy power plants, such as multiple equipment types, multi-dimensional parameter coupling, and high consistency requirements. Summary of the Invention

[0006] Purpose of the invention: The purpose of this invention is to provide a method and system for batch configuration of EMS parameters for new energy power plants, which solves specific technical problems such as the hierarchical nesting structure of EMS configuration files for new energy power plants, strong index dependencies between nodes, and reference consistency when dynamically adjusting the number of nodes.

[0007] Technical solution: The method for batch configuration of EMS parameters for new energy power stations according to the present invention includes:

[0008] Construct a parameter configuration interface, which includes a node quantity setting area, a tree node display area, and a parameter table editing area;

[0009] Based on the site type selected by the user, the corresponding configurable node types and quantity input controls are dynamically displayed in the node quantity setting area. Different site types correspond to different sets of configurable node types. The system filters out invisible node types according to the pre-stored site-node type mapping table and initializes the node structure in the tree node display area.

[0010] In response to a double-click operation on a node in the tree node display area, the system reads the corresponding configuration segment from the structured configuration file based on the complete path of the node, parses the key-value pairs, and loads them into the parameter table editing area. When modifying parameter values ​​in the parameter table editing area, the following configuration modes are provided according to the operation type: device group configuration mode, batch increment mode by device name, copy and push mode by node, and quantity-linked deletion mode.

[0011] In response to the user's save command, the system writes all modified parameter values ​​back to the structured configuration file through a transaction mechanism; if the write operation is successful, the transaction is committed, the visual markers are cleared, and the timestamp of the configuration file is updated; if the write fails, the system rolls back to the state before saving and outputs an error log.

[0012] Furthermore, the device grouping configuration modes include:

[0013] In response to the group configuration command, the system displays a device group configuration dialog box; it receives the number of groups set by the user and the number of devices in each group, and also receives the parameter values ​​of the first two devices in each group; the system determines the parameter type: if it is numerical, it uses an arithmetic sequence formula to automatically calculate the parameter values ​​of the remaining devices in the group. The arithmetic sequence formula is as follows:

[0014]

[0015] In the formula, For the first in the group 1 record It is the first in the group The parameter values ​​of each record. It is the parameter value of the second record in the group. It is the parameter value of the first record in the group;

[0016] If the string contains numbers, the numeric part is extracted using regular expressions, the arithmetic operations described above are performed on the numeric part, and zeros are added to the original length before prefixing and suffixing are appended; if the string does not contain numbers, the value of the first device is copied directly.

[0017] Furthermore, the batch increment pattern by device name includes:

[0018] In response to the batch increment command, the system pops up a batch increment dialog box; it uses regular expressions to identify all consecutive number strings in the current text, and independently receives the step size and end value set by the user for each number string, generating corresponding numerical sequences according to the step size and end value respectively. Numbers without a set step size or end value retain their original values; it calculates the Cartesian product of all sequences, generates all possible number combinations, replaces them according to the original text format, and updates them in batches to the parameter table. If the number of combinations exceeds the remaining rows in the table, it only fills to the end and prompts a message.

[0019] Furthermore, the Cartesian product calculation for all sequences includes:

[0020] Suppose there are n consecutive digit strings, denoted as For each string of numbers According to the set step size and end value Generate a value sequence ={ , , ,…, ,};

[0021] in, The starting value, ,until , The sequence length is , For iteration variables, It is to satisfy If the largest integer is , then all combinations of numbers form a set:

[0022]

[0023] Indicates from the first The sequence of values ​​for each digit The specific value extracted from it.

[0024] Furthermore, the node-based replication and push mode includes:

[0025] In response to the copy push command, the system pops up a dialog box to select target nodes that are the same type as the source node. It recursively reads the complete configuration segment of the source node using a depth-first traversal algorithm, clears the original configuration of the target node, writes the configuration content of the source node, and uses regular expressions to match the fields in the key name, automatically replacing their values ​​with the index value of the target node. The same operation is recursively performed on the child nodes.

[0026] Furthermore, the quantity-linked deletion mode includes:

[0027] In response to a decrease in the number of nodes, the system obtains the new number and the original number. If the new number is less than the original number, then... Traverse the table, construct the complete path of the node to be deleted based on the preset configuration path template, delete all key values ​​and subgroups under the path, and check whether the index of the currently edited node falls within the deletion range. If so, clear the table display and reset the index.

[0028] Furthermore, in the device group configuration mode, if the calculated numerical part needs to be padded with zeros, it is padded with zeros according to the length of the original numerical string. If the length of the generated value exceeds the original length, the generated value is retained without truncation.

[0029] In the batch increment mode of device name, if the user does not set a step size or end value for a certain number, the number will remain unchanged; the system will deduplicate and sort the value sequence of each number before generating the Cartesian product; if the product of the lengths of the value sequences of different numbers is greater than the preset threshold, a warning will pop up and the system will wait for user confirmation before execution.

[0030] In the quantity-linked deletion mode, after deleting a node, the system not only deletes the configuration section, but also traverses all other node configuration sections in the configuration file, deletes any reference fields that point to the deleted node, and synchronously updates the corresponding total number of nodes field in the configuration file, and refreshes the tree node display area.

[0031] A new energy power station EMS parameter configuration system includes modules:

[0032] The interface display module is used to build and display the parameter configuration interface;

[0033] The node management module is used to dynamically display the node quantity setting control based on the user-selected site type and maintain the node tree;

[0034] The parameter read / write module is used to read node parameters from the configuration file and write the modified parameters, and supports transaction commit and rollback;

[0035] The device grouping configuration module provides a grouping configuration dialog box to automatically increment and fill in device parameters within a group;

[0036] The batch increment module provides a batch increment dialog box to enable batch text generation based on numeric digit step size and Cartesian product.

[0037] The node replication module provides node replication and push functionality, which copies the configuration of the source node to a target node of the same type.

[0038] The quantity-linked deletion module is used to automatically delete the node and its child node information of the corresponding index when the user reduces the number of nodes, and clean up the reference relationship.

[0039] Furthermore, the device grouping configuration module includes:

[0040] The group management unit is used to create groups and assign the number of devices to each group;

[0041] The type detection unit is used to distinguish between numeric parameters and string parameters containing numbers;

[0042] An arithmetic sequence calculation unit is used to calculate the parameter values ​​of subsequent devices based on the parameter differences between the first two devices.

[0043] The string processing unit is used to perform number extraction, zero padding, and concatenation operations;

[0044] The user interface unit is used to display the grouping tree and parameter table, and to receive user input.

[0045] Furthermore, the batch increment module includes:

[0046] A multi-digit parsing unit is used to identify all consecutive digit strings in a text, along with their position, length, and value, using regular expressions.

[0047] The step size setting unit is used to receive user input of the step size and end value for each digit.

[0048] The threshold detection unit is used to determine whether the number of Cartesian products generated exceeds a preset threshold.

[0049] The Cartesian product calculation unit is used to generate all possible combinations of numbers;

[0050] The text generation unit is used to generate new text based on the combination and update the table.

[0051] Beneficial effects: Compared with the prior art, the present invention has the following significant advantages: 1. It supports both "grouped arithmetic fill" and "multi-digit Cartesian product naming" in the EMS configuration field, solving the configuration problem of multi-dimensional parameter coupling and filling the technical gap that existing tools only support linear increment; 2. The quantity-linked deletion not only deletes the configuration segment, but also automatically cleans up residual references and updates metadata, completely eliminating "zombie configurations" and logical contradictions; 3. The save operation supports transaction rollback, and there is a threshold warning before batch generation, which improves the robustness of the system and the user experience. Attached Figure Description

[0052] Figure 1 This is the overall flowchart of the present invention;

[0053] Figure 2 This is the system interface of the present invention;

[0054] Figure 3 This is a flowchart of the node-based copy and push function of the present invention;

[0055] Figure 4 This is a flowchart of the quantity-linked deletion function of the present invention. Detailed Implementation

[0056] The technical solution of the present invention will be further described below with reference to the accompanying drawings.

[0057] See Figure 1The method for batch configuration of EMS parameters for new energy power stations according to the present invention includes:

[0058] (1) Construct a parameter configuration interface, which includes a node quantity setting area, a tree node display area, and a parameter table editing area.

[0059] (2) Based on the station type selected by the user through the station type selection control, the corresponding configurable node type and quantity input control are dynamically displayed in the node quantity setting area. Different station types correspond to different sets of configurable node types. The system queries the pre-stored "station-node type mapping table", dynamically enables or disables the corresponding node type quantity input control in the node quantity setting area, and initializes the node structure in the tree node display area.

[0060] (3) Determine the type of user operation:

[0061] (a) In response to a user's double-click operation on any specific node in the tree node display area, the system reads all key-value pairs of the configuration section where the node is located from the structured configuration file (an INI file with a hierarchical Section-Key-Value structure) of the preset path according to the complete path of the node (such as "Station / Topology / PPcc / PPcc0"). The system loads the parameter description items and corresponding parameter values ​​into the first and second columns of the parameter table editing area, respectively. The first column is read-only, the second column is editable, and the modified cells are highlighted with visual markers (red font).

[0062] When modifying parameter values ​​in the parameter table editing area, at least one of the following four batch configuration modes is provided, and each mode is based on atomic read and write operations on the structured configuration file and has an independent exception rollback mechanism:

[0063] (b) When a user right-clicks on a specific type of parameter row (such as "EMS - Total Number of Internal Fans") in the parameter table editing area and selects the "Group Configuration Data" command, a device group configuration dialog box pops up. In this dialog box, the user sets the number of groups and the number of devices in each group, and only needs to manually enter the parameter values ​​of the first two devices in a specific group. The system performs the following judgments and calculations for each parameter item:

[0064] If the parameter value is a pure numeric type (integer or floating-point number), then the arithmetic sequence formula is used:

[0065] ,

[0066] Automatically derive parameter values ​​for all other devices within this group ( From 3 to the total number of grouped devices); where, For the first in the group 1 record It is the first in the group The parameter values ​​of each record. It is the parameter value of the second record in the group. It is the parameter value of the first record in the group.

[0067] If the parameter value is a string containing numbers (such as "Device_001"), the system will use regular expressions. Extract the numerical part, perform arithmetic operations only on the numerical part, and pad with zeros according to the length of the original numerical string (if the length of the numerical string after the operation is less than the original length, pad with zeros; otherwise, keep it). Finally, concatenate the prefix and suffix.

[0068] If the parameter value is a pure string and does not contain numbers, the value of the first device is copied directly as the value of all devices in that group.

[0069] After configuration, the generated complete parameter sequence will be filled back into the corresponding position in the parameter table on the main interface. If an error occurs during the calculation process, such as division by zero or non-numeric characters, the system will display an error message and roll back to the initial state of the dialog box.

[0070] In the device group configuration mode, if the calculated number part needs to be padded with zeros, it is padded with zeros according to the length of the original number string. If the length of the generated value exceeds the original length, the generated value is retained without truncation.

[0071] (c) When a user right-clicks on a line of device names containing numbers in the parameter table editing area and selects the "Batch Increment by Device Name" command, a batch increment dialog box pops up. The system uses regular expressions. The system automatically parses all consecutive digit strings in the current text, recording the start position, length, and original value of each string. It provides input interfaces for the step size and end value for each digit. After the user sets the increment step size and end value for each digit, the system generates an independent incrementing sequence for each digit (starting from the original value, increasing the step size each time until it does not exceed the end value). If the user does not set a step size or end value for a digit, that digit retains its original value and does not participate in the Cartesian product generation (i.e., the value sequence only contains the original value).

[0072] The system calculates the Cartesian product of the sequence of digit values ​​to obtain all possible combinations. Before generating the Cartesian product, the system checks whether the total number of combinations exceeds a preset threshold (default is 1000). If it does, a warning box pops up asking the user for confirmation. Subsequently, the system replaces the combined numbers in the corresponding positions according to the original text format, generates a complete text list, and sequentially fills it into the parameter table starting from the current table row (if the number of generated combinations exceeds the remaining rows of the table, it only fills to the end and prompts the user to truncate).

[0073] Cartesian product calculation includes:

[0074] Suppose there are n consecutive digit strings, denoted as For each string of numbers According to the set step size and end value Generate a value sequence ={ , , ,…, ,};

[0075] in, The starting value, ,until The sequence length is , For iteration variables, It is to satisfy If the largest integer is , then all combinations of numbers form a set:

[0076]

[0077] Indicates from the first The sequence of values ​​for each digit The specific value extracted from it.

[0078] In the batch increment mode of device name, if the user does not set a step size or end value for a certain number, the number will remain unchanged; the system will deduplicate and sort the value sequence of each number before generating the Cartesian product; if the product of the lengths of the value sequences of different numbers is greater than the preset threshold, a warning will pop up and the system will wait for user confirmation before execution.

[0079] (d) When a user right-clicks on a child node in the tree node display area and selects the "Copy & Push" command, a target node selection dialog box pops up. This dialog box only displays other nodes of the same type as the source node (i.e., nodes with the same configuration segment prefix) as candidate targets, excluding the source node itself. After the user selects one or more target nodes, the system performs the following operations:

[0080] Recursive reading: The depth-first traversal algorithm is used to recursively read the complete configuration section of the source node in the configuration file, including all key-value pairs and their nested substructures.

[0081] Target cleanup: For each target node, clear its original configuration section (delete all key values ​​and subgroups under that section).

[0082] Write and Modify: Write the complete source configuration to the target node's configuration section, using regular expressions. Identify the fields representing node indices (such as "PPccIndex", "EmsIndex", "WpmIndex", etc.) and replace their values ​​with the actual index of the target node. If child nodes exist, recursively perform the same operation. It is used to match the configuration file with or Ending string

[0083] Compatibility handling: If the target node configuration section is missing some keys that the source node has, the key will be automatically created and a default value (empty string or 0) will be assigned; if the target node has keys that the source node does not have, their original values ​​will be retained.

[0084] Finally, the updated configuration is written to the configuration file. This process supports batch selection of multiple target nodes, and each target node is processed independently without affecting others.

[0085] (e) When a user reduces the number of a certain type of node in the node quantity setting area, i.e., the quantity is deleted in tandem (e.g., reducing the number of active nodes from 4 to 3), the system obtains the new quantity and the original quantity. If the new quantity is less than the original quantity, the following steps are executed:

[0086] Path construction: Traverse from index = new quantity to original quantity - 1, and construct the complete configuration segment path of the node to be deleted according to the preset configuration path template (such as "Station / Topology / {NodeType} / {NodeType}{i}").

[0087] Delete configuration section: Deletes all key-value pairs and subgroups under this path.

[0088] Reference cleanup: Traverse all other node configuration sections in the configuration file and delete any reference fields (such as "ParentNodeIndex" or "AssociatedNode") that point to the deleted node. Reference relationships are identified through a predefined reference map table.

[0089] Editing status reset: Check if the index of the currently edited node falls within the deletion range. If so, clear the table display and reset the current node index to -1.

[0090] Metadata update: Write the new total number of nodes to the global metadata field in the configuration file (such as "Station / Topology / General / PPccTotalNum") and refresh the tree node display area.

[0091] In the quantity-linked deletion mode, after deleting a node, the system not only deletes the configuration section, but also traverses all other node configuration sections in the configuration file, deletes any reference fields that point to the deleted node, and synchronously updates the corresponding total number of nodes field in the configuration file, and refreshes the tree node display area.

[0092] (4) In response to the user's save command, the system initiates a transaction: First, all parameter values ​​marked as modified in the parameter table editing area are temporarily stored in a memory copy, and then written back to the structured configuration file one by one. If all write operations are successful, the transaction is committed, the visual markers are cleared, and the timestamp of the configuration file is updated; if any write operation fails, such as when the disk is full or permissions are insufficient, the system rolls back to the state before saving, restores the original configuration file, and outputs an error log to the user interface.

[0093] Through the coordinated execution of steps (1) to (4), the visualization, intelligent, multi-dimensional batch configuration and dynamic maintenance of EMS parameters of new energy power stations can be realized. In particular, a tightly coupled technical system has been formed in terms of equipment grouping arithmetic filling, multi-digit Cartesian product naming, node configuration recursive copying and index adaptive correction, quantity linkage deletion and reference cleanup, which improves configuration efficiency, accuracy and system consistency.

[0094] This invention provides a new energy power station EMS parameter configuration system, comprising:

[0095] The interface display module is used to build and display the parameter configuration interface;

[0096] The node management module is used to dynamically display the node quantity setting control based on the user-selected site type and maintain the node tree;

[0097] The parameter read / write module is used to read node parameters from the configuration file and write the modified parameters, and supports transaction commit and rollback;

[0098] The device grouping configuration module provides a grouping configuration dialog box to automatically increment and fill in device parameters within a group;

[0099] The batch increment module provides a batch increment dialog box to enable batch text generation based on numeric digit step size and Cartesian product.

[0100] The node replication module provides node replication and push functionality, which copies the configuration of the source node to a target node of the same type.

[0101] The quantity-linked deletion module is used to automatically delete the node and its child node information of the corresponding index when the user reduces the number of nodes, and clean up the reference relationship.

[0102] The device group configuration module includes:

[0103] The group management unit is used to create groups and assign the number of devices to each group;

[0104] The type detection unit is used to distinguish between numeric parameters and string parameters containing numbers;

[0105] An arithmetic sequence calculation unit is used to calculate the parameter values ​​of subsequent devices based on the parameter differences between the first two devices.

[0106] The string processing unit is used to perform number extraction, zero padding, and concatenation operations;

[0107] The user interface unit is used to display the grouping tree and parameter table, and to receive user input.

[0108] The batch increment module includes:

[0109] A multi-digit parsing unit is used to identify all consecutive digit strings in a text, along with their position, length, and value, using regular expressions.

[0110] The step size setting unit is used to receive user input of the step size and end value for each digit.

[0111] The threshold detection unit is used to determine whether the number of Cartesian products generated exceeds a preset threshold.

[0112] The Cartesian product calculation unit is used to generate all possible combinations of numbers;

[0113] The text generation unit is used to generate new text based on the combination and update the table.

[0114] The EMS parameter configuration system for new energy power plants is developed using the Qt framework and can run on Windows or Linux platforms. See [link / reference]. Figure 2 The system's main interface features a dropdown menu at the top for selecting the site type, including wind farms, photovoltaic power stations, energy storage power stations, wind-storage power stations, photovoltaic-storage power stations, and wind-solar-storage power stations. Multiple numeric input boxes are arranged horizontally in the middle for setting the number of various nodes, specifically including active power nodes, reactive power nodes, measurement nodes, wind turbine templates, wind power curves, wind power EMS, photovoltaic templates, photovoltaic EMS, energy storage templates, energy storage EMS, reactive power templates, and reactive power EMS. The left side of the interface displays a tree view, showing all nodes in a tree structure. Nodes are grouped by type, such as active power nodes, reactive power nodes, measurement nodes, wind power, photovoltaic, energy storage, and reactive power equipment. Each root node expands with a corresponding number of child nodes. The right side of the interface displays a two-column table view for showing and editing the detailed parameters of the selected node. The first column of the table is a parameter description and is not editable, while the second column is the parameter value and is editable. A "Save" button is located at the bottom center of the interface, which is used to write the modified parameters to the INI configuration file.

[0115] Users first select the site type via a dropdown menu at the top. The system automatically enables or disables some node quantity input controls based on the selected type. For example, when "Wind Farm" is selected, only wind power-related controls are visible, while controls for other types are hidden or disabled. Users can then adjust the number of nodes for each type using the numeric input boxes. The tree view updates accordingly, displaying the corresponding number of child nodes, allowing users to intuitively understand the currently configured node scale. When a user double-clicks a child node in the tree view, the system reads all existing parameters for that node from the configuration file at a preset path and populates them into the table on the right. The first column of the table displays the parameter description, and the second column displays the parameter value. Double-clicking the second column enters edit mode; modified cells turn red, indicating that the parameter has been modified but not yet saved.

[0116] For certain types of nodes, such as wind power EMS, photovoltaic EMS, or energy storage EMS, the table will contain special parameter rows, such as "Total Number of Wind Turbines in EMS". When the user right-clicks the second column of this row, a shortcut menu will pop up, which includes the "Equipment Group Configuration" option. After the user selects this option, the system will display the Equipment Group Configuration dialog box. The top of the dialog box displays the total number of devices, which is the number entered by the user in this row, and provides a group number setting box. The user can set the number of groups, and the tree view on the left will then display the corresponding number of group nodes. The user can right-click on a group to set the number of devices in that group; the set value cannot exceed the remaining total number of devices. After double-clicking on a group, the table on the right will display the detailed parameter items of each device in that group, such as the device's English description name, telemetry start keyword value, tele-signaling start keyword value, logical node number, etc. The user only needs to edit the parameter values ​​of the first two partitions and then click the "OK" button; the system will automatically calculate the parameter values ​​of the remaining partitions in that group. The calculation rule is that for each parameter, if the difference between the second partition value and the first partition value is Δ, then the value of the kth partition is equal to the second partition value plus (k - 2) multiplied by Δ. If the parameter is a string containing numbers, only the numeric part participates in the above calculation, while the prefix and suffix remain unchanged. After all group configurations are completed, the user clicks the "Submit Device Group Configuration" button to return to the main window, and the data in the corresponding row of the table in the main window will be updated.

[0117] In the main window table, for certain text rows containing numbers, such as "Energy Storage Unit PCS Name," right-clicking the second column will bring up a shortcut menu, which includes the "Batch Increment by Device Name" option. After selecting this option, the system will display a batch increment dialog box. The top of the dialog box displays the text of the current cell and automatically parses out all consecutive number strings, listing the position and original value of each number. Users can set the increment step and end value for each number; for example, if the first number from left to right is 1, set the step to 1 and the end value to 5. After clicking "OK," the system generates all possible number combinations based on the step and end value of each number, a process achieved by calculating the Cartesian product. The system then replaces the numbers at the corresponding positions with the new values ​​according to the original text format, generating a new text list. Finally, starting from the current row, it fills in one of the generated new texts every ten rows until all combinations are filled or the end of the table is reached. For example, if the current text is "PCS001", and the user sets the step size for the last digit from left to right to 1 and the end value to 5, the system will generate texts such as "PCS001", "PCS002", "PCS003", "PCS004", and "PCS005" and update them in batches to the table. If the text contains multiple digits, such as "PCS01BMS02", the system will calculate all combinations after setting the step size for each digit, such as "PCS01BMS02", "PCS01BMS03", "PCS02BMS02", and "PCS02BMS03", thus enabling rapid configuration of devices with complex numbering. If the user does not set a step size or end value for a digit, the system defaults to keeping that digit's original value and does not participate in the Cartesian product generation, thus avoiding the expansion of invalid combinations. Furthermore, before generating the Cartesian product, the system removes duplicates and sorts the value sequence of each digit in ascending order to ensure predictable output order.

[0118] When a user right-clicks on a child node in the tree view, a shortcut menu with a "Copy & Push" option pops up. After the user selects this option, a target node selection dialog box appears, such as... Figure 3As shown, the dialog box only displays nodes of the same type as the source node, i.e., nodes with the same prefix, such as "Active Node 0" and "Active Node 1," excluding the source node itself. Users can select one or more target nodes. After clicking "OK," the system performs a copy and push operation. The system first reads all key-value pairs in the configuration segment of the source node. Then, for each target node, it clears its original configuration segment and writes each key-value pair from the source node into the target node's configuration segment. Simultaneously, it replaces the keys representing node indices, such as "PPccIndex," "EmsIndex," or "WpmIndex," with the target node's index. If the source node contains child nodes, such as the WPMInfo child node under an EMS node, the system recursively copies all child nodes, similarly correcting the index fields in the child nodes. Finally, the configuration file is saved, completing the copy operation. This function allows users to quickly copy configured node parameters to other nodes of the same type, greatly simplifying repetitive configuration work.

[0119] The system also has a quantity-linked deletion function, such as Figure 4 As shown, when a user reduces the number of a certain type of node in the node quantity setting area, for example, reducing the number of active nodes from 4 to 3, the system will actively refresh the tree node display area and automatically trigger the deletion operation. Taking active nodes as an example, the system obtains the current value of the numeric input box and compares it with the original quantity recorded in memory. If the new quantity is less than the original quantity, it loops from the new quantity to the original quantity minus one. For each index, it constructs the configuration segment path of the node to be deleted, such as "Station / Topology / PPcc / PPcci", and then deletes all key values ​​and subgroups under that path. If the currently edited node index is exactly equal to the deleted index, the system will clear the table display and reset the current node index to negative one. After the loop ends, the system updates the number of that type of node in memory to the new value and updates the corresponding total quantity field in the configuration file, such as "Station / Topology / General / PPccTotalNum", to ensure that the configuration file is consistent with the actual number of nodes. This function effectively avoids the problem of useless configuration information remaining due to the reduction of the number of nodes.

[0120] After the user completes all modifications and clicks the "Save" button, the system writes all modified parameters in the current table (marked in red) back to the INI configuration file and restores the font to black. For certain special fields, such as "Schedule AGC Mode," the system automatically converts the corresponding keyword values ​​based on predefined macros to adapt to the communication requirements of different platforms. After the save operation is complete, all modifications take effect, and the system interface returns to its initial state.

Claims

1. A method for batch configuration of EMS parameters for new energy power stations, characterized in that, include: Construct a parameter configuration interface, which includes a node quantity setting area, a tree node display area, and a parameter table editing area; Based on the site type selected by the user, the corresponding configurable node types and quantity input controls are dynamically displayed in the node quantity setting area. Different site types correspond to different sets of configurable node types. The system filters out invisible node types according to the pre-stored site-node type mapping table and initializes the node structure in the tree node display area. In response to a double-click operation on a node in the tree node display area, the system reads the corresponding configuration segment from the structured configuration file based on the complete path of the node, parses the key-value pairs, and loads them into the parameter table editing area. When modifying parameter values ​​in the parameter table editing area, the following configuration modes are provided according to the operation type: device group configuration mode, batch increment mode by device name, copy and push mode by node, and quantity-linked deletion mode. In response to the user's save command, the system writes all modified parameter values ​​back to the structured configuration file through a transaction mechanism; The write operation is successful. The transaction is committed, the visual markers are cleared, and the timestamp in the configuration file is updated. If the write operation fails, the system will roll back to the state before the save and output an error log.

2. The method for batch configuration of EMS parameters for new energy power stations according to claim 1, characterized in that, Device group configuration modes include: In response to the group configuration command, the system displays a device group configuration dialog box; it receives the number of groups set by the user and the number of devices in each group, and also receives the parameter values ​​of the first two devices in each group; the system determines the parameter type: if it is numerical, it uses an arithmetic sequence formula to automatically calculate the parameter values ​​of the remaining devices in the group. The arithmetic sequence formula is as follows: In the formula, For the first in the group 1 record It is the first in the group The parameter values ​​of each record. It is the parameter value of the second record in the group. It is the parameter value of the first record in the group; If the string contains numbers, the numeric part is extracted using regular expressions, the arithmetic operations described above are performed on the numeric part, and zeros are added to the original length before prefixing and suffixing are appended; if the string does not contain numbers, the value of the first device is copied directly.

3. The method for batch configuration of EMS parameters for new energy power stations according to claim 1, characterized in that, The batch incremental mode by device name includes: In response to the batch increment command, the system pops up a batch increment dialog box; it uses regular expressions to identify all consecutive number strings in the current text, and independently receives the step size and end value set by the user for each number string, generating corresponding numerical sequences according to the step size and end value respectively. Numbers without a set step size or end value retain their original values; it calculates the Cartesian product of all sequences, generates all possible number combinations, replaces them according to the original text format, and updates them in batches to the parameter table. If the number of combinations exceeds the remaining rows in the table, it only fills to the end and prompts a message.

4. The method for batch configuration of EMS parameters for new energy power stations according to claim 1, characterized in that, The Cartesian product calculation for all sequences includes: Suppose there are n consecutive digit strings, denoted as For each string of numbers According to the set step size and end value Generate a value sequence ={ , , ,…, ,}; in, The starting value, ,until , The sequence length is , For iteration variables, It is to satisfy If the largest integer is , then all combinations of numbers form a set: Indicates from the first The sequence of values ​​for each digit The specific value extracted from it.

5. The method for batch configuration of EMS parameters for new energy power stations according to claim 1, characterized in that, The node-based replication and push mode includes: In response to the copy push command, the system pops up a dialog box to select target nodes that are the same type as the source node. It recursively reads the complete configuration segment of the source node using a depth-first traversal algorithm, clears the original configuration of the target node, writes the configuration content of the source node, and uses regular expressions to match the fields in the key name, automatically replacing their values ​​with the index value of the target node. The same operation is recursively performed on the child nodes.

6. The method for batch configuration of EMS parameters for new energy power stations according to claim 1, characterized in that, Quantity-linked deletion modes include: In response to a decrease in the number of nodes, the system obtains the new number and the original number. If the new number is less than the original number, then... Traverse the table, construct the complete path of the node to be deleted based on the preset configuration path template, delete all key values ​​and subgroups under the path, and check whether the index of the currently edited node falls within the deletion range. If so, clear the table display and reset the index.

7. The method for batch configuration of EMS parameters for new energy power stations according to claim 1, characterized in that, In the device group configuration mode, if the calculated number part needs to be padded with zeros, it is padded with zeros according to the length of the original number string. If the length of the generated value exceeds the original length, the generated value is retained without truncation. In the batch increment mode of device name, if the user does not set a step size or end value for a certain number, the number will remain unchanged; the system will deduplicate and sort the value sequence of each number before generating the Cartesian product; if the product of the lengths of the value sequences of different numbers is greater than the preset threshold, a warning will pop up and the system will wait for user confirmation before execution. In the quantity-linked deletion mode, after deleting a node, the system not only deletes the configuration section, but also traverses all other node configuration sections in the configuration file, deletes any reference fields that point to the deleted node, and synchronously updates the corresponding total number of nodes field in the configuration file, and refreshes the tree node display area.

8. A parameter configuration system for a new energy power station EMS, characterized in that, Includes modules: The interface display module is used to build and display the parameter configuration interface; The node management module is used to dynamically display the node quantity setting control based on the user-selected site type and maintain the node tree; The parameter read / write module is used to read node parameters from the configuration file and write the modified parameters, and supports transaction commit and rollback; The device grouping configuration module provides a grouping configuration dialog box to automatically increment and fill in device parameters within a group; The batch increment module provides a batch increment dialog box to enable batch text generation based on numeric digit step size and Cartesian product. The node replication module provides node replication and push functionality, which copies the configuration of the source node to a target node of the same type. The quantity-linked deletion module is used to automatically delete the node and its child node information of the corresponding index when the user reduces the number of nodes, and clean up the reference relationship.

9. The new energy power station EMS parameter configuration system according to claim 7, characterized in that, The device grouping configuration module includes: The group management unit is used to create groups and assign the number of devices to each group; The type detection unit is used to distinguish between numeric parameters and string parameters containing numbers; An arithmetic sequence calculation unit is used to calculate the parameter values ​​of subsequent devices based on the parameter differences between the first two devices. The string processing unit is used to perform number extraction, zero padding, and concatenation operations; The user interface unit is used to display the grouping tree and parameter table, and to receive user input.

10. The new energy power station EMS parameter configuration system according to claim 7, characterized in that, The batch increment module includes: A multi-digit parsing unit is used to identify all consecutive digit strings in a text, along with their position, length, and value, using regular expressions. The step size setting unit is used to receive user input of the step size and end value for each digit. The threshold detection unit is used to determine whether the number of Cartesian products generated exceeds a preset threshold. The Cartesian product calculation unit is used to generate all possible combinations of numbers; The text generation unit is used to generate new text based on the combination and update the table.