CN-116797686-B - Automatic generation method and system for primary wiring diagram of station
Abstract
A method for automatically generating primary wiring diagram of station includes defining typical interval according to interval type and interval wiring mode, storing SVG code corresponding to each typical interval in initial typical interval library in plug-in mode to form typical interval library, obtaining SCD file of station configuration and analyzing SCD file to obtain analysis result of SCD file, analyzing out field interval type from analysis result of SCD file, traversing all primary devices in field interval according to field interval type to obtain field interval topological relation, analyzing field interval topological relation to judge field interval wiring mode, calling typical interval library according to interval type and interval wiring mode and drawing primary wiring diagram of station in SVG format according to field interval topological relation. The method solves the problems of low efficiency, insufficient accuracy and the like of the manual drawing method, is realized based on the SCD configuration file of the station, and has strong expandability.
Inventors
- XU KANG
- XU HUAPING
- QIU RONGFA
- LIANG TAO
- SUN YIMIN
- WU YINFU
Assignees
- 南京电研电力自动化股份有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20221028
Claims (10)
- 1. An automatic generation method of a primary wiring diagram of a station, which is characterized by comprising the following steps: S1, defining typical intervals according to interval types and interval wiring modes, and then storing SVG codes corresponding to each typical interval in an initial typical interval library in the form of plug-in units so as to form a typical interval library; s2, obtaining a station configuration SCD file, and analyzing station intervals in the station configuration SCD file to obtain an SCD file analysis result; s3, analyzing the interval type of the station from the analysis result of the SCD file; s4, traversing all primary devices in the station interval according to the type of the station interval to obtain the topological relation of the station interval; s5, analyzing the station interval topological relation, and judging the station interval wiring mode; s6, calling a typical interval library according to the interval type and the interval wiring mode, and drawing a station primary wiring diagram in an SVG format according to the station interval topological relation; in the step S6, a typical interval library is called according to interval types and interval wiring modes, and a station primary wiring diagram in an SVG format is drawn according to station interval topological relation, and the method specifically comprises the following steps: s6.1, creating SVG files with the same name according to the station names in the station interval attribute information, and introducing SVG plug-in library source codes with all typical intervals and color configurations with different voltage levels into the heads of the SVG files; s6.2, determining voltage class layout according to the number of voltage classes in the station interval attribute information; S6.3, acquiring the number of main transformers and the types of the main transformers from the analysis result of the SCD file, equally dividing the main transformers in a main transformer area of the SVG graph, setting the coil class attribute of the main transformers according to the voltage level of each coil connection of the main transformers, and generating a main transformer SVG code; s6.4, adding bus interval SVG source codes according to the number of buses at different voltage sides of the station and the bus connection mode respectively, setting class attributes of bus line diagram elements according to the voltage level of each bus, and generating corresponding bus interval SVG codes; S6.5, configuring a switch interval according to an SCD file analysis result, and generating a switch interval SVG code, wherein the switch interval comprises a 3/2 wiring switch interval, a double-bus wiring switch interval, a single-bus wiring switch interval and a side-bus wiring switch interval; S6.6, obtaining all interval names, equipment types and equipment names of the station according to the SCD file analysis result, and generating a marked text SVG code, wherein the equipment types comprise a switch, a disconnecting link and a handcart; S6.7, generating a primary wiring diagram based on the SVG code of the main transformer, the SVG code of the bus interval, the SVG code of the switch interval and the SVG code of the labeling text.
- 2. The automatic generation method of primary wiring diagrams of a station according to claim 1, wherein in the step S1, the interval type is obtained by performing interval type division on the power equipment, and the interval wiring mode is obtained by performing interval wiring mode division on the power equipment; The interval type specifically comprises: main transformer spacing, and/or bus spacing, and/or line switching spacing, and/or capacitor switching spacing, and/or reactor switching spacing, and/or bus-tie switching spacing, and/or line spacing.
- 3. The automatic generation method of primary wiring diagrams of a station according to claim 1, wherein the interval wiring manner in step S1 specifically includes: A single bus connection mode, a single bus section connection mode, a double bus section connection mode, a bypass bus connection mode and a 3/2 bus connection mode.
- 4. The automatic generation method of a primary wiring diagram of a station according to claim 1, wherein the initial typical interval library in step S1 specifically comprises: Three rolls of transformer intervals, two rolls of transformer intervals, double bus switch intervals, single bus capacitor switch intervals, single bus reactor switch intervals, single bus station transformer switch intervals, single bus switch intervals, double bus bar switch intervals, single bus bar switch intervals, side bus switch intervals, 3/2 bus bar switch intervals, single bus bar intervals, double bus bar intervals, segmented double bus bar intervals, bypass bus intervals, and 3/2 bus bar intervals.
- 5. The automatic generation method of primary wiring diagrams for a station according to claim 1, wherein the type of the station interval in the step S3 is determined according to an interval naming rule specified in the technical specification of the secondary system of an autonomous controllable new generation transformer substation published by the national power grid company, specifically: The interval including the bus bar device is a bus bar interval, the interval including the transformer device is a main transformer interval, the interval including the switch device and the line is a line switch interval, the interval including the switch device and the station transformer device is a station transformer switch interval, the interval including the switch device and the capacitor device is a capacitor switch interval, the interval including the switch device and the reactor device is a reactor switch interval, and the interval including the line device is a line interval.
- 6. The automatic station primary wiring diagram generating method according to claim 1, wherein in the step S4, the specific steps are as follows: S4.1, traversing all primary devices in all station intervals in the station according to the station interval type; S4.2, acquiring a connection relation owned by the primary equipment, wherein the connection relation owned by the primary equipment is judged according to interval connection, and when the interval name of the terminal connection in the primary equipment is different from the current interval name, the connection relation between the current station interval and the terminal connection station interval is shown; And S4.3, obtaining the station interval topological relation according to the connection relation owned by the primary equipment.
- 7. The automatic generation method of primary wiring diagrams for stations according to claim 1, wherein in the step S5, the topological relation between stations is analyzed, and the interval wiring mode is determined, which specifically includes: If one switch interval cbr is connected with the first bus bar interval bus1 and the second bus bar interval bus2 respectively and the connected logic nodes are the same, determining that the wiring mode of the switch interval cbr is a double-bus wiring mode, and the first bus bar interval bus1 and the second bus bar interval bus2 are double-bus wiring modes; If one switch interval cbr is connected with the first bus bar interval bus1 and the second bus bar interval bus2 respectively and the connected logic nodes are different, determining that the wiring mode of the switch interval cbr is a single bus bar section wiring mode, and the first bus bar interval bus1 and the second bus bar interval bus2 are single bus bar section wiring modes; If one switch interval cbr is respectively connected with the first switch interval cbr1 and the second switch interval cbr2, and the first switch interval cbr is respectively in topological connection with the first bus interval bus1 and the second bus interval bus2, and the second switch interval cbr2 is respectively in topological connection with the first bus interval bus1 and the second bus interval bus2, determining that the switch interval cbr, the first switch interval cbr1, the second switch interval cbr, the first bus interval bus1 and the second bus interval 2 are all 3/2 bus connection modes; If one switch interval cbr is connected to only one bus bar interval bus, then it is determined that both the switch interval cbr and the bus bar interval bus are in a single bus bar connection.
- 8. The automatic generation method of primary wiring diagrams for a station according to claim 1, wherein in step S6.5, the SVG file configures the line switch interval, and specifically includes the following steps: 6.5.1, traversing all 3/2 wiring switch intervals under the station, configuring class attributes of the 3/2 wiring switch intervals according to voltage levels, and determining coordinates and dimensions of the 3/2 wiring switch intervals according to the station topological relation obtained by analysis of the SCD file and coordinates of related buses so that the 3/2 wiring switch intervals are uniformly distributed among buses in a 3/2 wiring mode; 6.5.2 traversing all double bus way switch intervals under the station, configuring class attributes of the double bus way switch intervals according to voltage grades, and determining coordinates and sizes of the double bus way switch intervals according to station topological relations and coordinates of related buses obtained through analysis of SCD files so that the double bus way switch intervals are uniformly distributed among double buses connected with the double bus way switch intervals; 6.5.3, traversing all single bus wiring switch intervals under the station, configuring class attributes of the single bus wiring switch intervals according to voltage levels, and determining coordinates and sizes of the single bus wiring switch intervals according to the station topological relation and coordinates of related buses obtained through analysis of the SCD file, so that the single bus wiring switch intervals are uniformly distributed among buses connected with the single bus wiring switch intervals.
- 9. An automatic generation system for a primary wiring diagram of a station, the system comprising: The predefined unit is used for defining typical intervals according to the interval types and the interval wiring modes, and then storing SVG codes corresponding to each typical interval in an initial typical interval library in the form of plug-ins so as to form a typical interval library; the SCD file acquisition unit is connected with the predefined unit and used for acquiring an SCD file; the analysis unit is connected with the SCD file acquisition unit and is used for analyzing the site interval in the SCD file to obtain an SCD file analysis result and analyzing the site interval type from the SCD file analysis result; The topological unit is respectively connected with the predefined unit and the analysis unit and is used for traversing all primary equipment in the station interval according to the type of the station interval to obtain the station interval topological relation; the determining unit is connected with the analyzing unit and used for analyzing the station interval topological relation and judging the station interval wiring mode; The drawing unit is respectively connected with the predefined unit, the analysis unit, the topology unit and the determination unit, and is used for calling a typical interval library according to interval types and interval wiring modes and drawing a station primary wiring diagram in an SVG format according to station interval topological relations; the typical interval library is called according to interval types and interval wiring modes, and a station primary wiring diagram in an SVG format is drawn according to station interval topological relation, and the method specifically comprises the following steps: creating SVG files with the same name according to the station names in the station interval attribute information, and introducing source codes of SVG plug-in libraries with typical intervals and color configurations of different voltage levels into the heads of the SVG files; determining a voltage class layout according to the number of voltage classes in the station interval attribute information; The number of main transformers and the types of the main transformers are obtained from the analysis result of the SCD file, the main transformers are equally divided in a main transformer area of the SVG graph, and coil class attributes of the main transformers are set according to voltage levels connected with each coil of the main transformers, so that SVG codes of the main transformers are generated; Adding bus interval SVG source codes according to the number of buses at different voltage sides of a station and the bus connection mode respectively, setting class attributes of bus line diagram elements according to the voltage class of each bus, and generating corresponding bus interval SVG codes; configuring a switch interval according to an SCD file analysis result, and generating a switch interval SVG code, wherein the switch interval comprises a 3/2 wiring switch interval, a double-bus wiring switch interval, a single-bus wiring switch interval and a side-bus wiring switch interval; Obtaining all interval names, equipment types and equipment names of the stations according to the SCD file analysis result, and generating a marked text SVG code, wherein the equipment types comprise a switch, a disconnecting link and a handcart; and generating a primary wiring diagram based on the SVG code of the main transformer, the SVG code of the bus interval, the SVG code of the switch interval and the SVG code of the labeling text.
- 10. The automatic station one-time wiring diagram generation system according to claim 9, wherein, The determining unit further comprises a judging module, wherein the judging module is connected with the analyzing unit and is used for judging an interval wiring mode, and the determining unit specifically comprises the following steps: If one switch interval cbr is connected with the first bus bar interval bus1 and the second bus bar interval bus2 respectively and the connected logic nodes are the same, determining that the wiring mode of the switch interval cbr is a double-bus wiring mode, and the first bus bar interval bus1 and the second bus bar interval bus2 are mutually double-bus wiring modes; If one switch interval cbr is connected with the first bus bar interval bus1 and the second bus bar interval bus2 respectively and the connected logic nodes are different, determining that the wiring mode of the switch interval cbr is a single bus segment wiring mode, and the first bus bar interval bus1 and the second bus bar interval bus2 are mutually a single bus segment wiring mode; If one switch interval cbr is respectively connected with the first switch interval cbr1 and the second switch interval cbr2, and the first switch interval cbr is respectively in topological connection with the first bus interval bus1 and the second bus interval bus2, and the second switch interval cbr2 is respectively in topological connection with the first bus interval bus1 and the second bus interval bus2, determining that the switch interval cbr, the first switch interval cbr1, the second switch interval cbr, the first bus interval bus1 and the second bus interval 2 are all 3/2 bus connection modes; If one switch interval cbr is connected to only one bus bar interval bus, then it is determined that both the switch interval cbr and the bus bar interval bus are in a single bus bar connection.
Description
Automatic generation method and system for primary wiring diagram of station Technical Field The invention relates to the technical field of electric or electronic system control, in particular to an automatic generation method and system for a primary wiring diagram of a station. Background At present, a generation mode of a primary wiring diagram in a transformer substation mostly adopts a manual drawing mode, but the manual drawing mode has low efficiency, and the standardization and the accuracy of the manual drawing mode are difficult to ensure. Disclosure of Invention The invention aims to solve the technical problems in the prior art, and provides a station primary wiring diagram automatic generation method and a station primary wiring diagram automatic generation system. In a first aspect, the present invention provides a method for automatically generating a primary wiring diagram of a station, the method comprising: S1, defining typical intervals according to interval types and interval wiring modes, and then storing SVG codes corresponding to each typical interval in an initial typical interval library in the form of plug-in units so as to form a typical interval library; s2, obtaining a station configuration SCD file, and analyzing station intervals in the station configuration SCD file to obtain an SCD file analysis result; S3, analyzing the interval type of the station from the analysis result of the SCD file; S4, traversing all primary devices in the station interval according to the type of the station interval to obtain the topological relation of the station interval; s5, analyzing the station interval topological relation, and judging the station interval wiring mode; And S6, calling a typical interval library according to the interval type and the interval wiring mode, and drawing a station primary wiring diagram in an SVG format according to the station interval topological relation. Further, the interval type is obtained by dividing the interval type of the power equipment, and the interval wiring mode is obtained by dividing the interval wiring mode of the power equipment; The interval type specifically comprises: main transformer spacing, and/or bus spacing, and/or line switching spacing, and/or capacitor switching spacing, and/or reactor switching spacing, and/or bus-tie switching spacing, and/or line spacing. The interval wiring mode in the step S1 specifically includes: A single bus connection mode, a single bus section connection mode, a double bus section connection mode, a bypass bus connection mode and a 3/2 bus connection mode. Further, the initial typical interval library in step S1 specifically includes: Three rolls of transformer intervals, two rolls of transformer intervals, double bus switch intervals, single bus capacitor switch intervals, single bus reactor switch intervals, single bus station transformer switch intervals, single bus switch intervals, double bus bar switch intervals, single bus bar switch intervals, side bus switch intervals, 3/2 bus bar switch intervals, single bus bar intervals, double bus bar intervals, segmented double bus bar intervals, bypass bus intervals, and 3/2 bus bar intervals. Further, the field station interval type in the step S3 is determined according to an interval naming rule specified in the technical specification of the secondary system of the transformer substation of the new generation, which is published by the national electric network company, specifically: The interval including the bus bar device is a bus bar interval, the interval including the transformer device is a main transformer interval, the interval including the switch device and the line is a line switch interval, the interval including the switch device and the station transformer device is a station transformer switch interval, the interval including the switch device and the capacitor device is a capacitor switch interval, the interval including the switch device and the reactor device is a reactor switch interval, and the interval including the line device is a line interval. Further, the step S4 includes the following specific steps: s4.1, traversing all primary devices in all station intervals in the station according to the station interval type; s4.2, acquiring a connection relation owned by the primary equipment, wherein the connection relation owned by the primary equipment is judged according to interval connection, and when the interval name of the terminal connection in the primary equipment is different from the current interval name, the connection relation between the current station interval and the terminal connection station interval is shown; and S4.3, obtaining the station interval topological relation according to the connection relation owned by the primary equipment. Further, in the step S5, the analyzing the station interval topological relation, and determining the interval connection mode specifically includes: If one switch interval cb