A distribution network automatic drawing method and system based on TSN network

Through the automatic drawing method of distribution network based on TSN network, the drawing data model is constructed and updated, which solves the problems of inefficiency and inability to realize real-time monitoring of traditional drawing methods, and achieves high accuracy and real-time graphics drawing and management of distribution network elements.

CN119378174BActive Publication Date: 2025-04-11SHANDONG UNIV OF SCI & TECH +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411942099.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-27
Publication Date
2025-04-11
Estimated Expiration
2044-12-27

AI Technical Summary

Technical Problem

The traditional distribution network wiring diagram drawing method is complicated and inefficient, and it is prone to drawing errors, and it is impossible to realize real-time monitoring and dynamic management of the distribution network.

Method used

The automatic drawing method of distribution network based on TSN network is adopted, and a comprehensive description and dynamic update of distribution network equipment devices are achieved by constructing a drawing data model (position model, graphic model and relational model) and sending it to the computer system through the TSN network.

Benefits of technology

It improves the accuracy and real-time drawing of distribution network element graphics, realizes real-time monitoring and dynamic management of distribution networks, and improves operating efficiency and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119378174B_ABST
    Figure CN119378174B_ABST
Patent Text Reader

Abstract

The present invention belongs to the technical field of distribution network, and specifically discloses a distribution network automatic drawing method and system based on TSN network. The present invention proposes a new drawing method, that is, a method in which a data model is given by a distribution network device, a host computer system can automatically distinguish the data model type, and display the monitoring data obtained by the distribution network device and a method for automatically drawing distribution network graphics primitives. By introducing the TSN network, real-time transmission, monitoring and dynamic processing of distribution network data are performed. The method of the present invention utilizes the high-precision time synchronization characteristics of the TSN network to ensure that the data of each device in the distribution network can be consistent in time, and realizes the accurate generation and real-time update of the distribution network wiring diagram. At the same time, the deterministic data transmission capability of the TSN network also ensures the reliable transmission of data, further improving the operating efficiency and reliability of the distribution network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of distribution network, and relates to a distribution network automatic drawing method and system based on TSN network. Background Art

[0002] With the rapid development of the power industry, the scale of the power system is becoming increasingly large, and the number of equipment in the distribution network is increasing dramatically, which has brought unprecedented challenges to the operation, management and maintenance of the distribution network. Therefore, it is particularly important to draw the wiring diagram of the distribution network. It can help managers intuitively and clearly understand the layout and equipment connection of the entire distribution network, so as to more effectively carry out operation monitoring, troubleshooting and daily maintenance work, and ensure the safe and stable operation of the power system.

[0003] The traditional way of drawing distribution network wiring diagrams mainly relies on computer drawing software for manual drawing and follows certain drawing rules and principles. However, in fact, not every device in the distribution network is in operation. If the distribution network is changed, the drawings must be redrawn. It can be seen that the traditional way of drawing distribution network wiring diagrams is not only cumbersome and inefficient, but also prone to drawing errors when facing many substations and equipment. In addition, this distribution network wiring drawing method can only statically display the topological structure of the distribution network, and cannot achieve real-time monitoring and dynamic management of the distribution network. Summary of the invention

[0004] The purpose of the present invention is to propose a method for automatic drawing of distribution network based on TSN network, so as to realize comprehensive description and dynamic update of distribution network equipment and devices, and at the same time improve the accuracy and real-time performance of drawing distribution network graphics.

[0005] In order to achieve the above object, the present invention adopts the following technical scheme:

[0006] A distribution network automatic drawing method based on a TSN network includes the following steps: Step 1. The equipment devices in each substation in the distribution network construct a drawing data model and send it to a host computer system through the TSN network; wherein the drawing data model includes a position model, a graphic model and a relationship model; the position model is used to describe the position attribute of the equipment device in the distribution network; the graphic model is used to describe the type, quantity and position attribute changes of the host computer graphic element corresponding to the equipment device in the distribution network, which includes a busbar graphic model, an input graphic model and an output graphic model; the relationship model is used to describe the upper and lower connection relationship between different substations; Step 2. After receiving the drawing data model sent by the TSN network, the host computer system parses the drawing data model and extracts the position model, graphic model and relationship model in the drawing data model; then, the host computer system converts the extracted position model, graphic model and relationship model into the form of a data model array allarray, and uses an automatic drawing method to draw the graphic element in the host computer automatic drawing area.

[0007] The processing process of the method for automatically drawing graphics of multi-substation power grid primitives is as follows: first, traverse the data model array allarray, extract the array allarray into subarrays of different substations, define the subarray numbers, and put them into the single-layer array array1 to be processed after the definition is completed; remove the redundant empty arrays in the single-layer array array1 to be processed, and form the array array2; secondly, create i drawing interfaces according to the size and length of the array array2, where i is a natural number; set a loop variable j, define the initial value of j to be 1, select the drawing interface numbered j, call the jth subarray in the array array2, and automatically draw the graphics of the single-substation power grid primitives; in the process of automatically drawing the graphics of the single-substation power grid primitives, calculate the number of buses in a single substation according to the drawing data model of the distribution network equipment, and automatically draw the graphics of a single bus; after drawing the graphics and primitives of a substation, update the value of j, set j=j+1, and compare the size of j with i; if j>i, end the automatic drawing; if j≤i, return to continue drawing the next drawing interface.

[0008] In addition, based on the above-mentioned distribution network automatic drawing method based on TSN network, the present invention also proposes a corresponding distribution network automatic drawing system based on TSN network, which adopts the following technical solutions:

[0009] A distribution network automatic drawing system based on TSN network includes various equipment devices in the distribution network, TSN network and host computer system, wherein each equipment device in the distribution network communicates with the host computer system through the TSN network; each equipment device in the distribution network has its own drawing data model; when the host computer system receives and parses the drawing data model transmitted by the TSN network, the distribution network automatic drawing operation is completed according to the distribution network automatic drawing method based on the TSN network as described above.

[0010] The present invention has the following advantages:

[0011] As described above, the present invention relates to a method for automatic drawing of distribution networks based on TSN networks. The method proposes a new method for automatic drawing of distribution networks, that is, a method for automatically drawing distribution network graphics based on a drawing data model established by equipment in the distribution network. By establishing a drawing data model (position model, graphic model and relationship model), a comprehensive description and dynamic update of distribution network equipment is achieved. The present invention uses the TSN network for data transmission and processing, ensuring high-precision time synchronization and determinism of data and priority scheduling capabilities of data, and improving the accuracy and real-time performance of drawing distribution network graphics. The present invention also establishes an information data model for equipment in the distribution network, and uses the TSN network to achieve real-time monitoring and dynamic management of the distribution network, thereby improving the operating efficiency and reliability of the distribution network. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 The figure is an overall block diagram of a method for automatically drawing a distribution network based on a TSN network in an embodiment of the present invention.

[0013] Figure 2 Schematic diagram of location nodes in a location model in an embodiment of the present invention.

[0014] Figure 3 The present invention is a flowchart of a method for automatically drawing graphics of power grid elements of a multi-transformer substation in an embodiment of the present invention.

[0015] Figure 4 The present invention is a flowchart of automatic drawing of single substation power grid element graphics in an embodiment of the present invention.

[0016] Figure 5 The figure is a schematic diagram of the automatic drawing of the power grid element graphics of a single substation in an embodiment of the present invention.

[0017] Figure 6 This is a flow chart of automatic drawing of a single busbar graph in an embodiment of the present invention.

[0018] Figure 7 It is a schematic diagram of the automatic drawing of a single busbar graph in an embodiment of the present invention.

[0019] Figure 8 The flowchart of monitoring the state of the power distribution network in an embodiment of the present invention.

[0020] Fig. 9 It is a structural block diagram of a distribution network automatic drawing system based on a TSN network in an embodiment of the present invention. DETAILED DESCRIPTION

[0021] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments:

[0022] Example 1

[0023] This embodiment 1 proposes a method for automatic drawing of distribution network based on TSN network, which provides a method for automatically distinguishing data model types, displaying monitoring data acquired by distribution network equipment and automatically drawing distribution network primitive graphics by a data model given by distribution network equipment, and introducing TSN network for real-time transmission, monitoring and dynamic processing of distribution network data. Specifically, the method of the present invention first establishes a drawing data model and an information data model of distribution network equipment on the basis of analyzing the structure and composition of the distribution network; then obtains the original data of the equipment in real time through the TSN network, and parses it into a data model of the required information in the host computer system; then generates distribution network primitive graphics according to the drawing data model, including the representation of the position model, the graphic model and the relationship model, and realizes automatic drawing of distribution network using the generated primitive graphics. In addition, according to the information data model, through the analysis of the model by the host computer system, the time synchronization and data determinism technology of the TSN network are used to realize real-time monitoring and dynamic regulation of the data of distribution network equipment. Traditional Ethernet networks cannot guarantee data transmission within a certain time. TSN can ensure deterministic time delay and low jitter of transmission by adopting a mechanism based on preemptive priority and time gap. In view of the data complexity in the distribution network equipment and the requirements for time synchronization performance, TSN can meet the application requirements with high real-time and deterministic requirements.

[0024] like Figure 1 As shown, the automatic drawing method of the distribution network based on the TSN network in this embodiment includes the following steps:

[0025] Step 1. The equipment devices in each substation in the distribution network are constructed with a drawing data model and an information data model (the information data model will be described in detail below) and sent to the host computer system through the TSN network.

[0026] The TSN network ensures high-precision time synchronization and determinism of data transmission, ensuring the accuracy and real-time performance of the data model.

[0027] In order to distinguish the data model type sent by the power grid equipment to the host computer system, the drawing data model and the information data model sent to the host computer system are both provided with specific headers to avoid confusion.

[0028] The header is composed of four hexadecimal arrays. Take the drawing data model of a bus as an example: T= FF FF 0000 Busbar1. FF FF 00 00 is the drawing data model header, and Busbar1 represents a bus.

[0029] The distribution network is mainly composed of busbars, bus tie switches, feed-in switches, and feed-out switches through different number of permutations and combinations. In order to describe the distribution network, the drawing data model of the distribution network equipment is uniformly defined in the format of "domain group".

[0030] Take the drawing data model of one busbar as an example: "Busbar1 = [position model, graphic model, relationship model, position model, graphic model, ...]". The position model, graphic model and relationship model are all "domains", each of which is composed of multiple "subdomains", and the smallest "domain" is a binary number.

[0031] The drawing data model is built by parsing the raw data sent by the distribution network equipment through the TSN network. Each data model consists of "domains", and each "domain" consists of multiple binary numbers. Specifically, the drawing data model in this embodiment includes three types: position model, graphic model and relationship model. The position model is used to describe the position of the substation to which the equipment belongs in the entire distribution network. The graphic model is used to describe the changes in the type, quantity and position attributes of the upper computer graphic element corresponding to the equipment in the distribution network, which includes busbar graphic models, feed-in graphic models and feed-out graphic models. The relationship model is used to describe the feed-in and feed-out between different levels of substations in a multi-level substation, that is, the upper and lower connection relationship.

[0032] The location model consists of multiple levels of "subdomains" in the "domain". Each "subdomain" consists of binary numbers of different digits. The "sum" of multiple levels of "subdomains" jointly defines the location attributes of the equipment in the distribution network. The location data transmitted through the TSN network enables the upper level and system to obtain the location model of each distribution network device in real time, thereby ensuring the accuracy of the distribution network graphics.

[0033] The graphic model consists of a "category domain" and a "location attribute domain". The "category domain" is defined as four types: busbar, bus tie switch, infeed device, and outfeed device. The location attribute represents the actual number and logical position of various devices in the substation to which they belong. Through the TSN network, the changes in the type, quantity, and location attributes of the distribution network equipment can be transmitted to the host system in real time, thereby dynamically updating the graphic model.

[0034] The relational model describes the connection relationship between substations at different levels in a multi-level substation, and realizes the description of the feed-in and feed-out relationship between different substations, thereby connecting the distribution network into a whole. When it is necessary to describe the connection relationship between substations at different levels in a multi-level substation, it is necessary to associate the location model and graphic model of the upper-level substation with the location model and graphic model of the lower-level substation. Through the TSN network, the connection relationship changes between different substations can be obtained in real time, and the relational model can be dynamically updated.

[0035] The number and size of "domains", "subdomains", and binary digits can be modified according to actual needs. The number of "subdomains" or the number of binary digits in a "subdomain" of a location model, a graph model, or a relationship model can be increased or deleted according to actual needs.

[0036] The symbol for defining a "domain" is Š; the symbol for defining a "subdomain" is š; then:

[0037] ; .

[0038] In the formula, Represents a domain; Indicates domain; Indicates a subdomain; Indicates the number of subdomains; represents the smallest subdomain; Represents a binary number; Represents a binary digit.

[0039] Define the sum operation of a "domain" or "subdomain", which means that multiple "domains" or "subdomains" jointly define the properties of the device:

[0040] ; .

[0041] In the formula, is the domain concatenation operator.

[0042] The two fields are concatenated to form a new field, the binary bits are arranged in the order, and the length of the field is the sum of the two fields.

[0043] For the convenience of description, it is necessary to define the location model of each device. The location model consists of multiple "subdomains", each of which consists of binary numbers of different digits. The specific location model is:

[0044] ; In each location model, the next "subdomain" is the child of the previous "subdomain", that is, the location of the substation to which the equipment belongs in the distribution network is:

[0045] .

[0046] Take a device location model as an example: "1,0001,0010,1111".

[0047] This location model consists of four levels: level "1", level "0001", level "0010" and level "1111". The first subdomain "1" of the location model represents the largest level; the second subdomain "0001" represents a location node under the parent level "1"; the third subdomain "0010" represents a location node under level "1" and level "0001"; the fourth subdomain "1111" represents a location node under level "1", level "0001" and level "0010".

[0048] The location node described by this location model is the "1111" substation under level "1", "0001", and "0010". That is, the location description is: ; This location node is shown as follows Figure 2 , here the maximum number of position nodes at each level is defined as 15. Figure 2 Not most of them were drawn.

[0049] If it represents the substation of the "0001" level node, let the "subdomain" after the "0001" node be 0, such as: "1,0001,0000,0000". This location model consists of 4 levels, including "1" level and "0001" level. The first subdomain "1" of the location model represents the largest level; the second subdomain "0001" represents a location node under the parent level "1" level; the location node described by this location model is the "0001" substation under the "1" level; that is, the location description is: .

[0050] If it is necessary to represent more levels and numbers of substations, the number of "subdomains" and the number of binary bits of the smallest "subdomain" can be expanded according to the actual situation. The expansion is based on this method, and the meaning represented by the model is as described in the above example.

[0051] For the convenience of description, a graphical model of distribution network equipment is defined. The graphical model consists of multiple "subdomains", each of which consists of binary numbers of different digits. The specific location model is:

[0052] .

[0053] According to the category of distribution network equipment, there are three types of equipment: busbar type, feed-in type, and feed-out type. The equipment "type field" is described by a two-digit binary number: 00 represents busbar type; 01 represents feed-in type, and 10 represents feed-out type. If more types of equipment need to be represented, the number of binary digits representing the "equipment type" field can be expanded according to actual conditions, and the above method can be used for analogy.

[0054] The location attribute represents the actual number and logical location of each device in the substation, and its expansion method is described in the following categories.

[0055] I. Busbar graphic model.

[0056] The "category domain" that defines the bus class graphic model is described by two binary digits, that is, 00 is the bus class.

[0057] The "position attribute domain" consists of four binary digits. The maximum number of buses is 4. 00, 01, 10, and 11 are used to describe the first bus, the second bus, the third bus, and the fourth bus respectively. The first two digits of the binary digit in the "position attribute domain" represent the first bus, and the last two digits represent the last bus. The four binary digits together describe the bus tie switch. The model is expressed as follows:

[0058] .

[0059] Take a busbar model as an example: The information fed back by the model is: the type of graphic represented is busbar type; there are three busbars in the substation at this location node; it represents the bus tie switch between the second busbar and the third busbar.

[0060] If more sections of busbars and bus-tie switches need to be represented, the number of binary digits of the "position attribute domain" can be expanded according to the actual situation. The above method can be used for expansion, and the meaning represented by the model is as described in the above example.

[0061] II. Feeding Class Graphical Model.

[0062] The "category domain" that defines the feed-in class graphical model is described by two binary digits, that is, 01 is the feed-in class.

[0063] The "position attribute domain" consists of two binary digits; the maximum number of buses is 4, and the feed-in switch positions are 00, 01, 10, and 11 to describe the first bus, the second bus, the third bus, and the fourth bus feed-in respectively. The model is:

[0064] .

[0065] Take a feed-in class model as an example: The information fed back by the model is: the type of graphic represented is the feed-in type, which means that the power feed of the substation is fed from the second busbar.

[0066] If more segments of feed-in switches need to be represented, the number of binary digits of the "position attribute domain" can be expanded according to actual conditions. The expansion is based on the above method and the meaning represented by the model is as described in the above example.

[0067] III. Feedback Graphical Model.

[0068] The "category domain" that defines the feed-out class graphical model is described by two binary digits, that is, 10 is the feed-out class.

[0069] The "location attribute domain" consists of six binary digits. The maximum number of buses is defined as 4. The first two digits of the binary digits of the "location attribute domain" are 00, 01, 10, and 11, which respectively describe the first bus segment, the second bus segment, the third bus segment, and the fourth bus segment. The last four digits of the binary digits of the "location attribute domain" represent the actual number and logical position of the feeder-type devices under the i-th bus segment:

[0070] .

[0071] Take a feed-type model as an example: , 01 represents the second bus section, and 0010 represents the third device. The information fed back by the model is: the type of the graphic model is the feed-out type, representing the third device fed from the second bus section.

[0072] If it is necessary to represent more busbar feed-ins and more feed-out switches, the binary digits of the "position attribute domain" can be expanded according to the actual situation. The above method can be used for the expansion, and the meaning represented by the model is as described in the above example.

[0073] When describing the relationship between different substations, that is, describing the relationship model between different substations, it is necessary to associate the location model and graphic model of the upper-level substation with the location model and graphic model of the lower-level substation:

[0074] .

[0075] in, Represents one or a group of hexadecimal numbers. Take a drawing data model as an example:

[0076] "1,0001,0010,0000,10,000000,ff,0001,0010,0001,01,00".

[0077] The first half of the drawing model represents the association between the position model and the graphic model, representing the outgoing line position of the upper substation; the second half of the drawing model represents the association between the position model and the graphic model, representing the incoming line position of the lower substation.

[0078] The information fed back by the model is: the first half represents the feed-out from the first feed-out switch of the first busbar of the "0010" substation under the "0001" substation under the "1" substation; the second half represents the feed-in from the first busbar of the "0001" substation under the "0010" substation under the "0001" substation under the "1" substation.

[0079] Each device uploads the drawing data model to the host computer. After parsing the drawing data model, the host computer can combine the position model and the graphic model according to the relationship model and place the graphic primitives in the corresponding positions.

[0080] Step 2. After receiving the drawing data model sent by the TSN network, the host computer system parses the drawing data model and extracts the location model, graphic model and relationship model in the drawing data model.

[0081] Next, the host computer system converts the extracted position model, graphic model and relationship model into the form of a data model array allarray, and uses an automatic drawing method to draw the primitive graphics in the host computer automatic drawing area.

[0082] The automatic drawing area is composed of many drawing interfaces, and each drawing interface is composed of multiple sub-drawing areas.

[0083] For example, the automatic drawing area can display up to 10 substations, and one substation is one drawing interface. There will be n buses in one drawing interface. The number of buses is determined by the drawing data model sent by each device in the distribution network of the substation. There is an infeed switch above the bus, an outfeed switch below, and a bus tie switch between the buses. The drawing area for a bus is a sub-drawing area. When drawing a bus in the sub-drawing area, the single bus graphic drawing method will be automatically called.

[0084] In practical applications, the distribution network is usually composed of different substations. In order to facilitate monitoring and management, it is necessary to automatically draw the distribution diagram inside each substation based on the real-time status of each device (drawing data model).

[0085] The present invention proposes a method for automatically drawing distribution network primitives based on TSN, including a step of automatically drawing a multi-substation power grid primitive graphic, a step of automatically drawing a single-substation power grid primitive graphic, and a step of automatically drawing a single busbar graphic.

[0086] like Figure 3As shown in FIG. 1 , the processing process of the automatic drawing method of the multi-substation power grid element graphics is as follows:

[0087] First, traverse the data model array allarray, extract the array allarray and divide it into subarrays of different substations, define the subarray numbers, and put them into the single-layer array array1 to be processed after the definition is completed.

[0088] Remove redundant empty arrays in the single-layer array to be processed array1 and form array array2.

[0089] Secondly, i drawing interfaces are created according to the size and length of array2, where i is a natural number.

[0090] Set a loop variable j, define the initial value of j as 1, select the drawing interface numbered j, call the jth subarray in array2, and automatically draw the single substation power grid element graphics.

[0091] In the process of automatically drawing the graphics of the power grid element of a single substation, the number of buses in a single substation is calculated based on the drawing data model of the distribution network equipment and the single bus graphics are automatically drawn.

[0092] After drawing the graphics and graphics elements of a substation, update the value of j, set j=j+1, and compare j with i; if j≥i, end the automatic drawing; if j<i, return to continue drawing the next drawing interface.

[0093] After the power distribution diagrams of multiple substations are drawn, the general connection diagram of the distribution network can be drawn as needed.

[0094] The above-mentioned automatic drawing algorithm of multi-substation power grid element graphics can display different single-substation power grid element graphics in multiple drawing interfaces, thereby realizing overall power grid monitoring.

[0095] like Figure 4 and Figure 5 As shown in the figure, the automatic drawing process of the single substation power grid element graphics is as follows:

[0096] Traverse a sub-array in array2 to obtain the maximum value maxout of the number of buses in the substation being drawn; create a sub-drawing interface based on the maximum value maxout, that is, maxout is equal to the number of sub-drawing interfaces. Define a loop variable n, and the initial value of n is 1. Select the sub-drawing interface numbered n to automatically draw a single busbar graphic.

[0097] In the process of automatic drawing of single busbar graphics, the feed-out status graphics of the feed-out switches under a single busbar can be automatically drawn according to the drawing data model of the distribution network equipment, including the number, position and connection status of the feed-out switches.

[0098] After drawing a single busbar graph, update the value of n, set n=n+1, and compare n with maxout; if n<maxout, return to continue drawing the next sub-drawing interface; if n≥maxout, end the automatic drawing.

[0099] Define the ID, width, and height of the sub-drawing interface.

[0100] During the automatic drawing process of single busbar graphics, select the sub-drawing interface with ID n, and draw the single busbar graphics on the sub-drawing interface with ID n according to the number of substation buses drawn, and draw the feed-in switch and bus tie switch.

[0101] When drawing the graph, scale the entire substation. Since a single busbar is longer than the length of the feeder switch along the x-axis, it is only necessary to determine the total length of the busbar and busbar in the substation. Width of drawing interface relation.

[0102] When the total length is less than or equal to the width of the drawing interface and the reserved space When the length is greater than the width of the drawing interface and the reserved space, the entire substation drawing will not be scaled; when the length is greater than the width of the drawing interface and the reserved space When the sum is , the scaling ratio is determined by the ratio of the two, and the formula is as follows:

[0103] .

[0104] Among them, Scaling ratio represents the scaling ratio. Indicates the width of the drawing interface.

[0105] When drawing the feed-in switch, it is determined whether there is a corresponding feed-in graphic model in the drawn substation data model array. If there is a corresponding feed-in graphic model, it is drawn; otherwise, it is not drawn.

[0106] The busbar number of the bus tie switch is drawn. The bus tie switch is the switch in the middle of the two busbars.

[0107] When drawing the entire graph, in order to ensure that the graph is in the middle of the drawing interface along the x-axis direction, the x-axis coordinates of all called graphs are Subtract the width of the graphic drawn by the corresponding primitive graphic to obtain the value.

[0108] The x value of the currently drawn graphic has an associated attribute with the x value of the previously drawn graphic, wherein the physical meaning represented by the x value of the currently drawn graphic is the x-axis coordinate of the graphic element in the drawn substation.

[0109] To ensure that the graphics can still be displayed in the middle position of the drawing interface along the x-axis direction after scaling, the value obtained by the logical relationship between the primitive graphics drawn by the corresponding sub-drawing interface and the size of the sub-drawing interface is multiplied by the corresponding scaling ratio. The formula is:

[0110] .

[0111] Among them, x represents the x-axis coordinate of the graphic element in the substation to be drawn, x1, , , , Respectively represent the first, second, third, , the x-axis coordinate of the nth primitive graphic; , , , Represents the value obtained by adding the width of the reserved space specified for each primitive graphic to the width of the primitive graphic itself.

[0112] When drawing a graphic, the entire graphic should be kept in the middle of the sub-drawing interface. The y values ​​of the feed-in switch, busbar, and busbar switch graphics have associated properties, that is, the y values ​​of all feed-in switch and busbar switch graphics are based on the y value of the busbar graphics. To ensure that the graphic can still be displayed in the middle position of the drawing interface along the y axis after scaling, the corresponding scaling ratio is also multiplied along the y axis. The calculation formula for the y value of each graphics element is expressed as follows:

[0113] .

[0114] Among them, y1, , , , Respectively represent the first, second, third, , the y-axis coordinate of the nth primitive graphic; , , , They respectively represent the value obtained by adding the height of the reserved space specified for each primitive graphic and the height of the primitive graphic itself.

[0115] When drawing the graph, connect the busbar, bus tie switch, and feed switch so that the voltages at their connection points are equal.

[0116] like Figure 6 and Figure 7 As shown in the figure, the process of automatically drawing a single busbar graph is as follows:

[0117] Firstly, the busbar, bus tie switch, infeed switch and outfeed switch graphics are created from the standard substation distribution network design drawing.

[0118] The graphics element symbols can be freely changed according to the actual situation. The full text only shows the drawing method, and the graphics elements are not strictly drawn according to the standards of busbar, bus tie switch, feed-in switch and feed-out switch; the upper computer drawing interface is composed of multiple sub-drawing interfaces.

[0119] Traverse a subarray in the drawn substation drawing data model array array2 to obtain an array corresponding to the outgoing class graphic model, and traverse the array to obtain the maximum value outgoinglinemax of the number of outgoing switches of the drawn bus.

[0120] Among them, the array corresponding to the feed-out class graphic model is the array under the graphic model, that is, the feed-out class graphic model.

[0121] The array corresponding to the feed-out graphic model records the number of feed-out switches.

[0122] Create a state array arraystate. The initial value of the state array is set to "0". The length of the state array is determined by the maximum number that can be represented by the second binary digit of the "position attribute domain" of the feed-out class graphic model.

[0123] The array corresponding to the feed-out graphic model is traversed to determine the state of the feed-out switch. If the feed-out switch at the corresponding position exists, the corresponding flag of the state array is set to "1". If it does not exist, the corresponding flag of the state array remains unchanged.

[0124] Select the sub-drawing interface numbered n and draw a section of busbar. The length of the busbar increases with the number of outgoing switches to ensure that the length of the busbar is always greater than the length of the graphic occupied by the outgoing switches along the x-axis.

[0125] A loop is used to draw a graph based on the maximum value of the number of outgoing switches and the state array. A certain distance is set between two adjacent outgoing switches. The single bus graph drawn here does not need to be displayed on the screen separately.

[0126] Define loop variable k=1, and judge that if the corresponding identifier of the feed switch state data at the k-th position is Arraystate[k]=1, then draw the feed switch at the corresponding position, otherwise do not draw it.

[0127] After completing the drawing of an outgoing switch, update the value of k, set k=k+1, and compare k with outgoinglinemax; if k≥outgoinglinemax, end the automatic drawing; otherwise, return to continue drawing the next outgoing switch.

[0128] The single busbar automatic drawing method can automatically draw the feeder status diagram of the feeder switch under a single busbar according to the drawing data model of the distribution network equipment device, including the number, position and connection status of the feeder switch.

[0129] The busbar length varies with the number of outgoing switches.

[0130] Select the sub-drawing interface with ID n and draw a section of bus. The length of the bus increases with the number of outgoing switches. The length of the bus is always guaranteed to be greater than the length of the graphic occupied by the outgoing switches along the x-axis. The graphics are drawn using a loop based on the maximum number of outgoing switches and the state array. There is a certain distance between two adjacent outgoing switches.

[0131] In the process of automatically drawing a single busbar graph, the entire graph remains in the middle of each sub-drawing interface of the host computer. The x value of each graph is The value is obtained by subtracting the width of the graphics drawn by the corresponding primitive graphics from the width of the sub-drawing interface.

[0132] .

[0133] in, Indicates the x-axis position of the nth primitive graphic. Indicates the width of the sub-drawing interface. Indicates the width of the graphics drawn by the corresponding primitive graphics.

[0134] For example, if the drawing interface is 100 long and you want to draw a graphic element with a length of 20, then use 100*1 / 2-20 to get x, where x is 30. Draw the starting point of 30 + 20 of its own length, and the graphic element will be centered.

[0135] The y values ​​of the outgoing switch graphics and the busbar graphics have associated properties, that is, the y values ​​of all outgoing switch graphics are based on the y value of the busbar graphics. Since the y-axis direction is relatively simple, there are only two y values ​​of the busbar and the outgoing switch.

[0136] When drawing the graph, the busbar and feeder switch need to be connected so that the voltages at their connection points are equal.

[0137] In addition to sending the drawing data model to the host system through the TSN network, the equipment will also send the information data model to the host system. The information data model includes the voltage, current, switch status, fault status and other information measured by the current device.

[0138] After receiving the information data model sent by the TSN network, the host computer system will parse it and convert the information data model into an information data array, and extract data according to the position of each byte in the information data array.

[0139] The host computer further displays the extracted data in a predetermined format to achieve monitoring.

[0140] The information data model is established by the distribution network equipment and the established information data model is sent to the distribution network host system through the TSN network. At this time, the host system will identify whether it is U.

[0141] If the header passes, the information data model is parsed into a data model array: U = FF FF 01 01 . ={Voltage, Current, Switch State, Fault Presence / Absence}. FF FF 01 01 indicates the information data model header. Represents the information data model array. The four internal parts are four groups of hexadecimal arrays. Voltage and Current will convert the hexadecimal model data into decimal size. Switch State detects whether it is 0. If it is 0, it is closed, otherwise it is open. Fault Presence / Absence detects whether it is 0. If it is 0, it is judged that there is no fault.

[0142] Real-time monitoring of the TSN power distribution network includes the voltage, current, switch status, and fault status at the current network location.

[0143] The TSN host computer system includes two parts, one is the drawing interface part of automatic drawing, in which the above-mentioned automatic drawing operation can be performed, and the other is the information display and control part, which is used to display the distribution network status information. The TSN network can set the priority of the equipment and reduce the priority of the equipment that does not need time requirements temporarily. Finally, the transmitted data is analyzed in real time, alarmed and visualized. The present invention establishes an information data model through the distribution network equipment, and then transmits it to the host computer system through the TSN network, and analyzes the information data model, and displays the information of the information data model in the monitoring area of ​​the host computer system. The present invention uses TSN technology to realize real-time monitoring and dynamic management of the distribution network. When facing huge or complicated distribution network data, TSN technology ensures the real-time transmission and processing of key data through its priority scheduling mechanism. TSN can assign different priorities to different data streams according to the urgency and importance of the data, and realizes rapid response and processing of data while ensuring data integrity. This priority scheduling mechanism is crucial for real-time monitoring and intelligent scheduling of the distribution network. It ensures the timely transmission of key information and provides strong support for scheduling decisions.

[0144] The TSN network can be used to obtain the operating status and parameters of equipment in the distribution network in real time, such as Figure 8 shown.

[0145] The TSN-based automatic drawing distribution network status monitoring method proposed in the present invention has the following advantages:

[0146] First, in terms of automation and real-time performance, the method of the present invention can automatically draw pictures and monitor some information. Through TSN network technology, information can be synchronized and frame preempted. TSN's unique frame preemption technology can enable high-priority frames to preempt low-priority frames. Once an abnormality or fault is found, the system can immediately issue an alarm and take corresponding measures to repair it, thereby minimizing the impact of the fault on the power supply. Secondly, in terms of accuracy and reliability, as long as the distribution network equipment is installed in each distribution network, accurate drawing can be achieved, avoiding drawing errors that may occur in manual drawing. Then in terms of flexibility and scalability, the method of the present invention supports flexible configuration and customization. Users can select the equipment, parameters and drawing accuracy to be monitored according to actual needs to meet the needs of different scenarios. With the expansion of the distribution network scale or the addition of new equipment, the system can easily expand and adapt to new changes. At the same time, the system also supports integration with other intelligent systems or platforms to achieve wider applications and higher levels of intelligence. Finally, maintenance and management are more convenient. The system can monitor the monitoring information obtained by each device in the distribution network, which can reduce manual troubleshooting and manual maintenance of equipment.

[0147] Embodiment 1 of the present invention provides a data model given by a distribution network device, in which the host computer system can automatically distinguish the data model type, display the monitoring data obtained by the distribution network device and automatically draw the distribution network graphic element graphics, and introduce the TSN network for real-time transmission, monitoring and dynamic processing of distribution network data.

[0148] Example 2

[0149] This embodiment 2 describes a distribution network automatic drawing system based on a TSN network. The system includes various equipment devices in the distribution network, a TSN network, and a host computer system. The network structure is as follows: Fig. 9 As shown. Each device in the distribution network communicates with the host computer system through the TSN network. Each device in the distribution network has its own drawing data model and information data model. When the host computer system receives the drawing data model transmitted by the TSN network and parses it, the distribution network automatic drawing operation is completed according to the distribution network automatic drawing method based on the TSN network as described in the above embodiment 1.

[0150] Each device in the distribution network is equipped with a sensor that can obtain information such as the current, voltage, switch status, and whether there is a fault in the current grid. The distribution network equipment is connected to the TSN network, and the host computer system is also connected to the TSN network through the network cable connected by the TSN switch, so that the host computer is also connected to the TSN network to realize TSN communication.

[0151] TSN priority can be set. For example, if there are three substations under the main power station, but the information models of the first substation are preferred, the TSN network needs to be used to change the priority of the information models sent by each substation to the TSN network. By setting the first substation as the highest priority, the information models of the first substation can be obtained first.

[0152] The operation process of the distribution network automatic drawing system based on the TSN network includes the interaction process between the hardware and the host computer system, the data parsing process of the host computer system, and the monitoring process of the host computer system, as shown below:

[0153] I. Interaction process between hardware and host computer system. First, the distribution network equipment obtains some information about the current power station through various sensors, and the controller in the distribution network equipment packages the data into the information data model and drawing data model required by the host computer system. Then, the information data model and drawing data model are sent to the TSN network. Through the TSN network, the information data model and drawing data model will reach the host computer system. The host computer system distinguishes the information data model and drawing data model according to the header before the model (actually a group of hexadecimal numbers) and parses them separately.

[0154] II. Data parsing process of the host computer system. When the host computer system parses the information data model, it will first convert the information data model into an information data array, extract the data according to the position of each byte in the array, and display the data in the specified style to achieve the monitoring effect. When the host computer system parses the drawing data model, it will first extract the drawing data model, extract the position model, graphic model, and relationship model in the drawing data model, and then convert the three models into an array. At this time, the automatic drawing algorithm will be performed to draw the primitive graphics in the automatic drawing area of ​​the host computer.

[0155] III. Host computer system monitoring process. The host computer monitoring process includes the host computer system's automatic drawing area and the host computer system's monitoring area, where the monitoring area will display the current, voltage, switch status, fault status, and other information monitored by the current distribution network device.

[0156] Of course, the above description is only a preferred embodiment of the present invention, and the present invention is not limited to the above embodiments. It should be noted that all equivalent substitutions and obvious deformation forms made by any technician familiar with the field under the guidance of this specification fall within the essential scope of this specification and should be protected by the present invention.

Claims

1. A method for automatic drawing of distribution network based on TSN network, characterized in that: The steps include: Step 1. The equipment devices in each substation in the distribution network construct a drawing data model and send it to the host computer system through the TSN network; the drawing data model includes a location model, a graphic model and a relationship model; The location model is used to describe the location attributes of equipment in the distribution network; The graphic model is used to describe the type, quantity and position attribute changes of the upper computer graphic element corresponding to the equipment in the distribution network, which includes busbar graphic model, feed-in graphic model and feed-out graphic model; The relational model is used to describe the superior-subordinate connection relationship between different substations; Step 2. After receiving the drawing data model sent by the TSN network, the host computer system parses the drawing data model and extracts the location model, graphic model and relationship model in the drawing data model; Next, the host computer system converts the extracted position model, graphic model and relationship model into the form of data model array allarray, and uses the automatic drawing method to draw the primitive graphics in the host computer automatic drawing area; The processing process of the automatic drawing method of the multi-substation power grid element graphics is as follows: First, traverse the data model array allarray, extract the array allarray into subarrays of different substations, define the subarray numbers, and put them into the single-layer array array1 to be processed after the definition is completed; Remove redundant empty arrays in the single-layer array to be processed array1 and form array array2; Secondly, create i drawing interfaces according to the size and length of array2, where i is a natural number; Set a loop variable j, define the initial value of j as 1, select the drawing interface numbered j, call the jth subarray in array2, and automatically draw the single substation power grid element graphics; In the process of automatically drawing the graphics of the power grid element of a single substation, the number of buses in a single substation is calculated according to the drawing data model of the distribution network equipment and the single busbar graphics are automatically drawn; After drawing a substation graphic, update the value of j, set j = j + 1, and compare j with i; if j ≥ i, end the automatic drawing; if j < i, return to continue drawing the next drawing interface; In the step 2, during the automatic drawing process of the single busbar graph, the ID, width and height of the sub-drawing interface are defined; Select the sub-drawing interface with ID n, and according to the number of substation buses drawn, draw the primitive graphics drawn for a single bus on the sub-drawing interface with ID n, and draw the feed-in switch and bus tie switch; When drawing the graph, the entire substation is scaled. Since a single busbar is longer than the length of the feeder switch along the x-axis, only the total length of the busbar and the bus tie switch in the substation is determined. BB With the drawing interface width l width relation; When the total length is less than or equal to the width of the drawing interface and the reserved space l r When the length is greater than the width of the drawing interface and the reserved space l r When the sum is , the scaling ratio is determined by the ratio of the two, and the formula is as follows: Among them, Scaling ratio represents the scaling ratio, l width Indicates the width of the drawing interface; When drawing the feed-in switch, it is determined whether there is a corresponding feed-in graphic model in the drawn substation data model array. If there is a corresponding feed-in graphic model, it is drawn; if not, it is not drawn. The busbar number of the bus tie switch is drawn. The bus tie switch is the switch in the middle of two busbars. When drawing the entire graph, in order to ensure that the graph is in the middle of the drawing interface along the x-axis direction, the x-axis coordinates of all called graphs are Subtract the width of the graphics drawn by the corresponding primitive graphics to get it; The x value of the currently drawn primitive graphic has an associated attribute with the x value of the previously drawn primitive graphic; wherein the physical meaning represented by the x value of the currently drawn primitive graphic is the x-axis coordinate of the primitive graphic in the drawn substation; To ensure that the graphics remain displayed in the middle of the drawing interface along the x-axis after scaling, the value obtained by the logical relationship between the primitive graphics drawn by the corresponding sub-drawing interface and the size of the sub-drawing interface is multiplied by the corresponding scaling ratio. The formula is expressed as follows: Among them, x1, x2, x3, ..., x n Respectively represent the x-axis coordinates of the first, second, third, ..., nth primitive figures drawn; It indicates the value obtained by adding the width of the reserved space specified for each primitive graphic to the width of the primitive graphic itself. Scaling ratio indicates the scaling ratio. When drawing a graph, the entire graph should be kept in the middle of the sub-drawing interface. The y values ​​of the graphics of the feed-in switch, busbar, and bus-coupler switch are associated with each other, that is, the y values ​​of all the graphics of the feed-in switch and bus-coupler switch are based on the y value of the busbar graphics. To ensure that the graphics can still be displayed in the middle position of the drawing interface along the y-axis after scaling, the corresponding scaling ratio is also multiplied along the y-axis. The calculation formula of the y value of each graphics element is expressed as follows; Among them, y1, y2, y3, ..., y n Respectively represent the y-axis coordinates of the first, second, third, ..., nth primitive figures drawn; Respectively represent the value obtained by adding the height of the reserved space specified for each primitive graphic to the height of the primitive graphic itself; When drawing the graph, connect the busbar, bus tie switch, and feed switch so that the voltages at their connection points are equal.

2. The method for automatically drawing a distribution network based on a TSN network according to claim 1, characterized in that: In step 2, the process of automatically drawing the graphics of the single substation power grid element is as follows: Traverse a sub-array in the array2 to obtain the maximum value maxout of the number of buses in the substation being drawn; create a sub-drawing interface according to the maximum value maxout, that is, maxout is equal to the number of sub-drawing interfaces; Define a loop variable n, the initial value of n is 1; Select the sub-drawing interface numbered n and automatically draw a single busbar graph; In the process of automatic drawing of single busbar graphics, the state graphics of the infeed switch and outfeed switch under a single busbar are automatically drawn according to the drawing data model of the distribution network equipment and devices, including the number, position and connection status of the infeed and outfeed switches; After drawing a single busbar graph, update the value of n, set n = n + 1, and compare n with maxout; if n < maxout, return to continue drawing the next sub-drawing interface; if n ≥ maxout, end the automatic drawing.

3. The method for automatically drawing a distribution network based on a TSN network according to claim 2, characterized in that: In step 2, the process of automatically drawing a single busbar graph is as follows: Firstly, the busbar, bus tie switch, infeed switch and outfeed switch graphic elements are created from the standard substation distribution network design drawing; Traverse a subarray in the drawn substation data model array array2 to obtain an array corresponding to the outgoing class graphic model; traverse the array corresponding to the outgoing class graphic model to obtain the maximum value outgoinglinemax of the number of outgoing switches of the drawn busbar; Create a state array arraystate, and set the initial value of the state array to "0"; Traverse the array corresponding to the feed-out graphic model to determine the state of the feed-out switch. If the feed-out switch at the corresponding position exists, the corresponding flag in the state array is set to "1". If it does not exist, the corresponding flag in the state array remains unchanged. Select the sub-drawing interface numbered n and draw a section of busbar. The length of the busbar increases with the number of outgoing switches to ensure that the length of the busbar is always greater than the length of the graphic occupied by the outgoing switches along the x-axis direction. Using a loop, a graph is drawn based on the obtained maximum value of the number of outgoing switches and the state array; Define a loop variable k, the initial value of k is 1, determine the corresponding identifier of the feed switch state data at the kth position, if the corresponding identifier Arraystate[k] = 1, then draw the feed switch at the corresponding position, otherwise do not draw; After completing the drawing of an outgoing switch, update the value of k, set k=k+1, and compare k with outgoinglinemax; if k≥outgoinglinemax, return to continue drawing the next outgoing switch; otherwise, end the automatic drawing.

4. The method for automatically drawing a distribution network based on a TSN network according to claim 3 is characterized in that: In the step 2, during the automatic drawing of the single busbar graph, the entire graph is kept in the middle of each sub-drawing interface of the host computer, and the x value of each graph is The width of the sub-drawing interface is times the width of the sub-drawing interface minus the width of the graphics drawn by the corresponding primitive graphics; Among them, x n Indicates the x-axis position of the nth primitive graphic; l subcanvaswidth Indicates the width of the sub-drawing interface. Indicates the width of the graphics drawn by the corresponding primitive graphics; The y values ​​of the outgoing switch graphics and the busbar graphics have an associated attribute, that is, the y values ​​of all outgoing switch graphics are based on the y value of the busbar graphics, where there are only two y values ​​of the busbar and the outgoing switch in the y-axis direction; When drawing the graph, the busbar and feeder switch need to be connected so that the voltages at their connection points are equal.

5. The method for automatically drawing a distribution network based on a TSN network according to claim 1, characterized in that: The location model is composed of multiple levels of "sub-domains" in a "domain", each "sub-domain" is composed of binary numbers of different bits, and the "sum" of the multiple levels of "sub-domains" jointly defines the location attributes of the device in the distribution network.

6. The method for automatic drawing of a distribution network based on a TSN network according to claim 1, characterized in that: The graphic model is composed of a "category domain" and a "position attribute domain"; The "type domain" is defined as four types of graphic elements: busbar, bus tie switch, infeed device, and outfeed device. The "location attribute domain" represents the actual number and logical position of various graphic elements in the substation to which they belong.

7. The method for automatically drawing a distribution network based on a TSN network according to claim 1, characterized in that: The relationship model is used to describe the connection relationship between different substations; When it is necessary to describe the connection relationship between substations at different levels in a multi-level substation, it is necessary to associate the location model and graphic model of the upper-level substation with the location model and graphic model of the lower-level substation.

8. The method for automatic drawing of a distribution network based on a TSN network according to claim 1, characterized in that: In the step 1, the equipment device in each substation in the distribution network also constructs an information data model, sends the information data model to the TSN network, and sends the information data model to the host computer system through the TSN network; After receiving the information data model sent by the TSN network, the host computer system will parse it and convert the information data model into an information data array, and extract data according to the position of each byte in the information data array; The host computer further displays the extracted data in a predetermined format to achieve monitoring.

9. A distribution network automatic mapping system based on TSN network, comprising various equipment devices in the distribution network, TSN network and host computer system, wherein each equipment device in the distribution network communicates with the host computer system through the TSN network; characterized in that: Each device in the distribution network has its own drawing data model; Among them, when the host computer system receives and parses the drawing data model transmitted by the TSN network, the automatic drawing operation of the distribution network is completed according to the automatic drawing method of the distribution network based on the TSN network as described in claim 1 above.

Citation Information

Patent Citations

  • Electric power graph drawing method based on automatic drawing technology

    CN111444587A

  • Power distribution network integrated analysis monitoring method and system

    CN115912646A