A method and system for generating a plant process layer physical loop diagram
By automatically generating the process-layer physical loop diagram of the smart substation, the problems of large manual operations in drawing the optical fiber physical loop diagram and non-intuitive fault display are solved, thus improving operation and maintenance efficiency and visualizing the scope of fault impact.
Patent Information
- Application Number
- CN202211286030.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-20
- Publication Date
- 2025-09-30
- Estimated Expiration
- 2042-10-20
AI Technical Summary
In the existing technology, drawing the optical fiber physical loop diagram of the smart substation requires a lot of manual operation, and when a fault occurs, it is impossible to intuitively display the scope of the fault, resulting in low operation and maintenance efficiency.
Provided is a method and system for generating a plant process layer physical loop diagram. By obtaining the correspondence between the device list and the physical loop list, the coordinates of the switch and port are calculated, the graphic elements are automatically laid out, and the voltage level and interval process layer physical loop diagrams are generated, supporting automated drawing and updating.
It reduces the workload of operation and maintenance personnel, improves operation and maintenance efficiency, can intuitively display the scope of fault impact, and is suitable for smart substations with different voltage levels and network types.
Smart Images

Figure CN115828826B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of power system automation, and in particular relates to a method and system for generating a plant process layer physical loop diagram. Background Art
[0002] With the continuous expansion of secondary operation and maintenance services, the secondary operation and maintenance master station system has changed its previous single-function state and has taken on more and more secondary operation and maintenance work. At the same time, smart substations are constantly being promoted and applied. Their secondary circuits are transmitted through optical fibers. The physical invisible nature of the transmitted information also poses a great challenge to the operation and maintenance of the secondary operation and maintenance master station. One method of monitoring the secondary circuit is to draw a physical optical fiber circuit diagram. The secondary operation and maintenance master station system is responsible for monitoring all substations in the system. It is necessary to draw different monitoring pictures for each substation. In addition, the transformation or expansion of smart substations often affects the entire system. Each transformation requires the picture to be redrawn. If the picture is only drawn manually by the operation and maintenance personnel, it requires huge manpower investment. Therefore, there is an urgent need for an automatic mapping method to reduce the workload of the operation and maintenance personnel, thereby improving the operation and maintenance efficiency.
[0003] To ensure the reliability of fiber optic virtual circuits, smart substations often use a dual-network approach to configure their process networks. A typical network structure separates protection device sets A and B and networks A and B into four independent networks, with each voltage level isolated. Information exchange between networks is typically non-existent to maximize system reliability. Furthermore, within each network, one or more central switches are typically selected to communicate with integrated systems such as the monitoring backend. Each bay switch is cascaded with the central switch, and protection devices are connected to the bay switches. This allows for different visualizations to be drawn for different voltage levels, device sets, and network sets. However, since a fiber optic physical circuit diagram, divided by voltage level, includes all devices within that voltage level, it is difficult to intuitively identify the impact of a link failure within a bay. Therefore, it is necessary to generate a separate fiber optic physical circuit diagram for each bay. Summary of the Invention
[0004] To address the deficiencies in the prior art, the present invention provides a method and system for generating a plant process layer physical loop diagram, which can effectively improve the system's operation and maintenance capacity and reduce the time investment of operation and maintenance personnel.
[0005] In order to achieve the above object, the technical solution adopted by the present invention is:
[0006] In a first aspect, a method for generating a process-layer physical loop diagram of a plant is provided, comprising: obtaining a device list and a physical loop list that match the type of the process-layer physical loop diagram to be constructed, and establishing a one-to-one correspondence between the device list and the physical loop list to form a process-layer network model; determining a local layout type according to the type of the switch in the device list, calculating the switch length, the relative coordinates of the port and the device, and generating a local canvas; calculating the relative coordinates between each local canvas, obtaining the global relative coordinates of each graphic element in the process-layer network model, and forming a global canvas; calculating the inflection point coordinates of the connecting line between each switch according to the relative coordinates of the ports at both ends of the connecting line in the global canvas, and forming the path information of the connecting line; automatically laying out each graphic element according to the coordinates and path information of each graphic element and the connecting line to form a process-layer physical loop diagram.
[0007] Furthermore, the device list and physical loop list that match the type of the process layer physical loop diagram to be constructed are obtained as follows: when the process layer physical loop diagram to be constructed is a voltage level physical loop diagram, first, according to the relationship between the voltage level and the protection device in the SCD model library, as well as the set information of the protection device, qualified protection devices are screened out to form a device list; then, the device list is traversed, and the device connected to it is found through the port information of the physical loop, and the newly found device is added to the device list, and this process is repeated until no new device is added, and the associated physical loops searched in this process are saved to form a physical loop list; when the process layer physical loop diagram to be constructed is an interval physical loop diagram, first, according to the relationship between the interval and the protection device in the SCD model library, as well as the set information of the protection device, qualified protection devices are screened out to form a device list, and then, the device list is traversed, and the device with which the signal is interacted is found through the subscription and sending terminal of the logical loop, and the device list is added; the device list is traversed, and the switch connected to it is found through the port information of the physical loop, and the switch is added to the device list, and the associated physical loops searched in this process are saved to form a physical loop list.
[0008] Furthermore, the one-to-one correspondence between the device list and the physical loop list is established to form a process layer network model, including: establishing the following two hash tables through the port information in the physical loop list: (1) a hash table with the switch port as the key and the opposite device port connected to the port as the value; and (2) a hash table with the switch port as the key and the physical loop connected to the port; used to find the correspondence between the port and the device and the physical loop.
[0009] Furthermore, the method of determining the local layout type based on the type of switch in the device list, calculating the relative coordinates of the switch length, ports, and devices, and generating a local canvas includes: reading relevant parameters from the template screen, including: the top margin and left margin of the canvas, the horizontal spacing between devices, the vertical spacing between devices and switches, the device width, the device height, and the port width; placing the device connected to the central switch above the central switch, with the corresponding ports vertically aligned with the device; placing the devices connected to the interval switches symmetrically above and below the interval switches, with the corresponding ports vertically aligned with the devices; calculating the width of the switch based on the number of devices connected to the switch and relevant parameters read from the template screen; evenly distributing the cascade ports of the central switch at the bottom edge of the switch, with the cascade ports of the interval switches located at the leftmost or rightmost side, and the arrangement order of the interval switch sub-canvases being the same as the arrangement order of the cascade ports of the central switch, thereby calculating the coordinates of the cascade ports at each level; and determining the layout mode of the interval switches based on the relative positions of the cascade ports of the central switch and the interval switches. The layout modes of the interval switches are divided into "symmetrical left extension type", "asymmetrical left extension type", "symmetrical right extension type", and "asymmetrical right extension type".
[0010] Furthermore, the calculation of relative coordinates between the local canvases to obtain the global relative coordinates of each graphic element in the process layer network model and form a global canvas includes: calculating the relative coordinates of ports and devices in the interval switch sub-canvas based on the layout type of the interval switch; the basic principle of the interval switch layout is that the devices are placed symmetrically around the switch, the switch ports corresponding to the devices are aligned with the center of the device, the cascade ports are placed on the leftmost or rightmost side, and the switch ports are evenly spaced; the layout principle of the global canvas is that the central switch sub-canvas is located in the horizontal center of the global canvas, the interval switch sub-canvas is located below the central switch sub-canvas, the vertical coordinate of the bottom edge of the central switch sub-canvas is the vertical coordinate of the top edge of each interval switch sub-canvas, and the arrangement order of each interval switch sub-canvas is consistent with the arrangement order of the central switch cascade ports; then, combining the geometric information of each sub-canvas and the relevant attributes read from the template image, the absolute coordinates of the origin of each sub-canvas in the global canvas are calculated, and the local coordinates calculated in the local canvas are converted into global coordinates to complete the layout of the switches, devices, ports, and non-cascade lines in the global canvas.
[0011] Furthermore, the method of calculating the inflection point coordinates of the connection line based on the relative coordinates of the ports at both ends of the connection line between each switch in the global canvas to form the path information of the connection line includes: the cascade port of the central switch and the cascade port of the interval switch connected thereto are called a port pair, and the maximum value of the horizontal coordinate is X max , add the pair of ports with the smallest horizontal coordinate to the first group of port lists, and assign the larger value of the horizontal coordinate in the port pair to X maxAccording to the size of the horizontal coordinate of the cascade port of the central switch in the port pair, traverse it from small to large, and compare the smaller value of the horizontal coordinate in the port pair with the X max Compare, if greater than X max , then create a new set of port lists and add the port pair to them; otherwise, add the port pair to the list where the previous port pair is located; finally update X max The larger value of the horizontal coordinate in the current port pair. For port pairs in the same list, the vertical coordinate is divided equally according to the number of port pairs in the list.
[0012] Furthermore, the process automatically lays out each graphic element based on the coordinates and path information of each graphic element and the connecting line to form a process layer physical circuit diagram. Specifically, each graphic element is copied from the template, and the graphic elements are laid out based on the calculated coordinates, size and connecting line information of each graphic element to form a process layer physical circuit diagram, and the screen is saved for reference.
[0013] In a second aspect, a plant process layer physical loop diagram generation system is provided, comprising: a model construction module for obtaining a device list and a physical loop list that match the type of the process layer physical loop diagram to be constructed, and establishing a one-to-one correspondence between the device list and the physical loop list to form a process layer network model; a local canvas generation module for determining the local layout type according to the type of the switch in the device list, calculating the switch length, the relative coordinates of the port and the device, and generating a local canvas; a global canvas generation module for calculating the relative coordinates between each local canvas, obtaining the global relative coordinates of each graphic element in the process layer network model, and forming a global canvas; a connection line path information calculation module for calculating the inflection point coordinates of the connection line between each switch according to the relative coordinates of the ports at both ends of the connection line in the global canvas, and forming the path information of the connection line; a graphic element layout module for automatically laying out each graphic element according to the coordinates and path information of each graphic element and the connection line to form a process layer physical loop diagram.
[0014] Compared with the existing technology, the beneficial effects achieved by the present invention are: the present invention maintains the networking characteristics of the smart substation central switch - the interval switch in the composition structure, which is more in line with the actual operation situation, and can be applied to the voltage level process layer physical loop diagram and the interval process layer physical loop diagram at the same time, effectively improving the operation and maintenance capabilities of the secondary operation and maintenance master station while reducing the investment of operation and maintenance personnel. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 This is a schematic diagram of the operation flow of a method for generating a plant process layer physical loop diagram provided by an embodiment of the present invention;
[0016] Figure 2 is a schematic diagram of the overall layout of each switch in an embodiment of the present invention;
[0017] Figure 3 is a schematic diagram of a partial layout of a central switch sub-canvas in an embodiment of the present invention;
[0018] Figure 4a 1 is a schematic diagram of a symmetrical right-extending layout among four layout modes of spaced-switch sub-canvases in an embodiment of the present invention;
[0019] Figure 4b 1 is a schematic diagram of an asymmetric right-extending layout among four layout modes of switching sub-canvases at intervals according to an embodiment of the present invention;
[0020] Figure 4c 1 is a schematic diagram of a symmetrical left-extended layout among four layout modes of spaced-switch sub-canvases in an embodiment of the present invention;
[0021] Figure 4d 1 is a schematic diagram of an asymmetric left-extended layout among four layout modes of switching sub-canvases at intervals according to an embodiment of the present invention;
[0022] Figure 5a This is a schematic diagram of the inflection point of the cascade line between the central switch and the interval switch in the embodiment of the present invention. Figure 1 ;
[0023] Figure 5b This is a schematic diagram of the inflection point of the cascade line between the central switch and the interval switch in the embodiment of the present invention. Figure 2 . DETAILED DESCRIPTION
[0024] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solutions of the present invention and are not intended to limit the scope of protection of the present invention.
[0025] Example 1:
[0026] like Figure 1 As shown, a method for generating a process-layer physical loop diagram of a plant station includes: obtaining a device list and a physical loop list that match the type of the process-layer physical loop diagram to be constructed, and establishing a one-to-one correspondence between the device list and the physical loop list to form a process-layer network model; determining a local layout type based on the type of switches in the device list, calculating the switch length, ports, and relative coordinates of the devices, and generating a local canvas; calculating the relative coordinates between each local canvas to obtain the global relative coordinates of each graphic element in the process-layer network model to form a global canvas; calculating the inflection point coordinates of the connecting line between each switch based on the relative coordinates of the ports at both ends of the connecting line in the global canvas to form path information of the connecting line; and automatically laying out each graphic element based on the coordinates and path information of each graphic element and the connecting line to form a process-layer physical loop diagram.
[0027] (1) Data preparation: Obtain a device list and a physical loop list that match the type of process layer physical loop diagram to be constructed.
[0028] (a) When the process-level physical loop diagram to be constructed is a voltage-level physical loop diagram, first, according to the relationship between voltage levels and protection devices in the SCD model library and the set information of the protection devices, the qualified protection devices are screened out to form a device list; then, the device list is traversed, and the devices connected to it are found through the port information of the physical loop, and the newly found devices are added to the device list. This process is repeated until no new devices are added, and the associated physical loops found in this process are saved to form a physical loop list;
[0029] (b) When the process layer physical loop diagram to be constructed is an interval physical loop diagram, first, according to the relationship between the interval and the protection device in the SCD model library and the set information of the protection device, the qualified protection devices are screened out to form a device list. Then, the device list is traversed and the devices that interact with it are found through the subscription and sending terminals of the logical loop and added to the device list; the device list is traversed and the switches connected to it are found through the port information of the physical loop and added to the device list. The associated physical loops searched in this process are saved to form a physical loop list.
[0030] (2) Model establishment: establish a one-to-one correspondence between the device list and the physical loop list to form a process layer network model.
[0031] Using the port information in the physical loop list, two hash tables are created: ① a hash table where the key is the switch port and the value is the port of the opposite device connected to the port; ② a hash table where the key is the switch port and the value is the physical loop connected to the port. This facilitates subsequent lookups of the correspondence between ports, devices, and physical loops.
[0032] (3) Determine the sub-canvas layout. According to the type of switch in the device list, determine the local layout type, calculate the switch length, ports, and relative coordinates of the device, and generate the local canvas.
[0033] based on Figure 2 and Figure 3 ,The width of each switch, the central switch sub-canvas layout information, and the layout of several switches are determined through the following steps;
[0034] 1) Read the canvas top margin M from the template screen T , left margin M L , horizontal spacing between devices M H , vertical distance between the device and the switch M V , device width W D , device height H D , port width WP ;
[0035] 2) Calculate the width of each switch. For the interval switch, the devices are placed symmetrically on the upper and lower sides of the switch. Let the number of devices connected to the interval switch be N. B-D , the width of the interval switch is W B , then
[0036]
[0037] 3) For the central switch, all devices are placed above the switch, and the corresponding ports are vertically aligned with the devices; the cascade ports connected to the interval switches are placed below the switch, and the corresponding ports are vertically aligned with the devices; let the number of devices connected to the central switch be N C-D , the number of interval switches connected to the central switch is N C-B , the width of the i-th interval switch is W Bi , the width of the central switch is W C , W C is the larger of 1 / 2 of the sum of the widths of the interval switches and the sum of the widths of the connected devices, then
[0038]
[0039] 4) Evenly distribute the cascade ports of the central switch at the bottom edge of the switch, with the cascade ports of the interval switches located on the leftmost or rightmost side. The order of arrangement of the interval switch sub-canvases is the same as that of the central switch cascade ports, and then calculate the coordinates of the cascade ports at each level;
[0040] 5) Determine the layout of the interval switches based on the relative positions of the cascade ports of the central switch and the interval switches. The interval switch layouts are divided into four types: "symmetrical left extension", "asymmetrical left extension", "symmetrical right extension", and "asymmetrical right extension".
[0041] (4) Calculate the global coordinates, calculate the relative coordinates between each local canvas, obtain the global relative coordinates of each element in the process layer network model, and form a global canvas.
[0042] 1) The basic principles of the four layouts of spaced switches are that the devices are placed symmetrically around the switch, the switch ports corresponding to the devices are aligned with the center of the devices, the cascade ports are placed on the far left or right, and the switch ports are evenly spaced. Figure 4a to Figure 4d Schematic diagrams of four layouts are given. Based on the relevant parameters read from the template, the relative coordinates of the ports and devices in the interval switch sub-canvas can be calculated;
[0043] 2) The layout principle of the global canvas is that the central switch sub-canvas is located in the horizontal center of the global canvas, and the interval switch sub-canvases are located below the central switch sub-canvas. The vertical coordinate of the bottom edge of the central switch sub-canvas is the vertical coordinate of the top edge of each interval switch sub-canvas. The arrangement order of each interval switch sub-canvas is consistent with the arrangement order of the central switch cascade ports. The schematic diagram is shown as follows: Figure 2 As shown in the figure, the absolute coordinates of each sub-canvas's origin on the global canvas are calculated by combining the geometric information of each sub-canvas and the relevant attributes read from the template image. The local coordinates calculated previously are then converted into global coordinates to complete the layout of switches, devices, ports, and non-cascaded lines on the global canvas.
[0044] (5) Calculate the inflection point coordinates of the cascade line. According to the relative coordinates of the ports at both ends of the connection line between each switch in the global canvas, calculate the inflection point coordinates of the connection line to form the path information of the connection line.
[0045] 1) The cascade port of the central switch and the cascade port of the interval switch connected to it are called a port pair. Let the maximum value of the horizontal axis be X max , add the port pair with the smallest horizontal coordinate to the first group of port lists, and assign the larger horizontal coordinate value of the port pair to X max ;
[0046] 2) According to the size of the horizontal coordinate of the cascade port of the central switch in the port pair, traverse it from small to large, and compare the smaller value of the horizontal coordinate in the port pair with the X max Compare, if greater than X max , then create a new set of port pair lists and add the port pair to them; otherwise, add the port pair to the list where the previous port pair is located; finally update X max is the larger value of the horizontal coordinate of the current port pair;
[0047] 3) If Figure 5a-5b As shown, the connection lines between the interval switch and the central switch are distributed in Figure 3 The central switch sub-canvas is decentralized and reserved for blank space. Each connection line has two inflection points, whose horizontal coordinates are the same as the horizontal coordinates of the port, and the vertical coordinates of the two inflection points are the same. They can be obtained by the following method: traverse all port pair lists, and for port pairs in the same list, divide the height of the reserved blank space of the central switch sub-canvas into equal parts according to the number of port pairs in the list, such as Figure 5a-5b If there are 3 pairs of ports in the port pair list, the height is divided into 4 equal parts. If the horizontal coordinate of the center switch port in the port pair is larger than the horizontal coordinate of the interval switch port, the vertical coordinate of the inflection point of the connection line of the port pair with the smaller horizontal coordinate is smaller, such as Figure 5a Otherwise, the vertical coordinate of the inflection point of the connecting line of the port pair with a smaller horizontal coordinate is larger, as shown in Figure 5b shown.
[0048] (6) Draw the screen, copy each graphic element from the template, lay out the graphic elements according to the calculated coordinates, size, connection lines and other layout information of each graphic element, form a process layer physical circuit diagram, and save the screen for reference.
[0049] The present invention maintains the networking characteristics of the central switch and the interval switch in the process layer network diagram, has an intuitive picture, and can provide an effective secondary circuit monitoring means for secondary operation and maintenance personnel.
[0050] Example 2:
[0051] Based on the method for generating a plant process layer physical loop diagram described in the first embodiment, this embodiment provides a plant process layer physical loop diagram generation system, including:
[0052] A model building module is used to obtain a device list and a physical loop list that match the type of the process layer physical loop diagram to be built, and establish a one-to-one correspondence between the device list and the physical loop list to form a process layer network model;
[0053] A local canvas generation module is used to determine the local layout type based on the type of switch in the device list, calculate the switch length, ports and relative coordinates of the device, and generate the local canvas;
[0054] The global canvas generation module is used to calculate the relative coordinates between the local canvases, obtain the global relative coordinates of each graphic element in the process layer network model, and form a global canvas;
[0055] A connection line path information calculation module is used to calculate the coordinates of the inflection points of the connection lines between switches based on the relative coordinates of the ports at both ends of the connection lines in the global canvas to form the path information of the connection lines;
[0056] The graphic element layout module is used to automatically layout each graphic element according to the coordinates and path information of each graphic element and the connecting line to form a process layer physical circuit diagram.
[0057] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for generating a physical loop diagram at a plant process layer, characterized in that: include: Obtain a device list and a physical loop list that match the type of the process layer physical loop diagram to be constructed, and establish a one-to-one correspondence between the device list and the physical loop list to form a process layer network model; According to the type of switch in the device list, determine the local layout type, calculate the switch length, port and device relative coordinates, and generate a local canvas; Calculate the relative coordinates between each local canvas, obtain the global relative coordinates of each element in the process layer network model, and form a global canvas; Based on the relative coordinates of the ports at both ends of the connection lines between switches in the global canvas, the inflection point coordinates of the connection lines are calculated to form the path information of the connection lines. According to the coordinates and path information of each graphic element and connecting line, each graphic element is automatically laid out to form a process layer physical circuit diagram; The method of obtaining a device list and a physical loop list that match the type of the process layer physical loop diagram to be constructed is as follows: When the process-level physical circuit diagram to be constructed is a voltage-level physical circuit diagram, first, according to the relationship between voltage levels and protection devices in the SCD model library and the set information of the protection devices, the protection devices that meet the conditions are screened out to form a device list; Then, the device list is traversed, and the device connected to it is found through the port information of the physical loop, and the newly found device is added to the device list. This process is repeated until no new device is added. The associated physical loops found in this process are saved to form a physical loop list. When the process layer physical loop diagram to be constructed is an interval physical loop diagram, first, according to the relationship between the interval and the protection device in the SCD model library, as well as the set information of the protection device, the qualified protection devices are screened out to form a device list. Then, the device list is traversed, and the devices that interact with the signals are found through the subscription and sending terminals of the logical loop, and added to the device list; the device list is traversed, and the switches connected to it are found through the port information of the physical loop, and added to the device list. The associated physical loops searched in this process are saved to form a physical loop list.
2. The method for generating a plant process layer physical loop diagram according to claim 1, characterized in that: The method of establishing a one-to-one correspondence between a device list and a physical loop list to form a process layer network model includes: establishing the following two hash tables based on the port information in the physical loop list: (1) a hash table in which the key is the switch port and the value is the port of the opposite device connected to the port; and (2) a hash table in which the key is the switch port and the value is the physical loop connected to the port; and the two hash tables are used to find the correspondence between the port and the device and the physical loop.
3. The method for generating a plant process layer physical loop diagram according to claim 1, characterized in that: The method of determining the local layout type according to the type of the switch in the device list, calculating the switch length, the relative coordinates of the port and the device, and generating the local canvas includes: Read relevant parameters from the template screen, including: canvas top margin, left margin, horizontal spacing between devices, vertical spacing between devices and switches, device width, device height, and port width; Place the devices connected to the central switch above the central switch, with the corresponding ports aligned vertically with the devices; place the devices connected to the interval switches symmetrically above and below the interval switches, with the corresponding ports aligned vertically with the devices; calculate the width of the switch based on the number of devices connected to the switch and the relevant parameters read from the template screen; Evenly distribute the cascade ports of the central switch at the bottom edge of the switch. The cascade ports of the interval switches are located on the leftmost or rightmost side. The arrangement order of the interval switch sub-canvases is the same as that of the central switch cascade ports. Then calculate the coordinates of the cascade ports at each level. The layout of the interval switches is determined based on the relative positions of the cascade ports of the central switch and the interval switches. The layout of the interval switches is divided into "symmetrical left extension type", "asymmetrical left extension type", "symmetrical right extension type" and "asymmetrical right extension type".
4. The method for generating a plant process layer physical loop diagram according to claim 3, characterized in that: The step of calculating the relative coordinates between the local canvases, obtaining the global relative coordinates of each graphic element in the process layer network model, and forming a global canvas includes: Based on the layout type of the bay switch, calculate the relative coordinates of ports and devices in the bay switch sub-canvas. The basic principles of bay switch layout are: devices are placed symmetrically around the switch, with the corresponding switch ports aligned with the center of the device, cascade ports placed on the far left or right, and switch ports evenly spaced. The layout principle of the global canvas is as follows: the central switch sub-canvas is located in the horizontal center of the global canvas, and the interval switch sub-canvas is located below the central switch sub-canvas. The vertical coordinate of the bottom edge of the central switch sub-canvas is the vertical coordinate of the top edge of each interval switch sub-canvas. The arrangement order of each interval switch sub-canvas is consistent with the arrangement order of the central switch cascade ports. Then, combining the geometric information of each sub-canvas and the relevant attributes read from the template screen, the absolute coordinates of the origin of each sub-canvas in the global canvas are calculated, and then the local coordinates calculated in the local canvas are converted into global coordinates to complete the layout of switches, devices, ports and non-cascade lines in the global canvas.
5. The method for generating a plant process layer physical loop diagram according to claim 4, characterized in that: The step of calculating the inflection point coordinates of the connection lines based on the relative coordinates of the ports at both ends of the connection lines between the switches in the global canvas to form the path information of the connection lines includes: The cascade port of the central switch and the cascade port of the interval switch connected to it are called a port pair. Let the maximum value of the horizontal coordinate be , add the pair of ports with the smallest horizontal coordinate to the first group of port lists, and assign the larger value of the horizontal coordinate to the port pair; According to the size of the horizontal coordinates of the cascaded ports of the central switch in the port pair, it is traversed from small to large, and the smaller value of the horizontal coordinate in the port pair is compared with the previous value. If it is greater, a new group of port lists is created and the port pair is added to it; otherwise, the port pair is added to the list where the previous port pair is located; finally, the larger value of the horizontal coordinate in the current port pair is updated; For port pairs in the same list, the vertical axis is equally divided according to the number of port pairs in the list.
6. The method for generating a plant process layer physical loop diagram according to claim 5, characterized in that: The method automatically lays out each graphic element according to the coordinates and path information of each graphic element and the connecting line to form a process layer physical circuit diagram. Specifically, each graphic element is copied from the template, and the graphic elements are laid out according to the calculated coordinates, size and connecting line information of each graphic element to form a process layer physical circuit diagram, and the screen is saved for reference.
7. A plant process layer physical loop diagram generation system, characterized in that: include: A model building module is used to obtain a device list and a physical loop list that match the type of the process layer physical loop diagram to be built, and establish a one-to-one correspondence between the device list and the physical loop list to form a process layer network model; A local canvas generation module is used to determine the local layout type based on the type of switch in the device list, calculate the switch length, ports and relative coordinates of the device, and generate the local canvas; The global canvas generation module is used to calculate the relative coordinates between the local canvases, obtain the global relative coordinates of each graphic element in the process layer network model, and form a global canvas; A connection line path information calculation module is used to calculate the coordinates of the inflection points of the connection lines between switches based on the relative coordinates of the ports at both ends of the connection lines in the global canvas to form the path information of the connection lines; The graphic element layout module is used to automatically layout each graphic element according to the coordinates and path information of each graphic element and the connecting line to form a process layer physical circuit diagram; The method of obtaining a device list and a physical loop list that match the type of the process layer physical loop diagram to be constructed is as follows: When the process-level physical circuit diagram to be constructed is a voltage-level physical circuit diagram, first, according to the relationship between voltage levels and protection devices in the SCD model library and the set information of the protection devices, the protection devices that meet the conditions are screened out to form a device list; Then, the device list is traversed, and the device connected to it is found through the port information of the physical loop, and the newly found device is added to the device list. This process is repeated until no new device is added. The associated physical loops found in this process are saved to form a physical loop list. When the process layer physical loop diagram to be constructed is an interval physical loop diagram, first, according to the relationship between the interval and the protection device in the SCD model library, as well as the set information of the protection device, the qualified protection devices are screened out to form a device list. Then, the device list is traversed, and the devices that interact with the signals are found through the subscription and sending terminals of the logical loop, and added to the device list; the device list is traversed, and the switches connected to it are found through the port information of the physical loop, and added to the device list. The associated physical loops searched in this process are saved to form a physical loop list.
Citation Information
Patent Citations
Automatic mapping monitoring system and method of intelligent substation secondary virtual loop
CN105680568A