Power station system topology drawing method, electronic device and storage medium

By intelligently generating instructions and calculating global layout, the hierarchical relationship of power plant system elements is automatically identified, solving the problems of low efficiency and poor logical consistency in drawing power plant system topology diagrams, and realizing efficient and accurate automatic generation of topology diagrams and multi-resolution adaptation.

CN122241930APending Publication Date: 2026-06-19SUNGROW POWER SUPPLY CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SUNGROW POWER SUPPLY CO LTD
Filing Date
2026-01-29
Publication Date
2026-06-19

AI Technical Summary

Technical Problem

The existing power plant system topology diagram drawing relies on manual configuration, which has problems such as low configuration efficiency, poor logical consistency, insufficient readability and display adaptability, low level of intelligence and cumbersome interactive experience.

Method used

By responding to user operations and combining topology templates, layout constraint rules, and resolution parameters, the system uses intelligent generation instructions to perform global layout calculations, automatically identify element hierarchy relationships, and automatically generate a power plant system topology diagram.

Benefits of technology

It enables efficient and automated drawing of power plant system topology diagrams, ensuring topological logic consistency and accuracy, and maintaining a clear and standardized visual presentation on devices with different resolutions, thereby reducing the operational burden on maintenance personnel.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122241930A_ABST
    Figure CN122241930A_ABST
Patent Text Reader

Abstract

This application discloses a method, electronic device, and storage medium for drawing a power plant system topology diagram, relating to the field of electrical engineering technology. The method includes: responding to a user's operation of dragging graphic elements from the graphic element management area in the drawing interface to the canvas area; determining the topology information of the graphic elements based on the hierarchical topology relationship corresponding to the currently selected topology template; responding to a user-triggered intelligent generation command; performing a global layout calculation based on the topology information of all graphic elements in the canvas area, as well as the currently set layout constraint rules and resolution parameters; determining the coordinate positions of each graphic element in the canvas area based on the global layout calculation results, and drawing connecting lines to obtain the power plant system topology diagram. This method, through intelligent generation of the power plant system topology diagram, can improve the drawing efficiency and accuracy of the power plant system topology diagram, and can automatically adapt to different display resolutions, improving user experience and operation and maintenance efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electrical engineering technology, and in particular to a method for drawing a power plant system topology diagram, an electronic device, and a storage medium. Background Technology

[0002] Currently, power plant systems generally rely on manual configuration: maintenance or design personnel must manually import electrical elements, including buses, PCS (Power Conversion System), RACKs (battery clusters), PACKs (battery packs), and CELLs (battery cells), and construct the topology one by one through drag-and-drop and wiring. However, this method has the following problems: 1) The configuration efficiency is low, especially when dealing with a large number of devices and a complex topology, where manual alignment of elements and connection of lines takes a lot of time. 2) Logical consistency is difficult to guarantee. Due to differences in layout habits and understanding among different operators, the layout and connection relationships of elements are often inconsistent, which can easily introduce topological errors. 3) Insufficient readability and display adaptability. When viewed on display devices with different resolutions or sizes, problems such as unbalanced screen proportions, misaligned graphics, and labels overlapping each other often occur. 4) Limited intelligence: This method relies on fixed templates or static layouts and lacks the ability to dynamically adapt the layout based on the actual device scale and screen size. 5) The interactive experience is rather cumbersome. Users need to frequently perform manual operations such as dragging, aligning, adjusting spacing and connecting lines, which is a heavy interactive burden and affects the overall configuration efficiency. Summary of the Invention

[0003] The purpose of this application is to propose a method, electronic device and storage medium for drawing power plant system topology diagrams, so as to improve the drawing efficiency and accuracy of power plant system topology diagrams, and automatically adapt to different display resolutions, thereby improving user experience and operation and maintenance efficiency.

[0004] In a first aspect, embodiments of this application propose a method for drawing a power plant system topology diagram, comprising the following steps: responding to a user's operation of dragging graphic elements from the graphic element management area in the drawing interface to the canvas area, determining the topology information of the graphic elements according to the hierarchical topology relationship corresponding to the currently selected topology template; responding to a user-triggered intelligent generation command, performing a global layout calculation based on the topology information of all graphic elements in the canvas area, as well as the currently set layout constraint rules and resolution parameters; determining the coordinate positions of each graphic element in the canvas area according to the global layout calculation results, and drawing connecting lines to obtain the power plant system topology diagram.

[0005] In some embodiments, the canvas area is divided into multiple layout sub-regions corresponding to different logical levels; before performing global layout calculation, the method further includes: determining the target layout sub-region corresponding to the graphic element based on the topology information of the graphic element, and moving the graphic element to the target layout sub-region.

[0006] In some embodiments, while obtaining the power plant system topology diagram based on the global layout calculation results, the method further includes: displaying a step backtracking control at a preset position in the canvas area; responding to the user's operation of selecting a target backtracking step through the step backtracking control, displaying a parameter configuration area corresponding to the target backtracking step in the drawing interface; and responding to the configuration parameters selected by the user in the parameter configuration area, updating the power plant system topology diagram based on the configuration parameters.

[0007] In some embodiments, the target backtracking step is a step of setting layout constraint rules; the step of updating the power plant system topology based on the configuration parameters includes: re-executing the global layout calculation triggered by the intelligent generation instruction based on the updated layout constraint rules input by the user in the parameter configuration area, and updating the element coordinates and connecting lines in the power plant system topology based on the new global layout calculation results.

[0008] In some embodiments, the target backtracking step is a step of setting resolution parameters; updating the power plant system topology map based on the configuration parameters includes: recalculating and adjusting the element size, text style and overall layout ratio in the power plant system topology map based on the updated resolution parameters input by the user in the parameter configuration area.

[0009] In some embodiments, the target backtracking step is the step of selecting a topology template; the step of updating the power plant system topology diagram based on the configuration parameters includes: updating the hierarchical topology relationship based on the topology template reselected by the user in the parameter configuration area; re-identifying the topology information of the placed elements according to the updated hierarchical topology relationship, and re-executing the global layout calculation and connection line drawing triggered by the intelligent generation instruction.

[0010] In some embodiments, the target backtracking step is a step of placing and managing graphic elements; the step of updating the power plant system topology diagram based on the configuration parameters includes: providing graphic element management functions in the parameter configuration area, responding to user operations on adding, deleting, replacing or modifying attributes of graphic elements in the canvas area, updating the topology information of the graphic elements, and re-executing the global layout calculation and connection line drawing triggered by the intelligent generation instruction.

[0011] In some embodiments, the target backtracking step is a wiring generation step; updating the power plant system topology diagram based on the configuration parameters includes: providing a connection line editing function in the parameter configuration area to respond to user modifications to connection line styles, connection logic, or path points; and recalculating and redrawing the connection lines in the power plant system topology diagram based on the modified connection line parameters.

[0012] Secondly, embodiments of this application propose an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the method for drawing a power plant system topology diagram as described in the first aspect embodiment.

[0013] Thirdly, embodiments of this application propose a computer-readable storage medium storing a computer program thereon, wherein when the computer program is executed by a processor, it implements the method for drawing a power plant system topology diagram as described in the first aspect embodiment.

[0014] The power plant system topology drawing method, electronic device, and storage medium of this application embodiment achieve highly efficient and automated drawing of power plant system topology diagrams by integrating user interaction and intelligent algorithms. Specifically, it first automatically identifies the hierarchical relationship of graphic elements based on the topology template selected by the user, then performs global intelligent layout calculation based on configurable layout constraint rules and resolution parameters, and finally automatically generates a power plant system topology diagram with accurate coordinates and correct connections. This changes the traditional configuration mode that relies on manual drag-and-drop connections, improving drawing efficiency several times over while ensuring the consistency and accuracy of topology logic. Furthermore, the adaptive display function ensures that a clear and standardized topology diagram can be presented on devices with different resolutions, reducing the operational burden and technical threshold for maintenance personnel. This technical solution provides a standardized and intelligent practical tool for the rapid construction of monitoring interfaces for electrical engineering projects such as energy storage power plants and substation systems.

[0015] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description

[0016] Figure 1 This is a flowchart of a method for drawing a power plant system topology diagram according to an embodiment of this application; Figure 2 This is a schematic diagram of the drawing interface of the first example in this application; Figure 3 This is a schematic diagram of the drawing interface of the second example of this application; Figure 4 This is a schematic diagram of the drawing interface of the third example in this application; Figure 5 This is a schematic diagram of the drawing interface of the fourth example in this application; Figure 6 This is a schematic diagram of the drawing interface of the fifth example in this application; Figure 7 This is a schematic diagram of the drawing interface of the sixth example of this application; Figure 8 This is a schematic diagram of the drawing interface of the seventh example of this application; Figure 9 This is a schematic diagram of the drawing interface of the eighth example of this application; Figure 10 This is a schematic diagram of the drawing interface of the ninth example of this application; Figure 11 This is a schematic diagram of the drawing interface of the tenth example of this application; Figure 12 This is a structural block diagram of an electronic device according to an embodiment of this application. Detailed Implementation

[0017] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.

[0018] Currently, power plant systems, such as Insight (a battery energy storage monitoring platform) and EMS (Energy Management System), generally adopt manual configuration. Maintenance or design personnel need to manually import electrical elements and then create the topology structure through mouse drag-and-drop and line drawing. This method suffers from problems such as low configuration efficiency, poor logical consistency, poor readability and display adaptability, low level of intelligence, and outdated interactive experience.

[0019] Although some SCADA (Supervisory Control and Data Acquisition) or web-based configuration systems support element drag-and-drop and template reuse, the following issues still exist: 1) Positions can only be adjusted manually; "automatic arrangement" is not possible. 2) Wiring relationships rely on manual judgment and lack intelligent generation logic; 3) The layout needs to be rearranged after screen scaling or switching; 4) User interaction behavior is disconnected from the system's intelligent generation mechanism, making it impossible to form a closed loop.

[0020] To this end, this application proposes a method, electronic device, and storage medium for drawing a power plant system topology diagram. By integrating user interaction and intelligent algorithms, it achieves efficient and automated drawing of the power plant system topology diagram and can automatically adapt to different display resolutions.

[0021] The following description, with reference to the accompanying drawings, describes a method for drawing a power plant system topology diagram, an electronic device, and a storage medium according to embodiments of this application.

[0022] Figure 1 This is a flowchart of a method for drawing a power plant system topology diagram according to an embodiment of this application.

[0023] like Figure 1 As shown, the method for drawing a power plant system topology diagram includes the following steps: S11, responding to the user's operation of dragging graphic elements from the graphic element management area in the drawing interface to the canvas area, determines the topology information of the graphic elements according to the hierarchical topology relationship corresponding to the currently selected topology template.

[0024] Among them, topology templates refer to predefined logical frameworks that reflect the typical wiring structure of a specific power station system, and multiple templates can be preset for selection. For example, the "single busbar-4PCS-16RACK" topology template (representing a topology where "one busbar" connects to "4 PCS", and each "PCS" is connected to "4 RACKs") and the "double busbar-8PCS-32RACK" topology template.

[0025] Hierarchical topology is a core component of topology templates. It defines the rules governing the hierarchy and connections between different types of devices, forming a tree-like or chain-like logical structure. For example, in "Single Busbar-4PCS-16RACK", "Busbar" is the first level, "PCS" is the second level belonging to the busbar, and "RACK" is the third level belonging to the PCS, etc. This relationship ensures the logical correctness and consistency of the system topology.

[0026] Topology information for a graphic element refers to structured data used to describe the logical location and connection relationships of the graphic element within the overall topology. This may include: the logical level of the graphic element (e.g., "second level"), the expected type of the parent device (e.g., "bus") and the allowed type of the child device (e.g., "RACK") inferred from the template, as well as the unique identifier assigned to the graphic element and its initial logical connection relationships.

[0027] The method described in this application can be implemented using a drawing tool installed on an electronic device (such as...). Figure 2 The "Intelligent Configuration Tool" shown is used to implement this, and the electronic device has a display screen. After the drawing tool is started and initialized, the element management area of ​​the drawing interface (such as...) Figure 2 In the lower left corner (as shown), according to the preset categories (such as...) Figure 2The basic elements, power grid elements, and equipment elements shown in the diagram represent a series of standardized, draggable elements. Each element has a clear equipment type label (such as "35kV busbar", "2MW PCS", "Battery Cluster RACK-01", etc.). These elements have pre-set metadata within the drawing tool, including equipment type (i.e., the equipment classification identifier represented by the element, such as PCS, busbar), hierarchy (i.e., the logical hierarchy in the topology, used to determine the arrangement order), attributes (including configurable parameters of the equipment instance, such as rated power and number), and anchor point information (such as the preset connection point location and type on the element).

[0028] When a user drags a graphic element from the graphic element management area (text) to the canvas area on the right using a mouse or touch screen (e.g., ...), ... Figure 2 When a dot is placed within the grid area shown and released (becomes a primitive), the operation is captured by a front-end interaction framework (such as listening for the drop event). The following processing logic can then be executed: 1) Primitive type parsing: Read the device type code (e.g., DEVICE_PCS) of the placed primitive.

[0029] 2) Template Relationship Mapping: Based on the topology template currently selected by the user through the interface drop-down menu (such as "Typical Single-Line Diagram Template for Energy Storage Power Station"), the corresponding hierarchical relationship configuration file is called. This configuration file defines the logical subordinate and connection relationships between various devices in the template in a structured manner (for example, the hierarchical chain of bus → PCS → RACK → PACK → CELL).

[0030] 3) Topology Information Generation: Match the primitive type with the hierarchical relationship in the template to determine the primitive's logical hierarchical position in the overall topology (e.g., "second level"), its default parent device type (e.g., "bus"), and its child device type (e.g., "RACK"). Simultaneously, assign a unique ID to the primitive instance and record its initial placement coordinates on the canvas (which can be determined based on the release position or the mesh it has snapped to).

[0031] 4) Data Structure Update: The generated topology information (including device type, logical hierarchy, relationships, instance ID, coordinates, etc.) is encapsulated into a topology node object and added to the canvas node list. This list reflects the logical set of all devices in the current canvas area in real time, providing complete input data for subsequent intelligent layout calculations.

[0032] Step S11 above enables accurate conversion from intuitive drag-and-drop operations and drop-down selection operations to structured topology information, laying the foundation for subsequent automatic layout and connection.

[0033] For example, when a user drags a graphic element to the canvas area and obtains its topology information, the initial topology connection corresponding to that graphic element can be established based on the graphic element's topology information (including its hierarchy and parent / child nodes). Figure 3 As shown in the figure, this ensures the consistency of the topological logic.

[0034] If the power plant system topology diagram to be drawn includes multiple identical topologies (e.g., multiple parallel energy storage units), batch editing and template reuse functions can be used. For example... Figure 4 As shown, users can select multiple groups of elements with the same structure at once through the operation interface, and use tools such as "copy structure", "batch replace elements" or "uniformly modify attributes" to synchronously configure and adjust the layout of the selected parts, thereby quickly generating repetitive topological units, greatly reducing repetitive manual operations and improving drawing efficiency.

[0035] S12 responds to the user-triggered intelligent generation command and performs global layout calculations based on the topological information of all primitives in the canvas area, as well as the currently set layout constraint rules and resolution parameters.

[0036] Among them, layout constraint rules refer to a set of graphical layout criteria and parameters used to guide the arrangement of elements and the generation of connection lines. These rules transform the engineering specifications and aesthetic requirements of the power plant system into mathematical constraints or optimization objectives that can be processed by the algorithm, such as: "aligning horizontally according to the busbar", "arranging equipment at equal intervals on the same layer", "vertically associating parent and child equipment", and "using orthogonal broken lines for connection lines and minimizing intersections", etc.

[0037] The resolution parameter refers to the pixel size specification of the target display device or output screen (e.g., 1920×1080). This parameter determines the effective layout area size of the canvas and serves as a benchmark for calculating the physical display size of visual elements such as graphics, text, and spacing. Display adaptation based on this parameter ensures that the generated wiring diagram maintains a clear, complete visual presentation and consistent topological logic on screens with different resolutions.

[0038] Global layout calculation refers to a process of one-time, holistic spatial planning and coordinate solving, which takes the topological information of all primitives in the canvas area as input and is subject to both layout constraints and resolution parameters, and is performed using specific layout algorithms (such as constraint solving, force-directed layout, or hierarchical layout algorithms).

[0039] In practice, when the user clicks "Smart Generation" on the interface (e.g., ...), Figure 3 , Figure 4 When a function button (as shown in the upper right corner) or similar is pressed, a smart generation instruction is triggered. This then starts a layout engine (such as...). Figure 5 As shown), execute the following process: 1) Data Aggregation and Preprocessing: The layout engine first obtains the full topology information of the current canvas area from the canvas node list, and at the same time reads the layout constraint rules configured by the user through the layout settings panel. In addition, the engine obtains the resolution parameters set by the user or the system default (such as 1920×1080), which will be used to determine the effective layout area and the physical size reference of visual elements in the canvas area.

[0040] 2) Layout problem modeling: The engine transforms the above input into a computable layout optimization problem.

[0041] Specifically, each primitive is modeled as a rectangular object with width and height. Hierarchical relationships between primitives are translated into absolute or relative positioning constraints (e.g., child primitives must be located within a specific area below their parent primitive). Layout constraints are encoded as a series of mathematical constraints or optimization objectives (e.g., "equal spacing between devices on the same layer" is expressed as a constraint that makes their Y-coordinates equal and the distance between any two adjacent devices a preset distance; "minimize connector intersections" is set as an objective function that needs to be minimized). Resolution parameters are used to calculate the absolute boundaries of the canvas and may affect the scaling factor of the primitive's base rendering size and spacing.

[0042] 3) Constraint Solving and Coordinate Calculation: The layout engine employs constraint solving algorithms (such as solvers based on linear constraints) or heuristic layout algorithms (such as improved force-directed algorithms and hierarchical layout algorithms) to solve the aforementioned modeling problem. This process iteratively calculates and finds a final coordinate for each primitive that satisfies all hierarchical and constraint rules. During this process, the algorithm comprehensively considers the canvas area, avoids overlap, maintains alignment, and the rationality of the connecting line direction.

[0043] 4) Output Layout Scheme: After the solution is completed, the engine outputs a layout result dataset. This dataset contains the calculated final center coordinates or location point coordinates for each primitive (identified by its unique ID), as well as the coordinates of connection points (anchor points) pre-calculated for subsequent connection steps. This result is the "global layout calculation result," which is a set of coordinate schemes that achieve a clear topological structure and visually orderly arrangement under given constraints and resolution.

[0044] The system can pre-store the relative position (offset) of each primitive's standard anchor point in its local coordinate system. The layout engine can then calculate the absolute coordinates of each anchor point on the canvas using simple vector addition (such as center coordinates + local offset). If the primitive involves rotation, the local offset must first undergo the corresponding rotation transformation before being added to the center coordinates.

[0045] This step S12 automatically converts the user's topology intent, layout preferences, and display requirements into precise coordinate data through an algorithm, and is the core calculation stage of intelligent drawing.

[0046] S13. Based on the global layout calculation results, determine the coordinate position of each graphic element in the canvas area and draw connecting lines to obtain the power plant system topology diagram.

[0047] After obtaining the global layout calculation results, the layout engine also executes the following process: 1) Coordinate application and primitive positioning The algorithm iterates through each entry in the global layout calculation results (each entry corresponds to a primitive and its calculated final coordinates and connection point coordinates). For each primitive, based on its unique ID, the primitive's position coordinates within the canvas area are updated to the final coordinates in the global layout calculation results; simultaneously, based on the primitive's connection point coordinates, the absolute canvas coordinates of the primitive's anchor points are updated. This ensures consistency between the data model and the layout scheme, laying the foundation for accurate drawing.

[0048] 2) Drawing connecting lines After updating all coordinate data, lines representing electrical connections are drawn. This includes: first, for each defined connection relationship (e.g., from PCS to RACK), obtaining the corresponding connection points with updated coordinates on the two ends of the graphic elements; then, automatically calculating an optimal connection path based on preset wiring rules (e.g., prioritizing horizontal and vertical right-angled broken lines). This connection path can bypass other graphic elements along the way to maintain a clear and clean visual appearance. Depending on the actual electrical meaning represented by the connection (e.g., high-voltage busbars, communication lines), different visual styles can be used for drawing, such as using thick solid lines to represent power cables and blue dashed lines to represent communication buses.

[0049] Optionally, directional arrows can be added at key locations in the wiring to indicate the direction of current or signal flow, and key information such as loop numbers can be marked in appropriate locations (such as near the broken line).

[0050] In some examples, after the connecting lines are drawn, important attribute information such as the device name and number of the corresponding graphic element can be rendered next to each graphic element. Of course, it must be ensured that the labels neither overlap with the graphic elements nor are they obscured by other labels or connecting lines.

[0051] 3) Topology graph generation Once all graphic elements and connecting lines are drawn, a complete power plant system topology diagram with accurate coordinates, correct connections, and conforming to visualization standards will be displayed on the canvas area, such as... Figure 6 As shown. At this point, the data model of the topology map (including the location, attributes, and connections of all elements) is fully synchronized with the visual presentation. Users can perform interactive operations such as zooming, panning, and filtering on this view, and can also export it as a standard image format or structured engineering file for archiving, printing, or integration into a higher-level monitoring system.

[0052] Step S13 transforms abstract layout data into intuitive and usable engineering drawings, completing the closed loop from intelligent computing to final delivery.

[0053] The method for drawing the topology diagram of this power plant system constructs an intelligent automatic drawing mechanism by pre-setting the hierarchical relationships between graphic elements and typical topological structures. On the drawing interface, the graphic element library and the drawing canvas are clearly separated. After the user selects a graphic element and drags it to the canvas, the system automatically identifies the hierarchical affiliation of the element and intelligently arranges and connects them accordingly. Specifically, the following technical effects can be achieved: The power plant system topology diagram drawing method provided in this application constructs an intelligent automatic drawing system by pre-setting element hierarchy associations and typical topology templates. The drawing interface is divided into two clearly defined functional areas: an element management area library and a canvas area. After the user selects elements from the element management area and drags them to the canvas area, the system automatically identifies their hierarchy and performs intelligent arrangement and connection line generation based on this. Specifically, this method can achieve the following technical effects: 1) Driven by user interaction events, the system captures user actions such as dragging graphic elements and clicking the "Smart Generation" button in real time, triggering corresponding layout calculations and graphics rendering to form a real-time closed loop of "user operation - algorithm calculation - interface rendering". This mechanism breaks through the limitation of the separation between manual drawing and automatic layout in traditional SCADA systems, realizing intelligent configuration configuration through human-machine collaboration; 2) The physical hierarchy of the power station (e.g., busbar → PCS → RACK → PACK → CELL) is abstracted into structured constraints for the layout algorithm. Upon responding to the user's intelligent generation command, layout suggestions are automatically generated based on topology constraints, including horizontal / vertical alignment, hierarchical layout assignment, minimum spacing settings, etc. The built-in layout engine accurately solves for element coordinates and connecting line paths, ensuring the correctness of the topology and the standardization of the layout. 3) It can dynamically adjust the display size of primitives, the spacing between components, the font size of labels, and the hierarchical visualization strategy according to the resolution of the current display device, so as to achieve automatic adaptation in various resolution environments such as 1920×1080 desktop displays and 1366×768 portable devices. This can effectively ensure that the topology diagram still maintains a clear logical structure and consistent visual readability under different screen sizes, and improve the experience of cross-terminal operation for maintenance personnel.

[0054] In some embodiments of this application, the method for drawing a power plant system topology diagram further includes: responding to the user's zoom operation on the canvas, dynamically adjusting the display granularity of the element labels and the simplification of the connecting lines based on the current zoom ratio; wherein, when the zoom ratio is lower than a first threshold, non-critical attribute labels are automatically hidden and connecting lines are drawn using simplified line segments; when the zoom ratio is higher than a second threshold, the display of complete labels and standard connecting line styles is restored.

[0055] Specifically, two key thresholds can be preset (e.g., zoom level less than 30% for "macro view" and greater than 80% for "detail view"). When a scroll wheel zoom or gesture zoom event is detected, the zoom level of the current view is calculated. In the macro view, only the core identifier labels of the elements (such as device names) are automatically filtered and displayed, while connecting lines are rendered as single-pixel straight lines without arrows to improve rendering performance. In the micro view, all preset attribute labels (such as rated values ​​and status) are immediately restored, and connecting lines are restored to standard style lines with arrows (such as 2-pixel width, with distinction between solid and dashed lines). This process is completed in real time and automatically, ensuring that the image is clear and the information density is reasonable at any zoom level.

[0056] In some embodiments of this application, the method for drawing a power plant system topology diagram further includes: dynamically adjusting the visual complexity of the topology diagram in response to a user's expand or collapse operation on a specified level; wherein: when the user triggers a level collapse operation, all child elements under that level are aggregated and displayed as a parent composite element, and their internal connection relationships are hidden; when the user triggers a level expand operation, the composite element is restored to a complete child element structure, and the corresponding connection lines are redrawn.

[0057] Specifically, clickable expand / collapse control icons can be provided on the graphic of each level of primitive (such as RACK). When the user clicks the collapse icon, all child primitives under that primitive (such as all PACKs under that RACK) are removed from the canvas, and these child primitives are aggregated into an internal counter or status identifier of the parent primitive (such as overlaying a "Contains 12 PACKs" logo on the RACK icon), and all internal connection lines originally connected to the child primitives are hidden. When the user clicks the expand icon, the reverse operation is performed, that is, the aggregation identifier is removed, the independent graphics and coordinates of all child primitives are restored according to the original topology, and the connection lines between child primitives and between child primitives and their parent primitives are redrawn based on the stored connection relationships. In this way, the information density of the topology graph is dynamically controllable.

[0058] In some embodiments of this application, the canvas area is divided into multiple layout sub-regions corresponding to different logical levels; before performing global layout calculation, the method further includes: determining the target layout sub-region corresponding to the graphic element based on the topological information of the graphic element, and moving the graphic element to the target layout sub-region.

[0059] Specifically, the canvas area can be divided into multiple vertical or horizontal sub-areas, each corresponding to a specific logical level (e.g., the first level is the busbar area, the second level is the PCS area, etc.). When a user drags a graphic element onto the canvas, in response to the intelligent generation command, the system first determines the logical level to which the graphic element should belong based on the device type and hierarchical relationship in its topology information, and thus determines its corresponding target sub-area. Then, the initial placement of the graphic element is adjusted to a reasonable initial position within the target sub-area (e.g., if the sub-area is a horizontal strip, it is placed on the baseline centered vertically within that strip).

[0060] By moving primitives to the target layout sub-region, an initial spatial framework conforming to hierarchical logic can be provided for subsequent automatic layout. Pre-positioning primitives to their respective logical regions ensures the clarity of the topology in spatial division, laying a solid data and spatial foundation for the next step of executing a global automatic layout algorithm that considers sibling alignment and spacing optimization, thereby ultimately ensuring the standardization and consistency of the generated topology map.

[0061] In some embodiments of this application, while obtaining the power plant system topology diagram based on the global layout calculation results, the method further includes: displaying a step backtracking control at a preset position in the canvas area; responding to the user's operation of selecting a target backtracking step through the step backtracking control, displaying the parameter configuration area corresponding to the target backtracking step in the drawing interface; and responding to the configuration parameters selected by the user in the parameter configuration area, updating the power plant system topology diagram based on the configuration parameters.

[0062] Specifically, see Figure 6 When "Intelligent layout completed," it indicates that the power plant system topology diagram has been automatically generated. At this time, a step-back control is displayed in a preset location in the drawing area (as shown above), which can include various key historical operation steps from "Selecting Topology Template" to "Wiring Generation." Users can click on any historical operation step (such as "Automatic Layout") to enter the corresponding step's backtracking editing mode. At this time, the drawing interface will dynamically switch, and the parameter configuration area corresponding to that step will pop up above or to the side of the canvas area (such as...). Figures 7-11 (As shown). For example, if the user chooses to go back to the "Auto Layout" step, the drawing interface will redisplay all the layout parameters previously set, such as alignment, spacing, and line styles, and allow the user to directly modify them to reset the layout rules.

[0063] Any modifications made by the user in the parameter configuration panel (such as adjusting the horizontal spacing from 100 pixels to 120 pixels) and subsequent clicks of the "Confirm" and "Regenerate" buttons will initiate a recalculation process. This may include: depending on the specific scope affected by the modification (for example, spacing adjustments may affect all sibling primitives), re-executing all subsequent calculations from this step up to "Smart Generation" (including layout calculations and connection generation) while maintaining the overall topology logic unchanged, and finally rendering the updated topology map in real time on the canvas area without requiring the user to re-execute the entire drawing process.

[0064] In some examples, the target backtracking step is the step of setting resolution parameters; updating the power plant system topology diagram based on configuration parameters includes: recalculating and adjusting the element sizes, text styles, and overall layout proportions in the power plant system topology diagram based on the updated resolution parameters entered by the user in the parameter configuration area.

[0065] like Figure 7 (Indicates the current resolution is 1330×584) Figure 8 (As shown in the example of adjusting to 1336×768), if the user chooses to go back to "Set Resolution Parameters," the right side of the drawing interface displays the resolution configuration area, which includes preset options for common screen sizes (such as 1920×1080, 1336×768, etc.) and also supports user-defined input. After the user selects the new resolution parameters, clicking the "Confirm" and "Regenerate" buttons in sequence will initiate a recalculation process. This may include: first, calculating an overall scaling factor based on the proportional relationship between the new resolution parameters and the original layout; then, performing proportional scaling calculations on the coordinates, dimensions, and connecting line path points of all elements. Simultaneously, an "Adaptive Rearrangement" check may be triggered. If scaling causes the element spacing to fall below the minimum readable threshold or label overlap, the element positions will be fine-tuned and the connecting paths recalculated to ensure the clarity and readability of the topology map at the new resolution. The entire process does not change the topology logic; it only performs visual adaptation.

[0066] In some examples, the target backtracking step is the step of setting layout constraint rules; updating the power plant system topology based on configuration parameters includes: re-executing the global layout calculation triggered by the intelligent generation command based on the updated layout constraint rules entered by the user in the parameter configuration area, and updating the element coordinates and connecting lines in the power plant system topology based on the new global layout calculation results.

[0067] like Figure 9As shown, when a user selects "Set Layout Constraint Rules" as the target backtracking step using the step backtracking control, a layout parameter configuration area is dynamically loaded in the sidebar of the drawing interface. This area presents all currently adjustable layout rules in a form, including parameters such as alignment, horizontal spacing, element distribution, and vertex optimization. Users can directly modify the specific values ​​or options of any rule in this area. After the user clicks the "Confirm" and "Regenerate" buttons in sequence, a recalculation process will be initiated. This can include: retaining all placed elements and their topological relationships, recalculating the global layout only based on the new rules, and finally generating and displaying a topology map with an updated layout style. Thus, fine-tuning of the layout effect can be achieved while maintaining the topological relationships unchanged.

[0068] In some examples, the target backtracking step is the step of selecting a topology template; updating the power plant system topology diagram based on configuration parameters includes: updating the hierarchical topology relationship based on the topology template reselected by the user in the parameter configuration area; re-identifying the topology information of the placed elements according to the updated hierarchical topology relationship, and re-executing the global layout calculation and connection line drawing triggered by the intelligent generation command.

[0069] like Figure 11 As shown, when the user chooses to return to the "Select Topology Template" step, the drawing interface displays the topology template selection library. The user selects a new template and clicks the "Confirm" and "Regenerate" buttons in sequence, initiating a recalculation process. This may include: first, replacing the current hierarchy library with the new template's hierarchy definition; then, traversing all placed elements in the canvas and attempting to "map" them to the corresponding level and position in the new template based on their device type; if mapping is successful, updating their topology information; after mapping and updating, the system then re-executes intelligent layout and automatic connection based on the new global topology relationship to generate a topology diagram conforming to the new template structure. Optionally, if a certain element type does not have a corresponding relationship in the new template, the system will mark it as a "free device" and prompt the user for processing.

[0070] In some examples, the target backtracking steps are the steps of placing and managing graphic elements; updating the power plant system topology diagram based on configuration parameters includes: providing graphic element management functions in the parameter configuration area, responding to user operations on adding, deleting, replacing or modifying attributes of graphic elements in the canvas area, updating the topology information of graphic elements, and re-executing the global layout calculation and connection line drawing triggered by the intelligent generation command.

[0071] like Figure 10As shown, if you go back to "Placement and Management of Elements," the elements in the canvas become directly operable, and the element management area is displayed in the sidebar of the drawing interface. Users can perform the following operations and preview the effects in real time: drag and drop to add elements, select and press the Delete key to delete elements, replace the selected elements with another type, or modify the element's number, name, and other attributes in the attribute panel. Any modification will immediately update the topology information model in the background. After the user completes a series of edits and clicks "Confirm" and "Regenerate" in sequence, based on all the updated elements and their topology information, the entire process from intelligent generation to final drawing is triggered again, generating an updated topology map.

[0072] In some examples, the target backtracking step is the wiring generation step; updating the power plant system topology based on configuration parameters includes: providing connection line editing functionality in the parameter configuration area to respond to user modifications to connection line styles, connection logic, or path points; and recalculating and redrawing the connection lines in the power plant system topology based on the modified connection line parameters.

[0073] When the user chooses to go back to the "Wiring Generation" step, they enter the wiring editing mode. All existing wirings will be highlighted and can be selected individually. After selecting a wiring, the user can modify its line type (solid / dashed), color, thickness, and other styles in the wiring configuration area displayed on the drawing interface.

[0074] Optionally, the path of a connection can be manually adjusted by dragging path points (vertices) on the line; or the connection logic can be modified via a drop-down menu (for example, changing a connection from PCS to Bus A to Bus B), and the modified connection logic can be verified to comply with electrical rules. After all modifications are confirmed, the system only performs local path recalculation and redrawing on the connection lines within the affected area, while keeping the element positions and other unmodified parts unchanged, achieving fast and accurate connection adjustment.

[0075] In summary, the power plant system topology diagram drawing method of this application deeply integrates three core mechanisms: interactive driving, intelligent assistance, and backtracking editing, constructing an efficient, reliable, and flexible human-computer collaborative drawing system. This method fundamentally changes the traditional configuration mode that relies on manual experience and repetitive operations, freeing users from tedious layout and wiring work. Simultaneously, algorithms ensure the accuracy of topology logic and visual consistency across multiple resolutions. Its "step-backtracking" interaction further enables refined and reversible control of the drawing process, supporting users to perform multiple rounds of iterative optimization until a satisfactory result is obtained, significantly improving design efficiency and final drawing quality. This method possesses good versatility and scalability, applicable not only to energy storage power plants but also providing standardized and intelligent technical support for electrical wiring diagram drawing in other energy fields such as photovoltaic systems and microgrids.

[0076] This application also proposes a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the method for drawing a power plant system topology diagram as described in the above embodiments.

[0077] Figure 12 This is a structural block diagram of an electronic device according to an embodiment of this application.

[0078] like Figure 12 As shown, the electronic device 500 includes a processor 501 and a memory 503. The processor 501 and the memory 503 are connected, for example, via a bus 502. Optionally, the electronic device 500 may also include a transceiver 504. It should be noted that in practical applications, the transceiver 504 is not limited to one type, and the structure of this electronic device 500 does not constitute a limitation on the embodiments of this application.

[0079] Processor 501 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 501 may also be a combination that implements computational functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.

[0080] Bus 502 may include a pathway for transmitting information between the aforementioned components. Bus 502 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. Bus 502 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 12 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0081] The memory 503 stores a computer program corresponding to the method for drawing the power plant system topology diagram in the above embodiments of this application. This computer program is controlled and executed by the processor 501. The processor 501 executes the computer program stored in the memory 503 to implement the content shown in the aforementioned method embodiments.

[0082] Among them, electronic devices 500 include, but are not limited to: digital TVs, desktop computers and other terminals. Figure 12 The electronic device 500 shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.

[0083] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.

[0084] It should be understood that various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0085] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0086] In the description of this application, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc., indicating the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this application.

[0087] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0088] In this application, unless otherwise expressly specified and limited, the terms "installation," "connection," "joining," and "fixing," etc., should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components, unless otherwise expressly limited. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.

[0089] In this application, unless otherwise expressly specified and limited, "above" or "below" the second feature can mean that the first feature is in direct contact with the second feature, or that the first feature is in indirect contact with the second feature through an intermediate medium. Furthermore, "above," "on top of," and "over" the second feature can mean that the first feature is directly above or diagonally above the second feature, or simply that the first feature is at a higher horizontal level than the second feature. "Below," "below," and "under" the second feature can mean that the first feature is directly below or diagonally below the second feature, or simply that the first feature is at a lower horizontal level than the second feature.

[0090] Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of this application.

Claims

1. A method for drawing a power plant system topology diagram, characterized in that, Includes the following steps: In response to the user's operation of dragging and dropping graphic elements from the graphic element management area in the drawing interface to the canvas area, the topological information of the graphic element is determined according to the hierarchical topological relationship corresponding to the currently selected topological template; In response to the user-triggered intelligent generation command, a global layout calculation is performed based on the topological information of all primitives in the canvas area, as well as the currently set layout constraint rules and resolution parameters. Based on the global layout calculation results, the coordinate positions of each graphic element in the canvas area are determined, and connecting lines are drawn to obtain the power plant system topology diagram.

2. The method for drawing a power plant system topology diagram according to claim 1, characterized in that, The canvas area is divided into multiple sub-regions corresponding to different logical levels; before performing the global layout calculation, the method further includes: Based on the topology information of the graphic element, the target layout sub-region corresponding to the graphic element is determined, and the graphic element is moved to the target layout sub-region.

3. The method for drawing a power plant system topology diagram according to claim 1, characterized in that, While obtaining the power plant system topology diagram based on the global layout calculation results, the method also includes: A step back control is displayed at a preset location in the canvas area; In response to the user's operation of selecting a target backtracking step through the step backtracking control, the parameter configuration area corresponding to the target backtracking step is displayed on the drawing interface; In response to the configuration parameters selected by the user in the parameter configuration area, the power plant system topology is updated based on the configuration parameters.

4. The method for drawing a power plant system topology diagram according to claim 3, characterized in that, The target backtracking step is the step of setting layout constraint rules; the step of updating the power plant system topology map based on the configuration parameters includes: Based on the updated layout constraint rules input by the user in the parameter configuration area, the global layout calculation triggered by the intelligent generation instruction is re-executed, and the element coordinates and connecting lines in the power plant system topology diagram are updated according to the new global layout calculation results.

5. The method for drawing a power plant system topology diagram according to claim 3, characterized in that, The target backtracking step is the step of setting resolution parameters; the step of updating the power plant system topology map based on the configuration parameters includes: Based on the updated resolution parameters entered by the user in the parameter configuration area, the element sizes, text styles, and overall layout proportions in the power plant system topology diagram are recalculated and adjusted.

6. The method for drawing a power plant system topology diagram according to claim 3, characterized in that, The target backtracking step is the step of selecting a topology template; The process of updating the power plant system topology based on the configuration parameters includes: The hierarchical topology is updated based on the topology template reselected by the user in the parameter configuration area; Based on the updated hierarchical topology, the topology information of the placed elements is re-identified, and the global layout calculation and connection line drawing triggered by the intelligent generation instruction are re-executed.

7. The method for drawing a power plant system topology diagram according to claim 3, characterized in that, The target backtracking step is a step of placing and managing graphic elements; the step of updating the power plant system topology map based on the configuration parameters includes: The parameter configuration area provides a primitive management function, which responds to user operations such as adding, deleting, replacing or modifying attributes of primitives in the canvas area, updates the topology information of the primitives, and re-executes the global layout calculation and connection line drawing triggered by the intelligent generation instruction.

8. The method for drawing a power plant system topology diagram according to claim 3, characterized in that, The target backtracking step is the wiring generation step; the step of updating the power station system topology based on the configuration parameters includes: The parameter configuration area provides a connection line editing function to respond to user modifications to the connection line style, connection logic, or path points. Based on the modified connection line parameters, the connection lines in the power plant system topology diagram are recalculated and redrawn.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method for drawing a power plant system topology diagram as described in any one of claims 1-8.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the method for drawing the power plant system topology diagram as described in any one of claims 1-8.