Disclosure of Invention
The invention aims to provide a dynamic binding loading method for pattern recognition of an electrical primary graph, which aims to solve the problems in the background technology.
In order to achieve the above purpose, the present invention provides the following technical solutions: an electric primary graph mode identification dynamic binding loading method comprises the following steps:
s1: drawing an electric primary diagram of a project site by using a component library in Office by engineering technicians, deriving related drawing files, identifying which are electric devices by software according to the characteristics of components in the drawing by combining imported excel project data, and completing dynamic data binding on the devices;
s2: meanwhile, an operation script is added to the file to generate an HTML webpage, and a Web item of Vue can be directly embedded, so that a user can directly access the HTML webpage through a Web browser;
s3: the embedded script file accesses the background service regularly, acquires telemetry, remote pulse and remote signaling data configured by a user, processes and updates the telemetry, remote pulse and remote signaling data to corresponding electric components, and the user can click the corresponding electric components in a browser to conduct remote control operation.
The software in the step S1 identifies which components are electrical equipment according to the content characteristics of the file codes, and the method is mainly realized by the following technical methods:
a. searching all the primitives in full text and marking the positions;
b. searching elements with special component marks in the marked primitives;
c. searching the names of the branches in a front section and a rear section according to the positioning positions of the elements and marking the positions;
d. modifying the element ID where the branch name is located, and searching for an A-phase current mark at the back;
e. modifying the element ID of the A-phase current, and searching the B-phase current mark at the back;
f. modifying the element ID of the B-phase current, and searching a C-phase current mark at the back;
g. modifying the element ID of the C-phase current, and searching a switch state mark at the back;
h. modifying the element ID of the switch state;
i. binding all element IDs to the corresponding electrical equipment data selected by the user;
j. a timer is created when the page is loaded, and data update is acquired from the background to be displayed on the electrical equipment at regular time.
Compared with the prior art, the invention has the beneficial effects that: the method for dynamically binding and loading the electric primary graph mode identification provided by the invention can enable engineering technicians to rapidly draw the electric primary graph and complete foolproof conversion, can be integrated into a Web system without writing a line of codes, supports interactive operation of users, displays configurable data content, and is convenient for transplanting and deployment.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The invention provides a dynamic binding loading method for pattern recognition of an electrical primary graph, as shown in fig. 1-2, which comprises the following steps:
s1: drawing an electric primary diagram of a project site by using a component library in Office by engineering technicians, deriving related drawing files, identifying which are electric devices by software according to the characteristics of components in the drawing by combining imported excel project data, and completing dynamic data binding on the devices;
s2: meanwhile, an operation script is added to the file to generate an HTML webpage, and a Web item of Vue can be directly embedded, so that a user can directly access the HTML webpage through a Web browser;
s3: the embedded script file accesses the background service regularly, acquires telemetry, remote pulse and remote signaling data configured by a user, processes and updates the telemetry, remote pulse and remote signaling data to corresponding electric components, and the user can click the corresponding electric components in a browser to conduct remote control operation.
The software in the step S1 identifies which components are electrical equipment according to the content characteristics of the file codes, and the method is mainly realized by the following technical methods:
a. searching all the primitives in full text and marking the positions;
b. searching elements with special component marks in the marked primitives;
c. searching the names of the branches in a front section and a rear section according to the positioning positions of the elements and marking the positions;
d. modifying the element ID where the branch name is located, and searching for an A-phase current mark at the back;
e. modifying the element ID of the A-phase current, and searching the B-phase current mark at the back;
f. modifying the element ID of the B-phase current, and searching a C-phase current mark at the back;
g. modifying the element ID of the C-phase current, and searching a switch state mark at the back;
h. modifying the element ID of the switch state;
i. binding all element IDs to the corresponding electrical equipment data selected by the user;
j. a timer is created when the page is loaded, and data update is acquired from the background to be displayed on the electrical equipment at regular time.
Examples: in the implementation of a commercial building project of a certain Nanjing unit and a building project of a junior middle school in a Shandong province, a component library provided by a user and engineering technicians can be used for rapidly drawing a high-low voltage electricity primary graph, and in combination with project data on site, professional software is used for converting the electricity graph, and a converted webpage can be seamlessly and directly embedded into the project for release. According to the set of flow, the whole process can complete the whole deployment implementation work in a few minutes. The method is greatly convenient for field engineering technicians, saves project deployment cost and time period, and improves system reliability. With the interactive Web responsive layout, a user can use a browser to directly access and view the condition of the electrical device.
In the conversion process, the electrical components and the primitive components on the primary graph are dynamically identified and bound, and the latest data is acquired through a script background real-time access interface and updated to the corresponding primitives according to the ID of the electrical components. The user may also select a certain electrical component to view telemetry, telemetry data to execute remote control instructions, etc.
The invention provides a dynamic binding loading method for pattern recognition of an electrical primary graph, which comprises the following steps:
1. engineering technicians can map files for electrical primary using Office design;
2. engineering technicians can use software to convert and bind project data in Excel and identify partial primitive components therein;
3. the information system can dynamically update the data of the primary drawing page by combining the script with the data interface;
4. the conversion software can identify the high-voltage low-voltage electrical switch which is drawn transversely and vertically, and dynamically change the switch according to the data;
5. the method adopts a non-configuration technology mode, and can be deployed in a cross-platform manner based on the Web page;
6. the electrical primary graph can be drawn at will, and the generated file can directly reference the script on the CDN without additional development and maintenance;
7. the telemetering information of each electric component is displayed on the electric primary graph, the detailed telemetering, remote signaling and remote pulse information is displayed in the popup page after the components are selected, and remote control operation can be performed.
In summary, compared with the prior art, the invention can lead engineering technicians to rapidly draw an electric primary graph and complete foolproof conversion, can be integrated into a Web system without writing a row of codes, supports interactive operation of users, displays configurable data content, and is convenient for transplanting and deployment.
Finally, it should be noted that: the foregoing description is only illustrative of the preferred embodiments of the present invention, and although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that modifications may be made to the embodiments described, or equivalents may be substituted for elements thereof, and any modifications, equivalents, improvements or changes may be made without departing from the spirit and principles of the present invention.