A method and device for automatically drawing a coal mine power supply system diagram

By drawing a sketch of the coal mine power supply system, constructing a model, and selecting a style template to automatically generate the power supply system diagram, the problem of low drawing efficiency in the existing technology is solved, and the generation of power supply system diagrams is achieved with high efficiency and automation.

CN118229837BActive Publication Date: 2024-11-12BEIJING LONGRUAN TECHNOLOGIES INC
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410329230.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-21
Publication Date
2024-11-12
Estimated Expiration
2044-03-21

AI Technical Summary

Technical Problem

Existing technologies for drawing coal mine power supply system diagrams suffer from numerous problems, including a large number of devices and cables, a heavy workload for graphic processing, low efficiency, and a low degree of automation. In particular, when adding or modifying the location of equipment, a significant amount of manual, interactive modification of cable relationships is required.

Method used

By using third-party tools to draw sketches of non-standard coal mine power supply systems, construct power supply system models, select style templates, and parse target data, power supply system diagrams are automatically generated, reducing manual labor and automatically adjusting the relationships between equipment and cables.

Benefits of technology

The generated power supply system diagram features reasonable, neat, and aesthetically pleasing equipment placement, orthogonal cables, and matching legends and text, significantly improving drawing efficiency, reducing workload, and eliminating the need to move surrounding equipment when adding or modifying equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118229837B_ABST
    Figure CN118229837B_ABST
Patent Text Reader

Abstract

The present invention proposes a method and device for automatically drawing a coal mine power supply system diagram, which relates to the field of mine electromechanical technology. First, a coal mine power supply system sketch is drawn, then a coal mine power supply system model is constructed, a power supply system diagram style template is selected, the coal mine power supply system model and the style template are parsed, and a coal mine power supply system diagram is automatically generated. The coal mine power supply system diagram requires beautiful appearance, reasonable layout, neat arrangement of equipment, and orthogonal cables. Manually drawing a coal mine power supply system diagram requires a lot of effort. This method abandons the idea of ​​directly drawing a coal mine power supply system diagram, first draws a simple tree structure schematic diagram, constructs a power supply system model, and then automatically generates a coal mine power supply system diagram that meets the requirements, which can significantly improve drawing efficiency and has high practicality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of mine electromechanical technology, in particular to a method and a device for automatically drawing a coal mine power supply system diagram. Background Art

[0002] The smooth operation of the coal mine power supply system is the basis for all production work of modern coal mining enterprises. High-quality, continuous and stable power supply plays a vital role in improving mine production efficiency and saving energy.

[0003] The power supply system diagram is an important part of the coal mine power supply system. It not only shows the connection relationship between equipment and equipment, equipment and cables, but also marks the specifications of equipment and cables, cable length, short-circuit current, switch setting value and other information, providing a basis for coal mine staff to carry out on-site construction and enter switch setting values.

[0004] The power supply system diagram has gone through different stages of manual drawing and computer software drawing. With the continuous development of drawing software technology, the use of computer software to draw power supply system diagrams has become the mainstream method, and manual drawing is rarely used. AutoCAD is the most commonly used drawing software at present. It has powerful drawing functions and rich drawing tools. It can manually draw a complete power supply system diagram.

[0005] Due to the limitations of data models and data structures, CAD systems lack the expression of object spatial topological relationships, resulting in large graphics processing workload and low efficiency.

[0006] (1) There are many devices and cables in the power supply system diagram, but the scope of the diagram is limited. In addition, the equipment must be placed reasonably, neatly, beautifully, and harmoniously, the cables must be orthogonal, and the legend and text annotation must match. Meeting these requirements requires interactive editing with a lot of manual effort.

[0007] (2) When adding a new device to an existing graphic or modifying the placement of an existing device, the entire system needs to be moved. Not only does the device itself need to be moved, but the positions of surrounding devices also need to be moved. After the device is moved, all related cables must be interactively modified manually to re-establish an orthogonal relationship with the device, resulting in a low degree of automation. Summary of the invention

[0008] In view of the above problems, the present invention proposes a method and device for automatically drawing a coal mine power supply system diagram.

[0009] An embodiment of the present invention provides a method for automatically generating a coal mine power supply system diagram, the method comprising:

[0010] Step 1: Draw a coal mine power supply system sketch using a third-party tool. The sketch is a non-standard power supply system diagram, which includes: symbols of all equipment in the coal mine power supply system and their connection relationships;

[0011] Step 2: The target tool constructs a coal mine power supply system model based on the sketch, and the coal mine power supply system model is used to enable the target tool to understand the content of the sketch, and the coal mine power supply system model includes: device nodes and the relationship between all device nodes; the target tool is a tool for automatically generating a coal mine power supply system diagram;

[0012] Step 3: The target tool selects a style template from the coal mine power supply system style template library based on the coal mine power supply system model; or the target tool selects a target device node in the coal mine power supply system model, forms a new coal mine power supply system model and selects a style template from the coal mine power supply system style template library; wherein the coal mine power supply system style template library includes: several types of style templates, the style templates include: the corresponding relationship of each device shape in the coal mine power supply system, the device number, the device shape, the device size, the device color, the device spacing, the relative position of the device, and the power supply system diagram border, the drawing label, the power supply system diagram title text, and the power supply system diagram layout mode, the external manifestation of the style template is the power supply system diagram, and the power supply system diagram displays the power supply system diagram print frame, the power supply system diagram title text, the power supply system diagram layout mode, the drawing label format and position, and the device shape and size information;

[0013] Step 4: The target tool parses the coal mine power supply system model and the selected style template to obtain target data, which includes: power supply system diagram border, drawing label, power supply system diagram title text, power supply system diagram layout, type of device node, corresponding relationship of each device shape, device number, device shape, device size, device color, device spacing, relative position of devices, information of each device in the corresponding sketch, and connection relationship between devices;

[0014] Step 5: The target tool automatically generates a preview image of the coal mine power supply system based on the target data;

[0015] Step 6: If no modification is required, the preview image of the coal mine power supply system is used as the coal mine power supply system diagram; if modification is required, modification is performed and the modified preview image of the coal mine power supply system is used as the coal mine power supply system diagram.

[0016] Optionally, after constructing the coal mine power supply system model based on the sketch on the target tool, the method further includes:

[0017] When it is necessary to perform at least one of adding, deleting, and modifying any device node in the coal mine power supply system model, re-execute step 1 and step 2;

[0018] When there is no need to perform any operation of adding, deleting or modifying any device node in the coal mine power supply system model, step 3 is executed.

[0019] Optionally, the device node includes: device node number, device node type, parent node data, sibling node data, and child node data;

[0020] The device node types include: high voltage switch type, high voltage electrical equipment type, transformer type, low voltage switch type, low voltage electrical equipment type;

[0021] The parent node data includes: parent node number;

[0022] The brother node data includes: brother node number;

[0023] The sub-node data includes: a sub-node number.

[0024] Optionally, the layout of the power supply system diagram includes: the relative position of the root node device and the upper left corner of the power supply system diagram frame, the distance between parent and child devices and the relative position, and the distance between brother devices and the relative position.

[0025] Optionally, drawing a coal mine power supply system sketch using a third-party tool includes the following sub-steps:

[0026] Sub-step 11: Draw n high-voltage switch symbols, where n is a positive integer;

[0027] Sub-step 12: Draw a transformer symbol or a high-voltage electrical equipment symbol below the high-voltage switch symbol, and connect the high-voltage switch symbol and the transformer symbol or connect the high-voltage switch symbol and the high-voltage electrical equipment symbol;

[0028] Sub-step 13: Draw a low-voltage switch symbol or a low-voltage electrical equipment symbol under the transformer symbol, and connect the transformer symbol and the low-voltage symbol or connect the transformer symbol and the low-voltage electrical equipment symbol;

[0029] Sub-step 14: Draw a secondary low-voltage switch symbol or a secondary low-voltage electrical equipment symbol below the low-voltage switch symbol, and connect the low-voltage switch symbol and the secondary low-voltage switch symbol or connect the low-voltage switch symbol and the secondary low-voltage electrical equipment symbol;

[0030] Sub-step 15: Draw a low-level low-voltage electrical equipment symbol below the secondary low-voltage switch symbol, and connect the secondary low-voltage switch symbol and the low-level low-voltage electrical equipment symbol;

[0031] Sub-step 16: Complete drawing of the sketch.

[0032] Optionally, the target tool constructs a coal mine power supply system model based on the sketch, including the following sub-steps:

[0033] Sub-step 21: the target tool parses the sketch and adds a high-voltage switch node to a preset coal mine power supply system model;

[0034] Sub-step 22: the target tool parses the sketch, and adds a transformer node or a high-voltage electrical equipment node as a child node of the high-voltage switch node in the preset coal mine power supply system model;

[0035] Sub-step 23: the target tool parses the sketch, and adds a low-voltage switch node or a low-voltage electrical equipment node as a child node of the transformer node in the preset coal mine power supply system model;

[0036] Sub-step 24: the target tool parses the sketch, and adds a secondary low-voltage switch node or a secondary low-voltage electrical equipment node as a child node of the low-voltage switch node in the preset coal mine power supply system model;

[0037] Sub-step 25: the target tool parses the sketch, and adds a low-level low-voltage electrical equipment node as a child node of a secondary low-voltage switch node in the preset coal mine power supply system model;

[0038] Sub-step 26: Complete the construction of the coal mine power supply system model.

[0039] Optionally, the target tool selects a target device node in the coal mine power supply system model to form a new coal mine power supply system model, including the following sub-steps:

[0040] Sub-step 31: Select the target device node;

[0041] Sub-step 32: Based on the selected target device node and all its sub-nodes, the new coal mine power supply system model is formed.

[0042] Optionally, the target tool parses the coal mine power supply system model and the selected style template including the following sub-steps:

[0043] Sub-step 41: parsing the coal mine power supply system model, finding the root node, and obtaining all device nodes;

[0044] Sub-step 42: Parse the selected style template to obtain the border of the power supply system diagram, the label, the title text of the power supply system diagram, the layout of the power supply system diagram, the type of device node, the corresponding relationship between each device shape, device number, device shape, device size, device color, device spacing, device relative position, information of each device in the corresponding sketch, and the connection relationship between devices.

[0045] Optionally, the target tool automatically generates a preview image of the coal mine power supply system based on the target data, including the following sub-steps:

[0046] Sub-step 51: setting the upper left corner of the preview image of the coal mine power supply system as the initial position, calculating the actual position of the frame according to the frame size of the power supply system image obtained by analysis, and drawing the frame;

[0047] Sub-step 52: Calculate the actual position of the image label according to the relative position between the image label and the upper left corner of the frame obtained by parsing, and draw the image label according to the image label format obtained by parsing;

[0048] Sub-step 53: Calculate the actual position of the power supply system diagram title text according to the relative position of the power supply system diagram title text and the upper left corner of the frame obtained by parsing, and draw the power supply system diagram title text according to the size of the power supply system diagram title text obtained by parsing;

[0049] Sub-step 54: according to the relative position of the root device and the upper left corner of the frame obtained by parsing, the corresponding relationship between the root node device type in the coal mine power supply system model and the device shape in the style template, the device number, device shape, device size, and device color, according to the relative position of the root node device and the upper left corner of the frame, calculate the actual position of the root node, and draw the root node in the coal mine power supply system model at the actual position;

[0050] Sub-step 55: Calculate the actual positions of all child nodes according to the actual position of the root node device, combined with the spacing and relative positions, device shapes, and device colors of the parent-child devices and brother devices obtained by analysis, and draw all child nodes of the root node in the coal mine power supply system model at the actual positions;

[0051] Sub-step 56: according to the parent node number, the brother node number, and the child node number stored in the coal mine power supply system model, obtain the connection relationship between the current device and the parent device, and between the brother device and the child device, draw orthogonal cable symbols, and connect these devices;

[0052] Sub-step 57: Generate a preview image of the coal mine power supply system.

[0053] Optionally, the sketch coal mine drawing module 310 is specifically used to perform the following sub-steps:

[0054] Sub-step 11: Draw n high-voltage switch symbols, where n is a positive integer;

[0055] Sub-step 12: Draw a transformer symbol or a high-voltage electrical equipment symbol below the high-voltage switch symbol, and connect the high-voltage switch symbol and the transformer symbol or connect the high-voltage switch symbol and the high-voltage electrical equipment symbol;

[0056] Sub-step 13: Draw a low-voltage switch symbol or a low-voltage electrical equipment symbol under the transformer symbol, and connect the transformer symbol and the low-voltage symbol or connect the transformer symbol and the low-voltage electrical equipment symbol;

[0057] Sub-step 14: Draw a secondary low-voltage switch symbol or a secondary low-voltage electrical equipment symbol below the low-voltage switch symbol, and connect the low-voltage switch symbol and the secondary low-voltage switch symbol or connect the low-voltage switch symbol and the secondary low-voltage electrical equipment symbol;

[0058] Sub-step 15: Draw a low-level low-voltage electrical equipment symbol below the secondary low-voltage switch symbol, and connect the secondary low-voltage switch symbol and the low-level low-voltage electrical equipment symbol;

[0059] Sub-step 16: Complete drawing of the sketch.

[0060] Optionally, the coal mine construction module 320 is specifically used to perform the following sub-steps:

[0061] Sub-step 21: the target tool parses the sketch and adds a high-voltage switch node to a preset coal mine power supply system model;

[0062] Sub-step 22: the target tool parses the sketch, and adds a transformer node or a high-voltage electrical equipment node as a child node of the high-voltage switch node in the preset coal mine power supply system model;

[0063] Sub-step 23: the target tool parses the sketch, and adds a low-voltage switch node or a low-voltage electrical equipment node as a child node of the transformer node in the preset coal mine power supply system model;

[0064] Sub-step 24: the target tool parses the sketch, and adds a secondary low-voltage switch node or a secondary low-voltage electrical equipment node as a child node of the low-voltage switch node in the preset coal mine power supply system model;

[0065] Sub-step 25: the target tool parses the sketch, and adds a low-level low-voltage electrical equipment node as a child node of a secondary low-voltage switch node in the preset coal mine power supply system model;

[0066] Sub-step 26: Complete the construction of the coal mine power supply system model.

[0067] Optionally, the coal mine style selection module 330 is specifically used to perform the following sub-steps:

[0068] Sub-step 31: Select the target device node;

[0069] Sub-step 32: Based on the selected target device node and all its sub-nodes, the new coal mine power supply system model is formed.

[0070] Optionally, the parsing module 340 is specifically configured to perform the following sub-steps:

[0071] Sub-step 41: parsing the coal mine power supply system model, finding the root node, and obtaining all device nodes;

[0072] Sub-step 42: Parse the selected style template to obtain the border of the power supply system diagram, the label, the title text of the power supply system diagram, the layout of the power supply system diagram, the type of device node, the corresponding relationship between each device shape, device number, device shape, device size, device color, device spacing, device relative position, information of each device in the corresponding sketch, and the connection relationship between devices.

[0073] Optionally, the automatic generation module 350 is specifically configured to perform the following sub-steps:

[0074] Sub-step 51: setting the upper left corner of the preview image of the coal mine power supply system as the initial position, calculating the actual position of the frame according to the frame size of the power supply system image obtained by analysis, and drawing the frame;

[0075] Sub-step 52: Calculate the actual position of the image label according to the relative position between the image label and the upper left corner of the frame obtained by parsing, and draw the image label according to the image label format obtained by parsing;

[0076] Sub-step 53: Calculate the actual position of the power supply system diagram title text according to the relative position of the power supply system diagram title text and the upper left corner of the frame obtained by parsing, and draw the power supply system diagram title text according to the size of the power supply system diagram title text obtained by parsing;

[0077] Sub-step 54: according to the relative position of the root device and the upper left corner of the frame obtained by parsing, the corresponding relationship between the root node device type in the coal mine power supply system model and the device shape in the style template, the device number, device shape, device size, and device color, according to the relative position of the root node device and the upper left corner of the frame, calculate the actual position of the root node, and draw the root node in the coal mine power supply system model at the actual position;

[0078] Sub-step 55: Calculate the actual positions of all child nodes according to the actual position of the root node device, combined with the spacing and relative positions, device shapes, and device colors of the parent-child devices and brother devices obtained by analysis, and draw all child nodes of the root node in the coal mine power supply system model at the actual positions;

[0079] Sub-step 56: according to the parent node number, the brother node number, and the child node number stored in the coal mine power supply system model, obtain the connection relationship between the current device and the parent device, and between the brother device and the child device, draw orthogonal cable symbols, and connect these devices;

[0080] Sub-step 57: Generate a preview image of the coal mine power supply system.

[0081] An embodiment of the present invention provides a device for automatically generating a coal mine power supply system diagram, the device comprising:

[0082] A sketch drawing coal mine module is used to draw a sketch of the coal mine power supply system. The sketch is a non-standard power supply system diagram, which includes: symbols of all equipment in the coal mine power supply system and their connection relationships;

[0083] Constructing a coal mine module, which is used to construct a coal mine power supply system model based on the sketch, wherein the coal mine power supply system model is used to enable the target tool to understand the content of the sketch, and the coal mine power supply system model includes: device nodes and the relationship between all device nodes; the target tool is a tool for automatically generating a coal mine power supply system diagram;

[0084] A coal mine style module is selected to select a style template in a coal mine power supply system style template library based on the coal mine power supply system model; or the target tool selects a target device node in the coal mine power supply system model, forms a new coal mine power supply system model and selects a style template in the coal mine power supply system style template library; wherein the coal mine power supply system style template library includes: several types of style templates, the style templates include: the corresponding relationship of each device shape in the coal mine power supply system, the device number, the device shape, the device size, the device color, the device spacing, the relative position of the device, and the power supply system diagram border, the drawing label, the power supply system diagram title text, and the power supply system diagram layout mode, the external manifestation of the style template is the power supply system diagram, and the power supply system diagram displays the power supply system diagram print frame, the power supply system diagram title text, the power supply system diagram layout mode, the drawing label format and position, and the device shape and size information;

[0085] A parsing module is used to parse the coal mine power supply system model and the selected style template to obtain target data, which includes: a power supply system diagram border, a drawing label, a power supply system diagram title text, a power supply system diagram layout mode, the type of the device node, the corresponding relationship of each device shape, the device number, the device shape, the device size, the device color, the device spacing, the relative position of the device, the information of each device in the corresponding sketch, and the connection relationship between the devices;

[0086] An automatic generation module, used for automatically generating a preview image of a coal mine power supply system based on the target data;

[0087] The automatic generation module is also used to use the preview image of the coal mine power supply system as the coal mine power supply system diagram if no modification is required, and to modify it if modification is required, and use the modified preview image of the coal mine power supply system as the coal mine power supply system diagram.

[0088] The method for automatically generating a coal mine power supply system diagram provided by the present invention first draws a coal mine power supply system sketch through a third-party tool, and the sketch is a non-standard power supply system diagram, and then a target tool constructs a coal mine power supply system model based on the sketch. The target tool selects a style template in a coal mine power supply system style template library based on the coal mine power supply system model; or the target tool selects a target device node in the coal mine power supply system model, forms a new coal mine power supply system model, and selects a style template in the coal mine power supply system style template library.

[0089] The target tool parses the coal mine power supply system model and the selected style template to obtain target data, and automatically generates a preview image of the coal mine power supply system based on the target data; if no modification is required, the preview image of the coal mine power supply system is used as the coal mine power supply system image; if modification is required, modification is performed and the preview image of the modified coal mine power supply system is used as the coal mine power supply system image.

[0090] The method for automatically generating a coal mine power supply system diagram proposed by the present invention abandons the traditional idea of ​​directly drawing a coal mine power supply system diagram, but first draws a simple coal mine power supply system sketch, builds a coal mine power supply system model, and enables the target tool to understand the content of the sketch. Then select a preset template, parse and obtain the target data, and finally automatically generate a coal mine power supply system diagram that meets the requirements based on the target data. The system diagram generated by this method not only has reasonable, neat, beautiful, coordinated equipment placement, orthogonal cables, and matching legends with text, but also does not require a lot of manual effort. When adding new equipment to an existing diagram or modifying the placement of existing equipment, it is not necessary to move its own position, nor to move the position of surrounding equipment, and all related cables are not re-modified. It is only necessary to re-draw the sketch and build the coal mine power supply system model to re-establish an orthogonal relationship with the equipment, which greatly reduces the workload, can significantly improve drawing efficiency, and has strong practicality. BRIEF DESCRIPTION OF THE DRAWINGS

[0091] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0092] Figure 1 is a flow chart of a method for automatically generating a coal mine power supply system diagram according to an embodiment of the present invention;

[0093] Figure 2 It is a schematic sketch of a coal mine power supply system in a tree structure consisting of a high-voltage switch node, a transformer node, a high-voltage power equipment node, a low-voltage switch node, and a low-voltage power equipment node in an embodiment of the present invention;

[0094] Figure 3 The invention discloses a block diagram of a device for automatically generating a coal mine power supply system diagram according to an embodiment of the present invention. DETAILED DESCRIPTION

[0095] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, are only part of the embodiments of the present invention, not all of the embodiments, and are not used to limit the present invention.

[0096] A method for automatically generating a coal mine power supply system diagram according to an embodiment of the present invention, referring to Figure 1 The method for automatically generating a coal mine power supply system diagram includes:

[0097] Step 1: Draw a coal mine power supply system sketch through a third-party tool. The sketch is a non-standard power supply system diagram, which includes: symbols of all equipment in the coal mine power supply system and their connection relationships.

[0098] The method for automatically generating a coal mine power supply system diagram proposed in the present invention first draws a coal mine power supply system sketch through a third-party tool. The sketch is a non-standard power supply system diagram, which includes: symbols of all equipment in the coal mine power supply system and their connection relationships. That is, the sketch does not need to be drawn according to the requirements of the standard power supply system diagram, and only needs to reflect the symbols of all equipment in the coal mine power supply system and their connection relationships. In this way, there is no need to perform a lot of processing on the details, which can greatly reduce the workload and improve work efficiency.

[0099] A preferred method for drawing a coal mine power supply system sketch using a third-party tool includes the following sub-steps:

[0100] Sub-step 11: Draw n high-voltage switch symbols, where n is a positive integer;

[0101] Sub-step 12: Draw a transformer symbol or a high-voltage electrical equipment symbol under the high-voltage switch symbol, and connect the high-voltage switch symbol and the transformer symbol or connect the high-voltage switch symbol and the high-voltage electrical equipment symbol;

[0102] Sub-step 13: Draw a low-voltage switch symbol or a low-voltage electrical equipment symbol under the transformer symbol, and connect the transformer symbol and the low-voltage symbol or the transformer symbol and the low-voltage electrical equipment symbol;

[0103] Sub-step 14: Draw a secondary low-voltage switch symbol or a secondary low-voltage electrical equipment symbol below the low-voltage switch symbol, and connect the low-voltage switch symbol and the secondary low-voltage switch symbol or connect the low-voltage switch symbol and the secondary low-voltage electrical equipment symbol;

[0104] Sub-step 15: Draw the low-level low-voltage electrical equipment symbol below the secondary low-voltage switch symbol, and connect the secondary low-voltage switch symbol and the low-level low-voltage electrical equipment symbol;

[0105] Sub-step 16: Complete the sketch of the coal mine power supply system.

[0106] To better understand the coal mine power supply system sketch, refer to Figure 2 The schematic diagram shown is a tree-structured coal mine power supply system sketch consisting of high-voltage switch nodes, transformer nodes, high-voltage electrical equipment nodes, low-voltage switch nodes, and low-voltage electrical equipment nodes.

[0107] Figure 2 As can be seen in the figure, the high-voltage switch node is represented by the high-voltage switch symbol, and any high-voltage switch node can be connected to multiple high-voltage electrical equipment nodes ( Figure 2 In the figure, the high voltage electrical equipment symbol is used to represent the node) and at least one transformer node ( Figure 2 transformer symbol).

[0108] Multiple low-voltage switch nodes can be connected to one transformer node ( Figure 2 Any low-voltage switch node can be connected to multiple low-voltage electrical equipment nodes ( Figure 2 This tree-structured coal mine power supply system sketch only reflects the corresponding symbols and their connection relationships of the high-voltage switch nodes, transformer nodes, high-voltage power equipment nodes, low-voltage switch nodes, and low-voltage power equipment nodes in the coal mine power supply system, and is not drawn in accordance with the requirements of the standard power supply system diagram.

[0109] It should be noted that the above Figure 2The sketch of the coal mine power supply system is only schematically shown for a better understanding of the sketch, and does not mean that the sketch of the coal mine power supply system drawn by a third-party tool can only be of this structure. All sketches of the coal mine power supply system that can be drawn by a third-party tool can be applied to the method for automatically generating a coal mine power supply system diagram proposed by the present invention.

[0110] Step 2: The target tool builds a coal mine power supply system model based on the sketch. The coal mine power supply system model is used to enable the target tool to understand the content of the sketch. The coal mine power supply system model includes: device nodes and the relationship between all device nodes; the target tool is a tool for automatically generating a coal mine power supply system diagram.

[0111] After obtaining the coal mine power supply system sketch, the target tool can construct a coal mine power supply system model based on the sketch, and the coal mine power supply system model is used to make the target tool understand the content of the sketch. This is because the sketch is not drawn according to the requirements of the standard power supply system diagram, so it is impossible to directly generate a standard power supply system diagram. Therefore, the target tool needs to understand the content and meaning of this non-standard power supply system diagram before it can perform subsequent processing.

[0112] The coal mine power supply system model includes: equipment nodes and the relationship between all equipment nodes; the target tool is a tool for automatically generating a coal mine power supply system diagram.

[0113] Among them, the device node includes: device node number, device node type, parent node data, brother node data, and child node data. Device node types include: high-voltage switch type, high-voltage power equipment type, transformer type, low-voltage switch type, and low-voltage power equipment type. Parent node data includes: parent node number. Child node data includes: child node number.

[0114] A method for constructing a coal mine power supply system model based on a sketch with a better target tool includes the following sub-steps:

[0115] Sub-step 21: The target tool parses the sketch and adds a high-voltage switch node to the preset coal mine power supply system model;

[0116] Sub-step 22: the target tool parses the sketch and adds a transformer node or a high-voltage power equipment node as a child node of the high-voltage switch node in the preset coal mine power supply system model;

[0117] Sub-step 23: the target tool parses the sketch and adds a low-voltage switch node or a low-voltage power equipment node as a child node of the transformer node in the preset coal mine power supply system model;

[0118] Sub-step 24: the target tool parses the sketch, and adds a secondary low-voltage switch node or a secondary low-voltage power equipment node as a child node of the low-voltage switch node in the preset coal mine power supply system model;

[0119] Sub-step 25: the target tool parses the sketch and adds the low-level low-voltage power equipment node as a child node of the secondary low-voltage switch node in the preset coal mine power supply system model;

[0120] Sub-step 26: Complete the construction of the coal mine power supply system model.

[0121] The coal mine power supply system model can be constructed in the above manner. After the coal mine power supply system model is constructed based on the sketch on the target tool, the method further includes:

[0122] When it is necessary to add, delete, or modify at least one of the operations on any device node in the coal mine power supply system model, it is necessary to re-execute the above steps 1 and 2; when it is not necessary to add, delete, or modify any of the device nodes in the coal mine power supply system model, continue to execute step 3 after step 2.

[0123] That is, after the coal mine power supply system model is constructed, there may be a device node that needs to be added, deleted, or modified. At this time, the operation cannot be performed directly in the coal mine power supply system model, but steps 1 and 2 need to be repeated to reconstruct the coal mine power supply system model. This ensures the accuracy of the subsequent coal mine power supply system diagram. If there is no need to add, delete, or modify any of the device nodes in the coal mine power supply system model, proceed to the subsequent steps.

[0124] Step 3: The target tool selects a style template from the coal mine power supply system style template library based on the coal mine power supply system model; or the target tool selects a target device node in the coal mine power supply system model, forms a new coal mine power supply system model and selects a style template from the coal mine power supply system style template library; wherein the coal mine power supply system style template library includes: several types of style templates, the style templates include: the corresponding relationship between the shape of each device in the coal mine power supply system, the device number, the device shape, the device size, the device color, the device spacing, the relative position of the device, as well as the power supply system diagram border, the drawing label, the power supply system diagram title text, and the power supply system diagram layout method. The external manifestation of the style template is the power supply system diagram, which displays the power supply system diagram print frame, the power supply system diagram title text, the power supply system diagram layout method, the drawing label format and position, and the device shape and size information.

[0125] After the coal mine power supply system model is constructed, since the coal mine power supply system model may be generated for the power supply system of the entire coal mine, different choices need to be made according to the requirements for generating the coal mine power supply system diagram in the subsequent process.

[0126] For example, if you need to generate the overall power supply system diagram of the coal mine power supply system diagram later, the target tool can directly select a style template in the coal mine power supply system style template library based on the coal mine power supply system model. Or, if you need to generate the power supply system diagram of the lane in the coal mine power supply system diagram later, the target tool selects the target device node (i.e., the device node related to the lane) in the coal mine power supply system model, forms a new coal mine power supply system model, and selects a style template in the coal mine power supply system style template library.

[0127] Among them, the coal mine power supply system style template library includes: several types of style templates, which include: the corresponding relationship of each device shape in the coal mine power supply system, device number, device shape, device size, device color, device spacing, device relative position, as well as the power supply system diagram border, map label, power supply system diagram title text, and power supply system diagram layout. The power supply system diagram layout includes: the relative position of the root node device and the upper left corner of the power supply system diagram border, the spacing and relative position of the parent-child device, and the spacing and relative position of the brother device.

[0128] That is, the style template internally represents all the relevant contents of each device and their relationships as well as the relevant contents of the power supply system diagram. The external form of the style template is the power supply system diagram, which displays the power supply system diagram print frame, power supply system diagram title text, power supply system diagram layout, drawing label format and position, and equipment shape and size information. The style template can be used to convert the contents of the model obtained based on the non-standard power supply system diagram into all the contents required for the standard power supply system diagram.

[0129] For the target tool, a target device node is selected in the coal mine power supply system model to form a new coal mine power supply system model, which includes the following sub-steps:

[0130] Sub-step 31: Select the target device node;

[0131] Sub-step 32: Based on the selected target device node and all its sub-nodes, a new coal mine power supply system model is formed.

[0132] That is, when it is necessary to select a target device node to form a new coal mine power supply system model, it is directly formed on the basis of the existing coal mine power supply system model without repeating steps 1 and 2.

[0133] Step 4: The target tool parses the coal mine power supply system model and the selected style template to obtain the target data, which includes: power supply system diagram border, drawing label, power supply system diagram title text, power supply system diagram layout, type of equipment node, correspondence between each equipment shape, equipment number, equipment shape, equipment size, equipment color, equipment spacing, equipment relative position, information of each equipment in the corresponding sketch, and connection relationship between equipment.

[0134] After the style template is selected, the target tool analyzes the coal mine power supply system model and the selected style template to obtain the target data. A better method for the target tool to analyze the coal mine power supply system model and the selected style template includes the following sub-steps:

[0135] Sub-step 41: Analyze the coal mine power supply system model, find the root node, and obtain all device nodes;

[0136] Sub-step 42: Parse the selected style template to obtain the power supply system diagram border, diagram label, power supply system diagram title text, power supply system diagram layout, device node type, corresponding relationship of each device shape, device number, device shape, device size, device color, device spacing, device relative position, information of each device in the corresponding sketch, and connection relationship between devices. In this way, the content in the model obtained based on the non-standard power supply system diagram is converted into all the content required for the standard power supply system diagram.

[0137] Step 5: The target tool automatically generates a preview image of the coal mine power supply system based on the target data.

[0138] After obtaining the target data, the target tool can automatically generate a preview image of the coal mine power supply system based on the target data.

[0139] A method for automatically generating a preview image of a coal mine power supply system based on the target data by a better target tool includes the following sub-steps:

[0140] Sub-step 51: setting the upper left corner of the preview image of the coal mine power supply system as the initial position, calculating the actual position of the frame according to the frame size of the power supply system image obtained by analysis, and drawing the frame;

[0141] Sub-step 52: Calculate the actual position of the image label according to the relative position between the image label and the upper left corner of the frame obtained by parsing, and draw the image label according to the image label format obtained by parsing;

[0142] Sub-step 53: Calculate the actual position of the power supply system diagram title text according to the relative position of the power supply system diagram title text and the upper left corner of the frame obtained by parsing, and draw the power supply system diagram title text according to the size of the power supply system diagram title text obtained by parsing;

[0143] Sub-step 54: according to the relative position of the root device and the upper left corner of the frame obtained by parsing, the corresponding relationship between the root node device type in the coal mine power supply system model and the device shape in the style template, the device number, the device shape, the device size, and the device color, according to the relative position of the root node device and the upper left corner of the frame, calculate the actual position of the root node, and draw the root node in the coal mine power supply system model at the actual position;

[0144] Sub-step 55: Calculate the actual positions of all child nodes according to the actual position of the root node device, combined with the analyzed spacing and relative positions of the parent-child devices and the brother devices, the device shape, and the device color, and draw all child nodes of the root node in the coal mine power supply system model at the actual positions;

[0145] Sub-step 56: according to the parent node number, the brother node number, and the child node number stored in the coal mine power supply system model, obtain the connection relationship between the current device and the parent device, and between the brother device and the child device, draw orthogonal cable symbols, and connect these devices;

[0146] Sub-step 57: Generate a preview image of the coal mine power supply system.

[0147] Step 6: If no modification is required, the preview image of the coal mine power supply system is used as the coal mine power supply system diagram; if modification is required, modification is performed and the modified preview image of the coal mine power supply system is used as the coal mine power supply system diagram.

[0148] After obtaining the preview image of the coal mine power supply system, if no modification is required, the preview image of the coal mine power supply system is used as the coal mine power supply system diagram; if modification is required, the modification is performed and the modified preview image of the coal mine power supply system is used as the coal mine power supply system diagram.

[0149] Through the method of steps 1 to 6 above, the traditional idea of ​​directly drawing the coal mine power supply system diagram is abandoned. Not only the equipment is arranged reasonably, neatly, beautifully, and coordinated, the cables are orthogonal, and the legends and annotations match, but also it does not require a lot of manual effort and a lot of work to deal with the details, which can significantly improve the drawing efficiency.

[0150] Based on the above method for automatically generating a coal mine power supply system diagram, the embodiment of the present invention also provides a device for automatically generating a coal mine power supply system diagram, referring to Figure 3 As shown, the device comprises:

[0151] A sketch drawing coal mine module 310 is used to draw a sketch of the coal mine power supply system, wherein the sketch is a non-standard power supply system diagram, which includes: symbols of all equipment in the coal mine power supply system and their connection relationships;

[0152] A coal mine construction module 320 is used to construct a coal mine power supply system model based on the sketch, wherein the coal mine power supply system model is used to enable the target tool to understand the content of the sketch, and the coal mine power supply system model includes: device nodes and the relationship between all device nodes; the target tool is a tool for automatically generating a coal mine power supply system diagram;

[0153] A coal mine style module 330 is selected, which is used to select a style template in a coal mine power supply system style template library based on the coal mine power supply system model; or the target tool selects a target device node in the coal mine power supply system model, forms a new coal mine power supply system model and selects a style template in the coal mine power supply system style template library; wherein the coal mine power supply system style template library includes: several types of style templates, the style templates include: the corresponding relationship of each device shape in the coal mine power supply system, the device number, the device shape, the device size, the device color, the device spacing, the relative position of the device, and the power supply system diagram border, the drawing label, the power supply system diagram title text, and the power supply system diagram layout mode, the external manifestation of the style template is the power supply system diagram, and the power supply system diagram displays the power supply system diagram print frame, the power supply system diagram title text, the power supply system diagram layout mode, the drawing label format and position, and the device shape and size information;

[0154] The device node includes: device node number, device node type, parent node data, brother node data, child node data; the device node type includes: high voltage switch type, high voltage power equipment type, transformer type, low voltage switch type, low voltage power equipment type; the parent node data includes: parent node number; the brother node data includes: brother node number; the child node data includes: child node number;

[0155] The layout of the power supply system diagram includes: the relative position of the root node device and the upper left corner of the power supply system diagram frame, the distance between the parent and child devices and the relative position, and the distance between the sibling devices and the relative position.

[0156] The parsing module 340 is used to parse the coal mine power supply system model and the selected style template to obtain target data, which includes: the power supply system diagram border, the drawing label, the power supply system diagram title text, the power supply system diagram layout mode, the type of the device node, the corresponding relationship of each device shape, the device number, the device shape, the device size, the device color, the device spacing, the relative position of the device, the information of each device in the corresponding sketch, and the connection relationship between the devices;

[0157] An automatic generation module 350, configured to automatically generate a preview image of a coal mine power supply system based on the target data;

[0158] The automatic generation module 350 is also used to use the preview image of the coal mine power supply system as the coal mine power supply system diagram if no modification is required, and to modify it if modification is required, and use the modified preview image of the coal mine power supply system as the coal mine power supply system diagram.

[0159] Optionally, the sketch coal mine drawing module 310 is specifically used to perform the following sub-steps:

[0160] Sub-step 11: Draw n high-voltage switch symbols, where n is a positive integer;

[0161] Sub-step 12: Draw a transformer symbol or a high-voltage electrical equipment symbol below the high-voltage switch symbol, and connect the high-voltage switch symbol and the transformer symbol or connect the high-voltage switch symbol and the high-voltage electrical equipment symbol;

[0162] Sub-step 13: Draw a low-voltage switch symbol or a low-voltage electrical equipment symbol under the transformer symbol, and connect the transformer symbol and the low-voltage symbol or connect the transformer symbol and the low-voltage electrical equipment symbol;

[0163] Sub-step 14: Draw a secondary low-voltage switch symbol or a secondary low-voltage electrical equipment symbol below the low-voltage switch symbol, and connect the low-voltage switch symbol and the secondary low-voltage switch symbol or connect the low-voltage switch symbol and the secondary low-voltage electrical equipment symbol;

[0164] Sub-step 15: Draw a low-level low-voltage electrical equipment symbol below the secondary low-voltage switch symbol, and connect the secondary low-voltage switch symbol and the low-level low-voltage electrical equipment symbol;

[0165] Sub-step 16: Complete drawing of the sketch.

[0166] Optionally, the coal mine construction module 320 is specifically used to perform the following sub-steps:

[0167] Sub-step 21: the target tool parses the sketch and adds a high-voltage switch node to a preset coal mine power supply system model;

[0168] Sub-step 22: the target tool parses the sketch, and adds a transformer node or a high-voltage electrical equipment node as a child node of the high-voltage switch node in the preset coal mine power supply system model;

[0169] Sub-step 23: the target tool parses the sketch, and adds a low-voltage switch node or a low-voltage electrical equipment node as a child node of the transformer node in the preset coal mine power supply system model;

[0170] Sub-step 24: the target tool parses the sketch, and adds a secondary low-voltage switch node or a secondary low-voltage electrical equipment node as a child node of the low-voltage switch node in the preset coal mine power supply system model;

[0171] Sub-step 25: the target tool parses the sketch, and adds a low-level low-voltage electrical equipment node as a child node of a secondary low-voltage switch node in the preset coal mine power supply system model;

[0172] Sub-step 26: Complete the construction of the coal mine power supply system model.

[0173] Optionally, the coal mine style selection module 330 is specifically used to perform the following sub-steps:

[0174] Sub-step 31: Select the target device node;

[0175] Sub-step 32: Based on the selected target device node and all its sub-nodes, the new coal mine power supply system model is formed.

[0176] Optionally, the parsing module 340 is specifically configured to perform the following sub-steps:

[0177] Sub-step 41: parsing the coal mine power supply system model, finding the root node, and obtaining all device nodes;

[0178] Sub-step 42: Parse the selected style template to obtain the border of the power supply system diagram, the label, the title text of the power supply system diagram, the layout of the power supply system diagram, the type of device node, the corresponding relationship between each device shape, device number, device shape, device size, device color, device spacing, device relative position, information of each device in the corresponding sketch, and the connection relationship between devices.

[0179] Optionally, the automatic generation module 350 is specifically configured to perform the following sub-steps:

[0180] Sub-step 51: setting the upper left corner of the preview image of the coal mine power supply system as the initial position, calculating the actual position of the frame according to the frame size of the power supply system image obtained by analysis, and drawing the frame;

[0181] Sub-step 52: Calculate the actual position of the image label according to the relative position between the image label and the upper left corner of the frame obtained by parsing, and draw the image label according to the image label format obtained by parsing;

[0182] Sub-step 53: Calculate the actual position of the power supply system diagram title text according to the relative position of the power supply system diagram title text and the upper left corner of the frame obtained by parsing, and draw the power supply system diagram title text according to the size of the power supply system diagram title text obtained by parsing;

[0183] Sub-step 54: according to the relative position of the root device and the upper left corner of the frame obtained by parsing, the corresponding relationship between the root node device type in the coal mine power supply system model and the device shape in the style template, the device number, device shape, device size, and device color, according to the relative position of the root node device and the upper left corner of the frame, calculate the actual position of the root node, and draw the root node in the coal mine power supply system model at the actual position;

[0184] Sub-step 55: Calculate the actual positions of all child nodes according to the actual position of the root node device, combined with the spacing and relative positions, device shapes, and device colors of the parent-child devices and brother devices obtained by analysis, and draw all child nodes of the root node in the coal mine power supply system model at the actual positions;

[0185] Sub-step 56: according to the parent node number, the brother node number, and the child node number stored in the coal mine power supply system model, obtain the connection relationship between the current device and the parent device, and between the brother device and the child device, draw orthogonal cable symbols, and connect these devices;

[0186] Sub-step 57: Generate a preview image of the coal mine power supply system.

[0187] Through the above description, the method for automatically generating a coal mine power supply system diagram proposed by the present invention abandons the traditional idea of ​​directly drawing a coal mine power supply system diagram, but first draws a simple coal mine power supply system sketch, builds a coal mine power supply system model, so that the target tool understands the content of the sketch. Then select a preset template, parse to obtain the target data, and finally automatically generate a coal mine power supply system diagram that meets the requirements based on the target data. The system diagram generated by this method not only has reasonable, neat, beautiful, coordinated equipment placement, orthogonal cables, and matching legends with text, but also does not require a lot of manual effort. When adding new equipment to an existing diagram or modifying the placement of existing equipment, it is not necessary to move its own position, nor to move the position of surrounding equipment, and all related cables are not re-modified. It is only necessary to re-draw the sketch and build the coal mine power supply system model to re-establish an orthogonal relationship with the equipment, which greatly reduces the workload, can significantly improve the drawing efficiency, and has strong practicality.

[0188] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0189] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0190] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

Claims

1. A method for automatically generating a coal mine power supply system diagram, characterized in that: The method comprises: Step 1: Draw a coal mine power supply system sketch through a third-party tool, the sketch is a non-standard power supply system diagram, which includes: symbols of all equipment in the coal mine power supply system and their connection relationships; including the following sub-steps: Sub-step 11: Draw n high-voltage switch symbols, where n is a positive integer; Sub-step 12: Draw a transformer symbol or a high-voltage electrical equipment symbol below the high-voltage switch symbol, and connect the high-voltage switch symbol and the transformer symbol or connect the high-voltage switch symbol and the high-voltage electrical equipment symbol; Sub-step 13: Draw a low-voltage switch symbol or a low-voltage electrical equipment symbol under the transformer symbol, and connect the transformer symbol and the low-voltage switch symbol or connect the transformer symbol and the low-voltage electrical equipment symbol; Sub-step 14: Draw a secondary low-voltage switch symbol or a secondary low-voltage electrical equipment symbol below the low-voltage switch symbol, and connect the low-voltage switch symbol and the secondary low-voltage switch symbol or connect the low-voltage switch symbol and the secondary low-voltage electrical equipment symbol; Sub-step 15: Draw a low-level low-voltage electrical equipment symbol below the secondary low-voltage switch symbol, and connect the secondary low-voltage switch symbol and the low-level low-voltage electrical equipment symbol; Sub-step 16: completing the drawing of the sketch; Step 2: The target tool constructs a coal mine power supply system model based on the sketch, and the coal mine power supply system model is used to enable the target tool to understand the content of the sketch, and the coal mine power supply system model includes: device nodes and the relationship between all device nodes; the target tool is a tool for automatically generating a coal mine power supply system diagram; Step 3: The target tool selects a style template from the coal mine power supply system style template library based on the coal mine power supply system model; or the target tool selects a target device node in the coal mine power supply system model, forms a new coal mine power supply system model and selects a style template from the coal mine power supply system style template library; wherein the coal mine power supply system style template library includes: several types of style templates, the style templates include: the corresponding relationship of each device shape in the coal mine power supply system, the device number, the device shape, the device size, the device color, the device spacing, the device relative position, and the power supply system diagram border, the label, the power supply system diagram title text, the power supply system diagram layout mode, the label format and position, and the device shape and size information; the power supply system diagram layout mode includes: the relative position of the root node device and the upper left corner of the power supply system diagram border, the parent-child device spacing and relative position, and the brother device spacing and relative position; Step 4: The target tool parses the coal mine power supply system model and the selected style template to obtain target data, which includes: power supply system diagram border, drawing label, power supply system diagram title text, power supply system diagram layout, type of device node, corresponding relationship of each device shape, device number, device shape, device size, device color, device spacing, relative position of devices, information of each device in the corresponding sketch, and connection relationship between devices; Step 5: The target tool automatically generates a preview image of the coal mine power supply system based on the target data; including the following sub-steps: Sub-step 51: setting the upper left corner of the preview image of the coal mine power supply system as the initial position, calculating the actual position of the frame according to the frame size of the power supply system diagram obtained by analysis, and drawing the frame; Sub-step 52: Calculate the actual position of the image label according to the relative position between the image label and the upper left corner of the frame obtained by parsing, and draw the image label according to the image label format obtained by parsing; Sub-step 53: Calculate the actual position of the power supply system diagram title text according to the relative position of the power supply system diagram title text and the upper left corner of the frame obtained by parsing, and draw the power supply system diagram title text according to the size of the power supply system diagram title text obtained by parsing; Sub-step 54: according to the relative position of the root device and the upper left corner of the frame obtained by parsing, the corresponding relationship between the root node device type in the coal mine power supply system model and the device shape in the style template, the device number, device shape, device size, and device color, according to the relative position of the root node device and the upper left corner of the frame, calculate the actual position of the root node, and draw the root node in the coal mine power supply system model at the actual position; Sub-step 55: Calculate the actual positions of all child nodes according to the actual position of the root node device, combined with the spacing and relative positions, device shapes, and device colors of the parent-child devices and brother devices obtained by analysis, and draw all child nodes of the root node in the coal mine power supply system model at the actual positions; Sub-step 56: according to the parent node number, the brother node number, and the child node number stored in the coal mine power supply system model, obtain the connection relationship between the current device and the parent device, and between the brother device and the child device, draw orthogonal cable symbols, and connect these devices; Sub-step 57: generating a preview image of the coal mine power supply system; Step 6: If no modification is required, the preview image of the coal mine power supply system is used as the coal mine power supply system diagram; if modification is required, modification is performed and the modified preview image of the coal mine power supply system is used as the coal mine power supply system diagram.

2. The method according to claim 1, characterized in that After constructing the coal mine power supply system model based on the sketch on the target tool, the method further includes: When it is necessary to perform at least one of adding, deleting, and modifying any device node in the coal mine power supply system model, re-execute step 1 and step 2; When there is no need to perform any operation of adding, deleting or modifying any device node in the coal mine power supply system model, step 3 is executed.

3. The method according to claim 1, characterized in that The device node includes: device node number, device node type, parent node data, brother node data, and child node data; The device node types include: high voltage switch type, high voltage electrical equipment type, transformer type, low voltage switch type, low voltage electrical equipment type; The parent node data includes: parent node number; The brother node data includes: brother node number; The sub-node data includes: a sub-node number.

4. The method according to claim 1, characterized in that The target tool constructs a coal mine power supply system model based on the sketch, including the following sub-steps: Sub-step 21: the target tool parses the sketch and adds a high-voltage switch node to a preset coal mine power supply system model; Sub-step 22: the target tool parses the sketch, and adds a transformer node or a high-voltage electrical equipment node as a child node of the high-voltage switch node in the preset coal mine power supply system model; Sub-step 23: the target tool parses the sketch, and adds a low-voltage switch node or a low-voltage electrical equipment node as a child node of the transformer node in the preset coal mine power supply system model; Sub-step 24: the target tool parses the sketch, and adds a secondary low-voltage switch node or a secondary low-voltage electrical equipment node as a child node of the low-voltage switch node in the preset coal mine power supply system model; Sub-step 25: the target tool parses the sketch, and adds a low-level low-voltage electrical equipment node as a child node of a secondary low-voltage switch node in the preset coal mine power supply system model; Sub-step 26: Complete the construction of the coal mine power supply system model.

5. The method according to claim 1, characterized in that: The target tool selects a target device node in the coal mine power supply system model to form a new coal mine power supply system model, including the following sub-steps: Sub-step 31: Select the target device node; Sub-step 32: Based on the selected target device node and all its sub-nodes, the new coal mine power supply system model is formed.

6. The method according to claim 1, characterized in that The target tool analyzes the coal mine power supply system model and the selected style template and includes the following sub-steps: Sub-step 41: parsing the coal mine power supply system model, finding the root node, and obtaining all device nodes; Sub-step 42: Parse the selected style template to obtain the border of the power supply system diagram, the label, the title text of the power supply system diagram, the layout of the power supply system diagram, the type of device node, the corresponding relationship between each device shape, device number, device shape, device size, device color, device spacing, device relative position, information of each device in the corresponding sketch, and the connection relationship between devices.

7. A device for automatically generating a coal mine power supply system diagram, characterized in that: The device comprises: The sketch drawing coal mine module is used to draw a sketch of the coal mine power supply system, and the sketch is a non-standard power supply system diagram, which includes: symbols of all equipment in the coal mine power supply system and their connection relationships; the sketch drawing coal mine module is specifically used to perform the following sub-steps: Sub-step 11: draw n high-voltage switch symbols, where n is a positive integer; Sub-step 12: Draw a transformer symbol or a high-voltage electrical equipment symbol below the high-voltage switch symbol, and connect the high-voltage switch symbol and the transformer symbol or connect the high-voltage switch symbol and the high-voltage electrical equipment symbol; Sub-step 13: Draw a low-voltage switch symbol or a low-voltage electrical equipment symbol under the transformer symbol, and connect the transformer symbol and the low-voltage switch symbol or connect the transformer symbol and the low-voltage electrical equipment symbol; Sub-step 14: Draw a secondary low-voltage switch symbol or a secondary low-voltage electrical equipment symbol below the low-voltage switch symbol, and connect the low-voltage switch symbol and the secondary low-voltage switch symbol or connect the low-voltage switch symbol and the secondary low-voltage electrical equipment symbol; Sub-step 15: Draw a low-level low-voltage electrical equipment symbol below the secondary low-voltage switch symbol, and connect the secondary low-voltage switch symbol and the low-level low-voltage electrical equipment symbol; Sub-step 16: completing the drawing of the sketch; Constructing a coal mine module, which is used to construct a coal mine power supply system model based on the sketch, wherein the coal mine power supply system model is used to enable the target tool to understand the content of the sketch, and the coal mine power supply system model includes: device nodes and the relationship between all device nodes; the target tool is a tool for automatically generating a coal mine power supply system diagram; A coal mine style module is selected to select a style template in a coal mine power supply system style template library based on the coal mine power supply system model; or the target tool selects a target device node in the coal mine power supply system model, forms a new coal mine power supply system model and selects a style template in the coal mine power supply system style template library; wherein the coal mine power supply system style template library includes: several types of style templates, the style templates include: the corresponding relationship between the shape of each device in the coal mine power supply system, the device number, the device shape, the device size, the device color, the device spacing, the relative position of the device, and the power supply system diagram border, the label, the power supply system diagram title text, and the power supply system diagram layout method; the external manifestation of the style template is a power supply system diagram, which displays the power supply system diagram print frame, the power supply system diagram title text, the power supply system diagram layout method, the label format and position, and the device shape and size information; the power supply system diagram layout method includes: the relative position of the root node device and the upper left corner of the power supply system diagram border, the parent-child device spacing and relative position, and the brother device spacing and relative position; A parsing module is used to parse the coal mine power supply system model and the selected style template to obtain target data, which includes: a power supply system diagram border, a drawing label, a power supply system diagram title text, a power supply system diagram layout mode, the type of the device node, the corresponding relationship of each device shape, the device number, the device shape, the device size, the device color, the device spacing, the relative position of the device, the information of each device in the corresponding sketch, and the connection relationship between the devices; An automatic generation module is used to automatically generate a preview image of the coal mine power supply system based on the target data; the automatic generation module is specifically used to perform the following sub-steps: Sub-step 51: setting the upper left corner of the preview image of the coal mine power supply system as the initial position, calculating the actual position of the frame according to the frame size of the power supply system diagram obtained by analysis, and drawing the frame; Sub-step 52: Calculate the actual position of the image label according to the relative position between the image label and the upper left corner of the frame obtained by parsing, and draw the image label according to the image label format obtained by parsing; Sub-step 53: Calculate the actual position of the power supply system diagram title text according to the relative position of the power supply system diagram title text and the upper left corner of the frame obtained by parsing, and draw the power supply system diagram title text according to the size of the power supply system diagram title text obtained by parsing; Sub-step 54: according to the relative position of the root device and the upper left corner of the frame obtained by parsing, the corresponding relationship between the root node device type in the coal mine power supply system model and the device shape in the style template, the device number, device shape, device size, and device color, according to the relative position of the root node device and the upper left corner of the frame, calculate the actual position of the root node, and draw the root node in the coal mine power supply system model at the actual position; Sub-step 55: Calculate the actual positions of all child nodes according to the actual position of the root node device, combined with the spacing and relative positions, device shapes, and device colors of the parent-child devices and brother devices obtained by analysis, and draw all child nodes of the root node in the coal mine power supply system model at the actual positions; Sub-step 56: according to the parent node number, the brother node number, and the child node number stored in the coal mine power supply system model, obtain the connection relationship between the current device and the parent device, and between the brother device and the child device, draw orthogonal cable symbols, and connect these devices; Sub-step 57: generating a preview image of the coal mine power supply system; The automatic generation module is also used to use the preview image of the coal mine power supply system as the coal mine power supply system diagram if no modification is required, and to modify it if modification is required, and use the modified preview image of the coal mine power supply system as the coal mine power supply system diagram.

Citation Information

Patent Citations

  • Accident tree graph digital analysis method and accident tree graph digital analysis tool both applied to coal mine safety evaluation

    CN103294877A

  • Parametric underground coal mine power supply design method

    CN110059394A

  • Generation method of power system diagram in distribution network power receiving project

    CN112949975A

  • System for optimizing power network design reliability

    US5798939A