CN103942345B - Method for automatically generating IED network graph - Google Patents
Method for automatically generating IED network graph Download PDFInfo
- Publication number
- CN103942345B CN103942345B CN201410199821.2A CN201410199821A CN103942345B CN 103942345 B CN103942345 B CN 103942345B CN 201410199821 A CN201410199821 A CN 201410199821A CN 103942345 B CN103942345 B CN 103942345B
- Authority
- CN
- China
- Prior art keywords
- layout
- network
- ied
- line
- pel
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明涉及一种IED网络图的生成方法,包括下述步骤:步骤一:生成网络拓扑:按照模型数据中通信条目对应的子网络条目,生成IED设备布局对象的网络拓扑;步骤二:自动布局:先对子网直接连接的IED设备进行布局;然后在子网范围内进行分组布局,直至完成对整个网络的布局。步骤三:网格布线:针对步骤二中布局完成的所有图元,设定网格参考线,按照上、下、左、右方向遍历网格线交叉点,最终完成图元的连线路径;步骤四:检验布局,无交叉则完成布局,有交叉则根据连线交叉情况进行二次连线;步骤五:IED网络自动生成,输出网络图。本发明避免了单一算法的缺陷,根据网络图模型,开发实现更高效合理逻辑布局的算法,可适应不同数据模型需求,方便网络拓扑数据建模并且生成的IED网络图线路清晰。
The invention relates to a method for generating an IED network diagram, comprising the following steps: Step 1: Generate network topology: generate the network topology of the IED device layout object according to the sub-network entry corresponding to the communication entry in the model data; Step 2: Automatic layout : First, layout the IEDs directly connected to the subnet; then perform group layout within the subnet until the layout of the entire network is completed. Step 3: Grid routing: For all the graphic elements that have been laid out in step 2, set the grid reference line, traverse the grid line intersections in the up, down, left, and right directions, and finally complete the connection path of the graphic elements; Step 4: Check the layout, complete the layout if there is no intersection, and perform secondary connection according to the connection intersection if there is an intersection; Step 5: Automatically generate the IED network and output the network diagram. The invention avoids the defect of a single algorithm, develops and realizes a more efficient and reasonable logic layout algorithm according to the network diagram model, can adapt to different data model requirements, facilitates network topology data modeling and generates clear IED network diagram lines.
Description
技术领域technical field
本发明涉及一种自动生成IED网络图的方法,适用于变电站自动化系统IED网络图的生成。The invention relates to a method for automatically generating an IED network diagram, which is suitable for generating an IED network diagram of a substation automation system.
背景技术Background technique
传统的网络通讯是通过变电站配置描述语言(Substation ConfigurationLanguage,SCL)进行描述,采用SCL实现信息共享,为面向对象的系统理论以及建设电力系统领域内通用信息模型奠定了理论基础。IEC 61850国际标准 SCL 可以适应变电站自动化系统中设备的多样性和灵活性,规范变电站自动化系统的数据信息,使其以统一、高效的标准处理电力系统资源,为网络图生成提供切实基础。Traditional network communication is described by Substation Configuration Language (SCL), and SCL is used to realize information sharing, which lays a theoretical foundation for object-oriented system theory and the construction of general information models in the field of power systems. The IEC 61850 international standard SCL can adapt to the diversity and flexibility of equipment in the substation automation system, standardize the data information of the substation automation system, make it handle power system resources with a unified and efficient standard, and provide a practical basis for the generation of network diagrams.
但是通过SCL进行描述增加了非专业人士理解和检查网络通讯的难度。因此在IEC61850国际标准基础之上,建立起可操作化的用户交互界面,通过友好的界面模型交互实现IED网络图模型构建和IED网络图自动是变电站自动化系统中不可或缺的重要步骤,有利于提高变电站自动化效率。But describing through SCL increases the difficulty for non-specialists to understand and examine network communication. Therefore, on the basis of the IEC61850 international standard, it is an indispensable and important step in the substation automation system to establish an operable user interaction interface and realize the construction of the IED network diagram model and the automation of the IED network diagram through friendly interface model interaction, which is beneficial to the substation automation system. Improve substation automation efficiency.
IED网络布局主要体现网络之间的逻辑连接,而不需要考虑太多的包括地理位置等信息,其主要是逻辑布局。现有逻辑布局的图形布局算法主要有树型布局算法、层次布局算法、直交布局算法、射线布局算法、动态交互布局和混合布局算法等。The IED network layout mainly reflects the logical connection between networks, and does not need to consider too much information including geographical location, which is mainly a logical layout. The existing graphic layout algorithms of logical layout mainly include tree layout algorithm, hierarchical layout algorithm, orthogonal layout algorithm, ray layout algorithm, dynamic interactive layout and hybrid layout algorithm.
树形布局算法:将某一节点作为根,进行遍历,等到生成树,按照树的结构进行布局,将所有的节点连接起来。Tree layout algorithm: take a certain node as the root, traverse it, wait until the tree is generated, layout according to the tree structure, and connect all nodes.
直交布局算法:为图布局提供了一种不同的风格。布局结果中,节点之间的连线均与横纵坐标轴平行,使整体布局效果更规整, 可读性强。Orthogonal Layout Algorithm: Provides a different style for graph layout. In the layout results, the connections between nodes are all parallel to the horizontal and vertical axes, which makes the overall layout effect more regular and readable.
层次布局算法:层次布局算法着眼于图内部的层次特性。其按照一定的标准将图进行分层,先确定各节点的Y轴坐标;接下来,以减少边的交叉数为目标优化节点的X 轴的排列。Hierarchical Layout Algorithms: Hierarchical layout algorithms look at the hierarchical properties inside the graph. It stratifies the graph according to certain standards, first determines the Y-axis coordinates of each node; then, optimizes the arrangement of the X-axis of nodes with the goal of reducing the number of crossing edges.
射线布局算法:该方法在得到图的生成树后, 将其根节点置于中心位置,按照树的层次结构,依次将其布局在以根节点为圆心的同心圆上。射线布局算法的实质是树型布局的极坐标形式,但就布局效果来说,射线布局更容易被人们接受。Ray layout algorithm: After obtaining the spanning tree of the graph, this method puts its root node at the center, and sequentially arranges it on concentric circles with the root node as the center according to the hierarchical structure of the tree. The essence of the ray layout algorithm is the polar coordinate form of the tree layout, but as far as the layout effect is concerned, the ray layout is easier to be accepted by people.
虽然这些布局算法已经比较成熟,但是应用到显示电力的网络布局中还是不能完全适用,或者说并不能很好地根据逻辑连接把IED网络图的特点体现出来。例如:树形布局虽然算法简单,高效;但是所显示的网络布局与实际网络结构差异很大,无法求得满意的结果。Although these layout algorithms are relatively mature, they are still not fully applicable to the network layout for displaying electricity, or they cannot reflect the characteristics of the IED network diagram well according to the logical connection. For example: Although the tree layout algorithm is simple and efficient; but the displayed network layout is very different from the actual network structure, and satisfactory results cannot be obtained.
发明内容Contents of the invention
本发明的目的在于提供一种在准确的变电站配置语言SCL模型数据描述的前提下为变电站自动化系统呈现线路清晰、交叉点少、布局均匀且可视化强的自动生成IED网络图的方法。The purpose of the present invention is to provide a method for automatically generating IED network diagrams with clear lines, fewer intersections, uniform layout and strong visualization for the substation automation system under the premise of accurate substation configuration language SCL model data description.
本发明所采用的技术方案:The technical scheme adopted in the present invention:
本发明包括下述步骤:The present invention comprises the following steps:
本发明的方法包括下述步骤:Method of the present invention comprises the following steps:
步骤一:生成网络拓扑:Step 1: Generate network topology:
遍历SCL模型数据中通信条目对应的子网络条目;Traverse the subnet entries corresponding to the communication entries in the SCL model data;
遍历未被遍历的子网络条目,创建子网络布局对象,遍历子网络条目上的所有网络接入点条目,若网络接入点条目中存在IED条目,则生成网络接入点布局对象和IED布局对象;Traverse untraversed sub-network entries, create a sub-network layout object, traverse all network access point entries on the sub-network entry, if there is an IED entry in the network access point entry, generate a network access point layout object and an IED layout object;
设置子网络布局对象的网络接入点属性为网络接入点布局对象,设置网络接入点布局对象的所属智能设备属性为IED布局对象;The network access point attribute of the subnetwork layout object is set as the network access point layout object, and the smart device attribute of the network access point layout object is set as the IED layout object;
遍历完成所有未遍历的子网络条目,即生成布局对象的网络拓扑;Traverse all untraversed sub-network entries, that is, generate the network topology of the layout object;
步骤二:自动布局:Step 2: Auto Layout:
按照IED的个数把IED分为上下两排,分布在子网的上下位置,完成对子网络布局对象直接连接的IED布局对象的布局;Divide the IEDs into upper and lower rows according to the number of IEDs, distribute them in the upper and lower positions of the subnet, and complete the layout of the IED layout objects directly connected to the subnetwork layout objects;
以任意子网络布局对象作为单元,在子网络布局对象范围内进行搜索,按照搜索的顺序进行布局,每两个单位为一个组,布完本组后把该组当做布局的单元参与布局,直至完成对整个网络的布局,即生成所有布局对象的位置信息;Use any sub-network layout object as a unit, search within the scope of the sub-network layout object, and perform layout according to the search order. Every two units are a group. After the group is completed, this group is used as a layout unit to participate in the layout until Complete the layout of the entire network, that is, generate the location information of all layout objects;
步骤三:网格布线:Step 3: grid wiring:
A:网格化参考线,A: gridded reference lines,
以IED布局对象图元长度的四分之一为单位,对自动布局后的坐标系统划分成棋盘式纵横参考线,纵横参考线的交叉点为网格线交叉点;The coordinate system after the automatic layout is divided into checkerboard-style vertical and horizontal reference lines with a quarter of the length of the IED layout object graphic element as the unit, and the intersection points of the vertical and horizontal reference lines are grid line intersection points;
B:建立自动布局对象图元,B: Create an automatic layout object primitive,
针对步骤二中自动布局后子网络布局对象和IED布局对象建立各自对应的图元,即子网络布局对象图元和IED布局对象图元;For the sub-network layout object and the IED layout object after the automatic layout in step 2, establish respective corresponding graphic elements, that is, the sub-network layout object graphic element and the IED layout object graphic element;
根据步骤二中自动布局后的位置信息,使得子网络布局对象图元和IED布局对象图元的左上角分别对齐到网格线交叉点上;According to the position information after the automatic layout in step 2, the upper left corners of the sub-network layout object graphic elements and the IED layout object graphic elements are respectively aligned to the grid line intersections;
建立网络接入点布局对象图元,在IED布局对象图元的图元边缘网格线交叉点上建立连接端点图元,在子网络布局对象图元的图元边缘网格线交叉点上建立连接端点图元;Establish network access point layout object primitives, establish connection endpoint primitives at the intersections of primitive grid lines on the primitives of the IED layout object primitives, and establish connection endpoint primitives on the intersections of primitive grid lines on the primitives of the sub-network layout object Connect endpoint primitives;
C:连线,确定网络接入点布局对象图元路径和连接端点图元位置,C: connection, to determine the path of the network access point layout object primitive and the position of the connection endpoint primitive,
连线:设置布局对象图元上的所有连接端点图元的遍历方向,包括上、下、左、右四个方向;将同一个布局对象图元上的所有连接端点图元设为一组,选择未连线且有连接关系的两个布局对象图元上的两组连接端点图元,进行连线;Connection: Set the traversal direction of all connection endpoint primitives on the layout object primitive, including four directions of up, down, left and right; set all connection endpoint primitives on the same layout object primitive as a group, Select two groups of connection endpoint primitives on two layout object primitives that are not connected and have a connection relationship, and connect them;
将一个布局对象图元上的连接端点图元作为最初的起始点,加入起始点序列,依次遍历起始点序列中每个起始点的上、下、左、右四个方向的网格线交叉点,每遍历一个网格线交叉点,就将该网格线交叉点加入到起始点序列中,继续依次遍历下一个网格线交叉点,直到遍历到的网格线交叉点与另一个布局对象图元上的连接端点图元重合,该重合点就为结束点,则最初的起始点与结束点之间的遍历路径便为最终的连线路径,即网络接入点布局对象图元路径;而连接端点图元位置就是路径中最初的起始点和结束点;Take the connection endpoint primitive on a layout object primitive as the initial starting point, add it to the starting point sequence, and traverse the intersection points of the grid lines in the four directions of up, down, left and right of each starting point in the starting point sequence in turn , each time a grid line intersection is traversed, the grid line intersection is added to the starting point sequence, and the next grid line intersection is traversed in turn until the traversed grid line intersection is matched with another layout object If the connection endpoints on the primitives overlap, the coincident point is the end point, and the traversal path between the initial start point and the end point is the final connection path, that is, the path of the network access point layout object primitive; The position of the connection endpoint primitive is the initial starting point and ending point in the path;
步骤四:检验布局:Step 4: Verify the layout:
如果连线后无交叉或无布局单位重叠,则完成布局;If there is no intersection or no overlapping of layout units after the connection, the layout is completed;
如果连线后存在交叉或布局单位重叠,则进行重新连线:对连线后所有连接线的交叉由多到少依次排序,并记录连线交叉总数为S,设置M0为最多绕过网格线交叉点的次数,设置所有连接线路径上的网格线交叉点的固定权值M;取出一条连接线,重新连线,在连线遍历网格线交叉点的过程中如果遇到M时,绕过此点即此点不被遍历,记录绕过次数n,如果n大于M0时所有网格线交叉点不再被绕过;形成此次的连线,计算此次连线后左右的交叉数S’,如果S’小于S此次连线被采用,否则继续取下一条有交叉的连接线重新连线;If there are intersections or layout unit overlaps after the connection, then reconnect: sort the intersections of all the connection lines from more to less after the connection, and record the total number of connection crossings as S, set M 0 as the most bypassed network The number of grid line intersections, set the fixed weight M of the grid line intersections on all the connecting line paths; take out a connecting line, reconnect the line, if M is encountered in the process of traversing the grid line intersections When this point is bypassed, that is, this point will not be traversed, record the number of bypasses n, if n is greater than M 0 , all grid line intersections will no longer be bypassed; form this connection, after calculating this connection The left and right intersection number S', if S' is less than S, the connection is adopted this time, otherwise continue to remove the next connecting line with a cross and reconnect;
步骤五:IED网络图自动生成,输出网络图。Step 5: The IED network diagram is automatically generated and the network diagram is output.
进一步的,本发明的方法在步骤二中连接着一个或多个子网的IED设备作为一个单位参与布局。Further, in the second step of the method of the present invention, the IEDs connected to one or more subnets participate in the layout as a unit.
本发明的有益效果包括:The beneficial effects of the present invention include:
(1)本发明以IEC 61850 模型数据(即SCL数据)为基础,结合变电站自动化领域的实际需要对IED数据模型进行建设,自动生成适应于变电站自动化系统IED网络图。(1) The present invention is based on the IEC 61850 model data (ie SCL data) and combines the actual needs in the field of substation automation to construct the IED data model, and automatically generates an IED network diagram suitable for the substation automation system.
(2)本发明方便网络拓扑数据建模,建模过程的数据与图元交互操作简单,能够快速准确的组建不同模型需要的数据关系。(2) The present invention is convenient for network topology data modeling, and the data and graph elements in the modeling process are interactively operated easily, and the data relationships required by different models can be quickly and accurately established.
(3)本发明适应不同数据模型需求,由于对数据模型采用了图论图元的泛化抽象使得本IED网络图的生成方法可以处理不同数据模型。(3) The present invention adapts to the requirements of different data models. Since the generalized abstraction of graph theory graph elements is adopted for the data models, the generation method of the IED network graph can handle different data models.
(4)本发明生成的IED网络图线路清晰,交叉点少,布局均匀,效果良好。针对不同模型拓扑采用了不同的布局和走线优化算法。(4) The IED network diagram generated by the present invention has clear lines, few intersection points, uniform layout and good effect. Different placement and routing optimization algorithms are used for different model topologies.
(5)本发明根据网络图模型,开发实现更高效合理逻辑布局的算法。本发明根据模型特点和综合逻辑布局算法进行整合,是基于标准IEC 61850的通用的自动绘图实现方式,得到一种能够避免原件重叠,连线交叉而且布局美观实用的网络图变现方法。本发明实现以现有设备的逻辑连接关系为基础,不需要其它的人工操作的情况下,自动绘制网络图形。(5) According to the network graph model, the present invention develops and realizes an algorithm for more efficient and reasonable logical layout. The present invention integrates the characteristics of the model and the comprehensive logic layout algorithm. It is a general automatic drawing implementation method based on the standard IEC 61850, and obtains a method for realizing network diagrams that can avoid overlapping of originals, intersect lines, and have a beautiful and practical layout. The present invention is based on the logical connection relationship of the existing equipment, and automatically draws network graphics without other manual operations.
(6)本发明避免了单一算法的缺陷,通过对网络模型的读取和分析,对网络进行主干处理、支路剥离,优先考虑先局部后整体的布局算法,并采用布局节点效果权值比重计算,分析初始布局效果,如果没达到布局效果,连接交叉太多布局单位重叠,则进行二次布局图形会再进行二次布局 ,最终实现达到理想化效果的网络图自动成图。(6) The present invention avoids the defects of a single algorithm. By reading and analyzing the network model, the backbone processing and branch stripping are performed on the network, and the layout algorithm that first considers the local and then the whole is given priority, and the weight ratio of the layout node effect is adopted. Calculate and analyze the initial layout effect. If the layout effect is not achieved, and too many layout units are overlapped by connections and crossings, the second layout will be performed on the graphics, and the second layout will be carried out, and finally the network diagram that achieves the ideal effect will be automatically formed.
附图说明Description of drawings
图1为本发明方法的流程图;Fig. 1 is the flowchart of the inventive method;
图2为本发明实施例1步骤一生成的IED设备布局对象的网络拓扑;Fig. 2 is the network topology of the IED device layout object generated in Step 1 of Embodiment 1 of the present invention;
图3为本发明实施例1最终自动生成的网络图;Fig. 3 is the final automatically generated network diagram of Embodiment 1 of the present invention;
图4为本发明实施例2最终自动生成的网络图。FIG. 4 is a final automatically generated network diagram according to Embodiment 2 of the present invention.
具体实施方式detailed description
本发明的具体实施例是对本发明目的、技术方案和有益效果的进一步详细说明,所以本发明的具体实施例并不用于限制本发明,凡在本发明的权利要求范围内,所做的任何修改、等同替换等均应包含在本发明的保护范围内。The specific embodiments of the present invention are further detailed descriptions of the purpose, technical solutions and beneficial effects of the present invention, so the specific embodiments of the present invention are not used to limit the present invention, and any modifications made within the scope of the claims of the present invention , equivalent replacement, etc. shall be included in the protection scope of the present invention.
本发明的操作步骤可以概括为:Operation steps of the present invention can be summarized as:
步骤一:生成网络拓扑:按照模型数据中通信条目对应的子网络条目,生成IED设备布局对象的网络拓扑;Step 1: Generate network topology: generate the network topology of the IED device layout object according to the subnetwork entry corresponding to the communication entry in the model data;
步骤二:自动布局:先对子网直接连接的IED设备进行布局;然后在子网范围内进行分组布局,直至完成对整个网络的布局。Step 2: Automatic layout: First, layout the IEDs directly connected to the subnet; then perform group layout within the subnet until the layout of the entire network is completed.
步骤三:网格布线:针对步骤二中布局完成的所有图元,设定网格参考线,按照上、下、左、右方向遍历网格线交叉点,最终完成图元的连线路径;Step 3: Grid routing: For all the graphic elements that have been laid out in step 2, set the grid reference line, traverse the grid line intersections in the up, down, left, and right directions, and finally complete the connection path of the graphic elements;
步骤四:检验布局,无交叉则完成布局,有交叉则根据连线交叉情况进行二次连线;Step 4: Check the layout, complete the layout if there is no intersection, and perform the second connection according to the intersection of the connection if there is an intersection;
步骤五:IED网络自动生成,输出网络图。Step 5: The IED network is automatically generated and the network diagram is output.
实施例1Example 1
对仅包含一个通讯子网的模型进行的网络布局。Network layout for a model with only one communication subnet.
如图1所示,本发明自动生成IED网络图的方法包括下述步骤:As shown in Figure 1, the method for automatically generating the IED network diagram of the present invention comprises the following steps:
步骤一:生成网络拓扑:Step 1: Generate network topology:
遍历模型数据中通信条目对应的子网络条目;Traverse the subnet entries corresponding to the communication entries in the model data;
所有子网络条目均被遍历,构建IED设备布局对象,并自动生成如图2所示的IED设备布局对象的网络拓扑。All sub-network entries are traversed to construct the IED device layout object, and automatically generate the network topology of the IED device layout object as shown in Figure 2.
步骤二:自动布局:Step 2: Auto Layout:
按照IED的个数把IED分为上下两排,分布在子网的上下位置,完成对子网直接连接的IED设备的布局;Divide the IEDs into upper and lower rows according to the number of IEDs, and distribute them in the upper and lower positions of the subnet to complete the layout of the IEDs directly connected to the subnet;
以任意子网作为单元,在子网范围内进行搜索,按照搜索的顺序进行布局,每两个单位为一个组,布完本组后把该组当做布局的单元参与布局,直至完成对整个网络的布局。Use any subnet as a unit, search within the subnet range, and carry out layout according to the search order. Every two units form a group. After the group is deployed, this group is used as a layout unit to participate in the layout until the entire network is completed. Layout.
步骤三:网格布线:Step 3: grid wiring:
A:网格化参考线,A: gridded reference lines,
以IED布局对象图元长度的四分之一为单位,对自动布局后的坐标系统划分成棋盘式纵横参考线,纵横参考线的交叉点即为下面提到的网格线交叉点;The coordinate system after the automatic layout is divided into checkerboard-style vertical and horizontal reference lines with a quarter of the length of the IED layout object graphic element as the unit. The intersection of the vertical and horizontal reference lines is the grid line intersection mentioned below;
B:建立自动布局对象图元B: Create Auto Layout Object Primitives
针对步骤二中自动布局后子网络布局对象和IED布局对象建立各自对应的图元,即子网络布局对象图元和IED布局对象图元。根据步骤二中自动布局后的位置信息,使得子网络布局对象图元和IED布局对象图元的左上角分别对齐到网格线交叉点上。For the sub-network layout object and the IED layout object after the automatic layout in step 2, corresponding graphic elements are established, that is, the sub-network layout object graphic entity and the IED layout object graphic entity. According to the position information after the automatic layout in step 2, the upper left corners of the sub-network layout object graphic elements and the IED layout object graphic elements are respectively aligned to the grid line intersections.
建立网络接入点布局对象图元,在IED布局对象图元的图元边缘网格线交叉点上建立连接端点图元,在子网络布局对象图元的图元边缘网格线交叉点上建立连接端点图元。Establish network access point layout object primitives, establish connection endpoint primitives at the intersections of primitive grid lines on the primitives of the IED layout object primitives, and establish connection endpoint primitives on the intersections of primitive grid lines on the primitives of the sub-network layout object Connect endpoint primitives.
C:连线,确定网络接入点布局对象图元路径和连接端点图元位置,C: connection, to determine the path of the network access point layout object primitive and the position of the connection endpoint primitive,
连线:设置布局对象图元上的所有连接端点图元的遍历方向,包括上、下、左、右四个方向,将同一个布局对象图元上的所有连接端点图元设为一组,选择未连线且有连接关系的两个布局对象图元上的两组连接端点图元,进行连线;Connection: set the traversal direction of all connection endpoint primitives on the layout object primitive, including four directions of up, down, left and right, and set all connection endpoint primitives on the same layout object primitive as a group, Select two groups of connection endpoint primitives on two layout object primitives that are not connected and have a connection relationship, and connect them;
将一个布局对象图元上的连接端点图元作为最初的起始点,加入起始点序列,依次遍历起始点序列中每个起始点的上、下、左、右四个方向的网格线交叉点,每遍历一个网格线交叉点,就将该网格线交叉点加入到起始点序列中,继续依次遍历下一个网格线交叉点,直到遍历到的网格线交叉点与另一个布局对象图元上的连接端点图元重合,该重合点就为结束点,则最初的起始点与结束点之间的遍历路径便为最终的连线路径,即网络接入点布局对象图元路径,而连接端点图元位置就是路径中最初的起始点和结束点。Take the connection endpoint primitive on a layout object primitive as the initial starting point, add it to the starting point sequence, and traverse the intersection points of the grid lines in the four directions of up, down, left and right of each starting point in the starting point sequence in turn , each time a grid line intersection is traversed, the grid line intersection is added to the starting point sequence, and the next grid line intersection is traversed in turn until the traversed grid line intersection is matched with another layout object The connection endpoints on the primitives overlap, and the coincident point is the end point, and the traversal path between the initial start point and the end point is the final connection path, that is, the path of the network access point layout object primitive. The location of the connection endpoint primitives is the initial start point and end point in the path.
步骤四:检验布局:Step 4: Verify the layout:
连线后无交叉或无布局单位重叠,完成布局。After wiring, there is no crossing or overlapping of layout units, and the layout is completed.
步骤五:IED网络图自动生成,输出如图3所示的网络图。Step 5: The IED network diagram is automatically generated, and the network diagram shown in Figure 3 is output.
实施例2Example 2
对包含三个通讯子网的模型进行的网络布局。Network layout for a model with three communication subnets.
如图1所示,本发明自动生成IED网络图的方法包括下述步骤:As shown in Figure 1, the method for automatically generating the IED network diagram of the present invention comprises the following steps:
步骤一:生成网络拓扑:Step 1: Generate network topology:
遍历模型数据 中通信条目对应的子网络条目;Traverse the sub-network entries corresponding to the communication entries in the model data;
由于存在未被遍历的子网络条目,依据子网络条目WO1(8-MMS)、WO12(8-MMS)以及WO13(8-MMS)查找属性网络接入点,生成IED设备布局对象,并自动生成IED设备布局对象的网络拓扑。Since there are untraversed sub-network entries, search attribute network access points according to sub-network entries WO1(8-MMS), WO12(8-MMS) and WO13(8-MMS), generate IED device layout objects, and automatically generate The network topology of the IED device layout object.
步骤二:自动布局:Step 2: Auto Layout:
按照IED的个数把IED分为上下两排,分布在子网的上下位置,完成对子网直接连接的IED设备的布局。Divide the IEDs into upper and lower rows according to the number of IEDs, and distribute them in the upper and lower positions of the subnet to complete the layout of the IEDs directly connected to the subnet.
连接着一个或多个子网的IED设备作为一个单位参与布局。IEDs connected to one or more subnets participate in the layout as a unit.
以任意子网作为单元,在子网范围内进行搜索,按照搜索的顺序进行布局,每两个单位为一个组,布完本组后把该组当做布局的单元参与布局,直至完成对整个网络的布局。Use any subnet as a unit, search within the subnet range, and carry out layout according to the search order. Every two units form a group. After the group is deployed, this group is used as a layout unit to participate in the layout until the entire network is completed. Layout.
步骤三:网格布线:Step 3: grid wiring:
A:网格化参考线,A: gridded reference lines,
以IED布局对象图元长度的四分之一为单位,对自动布局后的坐标系统划分成棋盘式纵横参考线,纵横参考线的交叉点即为下面提到的网格线交叉点;The coordinate system after the automatic layout is divided into checkerboard-style vertical and horizontal reference lines with a quarter of the length of the IED layout object graphic element as the unit. The intersection of the vertical and horizontal reference lines is the grid line intersection mentioned below;
B:建立自动布局对象图元B: Create Auto Layout Object Primitives
针对步骤二中自动布局后子网络布局对象和IED布局对象建立各自对应的图元,即子网络布局对象图元和IED布局对象图元。根据步骤二中自动布局后的位置信息,使得子网络布局对象图元和IED布局对象图元的左上角分别对齐到网格线交叉点上。For the sub-network layout object and the IED layout object after the automatic layout in step 2, corresponding graphic elements are established, that is, the sub-network layout object graphic entity and the IED layout object graphic entity. According to the position information after the automatic layout in step 2, the upper left corners of the sub-network layout object graphic elements and the IED layout object graphic elements are respectively aligned to the grid line intersections.
建立网络接入点布局对象图元,在IED布局对象图元的图元边缘网格线交叉点上建立连接端点图元,在子网络布局对象图元的图元边缘网格线交叉点上建立连接端点图元。Establish network access point layout object primitives, establish connection endpoint primitives at the intersections of primitive grid lines on the primitives of the IED layout object primitives, and establish connection endpoint primitives on the intersections of primitive grid lines on the primitives of the sub-network layout object Connect endpoint primitives.
C:连线,确定网络接入点布局对象图元路径和连接端点图元位置,C: connection, to determine the path of the network access point layout object primitive and the position of the connection endpoint primitive,
连线:设置布局对象图元上的所有连接端点图元的遍历方向,包括上、下、左、右四个方向,将同一个布局对象图元上的所有连接端点图元设为一组,选择未连线且有连接关系的两个布局对象图元上的两组连接端点图元,进行连线;Connection: set the traversal direction of all connection endpoint primitives on the layout object primitive, including four directions of up, down, left and right, and set all connection endpoint primitives on the same layout object primitive as a group, Select two groups of connection endpoint primitives on two layout object primitives that are not connected and have a connection relationship, and connect them;
将一个布局对象图元上的连接端点图元作为最初的起始点,加入起始点序列,依次遍历起始点序列中每个起始点的上、下、左、右四个方向的网格线交叉点,每遍历一个网格线交叉点,就将该网格线交叉点加入到起始点序列中,继续依次遍历下一个网格线交叉点,直到遍历到的网格线交叉点与另一个布局对象图元上的连接端点图元重合,该重合点就为结束点,则最初的起始点与结束点之间的遍历路径便为最终的连线路径,即网络接入点布局对象图元路径,而连接端点图元位置就是路径中最初的起始点和结束点。Take the connection endpoint primitive on a layout object primitive as the initial starting point, add it to the starting point sequence, and traverse the intersection points of the grid lines in the four directions of up, down, left and right of each starting point in the starting point sequence in turn , each time a grid line intersection is traversed, the grid line intersection is added to the starting point sequence, and the next grid line intersection is traversed in turn until the traversed grid line intersection is matched with another layout object The connection endpoints on the primitives overlap, and the coincident point is the end point, and the traversal path between the initial start point and the end point is the final connection path, that is, the path of the network access point layout object primitive. The location of the connection endpoint primitives is the initial start point and end point in the path.
步骤四:检验布局:Step 4: Verify the layout:
由于连线后存在交叉或布局单位重叠,则进行重新连线:对连线后所有连接线的交叉由多到少依次排序,并记录连线交叉总数为S,设置M0为最多绕过网格线交叉点的次数,设置所有连接线路径上的网格线交叉点的固定权值M;取出一条连接线,重新连线,在连线遍历网格线交叉点的过程中如果遇到M时,绕过此点即此点不被遍历,记录绕过次数n,如果n大于M0时所有网格线交叉点不再被绕过;形成此次的连线,计算此次连线后左右的交叉数S’,如果S’小于S此次连线被采用,否则继续取下一条有交叉的连接线重新连线;Since there are intersections or layout units overlap after the connection, reconnect: sort the intersections of all the connection lines from more to less after the connection, and record the total number of connection crossings as S, set M 0 as the most bypassed network The number of grid line intersections, set the fixed weight M of the grid line intersections on all the connecting line paths; take out a connecting line, reconnect the line, if M is encountered in the process of traversing the grid line intersections When this point is bypassed, that is, this point will not be traversed, record the number of bypasses n, if n is greater than M 0 , all grid line intersections will no longer be bypassed; form this connection, after calculating this connection The left and right intersection number S', if S' is less than S, the connection is adopted this time, otherwise continue to remove the next connecting line with a cross and reconnect;
步骤五:IED网络图自动生成,输出如图4所示的网络图。Step 5: The IED network diagram is automatically generated, and the network diagram shown in Figure 4 is output.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410199821.2A CN103942345B (en) | 2014-05-13 | 2014-05-13 | Method for automatically generating IED network graph |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410199821.2A CN103942345B (en) | 2014-05-13 | 2014-05-13 | Method for automatically generating IED network graph |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103942345A CN103942345A (en) | 2014-07-23 |
CN103942345B true CN103942345B (en) | 2017-04-19 |
Family
ID=51190013
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410199821.2A Active CN103942345B (en) | 2014-05-13 | 2014-05-13 | Method for automatically generating IED network graph |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103942345B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104834525A (en) * | 2015-05-14 | 2015-08-12 | 南京南瑞继保电气有限公司 | Graphical page linked network processing method based on relay points |
CN107545085B (en) * | 2016-06-27 | 2020-09-08 | 国网四川省电力公司 | A method for automatic generation of network connection diagram of intelligent substation process layer |
CN107808060B (en) * | 2017-11-15 | 2018-10-19 | 杭州杉石科技有限公司 | Industrial electronic system is crosslinked the automatic placement method and apparatus of figure |
CN109086315B (en) * | 2018-06-27 | 2021-07-20 | 创新先进技术有限公司 | ER graph layout method and device |
CN111797485B (en) * | 2020-06-05 | 2023-04-07 | 同济大学 | Automatic mapping method for air conditioner water system schematic diagram based on topology layering abstraction |
CN113963076A (en) * | 2020-07-20 | 2022-01-21 | 山东昭元信息科技有限公司 | Local automatic wiring method and device for special-subject graph of power system |
CN111859589B (en) * | 2020-07-20 | 2024-05-17 | 山西潞安环保能源开发股份有限公司 | Method suitable for automatic layout of primitives in transformer substation of setting calculation software |
CN114821094A (en) * | 2022-01-04 | 2022-07-29 | 上海品览数据科技有限公司 | Automatic CAD drawing member wiring method based on threading counting A-Star algorithm |
CN116050036B (en) * | 2023-01-09 | 2023-06-13 | 北京国科恒通科技股份有限公司 | Power grid diagram construction method, device and equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101706816A (en) * | 2009-12-22 | 2010-05-12 | 广东电网公司电力科学研究院 | Method for detecting digitized transformer station model |
CN101706773A (en) * | 2009-11-19 | 2010-05-12 | 北京四方继保自动化股份有限公司 | Method for realizing fast and automatic modeling of transformer substation IEC 61850 by adopting XML information recombination |
US8180867B2 (en) * | 2008-07-29 | 2012-05-15 | Schneider Electric USA, Inc. | Configuration management system for power monitoring and protection system devices |
CN102622463A (en) * | 2012-01-05 | 2012-08-01 | 山东电力工程咨询院有限公司 | Drawing-model uniformity based method for automatic check of design drawings |
CN103218398A (en) * | 2013-03-13 | 2013-07-24 | 江苏省电力公司电力科学研究院 | Intelligent substation SCL (substation configuration description language) file difference comparison method |
US8665061B2 (en) * | 2009-08-05 | 2014-03-04 | Electro Industries/Gauge Tech | Intelligent electronic device having user-authenticating capabilities |
-
2014
- 2014-05-13 CN CN201410199821.2A patent/CN103942345B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8180867B2 (en) * | 2008-07-29 | 2012-05-15 | Schneider Electric USA, Inc. | Configuration management system for power monitoring and protection system devices |
US8665061B2 (en) * | 2009-08-05 | 2014-03-04 | Electro Industries/Gauge Tech | Intelligent electronic device having user-authenticating capabilities |
CN101706773A (en) * | 2009-11-19 | 2010-05-12 | 北京四方继保自动化股份有限公司 | Method for realizing fast and automatic modeling of transformer substation IEC 61850 by adopting XML information recombination |
CN101706816A (en) * | 2009-12-22 | 2010-05-12 | 广东电网公司电力科学研究院 | Method for detecting digitized transformer station model |
CN102622463A (en) * | 2012-01-05 | 2012-08-01 | 山东电力工程咨询院有限公司 | Drawing-model uniformity based method for automatic check of design drawings |
CN103218398A (en) * | 2013-03-13 | 2013-07-24 | 江苏省电力公司电力科学研究院 | Intelligent substation SCL (substation configuration description language) file difference comparison method |
Non-Patent Citations (2)
Title |
---|
数字化变电站继电保护系统关键检验技术分析;常凤然等;《河北电力技术》;20101031;第29卷(第5期);全文 * |
数字化变电站采样值传输规约的综述与对比分析;廖泽友等;《电力系统保护与控制》;20100228;第38卷(第4期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN103942345A (en) | 2014-07-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103942345B (en) | Method for automatically generating IED network graph | |
CN103150425B (en) | Based on the power distribution network line chart automatic generation method of topological hierarchy | |
CN104133943B (en) | Based on goal-oriented distribution figure automatic generation method | |
CN105046363B (en) | A kind of region distribution system single-line diagram layout and optimization method | |
CN104616207B (en) | Power network topology visualization system and method | |
CN105117518B (en) | A kind of distribution feeder line chart automatic drafting method and system for radiating Connection Mode | |
CN107545085B (en) | A method for automatic generation of network connection diagram of intelligent substation process layer | |
CN102663181B (en) | Automatic drawing method of distribution network diagram | |
CN102902847B (en) | Transmission grid single line diagram automatic design method based on combination primitives | |
CN101729353B (en) | Method, device and system for network topology layout | |
CN105449676B (en) | Power distribution network Area Node network generation method and system | |
CN105488269A (en) | CIM based automatic graph-forming system for power transmission and distribution network | |
CN108988400B (en) | Power distribution method for multi-machine parallel power electronic transformer and electronic equipment | |
CN105787811A (en) | Method and system for automatic layout of power grid system graph to overcome crossing defect | |
CN105335584A (en) | Distribution network system single line drawing generation optimization device and method | |
CN110213107A (en) | A kind of autoplacement method, device and equipment for network topological diagram | |
CN105138764B (en) | A kind of method of the power grid thematic map automatic mapping model based on multiple-objection optimization | |
CN111026900A (en) | Power distribution network wiring group generation and net rack topological graph generation method and device | |
CN103020335A (en) | Method for automatically converting distribution network geographic wiring diagram into region orthogonal diagram | |
CN109167348A (en) | Method is determined based on the dominant eigenvalues feasible zone of multi-parametric programming theory | |
CN104182913A (en) | Power grid mode picture forming and intelligent distributing method | |
Peng et al. | Sideknot: Revealing relation patterns for graph visualization | |
CN105354680A (en) | GIS-based auxiliary determination and analysis method for grid section | |
CN106910140A (en) | A kind of method based on SVG form power system wiring diagram Network topologies | |
CN109830954A (en) | Topology Hierarchical Identification Method Applicable to Automatic Generation of Power Grid Visualization Simulation Model |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |