Railway vehicle electrical principle graphical interface generation method and device and electronic equipment

By extracting component information and association relationships from the electrical design drawings of rail vehicles, generating simulated component information and implementing graphical interfaces in WPF, the problems of low efficiency and poor recovery in the prior art are solved, and efficient and stable graphical interface generation is achieved.

CN119990045APending Publication Date: 2025-05-13BEIJING AINIBABY HEALTH MANAGEMENT CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411987803.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

The prior art is difficult to effectively generate the electrical schematic graphical interface of rail vehicles from electrical design drawings, resulting in low development efficiency, poor recovery degree and high cost.

Method used

By obtaining the electrical principle CAD diagram corresponding to the original electrical design drawing of the rail vehicle, the component information and association information of each component are extracted, the simulation component information is generated based on this information, and finally the electrical principle graphical interface is generated in WPF.

Benefits of technology

The automatic generation of the electrical principle graphical interface of rail vehicles is realized, which improves development efficiency, reduces labor and time costs, and improves the degree of restoration and quality stability of graphical interfaces.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119990045A_ABST
    Figure CN119990045A_ABST
Patent Text Reader

Abstract

The invention provides a railway vehicle electrical principle graphical interface generation method and device and electronic equipment. The method comprises the steps that an electrical principle CAD drawing corresponding to an original electrical design drawing of a railway vehicle is acquired; extracting element information of each element in the electrical principle CAD graph and association relationship information among the elements; obtaining simulation component information corresponding to each component based on the component information of each component and the association relationship information among the components; and generating an electrical principle graphical interface based on the simulation element information. By means of the technical scheme, automatic generation of the electrical principle graphical interface of the railway vehicle can be achieved, the recovery degree is high, the quality is stable and reliable, the development efficiency of the electrical principle graphical interface is greatly improved, and manpower and time cost is saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of rail transit technology, and in particular to a method, device and electronic equipment for generating a graphical interface of electrical principles of a rail vehicle. Background Art

[0002] The electrical system is an important part of rail transit trains and plays a pivotal role in train control. Since rail transit electrical systems involve a large number of equipment components, the vehicle control logic is complex and highly correlated, manual design from scratch has a long cycle, a large workload and is difficult to develop. In addition, manually designed circuits are Figure 1 Generally, it is a simplified simulation model, which has a low degree of restoration compared with the actual circuit drawings, and there are many manual errors and low efficiency, which makes it difficult to ensure the comprehensiveness of the drawings. At the same time, it brings great difficulties to the fault analysis and troubleshooting of maintenance personnel, and therefore requires multi-angle and multi-faceted training for rail train drivers, vehicle maintenance and operation and maintenance personnel. With the rapid development of computer technology, it is a feasible solution to directly generate a graphical interface of the electrical principle of rail vehicles based on electrical design drawings. However, how to generate a graphical interface of the electrical principle of rail vehicles from electrical design drawings is a technical problem that needs to be solved. Summary of the invention

[0003] The present invention provides a method, a device and an electronic device for generating a railway vehicle electrical principle graphical interface, which are used to solve the problem of how to generate a railway vehicle electrical principle graphical interface from an electrical design drawing.

[0004] In a first aspect, the present invention provides a method for generating a graphical interface of rail vehicle electrical principles, comprising: Obtain the electrical principle CAD drawing corresponding to the original electrical design drawing of the rail vehicle; Extracting component information of each component in the electrical principle CAD drawing and information on the association relationship between the components; Based on the component information of each component and the association relationship information between the components, obtaining the simulation component information corresponding to each component; An electrical principle graphical interface is generated based on the simulation component information.

[0005] In some embodiments, extracting the component information of each component and the association relationship information between the components in the electrical principle CAD drawing includes: Obtaining component information of each component by reading the Document object corresponding to the electrical principle CAD drawing; and, By reading the Database object corresponding to the electrical principle CAD drawing, the association relationship information between the components is obtained.

[0006] In some embodiments, obtaining the simulation component information corresponding to each component based on the component information of each component and the association relationship information between the components includes: Based on the component information of each component, obtain the control element information in WPF; and, Based on the association relationship information between the components, the control property information in WPF is obtained.

[0007] In some embodiments, the step of generating an electrical principle graphical interface based on the simulation component information includes: Generate XAML code based on the control element information and the control attribute information; The electrical principle graphical interface is generated in WPF based on the XAML code.

[0008] In some embodiments, each of the components has multiple states, and in the electrical schematic graphical interface, each of the components displays and only displays one state at a time.

[0009] In some embodiments, the method further comprises: When generating the electrical principle graphical interface, it is determined whether the line data is mapped abnormally. If there is a mapping abnormality, a failure message is prompted.

[0010] In a second aspect, the present invention further provides a device for generating a graphical interface of a rail vehicle electrical principle, comprising: An acquisition module is used to acquire an electrical principle CAD drawing corresponding to an original electrical design drawing of a rail vehicle; A first processing module is used to extract component information of each component in the electrical principle CAD drawing and association relationship information between the components; A second processing module, configured to obtain simulation component information corresponding to each component based on the component information of each component and the association relationship information between the components; A generation module is used to generate an electrical principle graphical interface based on the simulation component information.

[0011] In a third aspect, the present invention further provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for generating a graphical interface of electrical principles of a rail vehicle as described in the first aspect is implemented.

[0012] In a fourth aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for generating a graphical interface of rail vehicle electrical principles as described in the first aspect.

[0013] In a fifth aspect, the present invention further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the method for generating a graphical interface of rail vehicle electrical principles as described in the first aspect.

[0014] The method, device and electronic device for generating a rail vehicle electrical principle graphical interface provided by the present invention obtain an electrical principle CAD drawing corresponding to an original electrical design drawing of a rail vehicle, then extract component information of each component in the electrical principle CAD drawing and information on the association relationship between each component, then obtain simulation component information corresponding to each component based on the component information of each component and information on the association relationship between each component, and finally generate an electrical principle graphical interface based on the simulation component information, so as to realize automatic generation of the rail vehicle electrical principle graphical interface, have a high degree of restoration, stable and reliable quality, greatly improve the development efficiency of the electrical principle graphical interface, and save manpower and time costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0016] Figure 1 It is a flow chart of a method for generating a graphical interface of rail vehicle electrical principles provided by the present invention.

[0017] Figure 2 It is one of the PDF circuit diagrams provided by the present invention.

[0018] Figure 3 This is the second PDF circuit diagram provided by the present invention.

[0019] Figure 4 This is an example diagram of the component information mapping relationship provided by the present invention.

[0020] Figure 5 It is a structural schematic diagram of a device for generating a graphical interface of rail vehicle electrical principles provided by the present invention.

[0021] Figure 6 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0022] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. 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.

[0023] In the present invention, the term "and / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.

[0024] In the present invention, the term "plurality" refers to two or more than two, and other quantifiers are similar to them.

[0025] In the present invention, the terms "first", "second", etc. are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present invention can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first" and "second" are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more.

[0026] Combine the following Figure 1-Figure 6 Embodiments of the present invention are described.

[0027] Figure 1 It is a flow chart of the method for generating the graphical interface of the electrical principle of a rail vehicle provided by the present invention, such as Figure 1 As shown, the method includes the following steps 101, 102, 103 and 104.

[0028] Step 101: Obtain an electrical principle CAD drawing corresponding to the original electrical design drawing of a rail vehicle.

[0029] Step 102: extracting component information of each component in the electrical principle CAD drawing and the association relationship information between the components.

[0030] Step 103: based on the component information of each component and the association relationship information between the components, obtain the simulation component information corresponding to each component.

[0031] Step 104: Generate an electrical principle graphical interface based on the simulation component information.

[0032] As an optional embodiment, the original electrical design drawing of the rail vehicle may be a PDF circuit diagram (eg Figure 2 and Figure 3For example, PDF circuit diagrams can be converted into electrical schematic CAD diagrams through PDF to CAD tools. PDF refers to Portable Document Format (PDF), and CAD refers to Computer-Aided Design (CAD).

[0033] After obtaining the electrical principle CAD drawing, the component information of each component in the electrical principle CAD drawing and the association relationship information between the components can be extracted.

[0034] As an optional embodiment, the component refers to the component in the electrical design drawing, which is also referred to as component equipment or equipment in the present invention. The representation of each component in the CAD drawing is each graphic element, and the element information of each element includes element type, position, size, shape, color, etc.

[0035] As an optional embodiment, the association relationship information between the components includes, for example, various lines and device data, where the lines may include input points, output points, connecting lines, etc., and the device data may include device number, circuit information where the device is located, device status, the relationship between the device status and the circuit status where the device is located, and the associated device number. The relationship between associated devices is equivalent to the relationship between a relay coil and a relay contact.

[0036] In some embodiments, extracting component information of each component in the electrical principle CAD drawing and information on the association relationship between the components includes: Obtain component information of each component by reading the Document object corresponding to the electrical schematic CAD drawing; and, By reading the Database object corresponding to the electrical principle CAD drawing, the association relationship information between the components is obtained.

[0037] As an optional embodiment, the mapping relationship may be preset and stored in the Document object and the Database object.

[0038] For example, the pre-set mapping relationships include: (1) Edit the CAD drawing and store the relationship between devices (such as device number, circuit information of the device, device status, the relationship between the device status and the circuit status of the device, the relationship between related devices, etc.) in a Database object similar to a database.

[0039] (2) Store the element information of the CAD drawing in the Document object.

[0040] Among them, the element information of the CAD drawing includes: blocks in CAD are mapped as separate electrical components, contacts, polylines inside blocks, fills and other contents are directly converted, straight lines and polylines in CAD are mapped as wires, and fills in CAD are mapped as filled polygons.

[0041] As an optional embodiment, the Document object and Database object corresponding to the electrical principle CAD drawing may be read through the CAD plug-in to obtain the component information of each component in the electrical principle CAD drawing and the association relationship information between the components.

[0042] The simulation component can be a control in WPF. WPF (Windows Presentation Foundation) is a Windows-based user interface framework launched by Microsoft. It integrates a variety of media technologies, such as 2D graphics, 3D graphics, text, video and audio, and provides developers with a powerful tool set to create an engaging user experience. WPF can be based on XAML (Extensible Application Markup Language) for interface design, separating interface layout and style from business logic, simplifying the development process.

[0043] In some embodiments, based on the component information of each component and the association relationship information between the components, the simulation component information corresponding to each component is obtained, including: Based on the component information of each component, obtain the control element information in WPF; and, Based on the association relationship information between components, the control property information in WPF is obtained.

[0044] As an optional embodiment, the Document object in the CAD can be read. The Document object contains element information of the CAD drawing, including element type, position, size, shape, color, etc., which is converted into controls (control element information) in WPF.

[0045] As an optional embodiment, a Database object in CAD is read, wherein the Database object contains information such as line and equipment data edited by a plug-in, and the information is converted into corresponding properties of controls in WPF (control property information).

[0046] As an optional embodiment, the component information of each component and the association relationship information between the components need to be converted into control data (control element information and control attribute information) in WPF according to the characteristics of controls and layouts in WPF.

[0047] For example, you can obtain the Document object and Database object of the CAD drawing, as well as all Entity objects of the drawing except the auxiliary line layer, and obtain the data of the object. Then, the data obtained from the Entity is converted into a C# Shape or canvas object after the coordinate system is converted, and finally drawn on the canvas (WPF control Canvas). Polylines, straight lines, fills, etc. in CAD are converted into Shape objects, blocks are converted into canvases, and the Entity objects inside the blocks are drawn on the canvas corresponding to the blocks. When generating the canvas of the drawing, calculate the width and height of the CAD drawing, and set the drawing size according to the preset ratio. All the element information data of the CAD drawing are converted into the control element data in WPF. CAD2WPF is a custom command in the plug-in, and the plug-in can be called out through the CAD2WPF command. Get the CAD drawing and convert it into a WPF window. After opening the window, load some component data. Through the API interface of the CAD software, it can be read into the electrical simulation model, and automatically convert the whole vehicle, single vehicle, single page, component name, pin position number and other information according to the set grouping rules to establish the corresponding electrical simulation model.

[0048] In some embodiments, generating an electrical schematic graphical interface based on the simulation component information includes: Generate XAML code based on control element information and control attribute information; Generate electrical schematic graphical interface in WPF based on XAML code.

[0049] Specifically, after converting the control element information and control property information in WPF, these simulation component information can be stored in XAML format, and the electrical principle graphical interface (or electrical principle simulation diagram, electrical principle simulation model) can be generated by importing the XAML code into WPF.

[0050] It can be understood that in the component import process, all information is automatically set by the electrical simulation software. After the configuration of each component on the actual electrical schematic is completed, the drawing component information of each component on the actual electrical schematic is mapped to the simulation component information in the current electrical schematic. After the mapping relationship is established, the component conversion rules are further used to correspond the components before and after import one by one, so as to realize the mapping and conversion of the drawing component information of each component on the actual electrical schematic and the simulation component information in the current electrical schematic.

[0051] As an optional embodiment, Figure 4 The component information mapping relationship diagram is stored in the Database object, which contains the component name definition table and mapping relationship, which is used to correspond to each component when generating the electrical principle graphical interface. Figure 4Describe the routing process of the generated electrical schematic graphical interface.

[0052] In some embodiments, each component has multiple states, and in the electrical schematic graphical interface, each component is displayed in only one state at a time.

[0053] For example, each component has multiple states. In CAD, each state is edited into a block. Each block corresponds to a state of a component (such as on or off). Two blocks with the same number are regarded as two states of a component. When the electrical principle graphical interface is generated, the multiple states of the corresponding components will be drawn and placed on the same canvas. Only one block will be displayed at the same time, which makes it easy to switch between different states and colors during operation.

[0054] As an optional embodiment, the value of the corresponding component can be updated by operating the related component trigger, such as closing or opening the coil, according to all variable values ​​preset in the drawing component information of each component.

[0055] In some embodiments, the method further comprises: When generating the electrical principle graphical interface, determine whether the circuit data is mapped abnormally. If there is a mapping abnormality, a failure message will be prompted.

[0056] For example, when generating an electrical principle graphical interface, you can read the connections between devices and the mapping of individual components, parse and read all information, and determine whether the data is consistent with the requirements. For example, the status values ​​of buttons and circuit breakers are limited to a few values ​​and cannot exceed this range. If there is a mapping anomaly, the user will be prompted that the export failed.

[0057] As an optional embodiment, during the drawing parsing process, it also includes monitoring the judgment of line data, judging whether there is a mapping anomaly, and if there is a mapping anomaly, generating corresponding information to prompt the user that the export failed. If the information of the component is not added to the Database object, it is treated as an irrelevant element. If a circuit drawing is complete from input to output, that is, it has input points and output points, the electrical design information can be exported to generate an electrical principle graphical interface.

[0058] The method for generating a rail vehicle electrical principle graphical interface provided by the present invention obtains an electrical principle CAD drawing corresponding to an original electrical design drawing of the rail vehicle, then extracts component information of each component in the electrical principle CAD drawing and information on the association relationship between each component, then obtains simulation component information corresponding to each component based on the component information of each component and information on the association relationship between each component, and finally generates an electrical principle graphical interface based on the simulation component information. The method can realize automatic generation of the rail vehicle electrical principle graphical interface, has a high degree of restoration, stable and reliable quality, greatly improves the efficiency of developing the electrical principle graphical interface, and saves manpower and time costs.

[0059] The following combination Figure 2-Figure 4 The related technical contents of the present invention are exemplarily described. Figure 2 and Figure 3 They are the left and right halves of the same circuit diagram. Figure 2 The line in the upper right corner is Figure 3 The lines in the upper left corner are connected.

[0060] Reference Figure 2 , the circuit diagram receives the Figure 1 .A8 input electrical signal, 1.A8 is the drawing with folder number 1, the signal input at position A8, the position of A8 can be found in the position definition table of the drawing area shown in Table 1 below, the top of the drawing is Arabic numerals 12345678, the left is capital letters ABCDEF, A8 is row A, column 8.

[0061] Table 1 Location definition table of drawing area

[0062] Locate the device at 1.A8 to connect multiple electrical diagrams. There are two ways to switch. One is to directly operate the menu bar to cut the drawing directly. The other is to find the device you want to find. The device contains associated device information. An input point must correspond to the output point of another drawing. These two device points are related data to each other. Find the associated device to navigate, and set the device status according to this association during operation.

[0063] The black filled triangle in CAD is mapped to a filled polygon. The red line represents that the equipment line has a 110V train standby voltage. The straight lines and polylines in CAD are mapped to wires. A line connected by multiple straight lines is called a polyline. Straight lines and polylines are connected according to contacts. The element type, position, size, shape, color and other element information in the CAD drawing will be stored in the Document and converted into a Shape object, which can directly correspond to the control elements in WPF. When the device is powered on, it means it is connected, and the signal will continue to move forward. When it reaches the white non-powered line, it is disconnected and the signal will stop. The faulty line is yellow and the green is the highlighted line.

[0064] There are three options on the 501B route. One is to keep going forward and output to the next Figure 3 .A2 position (see Figure 3 The top line in the drawing is A2 in folder number 3, where A2 is row A and column 2. Another way is that the line goes down from the first black circle node, passes the door opening circuit breaker (DOCB1), and continues to follow the signal instructions. The last way is that the line goes down from the second black circle node, passes DOCB2, and continues to follow the signal instructions.

[0065] The following example takes the example of continuing to follow the signal instructions through DOCB1. First, execute DOCB1. According to the preset mapping relationship, DOCB1 is mapped to a block in CAD, including contacts, which is a Canvas canvas in the program. The block can be regarded as a small drawing. The polylines inside the block are parsed, and these contents are filled, etc. are directly converted to the electrical level DOCB1. The device number of DOCB1 and the circuit information of the device, the relationship between the device status and the circuit status, and the relationship between the associated devices are all stored in the Database in advance for reading. The element type, position, size, shape, color and other element information of DOCB1 are all stored in the Document in advance for reading. The rated current of the circuit breaker is 0.5A. Its device status comes from the hardware device. The hardware installation position is as follows: Figure 4 The equipment status of the partition cabinet (CREC) and DOCB1 in the name definition table of the systems and electrical equipment shown belongs to the equipment that can be directly operated by the driver. The simulator directly gives the value that directly corresponds to the driving point.

[0066] Then continue to go down to line 703 and execute the cab activation relay (COR6). According to the preset mapping relationship, COR6 is mapped to a block in CAD, including contacts, which is a Canvas in the program. The block can be used as a small drawing. The polylines inside the block are parsed, and the contents are filled, etc. are directly converted to the electrical level COR6. The device number of COR6 and the circuit information where the device is located, the relationship between the device status and the circuit status, and the relationship between the associated devices are all stored in the Database in advance for reading. The element type, position, size, shape, color and other element information of DOCB1 are all stored in the Document in advance for reading. Its device status comes from the hardware device, and the hardware installation location is also in CREC. The given device status is from DRV / 2.D4 corresponds to the position to obtain, which means the drawing with folder number 2 in the DRV (driving control) system. D4 means the D4 area in the drawing with folder number 2. DRV is calculated by the internal circuit, which stores a circuit table. Several devices are connected in series or in parallel, and finally a result is generated. The subsequent devices can directly get this result. The device status of COR6 belongs to the line data edited in CAD. By storing a circuit table, the device status will be calculated according to the conditions such as several devices are connected in series or in parallel, whether there is a fault and the status of the device, and jointly generate a series and parallel logical relationship of the equipment. The result calculated by this logical relationship belongs to the result calculated by other systems, and is the data obtained by outputting electrical signals after the equipment is connected in series and in parallel.

[0067] Continue to walk down to the node of line 703A. There are three routes to choose from. The leftmost route is not in ATP and not in RM mode, the middle route is in ATP mode, and the rightmost route is in RM mode. In this example, take the leftmost branch as an example and walk to the RM mode relay (RMMR1). According to the pre-set mapping relationship, RMMR1 is mapped to a block in CAD, including contacts, which is a Canvas in the program. The block can be used as a small drawing. The polylines inside the block are parsed, and the contents are filled, etc. are directly converted to the electrical level RMMR1. The device number of RMMR1 and the circuit information of the device, the relationship between the device status and the circuit status, and the relationship between the associated devices are all stored in the Database in advance for reading. The element type, position, size, shape, color and other element information of RMMR1 are all stored in the Document in advance for reading. Its device status comes from the hardware device, and the hardware installation location is also in CREC. The output device status is obtained from the corresponding position of ATC / 11.D2, which indicates the drawing with folder number 11 in the ATC (automatic train control system) system. D2 indicates the D2 area in the drawing with folder number 11. ATC is controlled by a relay coil, which has a circuit breaker. The driver can directly operate the RM mode button. For example, in non-RM mode, an RM signal is given. Currently in RM mode, contacts 31 and 34 will be closed and connected, otherwise 31 and 32 will be connected. By default, 31 and 32 will be connected. Different modes follow different circuits. The device status of RMMR1 is also based on the line data edited in CAD. By storing a circuit table, the device status will be calculated based on the conditions such as whether several devices are connected in series or in parallel, whether there is a fault, and the device status, and a series-parallel logical relationship of the equipment is jointly generated. The result calculated by this logical relationship belongs to the result calculated by other systems, and the data obtained by outputting electrical signals after the equipment is connected in series and in parallel.

[0068] Continue down to line 703B and execute the mode selection switch (MS2). According to the pre-set mapping relationship, MS2 is mapped to a block in CAD, including contacts, which is a Canvas in the program. The block can be used as a small drawing. The polylines inside the block are parsed, and these contents are filled, etc., and directly converted to the electrical level MS2. The device number of MS2 and the circuit information where the device is located, the relationship between the device status and the circuit status, and the relationship between the associated devices are all stored in the Document in advance for reading. The element type, position, size, shape, color and other element information of RMMR1 are all stored in the Document in advance. To read, its device status comes from the hardware device, and the hardware installation location is also in CREC. The given device status is obtained from the position corresponding to ATC / 6.D1, which means the drawing with folder number 6 in the ATC (train automatic control system) system. D1 means the D1 area in the drawing with folder number 6. A mode selection switch knob is connected in series with the RM mode relay. When a button is pressed and an electrical signal is given that the ATP mode is not in cut, it will be powered on. If the conditions are not met, this circuit will not be energized. The device status of MS2 is also a device that can be directly operated by the driver. It is given directly by the simulator and is the value directly corresponding to the drive point.

[0069] Continue to walk down to line 703C and execute the ATC door opening relay (DOCR_L) on the left. According to the preset mapping relationship, DOCR_L is mapped to a block in CAD, including contacts, which is a Canvas canvas in the program. The block can be regarded as a small drawing. Parsing the polylines inside the block and filling these contents can be directly converted to the electrical level DOCR_L. The device number of DOCR_L and the circuit information where the device is located, the relationship between the device status and the circuit status, and the relationship between the associated devices will all exist in the Document in advance for reading. The element type, position, size, shape, color and other element information of DOCR_L will all exist in the Document in advance for reading. Its device status comes from the hardware device, and the hardware installation location is also in CREC. The given device status is obtained from the corresponding position of ATC / 10.D3, which means the drawing with folder number 10 in the ATC (train automatic control system) system. D3 means the folder number 10. The D3 area in the drawing, the ATC control module, the CC on-board safety input, a device and the results given by other systems are connected in series and parallel, and are controlled by the CC on-board. For example, it determines whether the current station is stable and whether the speed is 0. If satisfied, the driver's cab is activated and arrives at the parking point. If the current mode is automatic door opening, a door closing signal is given. If there is no input door closing signal, it will be passed and the door can be opened. If a door closing signal is given, the relay will hit the points B1 and B2, and B3 will be disconnected, which is equivalent to the mutual exclusion of door opening and closing. Different circuits are interlocked to ensure the safety of the line. The device status of DOCR_L also belongs to the line data edited in CAD. By storing a circuit table, the device status will be calculated according to the conditions such as several devices in series or parallel, whether there is a fault and the status of the equipment, and jointly generate a series and parallel logical relationship of the equipment. The result calculated by this logical relationship belongs to the result calculated by other systems, and after the equipment is connected in series and parallel, the data obtained by outputting the electrical signal.

[0070] Continue to walk down to line 703E and execute the ATC left automatic door closing relay (DCCR_L). According to the preset mapping relationship, DCCR_L is mapped to a block in CAD, including contacts, which is a Canvas in the program. The block can be used as a small drawing. The polylines inside the block are parsed, and the contents are filled, etc. are directly converted to the DCCR_L at the electrical level. The device number of DCCR_L and the circuit information where the device is located, the relationship between the device status and the circuit status, and the relationship between the associated devices are all stored in the Document in advance for reading. The element type, position, size, shape, color and other element information of DCCR_L are all stored in the Document in advance for reading. Its device status comes from Originated from the hardware equipment, the hardware installation location is also in CREC. The given equipment status is obtained from the position corresponding to ATC / 10.D4, which means the drawing with folder number 10 in the ATC (train automatic control system) system. D1 means the signal result is given in the D4 area of ​​the drawing with folder number 10. The equipment status of DCCR_L also belongs to the line data edited in CAD. By storing a circuit table, the equipment status will be calculated according to the conditions such as whether several devices are connected in series or in parallel, whether there is a fault and the equipment status, and jointly generate a series and parallel logical relationship of the equipment. The result calculated by this logical relationship belongs to the result calculated by other systems, and the data obtained by outputting the electrical signal after the equipment is connected in series and in parallel.

[0071] Continue down to line 703F and execute zero-speed relay 1 (ZVR1). According to the preset mapping relationship, ZVR1 is mapped to a block in CAD, including contacts, which is a Canvas in the program. The block can be used as a small drawing. The polylines inside the block are parsed, and the contents are filled, etc. are directly converted to the electrical level ZVR1. The device number of ZVR1 and the circuit information of the device, the relationship between the device status and the circuit status, and the relationship between the associated devices are all stored in the Document in advance for reading. The element type, position, size, shape, color and other element information of ZVR1 are all stored in the Document in advance for reading. Its device status comes from the hardware device, and the hardware installation location is also in CREC. The given device status is from the corresponding position of PNE / 7.D1. Set to get, indicating the drawing with folder number 7 in the PNE (air brake) system, D1 indicates the D1 area in the drawing with folder number 7, calculate the zero speed of the train, and after zero speed, finally give a door opening signal. Starting is an input here, passing through different devices, there is a series and parallel connection, all through, and finally giving a door opening signal is considered successful. When the door opening signal is given, it has been determined whether it is zero speed. A zero speed relay is connected in series to ensure that the door opening and closing signals will not be directly affected by short circuits in other circuits. The final result is given to the TCMS power-on display. Whether a door opening signal can finally generate the door opening action requires receiving three signals, namely, the door opening signal, the door enable, and the door zero speed, and no door closing signal is received. The result of the joint calculation is finally given a door opening signal, and the signal will continue to go down. Two relays are used in the circuit diagram to ensure that the door opening signal can also be sent when one of the coils fails. The device status of ZVR1 is also based on the line data edited in CAD. By storing a circuit table, the device status will be calculated based on conditions such as how many devices are connected in series or parallel, whether there is a fault, and the device status, and a series and parallel logical relationship of the equipment is jointly generated. The result calculated by this logical relationship is the result calculated by other systems, and the data is obtained by outputting electrical signals after the equipment is connected in series and parallel.

[0072] Continue down and turn right when you see the first black circle node. Go to line 11 and output to the next one. Figure 5 .The position of C1, that is, the C1 position in the drawing with folder number 5, the output signal result is given to the simulator or CC and other systems.

[0073] At this point, a complete electrical schematic diagram has been created. If a circuit drawing is complete from input to output, that is, it has input points and output points, the electrical design information can be exported.

[0074] Configure the simulation component information of each component in the electrical schematic diagram, establish the preset mapping relationship between the drawing component information and the simulation component information of each component, edit the CAD drawing, and there are two ways to convert the equipment in the drawing, that is, to obtain the data in the CAD drawing through the CAD plug-in. The plug-in obtains the data in two forms. One is the equipment directly corresponding to the drive point, such as switches, circuit breakers, etc. These data are stored in the Document. The other is the result calculated by the internal processing unit, such as the control coil, etc., and the calculation result given by other systems (such as the ZC system, etc.), and after being connected in series and parallel with the equipment, the electrical signal is output. Specifically, the calculation result given by other systems, taking the door enable coil as an example, through the ATC system module, it is equivalent to another system. The signal it outputs, receives the electrical signal from it, or receives some signals given by other systems, such as the current mode, etc., and various conditions are comprehensively calculated to generate a result, the door enable signal given, if a trip power failure is generated, the door enable will open normally, the light will be on, if it is disconnected, the door enable will not be, and these data will be stored in the Database.

[0075] Read the Document object in CAD. The Document contains the element information of the CAD drawing, including element type, position, size, shape, color, etc., which corresponds to the control in WPF.

[0076] Read the Database object in CAD. The Database contains the line and equipment data edited by the plug-in, which corresponds to the properties of the control in WPF.

[0077] Generate the corresponding custom controls and custom properties in XAML to complete the process of converting CAD to XAML code.

[0078] By obtaining the Document and Database of the drawing, as well as all Entity objects of the drawing except the auxiliary line layer, and obtaining the data of the objects.

[0079] The data obtained from the Entity is converted into a C# Shape or canvas object after the coordinate system is converted, and then drawn on the canvas.

[0080] Polylines, lines, circles, fills, etc. in CAD are converted to Shape objects. Blocks are converted to canvases, and the Entity objects inside the blocks are drawn on the canvas corresponding to the blocks.

[0081] Generate a canvas for the drawing and set the drawing size according to the preset ratio.

[0082] According to the component name corresponding table (such as Figure 4 As shown in the figure), it is analyzed and converted into simulation component information to generate a graphical interface of electrical principle.

[0083] During the drawing analysis process, the judgment of the line data is monitored to determine whether there is any mapping anomaly in the line data. If there is a mapping anomaly, a corresponding message is generated to prompt the user that the export has failed.

[0084] In summary, the solution of the present invention parses the actual circuit design drawings, extracts all component information in the drawings, converts the element information data of the CAD drawings into control element data in WPF, and quickly and accurately completes the generation of the rail vehicle electrical principle graphical interface, with a high degree of restoration and stable and reliable quality. It reduces the cost of manually drawing complex rail vehicle electrical schematics, greatly improves the efficiency of electrical principle graphical interface development, and adapts to complex vehicle control logic.

[0085] The present invention realizes automatic import judgment of the rail vehicle electrical principle graphical interface, realizes the creation and new synchronous update management of the drawing component information of the block components on the actual electrical schematic diagram and the simulation component information in the current electrical schematic diagram; realizes that when parsing and reading the circuit design drawings to export all component information, it will judge whether the line data has mapping anomalies, that is, inconsistency with the requirements; according to the component conversion rules, it realizes automatic recognition of the import of the whole vehicle circuit design drawings, ensuring the integrity of the vehicle logic electrical principle simulation system.

[0086] The device for generating a graphical interface of the electrical principle of a railway vehicle provided by the present invention is described below. The device for generating a graphical interface of the electrical principle of a railway vehicle described below and the method for generating a graphical interface of the electrical principle of a railway vehicle described above can be referred to each other.

[0087] Figure 5 is a schematic diagram of the structure of the device for generating the graphical interface of the electrical principle of a railway vehicle provided by the present invention, such as Figure 5 As shown, the device comprises: An acquisition module 510 is used to acquire an electrical principle CAD drawing corresponding to an original electrical design drawing of a rail vehicle; The first processing module 520 is used to extract component information of each component in the electrical principle CAD drawing and the association relationship information between the components; The second processing module 530 is used to obtain simulation component information corresponding to each component based on the component information of each component and the association relationship information between the components; The generating module 540 is used to generate an electrical principle graphical interface based on the simulation component information.

[0088] In some embodiments, extracting component information of each component in the electrical principle CAD drawing and information on the association relationship between the components includes: Obtain component information of each component by reading the Document object corresponding to the electrical schematic CAD drawing; and, By reading the Database object corresponding to the electrical principle CAD drawing, the association relationship information between the components is obtained.

[0089] In some embodiments, based on the component information of each component and the association relationship information between the components, the simulation component information corresponding to each component is obtained, including: Based on the component information of each component, obtain the control element information in WPF; and, Based on the association relationship information between components, the control property information in WPF is obtained.

[0090] In some embodiments, generating an electrical schematic graphical interface based on the simulation component information includes: Generate XAML code based on control element information and control attribute information; Generate electrical schematic graphical interface in WPF based on XAML code.

[0091] In some embodiments, each component has multiple states, and in the electrical schematic graphical interface, each component is displayed in only one state at a time.

[0092] In some embodiments, the apparatus further comprises: The judgment module is used to judge whether the circuit data is mapped abnormally when generating the electrical principle graphical interface. If there is a mapping abnormality, a failure message is prompted.

[0093] It should be noted here that the above-mentioned rail vehicle electrical principle graphical interface generation device provided by the present invention can implement all the method steps implemented by the above-mentioned method embodiment, and can achieve the same technical effect. The parts and beneficial effects that are the same as the method embodiment in this embodiment will not be specifically repeated here.

[0094] Figure 6 is a schematic diagram of the structure of the electronic device provided by the present invention, such as Figure 6As shown, the electronic device may include: a processor 610, a communication interface 620, a memory 630 and a communication bus 640, wherein the processor 610, the communication interface 620 and the memory 630 communicate with each other through the communication bus 640. The processor 610 may call the logic instructions in the memory 630 to execute the above-mentioned method for generating the electrical principle graphical interface of the rail vehicle, for example, including: obtaining the electrical principle CAD drawing corresponding to the original electrical design drawing of the rail vehicle; extracting the component information of each component in the electrical principle CAD drawing and the association relationship information between each component; based on the component information of each component and the association relationship information between each component, obtaining the simulation component information corresponding to each component; generating the electrical principle graphical interface based on the simulation component information.

[0095] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0096] It should be noted here that the above-mentioned electronic device provided by the present invention can implement all the method steps implemented by the above-mentioned method embodiment, and can achieve the same technical effect. The parts and beneficial effects that are the same as the method embodiment in this embodiment will not be described in detail here.

[0097] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-mentioned method for generating a graphical interface of the electrical principle of a rail vehicle, for example, including: obtaining an electrical principle CAD drawing corresponding to the original electrical design drawing of the rail vehicle; extracting component information of each component in the electrical principle CAD drawing and information on the association relationship between each component; based on the component information of each component and information on the association relationship between each component, obtaining simulation component information corresponding to each component; and generating an electrical principle graphical interface based on the simulation component information.

[0098] It should be noted here that the above-mentioned non-transitory computer-readable storage medium provided by the present invention can implement all the method steps implemented by the above-mentioned method embodiment, and can achieve the same technical effect. The parts and beneficial effects that are the same as the method embodiment in this embodiment will not be described in detail here.

[0099] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the above-mentioned method for generating a graphical interface of the electrical principle of a rail vehicle, for example, including: obtaining an electrical principle CAD drawing corresponding to the original electrical design drawing of the rail vehicle; extracting component information of each component in the electrical principle CAD drawing and association relationship information between each component; based on the component information of each component and the association relationship information between each component, obtaining simulation component information corresponding to each component; and generating an electrical principle graphical interface based on the simulation component information.

[0100] It should be noted here that the above-mentioned computer program product provided by the present invention can implement all the method steps implemented by the above-mentioned method embodiment, and can achieve the same technical effect. The parts and beneficial effects that are the same as the method embodiment in this embodiment will not be described in detail here.

[0101] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0102] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0103] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for generating a graphical interface of rail vehicle electrical principle, characterized in that: include: Obtain the electrical principle CAD drawing corresponding to the original electrical design drawing of the rail vehicle; Extracting component information of each component in the electrical principle CAD drawing and information on the association relationship between the components; Based on the component information of each component and the association relationship information between the components, obtaining the simulation component information corresponding to each component; An electrical principle graphical interface is generated based on the simulation component information.

2. The method for generating a graphical interface of rail vehicle electrical principle according to claim 1, characterized in that: The extracting the component information of each component in the electrical principle CAD drawing and the association relationship information between the components includes: Obtaining component information of each component by reading the Document object corresponding to the electrical principle CAD drawing; and, By reading the Database object corresponding to the electrical principle CAD drawing, the association relationship information between the components is obtained.

3. The method for generating a graphical interface of rail vehicle electrical principle according to claim 1, characterized in that: The obtaining of the simulation component information corresponding to each component based on the component information of each component and the association relationship information between the components includes: Based on the component information of each component, obtain the control element information in WPF; and, Based on the association relationship information between the components, the control property information in WPF is obtained.

4. The method for generating a graphical interface of rail vehicle electrical principle according to claim 3, characterized in that: The step of generating an electrical principle graphical interface based on the simulation component information includes: Generate XAML code based on the control element information and the control attribute information; The electrical principle graphical interface is generated in WPF based on the XAML code.

5. The method for generating a graphical interface of rail vehicle electrical principle according to any one of claims 1 to 4, characterized in that: Each of the components has multiple states, and in the electrical principle graphical interface, each of the components displays and only displays one state at a time.

6. The method for generating a graphical interface of rail vehicle electrical principle according to any one of claims 1 to 4, characterized in that: The method further comprises: When generating the electrical principle graphical interface, it is determined whether the line data is mapped abnormally. If there is a mapping abnormality, a failure message is prompted.

7. A device for generating a graphical interface of rail vehicle electrical principle, characterized in that: include: An acquisition module is used to acquire an electrical principle CAD drawing corresponding to an original electrical design drawing of a rail vehicle; A first processing module is used to extract component information of each component in the electrical principle CAD drawing and association relationship information between the components; A second processing module, configured to obtain simulation component information corresponding to each component based on the component information of each component and the association relationship information between the components; A generation module is used to generate an electrical principle graphical interface based on the simulation component information.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the method for generating a graphical interface of rail vehicle electrical principles as claimed in any one of claims 1 to 6 is implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for generating a graphical interface of rail vehicle electrical principles as claimed in any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for generating a graphical interface of rail vehicle electrical principles as claimed in any one of claims 1 to 6 is implemented.

Citation Information

Cited By

  • Method and device for generating electrical schematic diagram of carrier rocket

    CN120671220A