Method and system for automatically generating primary wiring diagram

By binding device point data and instantiation components in the primary wiring diagram, displaying animation changes and supporting interactive operations, the problem that the primary wiring diagram in the prior art cannot display data changes and generate remote control signals is solved, and the functions of real-time data display, historical data remembrance and remote control are realized.

CN119669344APending Publication Date: 2025-03-21HANGZHOU ZHIGUANG ECON TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411640804.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-18
Publication Date
2025-03-21

AI Technical Summary

Technical Problem

In the prior art, the primary wiring diagram cannot display data changes and cannot perform interactive operations to generate remote control signals of the device.

Method used

By establishing a component library, a wiring diagram is generated and equipment point data binding is performed. Instantiate components and render instance data, display animation changes, and generate remote control instructions in interactive operations.

Benefits of technology

Real-time data display and historical data inversion and recollection on a wiring diagram are realized, which enhances the intuitiveness of the operating status of the equipment, and generates remote control signals through interactive operations, improving work efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119669344A_ABST
    Figure CN119669344A_ABST
Patent Text Reader

Abstract

The invention discloses a method and a system for automatically generating a primary wiring diagram, which overcome the problems that the primary wiring diagram cannot display data change and cannot perform interactive operation to generate a remote control signal of equipment in the prior art, and the method comprises the following steps: establishing an element library, and generating the primary wiring diagram; binding equipment point location data to the generated primary wiring diagram to generate an original file of the primary wiring diagram; instantiating all elements in the primary wiring diagram original file, rendering instance data, acquiring equipment data to update electrical symbol parameters, and displaying animation changes; and performing interactive operation on the primary wiring diagram after instance data rendering is completed, generating a remote control instruction for the equipment in a data driving form, and performing equipment control. The device data associated with the electrical symbols can be efficiently bound, real-time synchronous data or historical data can be collected on a user side in a combined mode, and a remote control instruction for the device can be generated on a primary wiring diagram.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of power system visualization, and in particular to a method and system for automatically generating a primary wiring diagram. Background Art

[0002] The primary wiring diagram is also called the main wiring diagram. It is a wiring diagram that shows the route of power transmission and distribution. The electrical equipment directly connected to the primary wiring is called primary equipment or primary components. The primary wiring diagram can reflect the topology between the plant and the line. It is a common reference for the dispatching, maintenance, planning and other departments of the power grid. It has many applications in actual real-time dispatching and production management.

[0003] On December 10, 2021, the China Patent Office disclosed an invention patent for an automatic drawing method, device, electronic device and storage medium named "primary wiring diagram", with a publication number of CN113779115A. According to certain query conditions, a part of the equipment ledger data is obtained, and then the primary wiring diagram SVG data is generated and displayed in XML data format. On March 26, 2024, the China Patent Office disclosed an invention patent named CN117768483A, a real-time synchronization tool for primary wiring diagrams, with a publication number of CN117768483A. According to certain query conditions, it focuses on collecting real-time data of the equipment, encoding the primary wiring diagram, and transmitting it to the terminal through the Socket socket protocol. The terminal decodes and then outputs it as JPEG, PNG and other images. However, the above two patents cannot be combined with the engineering drawings of the primary wiring diagram to restore the primary wiring diagram to the terminal device. There is no function of inverting and recalling historical data on the primary wiring diagram, and it is not possible to perform interactive operations on the primary wiring diagram to generate remote control signals for the device. Summary of the invention

[0004] The purpose of the present invention is to solve the problem in the prior art that a primary wiring diagram cannot display data changes and cannot perform interactive operations to generate remote control signals for equipment. A method and system for automatically generating a primary wiring diagram are provided, which can efficiently bind the equipment data associated with electrical symbols, while synchronizing data or historical data in real time on the user side in combination with collected information, and can generate remote control instructions for the equipment on the primary wiring diagram.

[0005] In order to achieve the above object, the present invention adopts the following technical solutions: A method for automatically generating a primary wiring diagram, characterized in that it comprises the following steps: S1: Establish component library and generate a wiring diagram; S2: Bind the device point data to the generated primary wiring diagram to generate the original file of the primary wiring diagram; S3: instantiate all components in the original file of the primary wiring diagram and render the instance data, obtain the device data to update the electrical symbol parameters, and display the animation changes; S4: Perform interactive operations on the primary wiring diagram rendered by the instance data, generate remote control instructions for the device in a data-driven form, and control the device.

[0006] The method of the present invention supports the display of real-time data on the primary wiring diagram and supports the inversion and recall of historical data. During production operation, the electrical symbols on the primary wiring diagram will make corresponding animation switches according to the changes in the equipment data, making the equipment operation status more intuitive. When the user needs to operate the equipment, he can directly click on the electrical symbol corresponding to the equipment on the primary wiring diagram, conveniently operate the equipment, and improve work efficiency.

[0007] Preferably, the generating of a wiring diagram includes: selecting a component in a component library, instantiating the selected component, generating new instance data in a canvas, performing initial rendering on the canvas, modifying the instance data, saving the instance data of all components, and generating a wiring diagram.

[0008] Preferably, S2 includes: activating an electrical symbol component instance in the primary wiring diagram, binding basic parameter configuration information and point information of equipment operation data to the component instance so that the point binding information is included in the component instance, and saving it as the original file of the primary wiring diagram.

[0009] Preferably, the establishment of the component library includes: parsing the electrical symbol SVG original file, marking the terminal positions on the electrical symbols and parameterizing the output of the adjustment items to generate components.

[0010] Preferably, the S1 includes: performing appearance and geometry configuration on the currently activated instance, thereby modifying instance data.

[0011] Preferably, in S1, the generated primary wiring diagram is structured JSON data and is persistently stored.

[0012] Preferably, after parsing the electrical symbol SVG original file, invalid data is cleared, and the invalid data includes remarks, ID and invalid grouping.

[0013] A primary wiring diagram automatic generation system, comprising: Component library, layout in the designer, and animation control with script logic; The designer lays out the appearance and position of the components in the component library, thereby drawing a wiring diagram and binding devices, and drawing the data points of the device operation to generate a wiring diagram original file; The runtime renderer renders the original file of the primary wiring diagram generated by the designer and synchronizes the device operation data or historical data bound to the component.

[0014] Preferably, the original file of the primary wiring diagram is loaded into the runtime renderer via the file service of the running domain. The runtime renderer parses and extracts the content of the original file of the primary wiring diagram to obtain the point information of the bound device real-time data and the layout information of the components. The point information of the device real-time data is subscribed to and pushed after the socket is established with the server of the running domain. At the same time, the point information of the device real-time data and the state change animation of the electrical symbols are linked.

[0015] Preferably, the runtime renderer performs interactive operations to generate interactive event data, and at the same time generates control commands for the device in a data-driven form to control the device operation.

[0016] Therefore, the present invention has the following beneficial effects: when a user interacts with an electrical symbol on a wiring diagram by clicking, touching, or other means, a remote control command for the bound device is issued and sent to the running control service to complete the control operation of the device. The animation logic of the SVG electrical symbol is added, and the point information of the real-time data of the device is subscribed to and pushed after the socket is established with the server in the running domain. The animation switching is made through the changes in the device data bound to the electrical symbol, so that the user can view the real-time information. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 This is a flowchart of the overall steps of the method for automatically generating a primary wiring diagram in Example 1.

[0018] Figure 2 This is a flow chart for component production in Example 1.

[0019] Figure 3 This is a logic diagram of the device data point information binding of the component in the first embodiment.

[0020] Figure 4 This is a schematic diagram of the architecture of the primary wiring diagram automatic generation system in Example 2.

[0021] Figure 5 This is a workflow diagram of the system for automatically generating a primary wiring diagram in Example 2.

[0022] Figure 6 This is a workflow diagram for the designer in Example 2 to generate a primary wiring diagram.

[0023] Figure 7 This is a logic diagram of real-time data or historical data changes when the system in Example 2 is running.

[0024] Figure 8 The control command logic diagram is issued sequentially according to the wiring diagram in Example 2.

[0025] In the figure: 1. Component library; 2. Designer; 3. Canvas; 4. Editor; 5. Plug-in; 6. Primary wiring diagram; 7. Runtime renderer; 8. Configuration domain; 9. Runtime domain; 10. Client. DETAILED DESCRIPTION

[0026] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments: Embodiment 1: This embodiment provides a method for automatically generating a primary wiring diagram. Figure 1 As shown, the operation process is as follows: Step 1, establish a component library and generate a primary wiring diagram; Step 2, bind the device point data to the generated primary wiring diagram and generate the primary wiring diagram original file; Step 3, instantiate all components in the primary wiring diagram original file and render the instance data, obtain the device data to update the electrical symbol parameters, and display the animation changes; Step 4, perform interactive operations on the primary wiring diagram after the instance data is rendered, generate remote control instructions for the device in a data-driven form, and control the device.

[0027] The method for automatically generating a primary wiring diagram provided in this embodiment, when the user interacts with the electrical symbols on the primary wiring diagram by clicking, touching, etc., a remote control command for the bound device will be issued and sent to the running control service to complete the control operation of the device. At the same time, the animation logic of the SVG electrical symbol is added, and the point information of the real-time data of the device is subscribed and pushed after the socket is established with the server in the running domain. The animation switching is made through the changes of the device data bound to the electrical symbol, so that the user can view the real-time information.

[0028] The following further illustrates the technical solution and technical effects of the present invention through specific examples and specific application scenarios. The following examples are explanations of the present invention and the present invention is not limited to the following examples.

[0029] This embodiment provides a method for automatically generating a primary wiring diagram, which is used to solve the following technical problems existing in the existing primary wiring diagram: (1) It is not possible to restore the primary wiring diagram to the terminal device in combination with the primary wiring diagram engineering drawing.

[0030] (2) There is no animation linkage between the real-time data of the equipment and the electrical symbols of the primary wiring diagram.

[0031] (3) There is no support for users to freely drag and drop electrical symbols and bind device signals to generate a wiring diagram.

[0032] (4) The power supply status of the wires and equipment is not presented on the primary wiring diagram, and there is no function to perform historical data inversion and recall on the primary wiring diagram.

[0033] (5) It is not possible to bind interactive operations to electrical symbols on a primary wiring diagram or add some control buttons to generate remote control signals for the equipment.

[0034] While solving the problem of custom drawing of the primary wiring diagram of the power grid system, it can efficiently bind the device data associated with the electrical symbols, and combine the collected real-time synchronization data or historical data on the user side to intuitively display the device operation data and status data on the primary wiring diagram to the user. At the same time, you can also issue remote control commands to the device by clicking on the device element that needs to be controlled on the primary wiring diagram.

[0035] The specific process is: Step 1: Create a component library and generate a wiring diagram.

[0036] (1) Establish a component library.

[0037] like Figure 2 As shown in the figure, the production process of SVG components (electrical symbols) in the component library includes: First, parse the XML code of the drawn electrical symbol SVG source file to obtain the SVG component and clear the invalid data. Then, mark the terminal position on the electrical symbol and output the adjustment items such as color, visibility, animation, etc. parameterizedly. Combined with the parsed SVG source file, the terminal position marking information and the appearance configuration parameter information, finally generate the component and store it in the component library.

[0038] Perform the above operation on all components to obtain a component library, and then encode and sort the components in the component library.

[0039] SVG is an image file format, the full name is Scalable Vector Graphics, which means scalable vector graphics.

[0040] Invalid data includes remarks, IDs, empty tags, invalid groups, and other invalid data that are useless for display.

[0041] (2) Generate a wiring diagram.

[0042] Generating a wiring diagram includes: loading the component library created earlier, selecting a component in the component library and dragging it into the canvas. In this process, the definition of the component will be obtained, which includes properties and behaviors.

[0043] Instantiate the selected component, generate new instance data in the canvas, perform initial rendering on the canvas, modify the instance data, and obtain the final instance data. Select multiple components in turn according to actual needs and perform the above operations. Finally, save the instance data of all components to generate a one-time wiring diagram.

[0044] Among them, modifying the instance data can implement the appearance and geometric transformation configuration of the currently activated instance.

[0045] In this embodiment, the generated primary wiring diagram is in the format of JSON data and is persistently stored. JSON data supports the expression of more complex data, and has a smaller file size and is more suitable for transmission across networks.

[0046] It provides a highly scalable plug-in mechanism and a way to load component libraries externally to meet the customization of drawing and presenting primary wiring diagrams in different business systems.

[0047] Step 2: Bind the device point data to the generated primary wiring diagram to generate the original file of the primary wiring diagram.

[0048] like Figure 3 As shown in the figure, the specific process of binding the device point data to the generated primary wiring diagram is as follows: Activate an electrical symbol component instance in the primary wiring diagram to obtain the currently activated instance, bind it with the point information of the equipment operation data according to the basic parameter configuration information, so that the component instance contains the point binding information, and save it as the original file of the primary wiring diagram.

[0049] When binding, determine the component type of the currently activated instance, query the point number of the component, and obtain the point number type. Based on the point number type, combined with the device information service, obtain the point number identifier, bind the point number identifier, bind the point number to the component instance ID, obtain the component instance and bound data, and store them.

[0050] Step 3: Instantiate all components in the original file of the primary wiring diagram and render the instance data, obtain the device data to update the electrical symbol parameters, and display the animation changes.

[0051] The instantiated data includes: initial rendering data of electrical symbol components, user appearance configuration data, equipment operation data point information, equipment control point information, etc. Render these instantiated data, display the primary wiring diagram, extract the bound point information from the primary wiring diagram, receive the pushed device data for real-time display, or use the pushed device data to update the electrical symbol parameters, and display dynamic changes on the primary wiring diagram, such as battery water level and switch closure, etc.

[0052] Step 4: Perform interactive operations on the primary wiring diagram rendered with instance data, generate remote control instructions for the device in a data-driven manner, and control the device.

[0053] The interactive operations performed include electrical symbol components, interactive menus, buttons, hot spots, etc. Interactive event data will be generated based on the interactive operations, and remote control and remote adjustment commands for the equipment will be generated in a data-driven manner, thereby realizing remote control of the equipment.

[0054] The method for automatically generating a primary wiring diagram provided in this embodiment can freely drag and arrange the primary wiring diagram by referring to the primary wiring diagram drawing, and supports the display of real-time data on the primary wiring diagram while supporting the inversion and recall of historical data. During production operation, the electrical symbols on the primary wiring diagram will make corresponding animation switches according to the changes in the equipment data, making the equipment operation status more intuitive. When the user needs to operate the equipment, he can directly click on the electrical symbol corresponding to the equipment on the primary wiring diagram to conveniently control the equipment and improve work efficiency.

[0055] Embodiment 2: This embodiment provides a primary wiring diagram automatic generation system, which is brought into a specific application scenario and is used to implement the primary wiring diagram automatic generation method in the first embodiment.

[0056] Specifically, Figure 4 As shown, the embodiment provides a primary wiring diagram automatic generation system, including a component library 1, a designer 2, a plug-in 5 and a runtime renderer 7. The component library is connected to the designer, the plug-in is connected to the designer, and the designer is connected to the runtime renderer. The designer generates a primary wiring diagram with the cooperation of the plug-in and the component library. Figure 6 (structured data file) and sent to the runtime renderer, which performs further operations on the primary wiring diagram.

[0057] Among them, the component library includes SVG and HTML; the design library includes canvas 3 and editor 4, the editor includes built-in basics, and the built-in basics include input boxes, sliders, colors, switches, and selections; the plug-in includes functions such as device selection and point number selection.

[0058] In this embodiment, the operation process of the primary wiring diagram automatic generation system is as follows: Figure 5 As shown, the runtime includes operations at three levels: configuration domain 8, operation domain 9 and client 10.

[0059] In the configuration domain, the main work is interface drawing, data binding and file design. During data binding, data services are received from the running domain, and the designed files are sent to the file service of the running domain.

[0060] In the running domain, control services can be provided to receive remote control and remote adjustment information sent by the client. Data services can also be provided, including the on-site environment and the mock on-site environment. Data services are connected to the client's cross-sectional data through ajax and to the client's real-time data through socket. File services can also be provided in the running domain.

[0061] Ajax (Asynchronous Java script And XML) is a technology for creating fast dynamic web pages, which allows loading and updating part of the web page through asynchronous requests without reloading the entire page. The core of Ajax is the XML Http Request object, which allows the browser to communicate with the server asynchronously, thereby updating data without affecting other parts of the page.

[0062] Mock is a method used in software testing to handle certain objects that are not easy to construct or obtain. By creating a virtual object (i.e., a Mock object), testers can use this virtual object to perform tests during the test process, thereby simulating real usage scenarios.

[0063] On the client side, the primary wiring diagram generated by the file service is loaded into the client's file renderer, and then data is extracted and bound to the cross-sectional data and real-time data generated by the data service, and finally displayed in the display interface. Users can also interact in the display interface, and the generated remote control and remote adjustment commands are sent to the control service in the operation domain.

[0064] The specific operation process of the wiring diagram automatic generation system includes the following steps: Step (1): The user uses the designer to draw a wiring diagram and bind the device point data. The device point data comes from Figure 5 The real data of the on-site environment of the running domain or the simulated data of the Mock simulated on-site environment is used to generate the original wiring diagram file.

[0065] Step (2): The original file of the primary wiring diagram is loaded into the runtime renderer of the client via the file service of the runtime domain.

[0066] Step (3): The runtime renderer first parses the content and extracts data from the original file of the primary wiring diagram, extracts the point information of the bound device real-time data and the layout information of the electrical symbols from the original file of the primary wiring diagram, and uses the layout information to initialize the rendering of the primary wiring diagram. The point information of the device real-time data is used to establish a socket with the server of the running domain for data subscription and push, and is linked to the state change animation of the electrical symbols.

[0067] Socket is an abstraction of the endpoint for two-way communication between application processes on different hosts in the network. A socket is one end of process communication on the network, providing a mechanism for application layer processes to exchange data using network protocols.

[0068] Step (4): When the user clicks, touches, or performs other interactive operations on the electrical symbols on the primary wiring diagram, the system will issue remote control and remote adjustment control commands to the bound device and send them to the control service in the operation domain to complete the control operation of the device.

[0069] Furthermore, each module of the primary wiring diagram automatic generation system is described in detail.

[0070] (1) Component library.

[0071] The component library consists of commonly used electrical symbols for layout in the designer. The electrical symbols are based on SVG and have script logic for animation control. The component library will be used in the designer and renderer.

[0072] The generation of components in the component library includes: parsing the XML code of the electrical symbol SVG source file drawn by the user, clearing comments, IDs, empty tags, invalid groups and other invalid data that are useless for display, marking the terminal positions on the electrical symbols and parameterizing the adjustment items such as color, visibility, animation, etc., combining the SVG parsed file, terminal position marking information, and appearance configuration parameter information to finally generate the components and store them in the component library.

[0073] (2) Designer.

[0074] The designer, consisting of a canvas and an editor, is used to draw a wiring diagram and bind data points of devices and device operations based on the appearance and position layout of components (electrical symbols). When the design is completed, a structured data file in JSON format is generated, which is the original file of the wiring diagram.

[0075] Specifically, the process of the designer generating a wiring diagram is as follows: Figure 6 As shown: First, load the prepared component library, select a component in the component library and drag it into the canvas. This process will obtain the definition of the component (including properties and behaviors), instantiate the selected component to generate new instance data in the canvas, and perform initial rendering on the canvas. The user then configures the appearance and geometric transformation of the currently activated instance to modify the instance configuration data. Finally, the instance data of all components (including the instance data in the inactivated instance set and the instance data of the currently activated instance after the instance configuration data is modified) are saved to generate a one-time wiring diagram work in the format of structured JSON data and stored persistently.

[0076] Among them, canvas rendering refers to the process of rendering UI elements (including various controls used to build user interfaces, such as menus, edit boxes, etc., for interaction with users) onto the screen.

[0077] (3) Runtime renderer.

[0078] The runtime renderer is used to render the original file of the primary wiring diagram generated by the designer and to synchronize the device operation data or historical data bound to the component.

[0079] When the system is running, the logic of the change of real-time data or historical data on the primary wiring diagram is as follows Figure 7 As shown: On the upper terminal system such as SCADA and other clients, the component library is loaded through the embedded automatic generation system runtime SDK provided by this embodiment, and the designed primary wiring diagram structured JSON data is loaded. Through this JSON data and component library, all components in this primary wiring diagram are instantiated, including the currently activated instance and other instances. The instantiation data includes: initial rendering data of electrical symbol components, user appearance configuration data, equipment operation data point information, equipment control point information, etc. The runtime renderer renders these instance data, displays the primary wiring diagram, extracts the point information bound to the primary wiring diagram and subscribes it to the device data server, receives the device data pushed by it to display the values ​​in real time or update the electrical symbol parameters, and makes animation changes on the primary wiring diagram, such as battery water level and switch opening and closing.

[0080] Runtime SDK refers to a software development kit used in the runtime environment, which is used to provide the necessary interfaces and functions during the running of the application, allowing users to call specific functions in the application without recompiling or modifying the code, reducing development time and cost.

[0081] Further, the logic of the terminal user performing interactive operations on the electrical symbols on the primary wiring diagram generated by the automatic generation system provided by this embodiment to issue control commands is as follows: Figure 8 As shown: The runtime renderer on the client of the upper-level system such as SCADA has performed interactive operations on the primary wiring diagram rendered by the instance data, such as clicking on electrical symbol components, interactive menus, buttons, hot spots, etc., which will generate interactive event data. According to the interactive operations performed, the corresponding remote control and remote adjustment commands for the equipment will be generated in a data-driven manner, and the generated remote control and remote adjustment instructions will be sent to the equipment control service, completing the operation on the primary wiring diagram drawn by this automatic generation system to achieve the goal of remotely controlling the equipment.

[0082] Based on the above, the primary wiring diagram automatic generation system provided in this embodiment has the following beneficial effects: (1) The operation is simple and flexible. Users can freely drag and drop electrical symbols and bind device signals to generate the primary wiring diagram actually needed.

[0083] (2) It not only supports the display of real-time data on a wiring diagram, but also supports the inversion and recall of historical data, making it easier for users to view.

[0084] (3) Added animation logic for SVG electrical symbols. By changing the device data bound to the electrical symbols, animation switching is performed, such as battery water level changes, switch opening and closing status, etc.

[0085] (4) Added interactive behaviors such as clicking and touching electrical symbols, which can issue remote control commands to devices bound to a wiring diagram, making operation more convenient and improving work efficiency.

[0086] (5) The output primary wiring diagram data format is JSON, not the existing SVG format. It supports the expression of more complex data and has a smaller file size, making it more suitable for transmission across networks.

[0087] The above-described embodiment is only a preferred solution of the present invention and does not limit the present invention in any form. There are other variations and modifications without exceeding the technical solution described in the claims.

Claims

1. A method for automatically generating a primary wiring diagram, characterized in that: include: S1: Establish component library and generate a wiring diagram; S2: Bind the device point data to the generated primary wiring diagram to generate the original file of the primary wiring diagram; S3: Instantiate all components in the original file of the primary wiring diagram and render the instance data, obtain device data to update electrical symbol parameters, and display dynamic changes; S4: Perform interactive operations on the primary wiring diagram rendered by the instance data, generate remote control instructions for the device in a data-driven form, and control the device.

2. The method for automatically generating a primary wiring diagram according to claim 1, characterized in that: The generating of a wiring diagram includes: selecting a component in a component library, instantiating the selected component, generating new instance data in a canvas, performing initial rendering on the canvas, modifying the instance data, saving the instance data of all components, and generating a wiring diagram.

3. The method for automatically generating a primary wiring diagram according to claim 1 or 2, characterized in that: The S2 includes: activating a certain electrical symbol component instance in the primary wiring diagram, binding basic parameter configuration information and point information of equipment operation data to the component instance so that the point binding information is included in the component instance, and saving it as the original file of the primary wiring diagram.

4. The method for automatically generating a primary wiring diagram according to claim 1 or 2, characterized in that: The component library is established by parsing the original SVG file of the electrical symbol, marking the terminal positions on the electrical symbol and outputting the adjustment items in a parameterized manner to generate components.

5. The method for automatically generating a primary wiring diagram according to claim 2, characterized in that: The S1 includes: performing appearance and geometry configuration on the currently activated instance, thereby modifying instance data.

6. The method for automatically generating a primary wiring diagram according to claim 1, 2 or 5, characterized in that: In S1, the generated primary wiring diagram is structured JSON data and is persistently stored.

7. The method for automatically generating a primary wiring diagram according to claim 4, characterized in that: After parsing the electrical symbol SVG original file, invalid data is cleared, and the invalid data includes remarks, IDs and invalid groups.

8. A primary wiring diagram automatic generation system, using a primary wiring diagram automatic generation method according to any one of claims 1 to 7, characterized in that: include: Component library, layout in the designer, and animation control with script logic; The designer lays out the appearance and position of the components in the component library, thereby drawing a wiring diagram and binding devices, and drawing the data points of the device operation to generate a wiring diagram original file; The runtime renderer renders the original file of the primary wiring diagram generated by the designer and synchronizes the device operation data or historical data bound to the component.

9. The primary wiring diagram automatic generation system according to claim 8, characterized in that: The original file of the primary wiring diagram is loaded into the runtime renderer via the file service of the running domain. The runtime renderer parses and extracts the content of the original file of the primary wiring diagram to obtain the point information of the bound device real-time data and the layout information of the components. The point information of the device real-time data is subscribed to and pushed after the socket is established with the server of the running domain. At the same time, the point information of the device real-time data and the state change animation of the electrical symbols are linked.

10. The primary wiring diagram automatic generation system according to claim 8 or 9, characterized in that: The runtime renderer performs interactive operations to generate interactive event data, and at the same time generates control commands for the device in a data-driven form to control the device operation.

Citation Information

Patent Citations

  • Method and device for automatically forming primary wiring diagram, electronic equipment and storage medium

    CN113779115A

  • Real-time synchronization tool for primary wiring diagram

    CN117768483A