Automatic mapping method and system for secondary circuit digital model
Through automatic graphing method and system, a digital model of secondary loops in intelligent substations is generated, which solves the problems of complexity and irregular identification of fiber networks, and improves operation and maintenance efficiency and accuracy.
Patent Information
- Application Number
- CN202411827840.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-12
- Publication Date
- 2025-04-04
AI Technical Summary
The complexity and irregular identification of fiber optic networks in smart substations make it difficult to ensure that the fiber optic network is correctly organized on the site, and the operation and maintenance personnel are inefficient and prone to errors during debugging, operation and maintenance.
It provides an automatic diagram forming method and system for digital models of secondary loops. By obtaining various types of secondary design original files related to substations, extracting area division information, creating corresponding symbol libraries, and generating layout diagrams based on preset drawing rules to realize full loop display.
Through the modeled secondary cable and optical cable loop models, operation and maintenance personnel can directly view the secondary loop diagram through file visualization tools, which improves work efficiency and reduces errors, and replaces the traditional way of relying on paper drawings and multiple tool software.
Smart Images

Figure CN119760812A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of circuit mapping, and in particular to an automatic mapping method and system for a secondary circuit digital model. Background Art
[0002] The process layer secondary circuits of the protection and automation devices in the smart substation are physically connected through optical fibers, and the information exchange between devices is realized by virtual terminal circuits. At present, the process layer network of the smart substation uses optical fiber networking extensively, and the normal communication of the optical fiber network is a prerequisite for the normal operation of the secondary equipment. Due to the complexity of the optical fiber network and the non-standard optical fiber identification, it is difficult to ensure that the optical fiber can be correctly networked according to the design requirements during the project implementation. When problems are found or inspections are carried out, the corresponding optical fiber cannot be quickly found and relevant information cannot be viewed. Smart substations use optical fiber connections to transmit digital messages (except for tripping circuits), and the "visible" and "tangible" secondary circuits of conventional stations become "invisible" and "intangible" virtual circuits. In addition, the secondary circuits of substations mostly use number plates to indicate the voltage circuit number, current circuit number, outlet circuit number and terminal number, and express the circuit principle and wiring through corresponding paper drawings for construction commissioning and operation and maintenance operations. With the construction and operation and maintenance of smart substations, the following problems exist in the commissioning, operation and maintenance of relay protection in smart substations:
[0003] In various stages of infrastructure construction, commissioning, operation and maintenance, renovation and expansion, there are many optical fibers, little information on conventional labels, many types of drawings, large search workload, and easy loss. For conventional substations, on-site operators mainly look for corresponding circuits in the drawings by flipping through the label information. Due to the small space in the panel cabinet, various number plates and cable plates are easily squeezed and deformed, which brings great inconvenience to the on-site work; for smart substations, on-site operators need to use various tool software to find the principles and details of the secondary circuit in the SCD file and virtual terminal diagram, which is inefficient and very easy to make mistakes, seriously affecting the work efficiency of the operators. Summary of the invention
[0004] The purpose of the present invention is to provide an automatic drawing method and system for a secondary circuit digital model, aiming to provide a method for automatically generating drawings of a secondary circuit digital model, so as to establish a secondary cable and optical cable loop model with a full loop display function, so that operation and maintenance personnel can directly view the secondary loop diagram through a file visualization tool, without having to look up the label information to find the corresponding loop in the drawing, which greatly improves the work efficiency of the operation and maintenance personnel.
[0005] In a first aspect, the present invention provides a method for automatically drawing a secondary circuit digital model, the method comprising:
[0006] Acquire multiple types of secondary design original files related to the substation, and extract area division information from the secondary design original files to acquire a first area filled with drawing information according to the area division information;
[0007] According to the types of the secondary design original files, corresponding symbol libraries are created respectively, wherein the symbol libraries include a substation room panel layout symbol library, a panel cabinet layout symbol library, a cabinet component diagram symbol library, a device backplane diagram symbol library, a terminal block diagram symbol library and a secondary schematic diagram symbol library, and any of the symbol libraries includes at least one symbol;
[0008] Obtaining a substation physical configuration description file, and disassembling the substation physical configuration description file level by level, wherein the disassembly result includes multi-level element names;
[0009] Based on the preset drawing rules, at least one first-level element name is configured for each type of secondary design original file, and the corresponding symbol is retrieved from the symbol library according to the configured at least one first-level element name, and the coordinate position of each symbol is determined according to the preset origin selection rule, and a layout diagram is generated according to the first area and the coordinate position of each symbol.
[0010] In some embodiments, the step of obtaining multiple types of secondary design original files related to the substation, and extracting area division information from the secondary design original files to obtain a first area filled with drawing information according to the area division information includes:
[0011] The border of each type of secondary design original file is identified to obtain the border coordinate information of each secondary design original file, and five first areas are delineated according to the border coordinate information. The five first areas are respectively used to fill in the description of the panel cabinet and the drawing type name, the description of the substation to which the drawing belongs, the drawing number, the drawing page number and the number of drawing pages.
[0012] In some embodiments, the symbol includes an electronic component symbol and a device symbol, and the electronic component symbol or the device symbol includes graphic information and text information, the graphic information includes a graphic shape and a graphic type, and the text information includes text content corresponding to the graphic shape and coordinate information of the text content;
[0013] The symbol library of the substation room layout diagram includes room symbols and panel cabinet symbols; the symbol library of the panel cabinet layout diagram includes panel cabinet front cabinet symbols, panel cabinet rear cabinet symbols, equipment symbols and component symbols; the symbol library of the cabinet component diagram includes circuit breaker symbols, pressure plate symbols, button symbols and handle symbols; the symbol library of the device backplane diagram includes board symbols, board optical port symbols, board network port symbols and board terminal symbols; the terminal block diagram symbol library includes terminal block symbols, single-layer terminal block with one terminal symbol and double-layer terminal block with one terminal symbol; the secondary schematic diagram symbol library includes AC current analog sampling symbols, AC voltage analog sampling symbols, DC current analog sampling symbols, DC voltage analog sampling symbols, switch input symbols, normally open node switch output symbols, normally closed node switch output symbols, RS232 serial port symbols, RS485 serial port symbols, relay coil symbols, normally open contact symbols, normally closed contact symbols and resistor symbols.
[0014] In some embodiments, the step of obtaining a substation physical configuration description file and disassembling the substation physical configuration description file level by level, wherein the disassembly result includes multi-level element names, comprises:
[0015] The first-level element name includes substation elements and part template library; substation elements contain area elements and interval elements; area elements contain panel elements; interval elements contain cable elements and equipment or component elements; cable elements contain wire core elements; panel elements contain a functional area element, equipment or component element, and connecting line element; equipment or component elements contain component elements; component elements contain connection point elements and component elements; component template library contains component template elements; part template elements contain connection point template elements and component template elements.
[0016] In some embodiments, the step of configuring at least one first-level element name for each type of secondary design original file based on a preset drawing rule, and retrieving a corresponding symbol from the symbol library according to the configured at least one first-level element name includes:
[0017] If the drawing to be drawn is a small room screen layout diagram, the screen cabinet element is matched according to the screen cabinet symbol to obtain the first attribute value and the second attribute value in the screen cabinet element according to the matching result, wherein the first attribute value includes the screen cabinet depth value and the screen cabinet width value, and the second attribute value includes the coordinate information of the screen cabinet;
[0018] The depth dimension and the width dimension in the required generated image are instantiated according to the depth value and the width value of the screen cabinet, and the placement position of the screen cabinet in the required generated image is calculated according to the coordinate information of the screen cabinet.
[0019] In some embodiments, the step of configuring at least one first-level element name for each type of secondary design original file based on a preset drawing rule, and retrieving a corresponding symbol from the symbol library according to the configured at least one first-level element name further includes:
[0020] If the drawing to be drawn is a cabinet component drawing, the values in each component symbol in the cabinet component drawing are instantiated according to the device or component element number, device or component description, terminal or connection point number, and the opposite side connection terminal number retrieved from the Core (internal connection) element.
[0021] In some embodiments, the step of determining the coordinate position of each symbol according to a preset origin selection rule and generating a layout diagram according to the first area and the coordinate position of each symbol includes:
[0022] The preset origin selection rule is: if it is a substation room screen layout diagram, the upper left corner of the room is used as the two-dimensional coordinate reference origin;
[0023] If it is a layout diagram of a screen cabinet in a small room, the upper left corner of the screen cabinet after placement will be used as the relative two-dimensional coordinate calculation point.
[0024] In a second aspect, the present invention provides an automatic drawing system for a secondary circuit digital model, the system comprising:
[0025] An area extraction module is used to obtain multiple types of secondary design original files related to the substation, and extract area division information from the secondary design original files to obtain a first area filled with drawing information according to the area division information;
[0026] A symbol library construction module is used to create symbol libraries corresponding to the types of the secondary design original files, respectively. The symbol libraries include a substation room panel layout symbol library, a panel cabinet layout symbol library, a cabinet component diagram symbol library, a device backplane diagram symbol library, a terminal block diagram symbol library and a secondary schematic diagram symbol library. Any of the symbol libraries includes at least one symbol.
[0027] A file disassembly module, used for obtaining a substation physical configuration description file, and disassembling the substation physical configuration description file level by level, wherein the disassembly result includes multi-level element names;
[0028] A drawing module is used to configure at least one first-level element name for each type of secondary design original file based on preset drawing rules, and to retrieve corresponding symbols from the symbol library according to the configured at least one first-level element name, and to determine the coordinate position of each symbol according to preset origin selection rules, and to generate a layout diagram according to the first area and the coordinate position of each symbol.
[0029] In a third aspect, the present invention provides a storage medium storing one or more programs, which, when executed by a processor, implement the above-mentioned method for automatically drawing a secondary circuit digital model.
[0030] In a fourth aspect, the present invention provides an electronic device, the electronic device comprising a memory and a processor, wherein:
[0031] The memory is used to store computer programs;
[0032] When the processor is used to execute the computer program stored in the memory, the above-mentioned automatic drawing method of the secondary circuit digital model is realized.
[0033] Compared with the prior art, the present invention has the following advantages:
[0034] The present invention constructs a secondary cable and optical cable loop model with a full-loop display function, and adopts a substation secondary electrical loop modeling method to model the traditional secondary electrical loop drawing information, so that operation and maintenance personnel no longer need to rely on paper drawings for related maintenance and troubleshooting work, such as troubleshooting secondary electrical loop faults, and directly view the secondary loop diagram through a model file visualization tool, thereby replacing the traditional method of searching for the principles and details of the secondary circuit in SCD files and virtual terminal diagrams through various tool software, thereby greatly improving the work efficiency of operation and maintenance personnel. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 A flowchart of a method for automatically drawing a secondary circuit digital model according to an embodiment of the present invention;
[0036] Figure 2 A schematic diagram of demarcating a first region according to an example of an embodiment of the present invention;
[0037] Figure 3 A schematic diagram of a symbol library according to an example of an embodiment of the present invention;
[0038] Figure 4 A schematic diagram of a configuration file decomposition example of an embodiment of the present invention;
[0039] Figure 5 A schematic diagram of a terminal block symbol instantiation according to an embodiment of the present invention
[0040] Figure 6 A schematic diagram of the structure of an automatic drawing system for a secondary circuit digital model proposed in one embodiment of the present invention.
[0041] The following specific implementation manner will further illustrate the present invention in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. Unless otherwise defined, the technical terms or scientific terms used herein should be understood by people with general skills in the field to which the present invention belongs. "Including" and similar words used in this article mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects.
[0043] like Figure 1 As shown, an embodiment of the present invention provides a method for automatically drawing a secondary circuit digital model, the method comprising steps S101 to S104, wherein:
[0044] Step S101: acquiring multiple types of secondary design original files related to the substation, and extracting area division information from the secondary design original files, so as to acquire a first area filled with drawing information according to the area division information;
[0045] It should be noted that in this step, the original files of the secondary design include six categories, namely, substation room panel layout, panel cabinet layout, cabinet component diagram, device backplane diagram, terminal strip diagram, and secondary schematic diagram. In order to extract the area division information, it is necessary to compare and analyze the characteristics of these six types of frames. The substation room panel layout frame, panel cabinet layout frame, cabinet component diagram frame, device backplane diagram frame and secondary schematic diagram frame can share one frame. The terminal strip diagram frame needs to use a different frame because the drawing height requirements are significantly different from other drawings.
[0046] In addition, in some embodiments, the frame recognition is performed on each type of secondary design original file to obtain the frame coordinate information of each secondary design original file, and five first areas are delineated according to the frame coordinate information, and the five first areas are respectively used to fill in the description of the cabinet to which the drawing belongs and the name of the drawing type, the description of the substation to which the drawing belongs, the drawing number, the drawing page number, and the number of drawing pages. The description of the cabinet to which the drawing belongs is obtained through the desc description attribute value of the Cubicle element in the substation physical configuration description file, and the description of the substation to which the drawing belongs is obtained through the desc description attribute value of the Substation element in the substation physical configuration description file. The drawing number is filled in according to V1.00 by default, the page number increases sequentially starting from the number 01, and the number of pages is filled in according to the total number of drawings. For example, Figure 2 shown.
[0047] Step S102: creating symbol libraries corresponding to the types of the secondary design original files respectively, wherein the symbol libraries include a symbol library for the layout diagram of a substation room, a symbol library for the layout diagram of a panel cabinet, a symbol library for the components in a cabinet, a symbol library for the back panel diagram of a device, a symbol library for the terminal block diagram, and a symbol library for the secondary schematic diagram, and any of the symbol libraries includes at least one symbol;
[0048] like Figure 3 As shown, regarding the creation of a small room screen layout symbol library, it includes small room symbols and screen cabinet symbols; regarding the typical screen cabinet layout diagram, the creation of a screen cabinet layout symbol library is completed, which includes the screen cabinet front cabinet symbol, screen cabinet rear cabinet symbol, equipment symbols and various component symbols; regarding the typical cabinet component diagram, the creation of the cabinet component diagram symbol library is completed, which includes air switch symbols, pressure plate symbols, button symbols and handle symbols, etc.; regarding the typical device backplane diagram, the creation of the device backplane diagram symbol library is completed, which includes board symbols, board optical port symbols, board network port symbols and board terminal symbols; regarding the typical terminal strip diagram, the creation of the terminal The creation of a diagram symbol library includes terminal block symbols, single-layer terminal block one-piece terminal symbols and double-layer terminal block one-piece terminal symbols; the creation of a secondary schematic symbol library is completed for typical secondary schematics, which includes AC current analog sampling symbols, AC voltage analog sampling symbols, DC current analog sampling symbols, DC voltage analog sampling symbols, switch input symbols, normally open node switch output symbols, normally closed node switch output symbols, RS232 serial port symbols, RS485 serial port symbols, relay coil symbols, normally open contact symbols, normally closed contact symbols and resistor symbols, etc.
[0049] In addition, it should be noted that symbols include electronic component symbols and device symbols, and the electronic component symbols or the device symbols include graphic information and text information, the graphic information includes graphic shape and graphic type, and the text information includes text content corresponding to the graphic shape and coordinate information of the text content. Exemplarily, the graphic shape refers to a graphic composed of lines such as straight lines, circles, and arcs, and each combination of graphic shapes will define a coordinate insertion point. The graphic type refers to the meaning represented by the graphic, such as: relay node graphic type, relay coil graphic type, and resistor graphic type; the text content refers to the name or number of the meaning represented by the graphic shape, and the coordinate information of the text content refers to the position of the starting point of the lower left corner of the text relative to the center point of the graphic shape.
[0050] Step S103: obtaining a substation physical configuration description file, and disassembling the substation physical configuration description file level by level, wherein the disassembly result includes multi-level element names;
[0051] In this step, the substation physical configuration description file used is in XML file format, which describes the equipment configuration diagram, schematic diagram, and wiring diagram of the secondary panel cabinet or secondary equipment, and includes the physical capabilities of the equipment such as boards and ports, as well as the design configuration files for the physical connections between the wiring terminals in the electrical equipment.
[0052] By disassembling the configuration file level by level, we can get the multi-level element names, such as Figure 4 As shown in the figure, each level of elements includes: a Substation element and a PartTemplates element; a Substation element contains one or more Region elements and Bay elements; a Region element contains one or more Cubicle elements; a Bay element contains one or more Cable elements and references to multiple DeviceRef elements; a Cable element contains zero or more Core elements; a Cubicle element represents a cabinet, and the cabinet element contains one FunctionArea element, one or more DeviceRef elements, and a FunctionArea element. e (device or component), one or more Core elements; Device elements contain one or more Part (component) elements; Part elements contain zero or more Pin (connection point) elements and Component (component) elements; PartTemplates (component template library) is a collection of PartTemplate elements, containing one or more PartTemplate (component template) elements; PartTemplate elements represent the template of a certain model of components, and PartTemplate elements contain zero or more PinTemplate (connection point template) elements and ComponentTemplate (component template) elements.
[0053] Step S104: configuring at least one first-level element name for each type of secondary design original file based on the preset drawing rule, and calling corresponding symbols from the symbol library according to the configured at least one first-level element name, and determining the coordinate position of each symbol according to the preset origin selection rule, and generating a layout diagram according to the first area and the coordinate position of each symbol
[0054] It should be noted that if the drawing to be drawn is a small room screen layout diagram, the screen cabinet elements are matched according to the screen cabinet symbols to obtain the first attribute value and the second attribute value in the screen cabinet elements according to the matching results, and the first attribute value includes the screen cabinet depth value and the screen cabinet width value, and the second attribute value includes the coordinate information of the screen cabinet; then, the depth dimension and width dimension in the required generated drawing are instantiated according to the screen cabinet depth value and the screen cabinet width value, and the placement position of the screen cabinet in the required generated drawing is calculated according to the coordinate information of the screen cabinet.
[0055] If a cabinet layout diagram is drawn, the cabinet height and cabinet width of the front cabinet symbol and the rear cabinet symbol in the cabinet layout diagram are instantiated according to the value of the height (cabinet height) attribute and the width (cabinet width) value of the Cubicle (cabinet) element; the height and width of the device symbol and each component symbol in the cabinet layout diagram are instantiated according to the value of the height (device or component height) attribute and the width (device or component width) attribute of the Device (device or component) element; the actual placement position of the device or component in the cabinet is calculated according to the value of the horizontalCoordinate (relative position horizontal coordinate within the same cabinet) attribute and the verticalCoordinate (relative position vertical coordinate within the same cabinet) attribute of the Device (device or component) element.
[0056] If the component diagram inside the cabinet is drawn, the values in each component symbol in the component diagram inside the cabinet are instantiated according to the value of the name (the number of the device or component in the panel cabinet) attribute and desc (device or component description) of the Device (equipment or component) element, the value of the no (terminal or connection point number) attribute of the Port (terminal) element, and the number of the opposite connection terminal retrieved from the Core (internal connection) element.
[0057] If the device backplane diagram is drawn, the values in the board symbol, board port symbol and board terminal symbol in the device backplane diagram are instantiated according to the value of the name attribute (the number of the device or component in the panel) of the Device (equipment or component) element, the value of the slot attribute (board or sub-component number) of the Board (board) element, the value of the no (terminal or connection point number) attribute of the Port (terminal) element, and the number of the opposite connection terminal retrieved from the Core (internal connection) element.
[0058] If the terminal strip diagram is drawn, the terminal strip symbols and terminal strip terminal symbols in the terminal strip diagram are instantiated according to the value of the name (number of the device or component in the panel cabinet) attribute of the Device (equipment or component) element, the value of the slot (board or sub-component number) attribute of the Board (board) element, the value of the no (terminal or connection point number) attribute of the Port (terminal) element, the opposite side connection terminal number retrieved from the Core (internal connection) element, and the connection information of the terminal retrieved from the Cable (cable) element. If the secondary schematic logic drawing is drawn, the values of each electronic component symbol are instantiated according to the values of the attributes under the Cable (cable) element and the Core (cable core) element, the number of connecting lines in the secondary schematic is calculated according to the number of Core (cable core) elements, and the values of each symbol are instantiated according to the ComponentTemplate (component template) element.
[0059] In addition, in some embodiments, the position of each symbol is the basis for realizing two-dimensional automatic mapping, but there are currently few methods and tools that can directly generate location files, and there is also a lack of guiding specification files for defining location files. It is extremely difficult to manually fill in location files. This embodiment defines the substation two-dimensional location file modeling, which includes a Substation element; the Substation element includes one or more Region elements; the Region element includes one or more Cubicle elements; the Cubicle element includes one or more Devices.
[0060] The coordinate calculation method of the substation room panel layout diagram is to use the upper left corner of the room as the two-dimensional coordinate reference origin. The upper left corner of the panel cabinet in the room is used as the relative two-dimensional coordinate calculation point after the panel cabinet is placed. The position of the panel cabinet can be defined by three elements: the shaftDirection element of the panel cabinet door direction attribute, the horizontalCoordinate element of the horizontal coordinate attribute, and the verticalCoordinate element of the vertical coordinate attribute.
[0061] The method for calculating the position coordinates of equipment or components on the panel cabinet layout diagram is to calculate them according to the cabinet symbol in front of the panel cabinet and the cabinet symbol in back of the panel cabinet respectively, with the upper left corner of the panel cabinet as the reference origin of the two-dimensional coordinates. The equipment or components in the panel cabinet take a point on the symbol as the relative two-dimensional coordinate calculation point based on the defined equipment symbol and each component symbol. The calculation points are defined differently according to the different graphic shapes that make up the symbols. Generally, there are three definition methods: take the upper left corner of the largest outer frame as the relative two-dimensional coordinate calculation point, take the top center of the largest outer frame as the relative two-dimensional coordinate calculation point, or take the exact center of the graphic shape as the relative two-dimensional coordinate calculation point.
[0062] After the input of the location file and the substation physical configuration description file is completed, drawings can be generated intelligently. The number of drawings is generated by calculation: according to the number of Region elements contained in the substation Substation element, the number of substation room layout drawings that need to be drawn is obtained; according to the number of Cubicle elements contained in the Region element, the number of cabinet layout drawings that need to be drawn is obtained; according to the number of Device (when representing components) in the Cubicle element, the number of component drawings in each cabinet is obtained, and it is stipulated that if the number of a certain component exceeds the frame area, the large number of components will be drawn separately, for example, if the number of pressure plates exceeds 27, a separate drawing will be created; according to the number of Device (when representing equipment) in the Cubicle element, the number of device backplane drawings that need to be drawn is obtained; according to the position of the terminal row, the left terminal row diagram and the right terminal row diagram are drawn, and the terminal row that exceeds the frame area is stipulated to be drawn separately; according to the FunctionArea element, the circuit type is divided to obtain the number of secondary schematics.
[0063] According to the determined number of drawings, the drawing frames in the drawing frame library are called, and the values of the reserved areas of the drawing frames are instantiated and filled in according to the corresponding attribute values in the substation physical configuration description file. The drawing page number and the number of drawing pages are calculated based on the total number of drawings.
[0064] The symbols in the symbol library are called according to the location file, placed according to the location coordinates, and the text content in the symbol is instantiated and filled in according to the corresponding attribute values in the substation physical configuration description file.
[0065] Take the generation of terminal strip diagram as an example to illustrate. According to the above process, each symbol in the terminal strip diagram is instantiated according to the physical configuration description file of the substation, including the terminal strip name taking the name attribute value of the Device element, the terminal strip description taking the desc attribute value of the Device element, the terminal strip terminal number taking the name attribute value of the SubDevice, the terminal strip terminal description taking the desc attribute value of the SubDevice, and the inter-cabinet cable taking the attribute values of the Cable element and the Core element. The terminal strip symbol is instantiated as follows: Figure 5 shown.
[0066] The present invention constructs a secondary cable and optical cable loop model with a full-loop display function, and adopts a substation secondary electrical loop modeling method to model the traditional secondary electrical loop drawing information, so that operation and maintenance personnel no longer need to rely on paper drawings for related maintenance and troubleshooting work, such as troubleshooting secondary electrical loop faults, and directly view the secondary loop diagram through a model file visualization tool, thereby replacing the traditional method of searching for the principles and details of the secondary circuit in SCD files and virtual terminal diagrams through various tool software, thereby greatly improving the work efficiency of operation and maintenance personnel.
[0067] like Figure 6 As shown, an embodiment of the present invention further provides an automatic drawing system for a secondary circuit digital model, the system comprising:
[0068] The area extraction module 10 is used to obtain various types of secondary design original files related to the substation, and extract area division information from the secondary design original files to obtain a first area filled with drawing information according to the area division information;
[0069] A symbol library construction module 20 is used to create symbol libraries corresponding to the types of the secondary design original files, respectively. The symbol libraries include a substation room panel layout symbol library, a panel cabinet layout symbol library, a cabinet component diagram symbol library, a device backplane diagram symbol library, a terminal block diagram symbol library and a secondary schematic diagram symbol library. Any of the symbol libraries includes at least one symbol.
[0070] A file disassembly module 30, used for obtaining a substation physical configuration description file, and disassembling the substation physical configuration description file level by level, wherein the disassembly result includes multi-level element names;
[0071] The drawing module 40 is used to configure at least one first-level element name for each type of secondary design original file based on preset drawing rules, and to retrieve corresponding symbols from the symbol library according to the configured at least one first-level element name, and to determine the coordinate position of each symbol according to preset origin selection rules, and to generate a layout diagram according to the first area and the coordinate position of each symbol.
[0072] Another aspect of the present invention further provides a storage medium on which one or more programs are stored, and when the programs are executed by a processor, the above-mentioned method for automatically drawing a secondary circuit digital model is implemented.
[0073] Another aspect of the present invention provides an electronic device, comprising a memory and a processor, wherein the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory to implement the above-mentioned automatic drawing method of a secondary circuit digital model.
[0074] Those skilled in the art will appreciate that the logic and / or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For purposes of this specification, "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.
[0075] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0076] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or a combination thereof: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0077] Although the embodiments of the present invention are described in detail above, it is obvious to those skilled in the art that various modifications and variations can be made to these embodiments. However, it should be understood that such modifications and variations are within the scope and spirit of the present invention as described in the claims. Moreover, the present invention described herein may have other embodiments and may be implemented or realized in a variety of ways.
Claims
1. A method for automatically drawing a secondary circuit digital model, characterized in that: The method comprises: Acquire multiple types of secondary design original files related to the substation, and extract area division information from the secondary design original files to acquire a first area filled with drawing information according to the area division information; According to the types of the secondary design original files, corresponding symbol libraries are created respectively, wherein the symbol libraries include a substation room panel layout symbol library, a panel cabinet layout symbol library, a cabinet component diagram symbol library, a device backplane diagram symbol library, a terminal block diagram symbol library and a secondary schematic diagram symbol library, and any of the symbol libraries includes at least one symbol; Obtaining a substation physical configuration description file, and disassembling the substation physical configuration description file level by level, wherein the disassembly result includes multi-level element names; Based on the preset drawing rules, at least one first-level element name is configured for each type of secondary design original file, and the corresponding symbol is retrieved from the symbol library according to the configured at least one first-level element name, and the coordinate position of each symbol is determined according to the preset origin selection rule, and a layout diagram is generated according to the first area and the coordinate position of each symbol.
2. The automatic drawing method of a secondary circuit digital model according to claim 1 is characterized in that: The step of obtaining multiple types of secondary design original files related to the substation and extracting area division information from the secondary design original files to obtain a first area filled with drawing information according to the area division information includes: The border of each type of secondary design original file is identified to obtain the border coordinate information of each secondary design original file, and five first areas are delineated according to the border coordinate information. The five first areas are respectively used to fill in the description of the panel cabinet and the drawing type name, the description of the substation to which the drawing belongs, the drawing number, the drawing page number and the number of drawing pages.
3. The automatic drawing method of a secondary circuit digital model according to claim 1 is characterized in that: The symbols include electronic component symbols and equipment symbols, and the electronic component symbols or the equipment symbols include graphic information and text information, the graphic information includes graphic shape and graphic type, and the text information includes text content corresponding to the graphic shape and coordinate information of the text content; The symbol library of the substation room layout diagram includes room symbols and panel cabinet symbols; the symbol library of the panel cabinet layout diagram includes panel cabinet front cabinet symbols, panel cabinet rear cabinet symbols, equipment symbols and component symbols; the symbol library of the cabinet component diagram includes circuit breaker symbols, pressure plate symbols, button symbols and handle symbols; the symbol library of the device backplane diagram includes board symbols, board optical port symbols, board network port symbols and board terminal symbols; the terminal block diagram symbol library includes terminal block symbols, single-layer terminal block with one terminal symbol and double-layer terminal block with one terminal symbol; the secondary schematic diagram symbol library includes AC current analog sampling symbols, AC voltage analog sampling symbols, DC current analog sampling symbols, DC voltage analog sampling symbols, switch input symbols, normally open node switch output symbols, normally closed node switch output symbols, RS232 serial port symbols, RS485 serial port symbols, relay coil symbols, normally open contact symbols, normally closed contact symbols and resistor symbols.
4. The automatic drawing method of a secondary circuit digital model according to claim 3 is characterized in that: The step of obtaining the substation physical configuration description file and disassembling the substation physical configuration description file level by level, wherein the disassembly result includes multi-level element names, comprises: The first-level element name includes substation elements and part template library; substation elements contain area elements and interval elements; area elements contain panel elements; interval elements contain cable elements and equipment or component elements; cable elements contain wire core elements; panel elements contain a functional area element, equipment or component element, and connecting line element; equipment or component elements contain component elements; component elements contain connection point elements and component elements; component template library contains component template elements; part template elements contain connection point template elements and component template elements.
5. The automatic drawing method of a secondary circuit digital model according to claim 4 is characterized in that: The step of configuring at least one first-level element name for each type of secondary design original file based on a preset drawing rule, and retrieving a corresponding symbol from the symbol library according to the configured at least one first-level element name includes: If the drawing to be drawn is a small room screen layout diagram, the screen cabinet element is matched according to the screen cabinet symbol to obtain the first attribute value and the second attribute value in the screen cabinet element according to the matching result, wherein the first attribute value includes the screen cabinet depth value and the screen cabinet width value, and the second attribute value includes the coordinate information of the screen cabinet; The depth dimension and the width dimension in the required generated image are instantiated according to the depth value and the width value of the screen cabinet, and the placement position of the screen cabinet in the required generated image is calculated according to the coordinate information of the screen cabinet.
6. The automatic drawing method of a secondary circuit digital model according to claim 4 is characterized in that: The step of configuring at least one first-level element name for each type of secondary design original file based on a preset drawing rule, and retrieving a corresponding symbol from the symbol library according to the configured at least one first-level element name also includes: If the drawing to be drawn is a cabinet component drawing, the values in each component symbol in the cabinet component drawing are instantiated according to the device or component element number, device or component description, terminal or connection point number, and the opposite side connection terminal number retrieved from the Core (internal connection) element.
7. The method for automatically drawing a secondary circuit digital model according to claim 4, characterized in that: The step of determining the coordinate position of each symbol according to a preset origin selection rule and generating a layout diagram according to the first area and the coordinate position of each symbol comprises: The preset origin selection rule is: if it is a substation room screen layout diagram, the upper left corner of the room is used as the two-dimensional coordinate reference origin; If it is a layout diagram of a screen cabinet in a small room, the upper left corner of the screen cabinet after placement will be used as the relative two-dimensional coordinate calculation point.
8. An automatic drawing system for a secondary circuit digital model, characterized in that: The system comprises: An area extraction module is used to obtain multiple types of secondary design original files related to the substation, and extract area division information from the secondary design original files to obtain a first area filled with drawing information according to the area division information; A symbol library construction module is used to create symbol libraries corresponding to the types of the secondary design original files, respectively. The symbol libraries include a substation room panel layout symbol library, a panel cabinet layout symbol library, a cabinet component diagram symbol library, a device backplane diagram symbol library, a terminal block diagram symbol library and a secondary schematic diagram symbol library. Any of the symbol libraries includes at least one symbol. A file disassembly module, used for obtaining a substation physical configuration description file, and disassembling the substation physical configuration description file level by level, wherein the disassembly result includes multi-level element names; A drawing module is used to configure at least one first-level element name for each type of secondary design original file based on preset drawing rules, and to retrieve corresponding symbols from the symbol library according to the configured at least one first-level element name, and to determine the coordinate position of each symbol according to preset origin selection rules, and to generate a layout diagram according to the first area and the coordinate position of each symbol.
9. A storage medium, characterized in that: The storage medium stores one or more programs, which, when executed by a processor, implement an automatic drawing method for a secondary circuit digital model as described in any one of claims 1 to 7.
10. An electronic device, comprising a memory and a processor, wherein: The memory is used to store computer programs; When the processor is used to execute the computer program stored in the memory, it implements the automatic drawing method of the secondary circuit digital model as described in any one of claims 1-7.