Method for generating wiring diagram of electrical system, server and storage medium

CN122926527APending Publication Date: 2026-10-16CHINA NAT PETROLEUM CORP +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510400316.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-01
Publication Date
2026-10-16

AI Technical Summary

Technical Problem

[0004]本申请提供一种电气系统的接线图生成方法、服务器及存储介质,用于解决现有技术中绘制接线图需要大量的时间成本和人力成本,且接线的准确度低的问题

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122926527A_ABST
    Figure CN122926527A_ABST
Patent Text Reader

Abstract

The application provides a wiring diagram generation method of an electrical system, a server and a storage medium, and relates to the technical field of electrical systems. The selection operation of a user on at least one blank option in a first sub-template table can be received; the first target language sub-option corresponding to the selected blank option and the second target language sub-option corresponding to the selected blank option are determined. Furthermore, according to the first target language sub-option corresponding to the selected blank option and the second target language sub-option corresponding to the selected blank option, a wiring diagram representing the target connection mode between a target electrical load device, a strong electrical terminal strip, a plurality of relays and a weak electrical terminal strip when the electrical signal of the transmission target class of the electrical system is generated. In this way, only the first target language sub-option and the corresponding second target language sub-option and the selected at least one blank option need to be selected by the user, and the wiring diagram can be automatically generated, saving time and labor costs, and having high accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electrical system technology, and in particular to a method for generating wiring diagrams for electrical systems, a server, and a storage medium. Background Technology

[0002] A relay is a moving switch element with isolation function, widely used in remote control, telemetry, communication, motion control, mechatronics, and electrical systems. It is one of the most important control components in electrical systems. Relays typically serve as the interface between low-voltage and high-voltage circuits in an electrical system. Electrical systems usually require electrical connections between electrical equipment (such as fans and pumps), high-voltage terminal blocks, multiple relays, and low-voltage terminal blocks. Before actual circuit wiring, a wiring diagram needs to be designed for reference by the operators.

[0003] Currently, staff need to add, connect, edit, and modify CAD elements one by one using AutoCAD to obtain wiring diagrams. However, due to the large number of terminals in high-voltage terminal blocks, relays, and low-voltage terminal blocks, drawing wiring diagrams requires significant time and manpower, and the accuracy of the wiring is low. Summary of the Invention

[0004] This application provides a method for generating wiring diagrams for electrical systems, a server, and a storage medium to solve the problems of high time and manpower costs and low accuracy in wiring diagrams in the prior art.

[0005] In a first aspect, this application provides a method for generating wiring diagrams for an electrical system, applied to a server. The electrical system includes multiple electrical load devices, high-voltage terminal blocks, multiple relays, low-voltage terminal blocks, and a central controller. The high-voltage terminal blocks, multiple relays, and low-voltage terminal blocks are used for high-voltage and low-voltage isolation between the multiple electrical load device groups and the central controller. The server is configured with a wiring diagram design template table, which includes interconnected first and second sub-template tables. Each row of the first sub-template table has a first language superordinate description at the beginning, representing the connection method between the multiple electrical load devices, high-voltage terminal blocks, multiple relays, and low-voltage terminal blocks. Each column of the first sub-template table has a third language superordinate description at the beginning, representing the category of electrical signals. The first sub-template table includes a first language upper-level description, with each column below the column header containing a set of first language lower-level options characterizing the connection method between multiple electrical load devices, high-voltage terminal blocks, multiple relays, and low-voltage terminal blocks when an electrical system transmits one type of electrical signal. The second sub-template table includes a first region and a second region. The first region's row header contains a third language upper-level description characterizing the identifier of the electrical load device. Each row following the row header contains a set of second language lower-level options characterizing the identifier of the electrical load device. The second region includes multiple rows and columns of blank options, with each row of blank options corresponding to a set of second language lower-level options, and each column of blank options corresponding to a set of first language lower-level options in the first sub-template table. The method provided in this application includes:

[0006] For each column of first language sub-options, the user selects from the first language sub-options a first target language sub-option that represents the target connection method between multiple electrical load devices, high-voltage terminal blocks, multiple relays, and low-voltage terminal blocks when the electrical system transmits electrical signals of the target class.

[0007] For each set of second language sub-options in a row, the user selects a second target language sub-option that represents the identifier of the target electrical load device from the set of second language sub-options.

[0008] Receive user selection of at least one blank option in the first sub-template table;

[0009] Determine the first target language sub-option and the corresponding second target language sub-option for the selected blank option;

[0010] Based on the first target language sub-option and the corresponding second target language sub-option corresponding to the selected blank option, a wiring diagram is generated that represents the target connection method between the target electrical load device, high-voltage terminal block, multiple relays, and low-voltage terminal block when the electrical system transmits electrical signals of the target class.

[0011] In some implementations, the first language superordinate description includes instrument function identifiers, coil voltages, relay contact states, and electrical signal categories including at least one of operating status category, local / remote control category, fault alarm category, start category, stop category, and emergency stop category.

[0012] In some implementations, based on the first target language sub-option corresponding to the selected blank option and the corresponding second target language sub-option, a wiring diagram is generated representing the target connection method between the target electrical load device, high-voltage terminal block, multiple relays, and low-voltage terminal block when the electrical system transmits electrical signals of the target class. This includes:

[0013] Generate the component symbol of the electrical load device based on a set of second language sub-options that characterize the electrical load device;

[0014] Based on the instrument function identifier and a set of second language sub-options corresponding to the first target language sub-option corresponding to the selected blank option, and the identifier representing the electrical load equipment, generate the connection between the component symbol of the electrical load equipment and the component symbol of the high-voltage terminal block.

[0015] Based on the coil voltage, determine the terminal blocks connected to the relay coil terminals and the terminal blocks connected to the relay contact terminals. When the coil voltage is greater than a set voltage threshold, the terminal blocks connected to the relay coil terminals are high-voltage terminal blocks, and the terminal blocks connected to the relay contact terminals are low-voltage terminal blocks. When the coil voltage is less than or equal to the set voltage threshold, the terminal blocks connected to the relay coil terminals are low-voltage terminal blocks, and the terminal blocks connected to the relay contact terminals are high-voltage terminal blocks.

[0016] Determine the wiring method for the relay contact terminals based on the contact state of the relay;

[0017] Based on the identifier of the relay associated with the target class's electrical signal, the number of the coil terminal, and the number of the contact terminal of the wiring method, generate the connection between the component symbol of the high-voltage terminal block and the component symbol of the relay, as well as the connection between the component symbol of the low-voltage terminal block and the component symbol of the relay.

[0018] In some implementations, when the coil voltage is greater than a set voltage threshold, the terminal block connected to the coil terminals of the relay is a high-voltage terminal block, and the terminal block connected to the contact terminals of the relay is a low-voltage terminal block.

[0019] Based on the contact state of the relay, determine the wiring method of the relay contact terminals, including:

[0020] When the relay contacts are in a normally open state, determine the low-voltage terminals of the first set of relay contacts that are connected to the low-voltage terminal block and associated with the electrical signal of the target class.

[0021] In some implementations, when the coil voltage is less than or equal to a set voltage threshold, the terminal block connected to the coil terminals of the relay is a low-voltage terminal block, and the terminal block connected to the contact terminals of the relay is a high-voltage terminal block.

[0022] Based on the contact state of the relay, determine the wiring method of the relay contact terminals, including:

[0023] When the relay contacts are in a normally closed state, determine the low-voltage terminals of the second set of relay contacts that are connected to the low-voltage terminal block associated with the electrical signal of the target class.

[0024] In some implementations, after determining the first target language sub-option and the corresponding second target language sub-option corresponding to the selected blank option, the method provided in this application further includes:

[0025] In the first sub-template, delete, add, or modify a column header in a third language that represents the category of electrical signals; and below this column header, delete, add, or modify a set of first target language sub-options that represent the connection method between multiple electrical load devices, high-voltage terminal blocks, multiple relays, and low-voltage terminal blocks when the electrical system transmits one type of electrical signal.

[0026] In some implementations, the electrical load equipment includes a water pump, a fan, or an air conditioner.

[0027] Secondly, this application also provides a server, including 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 server performs the method provided in the first aspect of this application.

[0028] Thirdly, this application also provides a storage medium storing a computer program, which, when executed by a processor, causes the computer to perform the method provided in the first aspect of this application.

[0029] Fourthly, this application also provides a computer program product, including a computer program that, when run, causes a server to perform the method as described in the first aspect of this application.

[0030] This application provides a method, server, and storage medium for generating wiring diagrams for an electrical system. For each column of a set of first language sub-options, the method receives a first target language sub-option selected by the user from the set of first language sub-options. This first target language sub-option represents the target connection method between multiple electrical load devices, high-voltage terminal blocks, multiple relays, and low-voltage terminal blocks when the electrical system transmits electrical signals of the target class. For each row of a set of second language sub-options, the method receives a second target language sub-option selected by the user from the set of second language sub-options. This second target language sub-option represents the identifier of the target electrical load device. The method also receives a user selection operation for at least one blank option in a first sub-template table. The method determines the first target language sub-option and the corresponding second target language sub-option corresponding to the selected blank option. Furthermore, based on the first target language sub-option and the corresponding second target language sub-option corresponding to the selected blank option, a wiring diagram representing the target connection method between the target electrical load devices, high-voltage terminal blocks, multiple relays, and low-voltage terminal blocks when the electrical system transmits electrical signals of the target class is generated. In this way, users only need to select the first target language sub-option and the corresponding second target language sub-option, as well as select at least one blank option, and the wiring diagram can be automatically generated, saving time and manpower costs, and with high accuracy. Attached Figure Description

[0031] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0032] Figure 1 This is a schematic diagram of the electrical system architecture provided in the embodiments of this application;

[0033] Figure 2 This is a schematic diagram of the structure of a relay provided in an embodiment of this application;

[0034] Figure 3 A schematic diagram of the wiring diagram design template table provided in the embodiments of this application;

[0035] Figure 4 This is one of the methods for generating wiring diagrams of electrical systems provided in the embodiments of this application;

[0036] Figure 5 for Figure 4 The detailed flowchart of S405 in the document;

[0037] Figure 6A functional block diagram of the wiring diagram generation device for an electrical system provided in this application embodiment. Detailed Implementation

[0038] Embodiments of the present disclosure will now be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the disclosure. Furthermore, descriptions of well-known structures and technologies are omitted in the following description to avoid unnecessarily obscuring the concepts of the present disclosure.

[0039] The accompanying drawings illustrate various structural schematics according to embodiments of the present disclosure. These drawings are not to scale, and some details have been enlarged for clarity, and some details may have been omitted. The shapes of the various regions and layers shown in the drawings, as well as their relative sizes and positional relationships, are merely exemplary and may deviate from reality due to manufacturing tolerances or technical limitations. Furthermore, those skilled in the art can design regions / layers with different shapes, sizes, and relative positions as needed.

[0040] In the context of this disclosure, when a layer / element is referred to as being "above" another layer / element, the layer / element may be directly above the other layer / element, or there may be an intermediate layer / element between them. Additionally, if a layer / element is "above" another layer / element in one orientation, then when the orientation is reversed, the layer / element may be "below" the other layer / element.

[0041] The technical solutions of this application and how they solve the aforementioned technical problems will be described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.

[0042] This application provides a method for generating wiring diagrams for electrical systems, applied to servers. For example... Figure 1 As shown, the electrical system includes multiple electrical load devices, a high-voltage terminal block 101, multiple relays 102, a low-voltage terminal block 103, and a central controller 104. In some embodiments, the multiple electrical load devices include, but are not limited to, sewage lift pumps and precooler fans; the high-voltage terminal block 101 includes multiple communication terminals; the low-voltage terminal block 103 also includes multiple communication terminals. Each relay 102 includes an iron core, coil, spring, armature, etc. Figure 2As shown, the coil includes coil terminals 13 and 14. When a set voltage is applied to coil terminals 13 and 14, a certain current flows through the coil, generating an electromagnetic effect. The armature, under the influence of electromagnetic attraction, overcomes the tension of the return spring and is attracted to the iron core, causing the normally open contacts of the armature to close, thus completing the circuit. When the coil is de-energized, the electromagnetic attraction disappears, and the armature returns to its original position under the reaction force of the spring, causing the normally closed contacts to release, thus cutting off the circuit. The normally open contacts include a first set of contact terminals (including contact terminals 1 and 9); the normally closed contacts include a second set of contact terminals (including contact terminals 5 and 9). The high-voltage terminal block 101, multiple relays 102, and low-voltage terminal block 103 are used for high-voltage and low-voltage isolation between multiple electrical load equipment groups and the central controller 104.

[0043] like Figure 3 As shown, the server is configured with a wiring diagram design template table. This template table includes an interconnected first sub-template table 301 and a second sub-template table 302. Each row in the first sub-template table 301 has a first-language overarching description at the beginning, characterizing the connection methods between multiple electrical load devices, high-voltage terminal blocks 101, multiple relays 102, and low-voltage terminal blocks 103. In some embodiments, the first-language overarching description includes instrument function identifiers, coil voltages, and contact states of the relays 102.

[0044] Each column header of the first sub-template is configured with a third-language superordinate description to characterize the category of the electrical signal. The categories of electrical signals include at least one of the following: operating status category, local / remote control category, fault alarm category, start category, stop category, and emergency stop category. Figure 3 In this context, electrical signals are categorized into operating status, local / remote control, fault alarm, start, stop, and emergency stop categories. Consequently, the third-language overarching description includes "operating status," "local / remote control," "fault alarm," "start," "stop," and "emergency stop."

[0045] Each column below the column header of the first sub-template is configured with a set of first language sub-options to characterize the connection method between multiple electrical load devices, high-voltage terminal blocks 101, multiple relays 102, and low-voltage terminal blocks 103 when the electrical system transmits one type of electrical signal. The set of language sub-options in each column may include, but is not limited to, instrument function identifier "XI", instrument function identifier "XL", instrument function identifier "UA", instrument function identifier "HSO", instrument function identifier "HSC", instrument function identifier "ESD"; coil voltage "220VAC", coil voltage "24VDC", and contact status "normally open" or "normally closed".

[0046] like Figure 3 As shown, the second sub-template table 302 includes a first region 3011 and a second region 3012. The first region 3011 has a third-language superordinate description representing the identifier of the electrical load device at the beginning of each row. Each row following the beginning of the first region 3011 has a set of second-language subordinate options representing the identifier of the electrical load device. The third-language superordinate description includes "Electrical Device Name" and "Electrical Device Number". The second-language subordinate options for each row include Electrical Device Name "Sewage Lifting Pump", Electrical Device Number "P-0301", Signal Number "0101", Electrical Device Name "Precooler Fan", Electrical Device Number "F-0305", Signal Number "0103", etc.

[0047] Still Figure 3 As shown, the second region 3012 includes multiple rows and columns of blank options. Each row of blank options corresponds to a set of second language sub-options, and each column of blank options corresponds to a set of first language sub-options in the first sub-template table 301. Figure 4 As shown, the method provided in this application embodiment includes:

[0048] S401: For each column of first language sub-options, receive a first target language sub-option selected by the user from the first language sub-options, which is used to characterize the target connection method between multiple electrical load devices, high-voltage terminal block 101, multiple relays 102, and low-voltage terminal block 103 when the electrical system transmits electrical signals of the target class.

[0049] Specifically, users can select a set of sub-options for the primary target language from the drop-down menu. For example... Figure 3As shown, there are 6 groups of lower-level options in the first target language. The first group of lower-level options in the first target language, which represents the transmission of electrical signals of the "operating status" type, includes the instrument function identifier "XI", coil voltage "220V", and contact status "normally open". The second group of lower-level options in the first target language, which represents the transmission of electrical signals of the "local remote control" type, includes the instrument function identifier "XL", coil voltage "220VAC", and contact status "normally open". The third group of lower-level options in the first target language, which represents the transmission of electrical signals of the "fault alarm" type, includes the instrument function identifier "UA", coil voltage "220VAC", and contact status "normally open". The fourth group of lower-level options in the first target language, which represents the transmission of electrical signals of the "start" type, includes the instrument function identifier "HSO", coil voltage "24VDC", and contact status "normally open". The fifth group of first target language lower-level options representing the transmission of "stop" type electrical signals includes the instrument function identifier "HSC", coil voltage "24VDC", and contact status "normally closed"; the sixth group of first target language lower-level options representing the transmission of "emergency stop" type electrical signals includes the instrument function identifier "ESD", coil voltage "24VDC", and contact status "normally open".

[0050] S402: For each set of second language sub-options in a row, receive a second target language sub-option selected by the user from the set of second language sub-options to identify the identifier of the target electrical load device.

[0051] Specifically, users can select a second target language sub-option from the drop-down menu. The first selected second language sub-option includes the electrical equipment name "sewage lift pump", electrical equipment number "P-0301", and signal number "0101"; the second second target language sub-option includes the electrical equipment name "precooler fan", electrical equipment number "F-0305", and signal number "0103".

[0052] S403: Receive the user's selection operation of at least one blank option in the first sub-template table 301.

[0053] For example, still as Figure 3 As shown, it can receive user selection operations for blank options in the 6th row of the 2nd column, the 7th row of the 3rd column, the 6th row of the 4th column, the 7th row of the 4th column, the 6th row of the 5th column, the 7th row of the 5th column, the 7th row of the 5th column, the 7th row of the 6th column, the 7th row of the 6th column, the 7th row of the 7th column, and the 8th row of the 7th column.

[0054] S404: Determine the first target language sub-option and the corresponding second target language sub-option corresponding to the selected blank option.

[0055] Understandably, the blank option in column 2, row 6 corresponds to the instrument function identifier "XI", coil voltage "220V", and contact status "normally open" in the first target language. The corresponding second target language option is the electrical equipment name "sewage lift pump", electrical equipment number "P-0301", and signal number "0101". The blank option in column 3, row 7 corresponds to the instrument function identifier "XL", coil voltage "220VAC", and contact status "normally open" in the first target language. The corresponding second target language option is the electrical equipment name "precooler fan", electrical equipment number "F-0305", and signal number "0103". The blank option in column 4, row 6 corresponds to the instrument function identifier "UA", coil voltage "220VAC", and contact status "normally open" in the first target language. The corresponding second target language option is the electrical equipment name "sewage lift pump", electrical equipment number "P-0301", and signal number "0101". The blank option in column 4, row 7 corresponds to the instrument function identifier "UA", coil voltage "220VAC", contact status "normally open", the corresponding electrical equipment name "precooler fan", electrical equipment number "F-0305", and signal number "0103" in the first target language. The blank option in column 5, row 6 corresponds to the instrument function identifier "HSO", coil voltage "24VDC", and contact status "normally open" in the first target language. The corresponding second target language option is the electrical equipment name "sewage lifting pump", electrical equipment number "P-0301", and signal number "0101" in the second target language. The blank option in column 5, row 7 corresponds to the instrument function identifier "HSO", coil voltage "24VDC", and contact status "normally open" in the first target language. The corresponding second target language option is the electrical equipment name "precooler fan", electrical equipment number "F-0305", and signal number "0103".The blank option in column 6, row 6 corresponds to the following first target language sub-options: instrument function identifier "HSC", coil voltage "24VDC", contact status "normally closed"; and the corresponding second target language sub-options are: electrical equipment name "sewage lift pump", electrical equipment number "P-0301", and signal number "0101". The blank option in column 6, row 7 corresponds to the following first target language sub-options: instrument function identifier "HSC", coil voltage "24VDC", contact status "normally closed"; and the corresponding second target language sub-options are: electrical equipment name "precooler fan", electrical equipment number "F-0305", and signal number "0101". 3”; The blank option in the 6th row of the 7th column corresponds to the instrument function identifier “ESD”, coil voltage “24VDC”, contact status “normally open”, and the corresponding second target language lower-level option is “sewage lifting pump”, electrical equipment number “P-0301”, signal number “0101”; The blank option in the 7th row of the 7th column corresponds to the instrument function identifier “ESD”, coil voltage “24VDC”, contact status “normally open”, and the corresponding second target language lower-level option is the electrical equipment name “precooler fan”, electrical equipment number “F-0305”, signal number “0103”.

[0056] S405: Based on the first target language sub-option and the corresponding second target language sub-option corresponding to the selected blank option, generate a wiring diagram representing the target connection method between the target electrical load device, high-voltage terminal block 101, multiple relays 102, and low-voltage terminal block 103 when the electrical system transmits electrical signals of the target class.

[0057] For example, such as Figure 5 As shown, S405 can be specifically implemented as follows:

[0058] S501: Generate the component symbol of the electrical load device based on a set of second language sub-options representing the identifier of the electrical load device.

[0059] For example, when the second language sub-option is "sewage lift pump", the electrical equipment number is "P-0301", and the signal number is "0101", a component symbol for "sewage lift pump" is generated, and "sewage lift pump" is marked using "P-0301". When the second target language sub-option is the electrical equipment name "precooler fan", the electrical equipment number is "F-0305", and the signal number is "0103", a component symbol for "precooler fan" is generated, and "precooler fan" is marked using "F-0305".

[0060] S502: Based on the instrument function identifier and the identifier representing the electrical load device corresponding to the first target language sub-option of the selected blank option, generate a connection between the component symbol of the electrical load device and the component symbol of the high-voltage terminal block 101.

[0061] For example, such as Figure 3 As shown, when the instrument function identifier is "XI", the second language sub-option is "sewage lift pump", the electrical equipment number is "P-0301", and the signal number is "0101", the connection between the component symbol of the electrical load equipment and the component symbol of the power terminal block 101 is generated as "XI-0101+" and "XI-0101-". Similarly, when the instrument function identifier is "XL", the second target language sub-option is the electrical equipment name "precooler fan", the electrical equipment number is "F-0305", and the signal number is "0103", the connection between the component symbol of the electrical load equipment and the component symbol of the power terminal block 101 is "XL-0103+" and "XL-0103-", which will not be described again here.

[0062] S503: Based on the coil voltage, determine the terminal block connected to the coil terminal of relay 102 and the terminal block connected to the contact terminal of relay 102.

[0063] It should be noted that when the electrical signal category is "operating status", "local remote control", or "fault alarm", the electrical load device needs to upload data from the high-voltage side to the central controller 104. Therefore, a coil voltage of 220VAC is selected according to the characteristics of the relay 102. Also, according to the characteristics of the electrical load device, the electrical load device needs to be energized, so the contact state is "normally open". When the electrical signal category is "start", "stop", or "emergency stop", the central controller 104 needs to send control commands from the low-voltage side to the electrical load device. Therefore, a coil voltage of 24VDC is selected. To avoid the safety hazard of being unable to close the device when it is intended to do so, the contact state is "normally closed".

[0064] Based on the above, when the coil voltage (e.g., 220VAC) exceeds the set voltage threshold, the terminal block connected to the coil terminals of relay 102 is the high-voltage terminal block 101, and the terminal block connected to the contact terminals of relay 102 is the low-voltage terminal block 103. For example... Figure 2 As shown, the terminal block connected to coil terminals 13 and 14 of relay 102 is a high-voltage terminal block 101; the terminal block connected to contact terminals 5 and 9 of relay 102 is a low-voltage terminal block 103.

[0065] When the coil voltage (e.g., 24VDC) is less than or equal to the set voltage threshold, the terminal block connected to the coil terminals of relay 102 is the low-voltage terminal block 103, and the terminal block connected to the contact terminals of relay 102 is the high-voltage terminal block 101. As before... Figure 2 As shown, the terminal block connected to coil terminals 13 and 14 of relay 102 is the low-voltage terminal block 103; the terminal block connected to contact terminals 1 and 9 of relay 102 is the high-voltage terminal block 101. The high-voltage terminal block 101 is defaulted to be numbered 1SX, and its terminal numbers include 1, 2, 3, 4, etc.; the communication terminal of the low-voltage terminal block 103 is defaulted to be numbered 2SX, and its communication terminal numbers also include 1, 2, 3, 4, etc.

[0066] S504: Determine the wiring method of the contact terminals of relay 102 based on the contact status of relay 102.

[0067] In some implementations, when the coil voltage (e.g., 220VAC) exceeds a set voltage threshold, the terminal block connected to the coil terminals (e.g., coil terminals 13 and 14) of relay 102 is a high-voltage terminal block 101, and the terminal block connected to the contact terminals of relay 102 is a low-voltage terminal block 103. When the contact state of relay 102 is normally open, the first set of contact terminals of relay 102 (e.g., contact terminals 5 and 9) are connected to the low-voltage terminals (e.g., low-voltage terminal 1 and low-voltage terminal 2) of the low-voltage terminal block 103 that are associated with the electrical signal of the target class.

[0068] In other embodiments, when the coil voltage (e.g., 24VDC) is less than or equal to a set voltage threshold, the terminal block connected to the coil terminals (e.g., coil terminals 13 and 14) of relay 102 is a low-voltage terminal block 103, and the terminal block connected to the contact terminals of relay 102 is a high-voltage terminal block 101; when the contact state of relay 102 is normally closed, the second set of contact terminals (e.g., contact terminals 1 and 9) of relay 102 are connected to the low-voltage terminals (e.g., low-voltage terminals 5 and 6) of low-voltage terminal block 103 associated with the electrical signal of the target class.

[0069] S405: Based on the identifier of the relay 102 associated with the electrical signal of the target class, the number of the coil terminal, and the number of the contact terminal of the wiring method, generate the connection between the component symbol of the high-voltage terminal block 101 and the component symbol of the relay 102, and the connection between the component symbol of the low-voltage terminal block 103 and the component symbol of the relay 102.

[0070] For example, if the electrical signal associated with the operating status category of relay 102 is identified as 7ZJ, the coil terminal is numbered 13 and 14, and the contact terminal of the wiring method is numbered 5 and 9, then the connection between the component symbol of the high-voltage terminal block 101 and the component symbol of relay 102 is generated as 7ZJ-13 and 7ZJ-14; the connection between the component symbol of the low-voltage terminal block 103 and the component symbol of relay 102 is 7ZJ-5 and 7ZJ-9.

[0071] In some embodiments, following S404 described above, the method provided in this application further includes: in a first sub-template, deleting, adding, or modifying a column header in a third language upper-level description representing the category of electrical signals; and below this column header, deleting, adding, or modifying a set of first target language lower-level options representing the connection method between multiple electrical load devices, high-voltage terminal blocks 101, multiple relays 102, and low-voltage terminal blocks 103 when the electrical system transmits one type of electrical signal. This allows for adaptive modification of circuit wiring according to user needs.

[0072] In summary, the wiring diagram generation method for an electrical system provided in this application embodiment includes the following steps: For each column of a set of first language sub-options, the method receives a first target language sub-option selected by the user from the set of first language sub-options. This first target language sub-option represents the target connection method between multiple electrical load devices, high-voltage terminal blocks 101, multiple relays 102, and low-voltage terminal blocks 103 when the electrical system transmits electrical signals of the target class. For each row of a set of second language sub-options, the method receives a second target language sub-option selected by the user from the set of second language sub-options. This second target language sub-option represents the identifier of the target electrical load device. The method also receives a selection operation from the user in at least one blank option in the first sub-template table 301. The method determines the first target language sub-option and the corresponding second target language sub-option corresponding to the selected blank option. Furthermore, based on the first target language sub-option and the corresponding second target language sub-option corresponding to the selected blank option, a wiring diagram representing the target connection method between the target electrical load devices, high-voltage terminal blocks 101, multiple relays 102, and low-voltage terminal blocks 103 when the electrical system transmits electrical signals of the target class is generated. In this way, users only need to select the first target language sub-option and the corresponding second target language sub-option, as well as select at least one blank option, and the wiring diagram can be automatically generated, saving time and manpower costs, and with high accuracy.

[0073] Based on the inventor's experiments, taking the wiring diagram of the electrical system of a natural gas processing plant as an example, the electrical system of this natural gas processing plant includes: two cleaning water pumps, three ethylene glycol feed gas injection pumps, three ethylene glycol flash vapor injection pumps, three mixed hydrocarbon backflow pumps, one pressure stabilizing pump, three mixed hydrocarbon feed oil pumps, three mixed hydrocarbon external transport pump space heaters, five compressor room roof exhaust fans, two compressor room axial flow fans, one water treatment pump room fan, three sludge treatment operating room fans, and sludge treatment operating room fans. The facility includes two exterior wall fans for the work area, two emergency water tank booster pumps, one mixed hydrocarbon storage tank water injection pump, six air / nitrogen station fans, one chromatographic analysis room fan, one pharmaceutical warehouse fan, one sample room fan, two rooftop exhaust fans for the solvent warehouse, two rooftop exhaust fans for the solvent warehouse, two exhaust fans for the solvent warehouse, two rooftop exhaust fans for the oil warehouse, two rooftop exhaust fans for the oil warehouse, two exhaust fans for the oil warehouse, one fan for chemical storage room 1, one fan for chemical storage room 2, and one battery room fan. Each electrical load device corresponds to an electrical signal category including operating status, local / remote control, fault alarm, start, stop, and emergency stop, for a total of five electrical signal categories.

[0074] If traditional wiring diagram drawing methods are used, the electrical system of a natural gas processing plant contains 58 electrical load devices, each with 5 electrical signal categories. According to the inventor's calculations, this requires manual editing of 5220 relay wiring design elements (102 in total), taking 8 hours to draw the wiring diagram. However, the wiring diagram generation method for electrical systems provided in this application transforms the traditional single-point input method into a row-column matrix table input method, reducing the amount of information to be input from 5220 to 484. Furthermore, 290 of these 484 pieces of information are entered using a checkbox method, allowing the wiring diagram to be generated in just 10 minutes. This significantly reduces the amount and complexity of the information required, saving labor and time costs, while maintaining high accuracy.

[0075] Please see Figure 6This application provides a wiring diagram generation device for an electrical system, applied to a server. It should be noted that the wiring diagram generation method for an electrical system provided in this application has the same basic principle and technical effects as the above embodiments. For the sake of brevity, any parts not mentioned in the embodiments of this application can be referred to the corresponding content in the above embodiments. The electrical system includes multiple electrical load devices, a high-voltage terminal block 101, multiple relays 102, a low-voltage terminal block 103, and a central controller 104. The high-voltage terminal block 101, multiple relays 102, and low-voltage terminal block 103 are used for high-voltage and low-voltage isolation between the multiple electrical load devices and the central controller 104. The server is configured with a wiring diagram design template table, which includes an interconnected first sub-template table 301 and a second sub-template table 302. Each row of the first sub-template table 301 has a first-language upper-level description at the beginning, representing the connection method between the multiple electrical load devices, the high-voltage terminal block 101, the multiple relays 102, and the low-voltage terminal block 103. Each column of the first sub-template table has a third-language upper-level description at the beginning, representing the category of the electrical signal. Each column below the column header of each column in the first sub-template is configured with a set of first language lower-level options to characterize the connection method between multiple electrical load devices, high-voltage terminal blocks 101, multiple relays 102, and low-voltage terminal blocks 103 when the electrical system transmits one type of electrical signal. The second sub-template table 302 includes a first region 3011 and a second region 3012. The row header of the first region 3011 is configured with a third language upper-level description characterizing the identifier of the electrical load device. Each row after the row header of the first region 3011 is configured with a set of second language lower-level options characterizing the identifier of the electrical load device. The second region 3012 includes multiple rows and columns of blank options. Each row of blank options corresponds to a set of second language lower-level options, and each column of blank options corresponds to a set of first language lower-level options in the first sub-template table 301.

[0076] like Figure 6 As shown, the apparatus provided in this application embodiment includes a data input unit, an option selection unit, an option determination unit, and a wiring diagram generation unit, wherein...

[0077] The data input unit is used to receive, for each column of first language sub-options, a first target language sub-option selected by the user from a set of first language sub-options, which is used to characterize the target connection method between multiple electrical load devices, high-voltage terminal block 101, multiple relays 102, and low-voltage terminal block 103 when the electrical system transmits electrical signals of the target class.

[0078] The data input unit is also used to receive, for each row of second language sub-options, a second target language sub-option selected by the user from a set of second language sub-options, an identifier representing the target electrical load device.

[0079] The option selection unit is also used to receive a user's selection operation of at least one blank option in the first sub-template table 301.

[0080] The option determination unit is used to determine the first target language sub-option and the corresponding second target language sub-option corresponding to the selected blank option.

[0081] The wiring diagram generation unit is used to generate a wiring diagram representing the target connection method between the target electrical load device, the high-voltage terminal block 101, multiple relays 102, and the low-voltage terminal block 103 when the electrical system transmits electrical signals of the target type, based on the first target language sub-option and the corresponding second target language sub-option of the selected blank option.

[0082] In some implementations, the first language superordinate description includes instrument function identifiers, coil voltages, contact states of relay 102, and electrical signal categories including at least one of operating status category, local / remote control category, fault alarm category, start category, stop category, and emergency stop category.

[0083] In some embodiments, the wiring diagram generation unit is specifically used to generate component symbols of electrical load devices based on a set of second language sub-options representing the identifier of the electrical load devices; to generate connections between the component symbols of the electrical load devices and the component symbols of the high-voltage terminal block 101 based on the instrument function identifier corresponding to the first target language sub-option corresponding to the selected blank option and a set of second language sub-options representing the identifier of the electrical load devices; to determine the terminal blocks connected to the coil terminals of the relay 102 and the terminal blocks connected to the contact terminals of the relay 102 based on the coil voltage, wherein, when the coil voltage is greater than a set voltage threshold, the terminal block connected to the coil terminals of the relay 102 is the high-voltage terminal block 101, and the terminal block connected to the contact terminals of the relay 102 is the low-voltage terminal block 103; when the coil voltage is less than or equal to the set voltage threshold, the terminal block connected to the coil terminals of the relay 102 is the low-voltage terminal block 103, and the terminal block connected to the contact terminals of the relay 102 is the high-voltage terminal block 101; and to determine the wiring method of the contact terminals of the relay 102 based on the contact state of the relay 102.

[0084] Based on the identifier of the relay 102 associated with the target type electrical signal, the number of the coil terminal, and the number of the contact terminal of the wiring method, a connection is generated between the component symbol of the high-voltage terminal block 101 and the component symbol of the relay 102, as well as a connection between the component symbol of the low-voltage terminal block 103 and the component symbol of the relay 102.

[0085] In some implementations, the wiring diagram generation unit is specifically used to determine the terminal block connected to the coil terminals of relay 102 as a high-voltage terminal block 101 and the terminal block connected to the contact terminals of relay 102 as a low-voltage terminal block 103 when the coil voltage is greater than a set voltage threshold; and to determine the low-voltage terminal associated with the target type electrical signal when the first group of contact terminals of relay 102 is connected to the low-voltage terminal block 103.

[0086] In some implementations, the wiring diagram generation unit is specifically used to determine the low-voltage terminal block 103 connected to the coil terminals of relay 102 and the high-voltage terminal block 101 connected to the contact terminals of relay 102 when the coil voltage is less than or equal to a set voltage threshold; and to determine the low-voltage terminal associated with the target type electrical signal when the contact state of relay 102 is normally closed.

[0087] In addition, this application also provides a server, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it causes the server to perform the method provided in the above embodiments of this application.

[0088] In addition, this application embodiment also provides a storage medium storing a computer program, which, when executed by a processor, causes the computer to perform the method provided in the above embodiments of this application.

[0089] In addition, this application also provides a computer program product, including a computer program, which, when run, causes a server to perform the method as described in the above embodiments of this application.

[0090] The above description does not provide detailed technical specifications regarding the structure of each layer. However, those skilled in the art should understand that layers and regions of desired shapes can be formed using various technical means. Furthermore, to form the same structure, those skilled in the art can also design methods that are not entirely identical to those described above. Additionally, although various embodiments have been described above, this does not mean that the measures in the various embodiments cannot be advantageously combined.

[0091] Although preferred embodiments of this application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of this application.

[0092] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.

Claims

1. A method for generating wiring diagrams for an electrical system, characterized in that, Applied to a server, the electrical system includes multiple electrical load devices, high-voltage terminal blocks, multiple relays, low-voltage terminal blocks, and a central controller. The high-voltage terminal blocks, relays, and low-voltage terminal blocks provide high-voltage and low-voltage isolation between the multiple electrical load device groups and the central controller. The server is configured with a wiring diagram design template table, which includes interconnected first and second sub-template tables. Each row of the first sub-template table has a first-language superordinate description at the beginning, characterizing the connection method between the multiple electrical load devices, the high-voltage terminal blocks, the relays, and the low-voltage terminal blocks. Each column of the first sub-template table has a third-language superordinate description at the beginning, characterizing the category of the electrical signal. Each column below the column header of each column of the board is configured with a set of first language lower-level options for characterizing the connection method between multiple electrical load devices, the high-voltage terminal block, the multiple relays, and the low-voltage terminal block when the electrical system transmits one type of electrical signal. The second sub-template table includes a first area and a second area. The row header of the first area is configured with a third language upper-level description characterizing the identifier of the electrical load device. Each row after the row header of the first area is configured with a set of second language lower-level options characterizing the identifier of the electrical load device. The second area includes multiple rows and columns of blank options. Each row of blank options corresponds to a set of second language lower-level options, and each column of blank options corresponds to a set of first language lower-level options in the first sub-template table. The method includes: For each column of first language sub-options, the user selects from the first language sub-options a first target language sub-option that, when the electrical system transmits electrical signals of the target class, represents the target connection method between multiple electrical load devices, the high-voltage terminal block, the multiple relays, and the low-voltage terminal block. For each set of second language sub-options in a row, the user selects a second target language sub-option that represents the identifier of the target electrical load device from the set of second language sub-options. Receive user selection of at least one blank option in the first sub-template table; Determine the first target language sub-option and the corresponding second target language sub-option for the selected blank option; Based on the first target language sub-option and the corresponding second target language sub-option corresponding to the selected blank option, a wiring diagram is generated that represents the target connection method between the target electrical load device, the high-voltage terminal block, the multiple relays, and the low-voltage terminal block when the electrical system transmits electrical signals of the target class.

2. The method according to claim 1, characterized in that, The first language superordinate description includes instrument function identifier, coil voltage, and contact status of the relay. The category of the electrical signal includes at least one of the following: operating status category, local / remote control category, fault alarm category, start category, stop category, and emergency stop category.

3. The method according to claim 2, characterized in that, Based on the first target language sub-option and the corresponding second target language sub-option corresponding to the selected blank option, a wiring diagram is generated representing the target connection method between the target electrical load device, the high-voltage terminal block, the multiple relays, and the low-voltage terminal block when the electrical system transmits electrical signals of the target class. This diagram includes: The component symbol of the electrical load device is generated based on a set of second language sub-options that characterize the identifier of the electrical load device; Based on the instrument function identifier corresponding to the first target language sub-option of the selected blank option and a set of second language sub-options representing the identifier of the electrical load device, a connection is generated between the component symbol of the electrical load device and the component symbol of the power terminal block. Based on the coil voltage, the terminal blocks connected to the coil terminals of the relay and the terminal blocks connected to the contact terminals of the relay are determined. Specifically, when the coil voltage is greater than a set voltage threshold, the terminal blocks connected to the coil terminals of the relay are the high-voltage terminal blocks, and the terminal blocks connected to the contact terminals of the relay are the low-voltage terminal blocks; when the coil voltage is less than or equal to the set voltage threshold, the terminal blocks connected to the coil terminals of the relay are the low-voltage terminal blocks, and the terminal blocks connected to the contact terminals of the relay are the high-voltage terminal blocks. Based on the contact state of the relay, determine the wiring method of the relay contact terminals; Based on the identifier of the relay associated with the electrical signal of the target class, the number of the coil terminal, and the number of the contact terminal of the wiring method, a connection is generated between the component symbol of the high-voltage terminal block and the component symbol of the relay, as well as a connection between the component symbol of the low-voltage terminal block and the component symbol of the relay.

4. The method according to claim 3, characterized in that, When the coil voltage is greater than a set voltage threshold, the terminal block connected to the coil terminals of the relay is the high-voltage terminal block, and the terminal block connected to the contact terminals of the relay is the low-voltage terminal block. The step of determining the wiring method of the relay contact terminals based on the contact state of the relay includes: When the relay's contact state is normally open, the first set of contact terminals of the relay is connected to the low-voltage terminal block associated with the electrical signal of the target class.

5. The method according to claim 3, characterized in that, When the coil voltage is less than or equal to a set voltage threshold, the terminal block connected to the coil terminals of the relay is the low-voltage terminal block, and the terminal block connected to the contact terminals of the relay is the high-voltage terminal block. The step of determining the wiring method of the relay contact terminals based on the contact state of the relay includes: When the relay's contact state is normally closed, the second set of contact terminals of the relay is connected to the low-voltage terminal block associated with the electrical signal of the target class.

6. The method according to any one of claims 1-5, characterized in that, After determining the first target language sub-option and the corresponding second target language sub-option corresponding to the selected blank option, the method further includes: In the first sub-template, delete, add, or modify a column header for a third-language superordinate description of the category of electrical signal; and below this column header delete, add, or modify a set of first target language subordinate options for a set of first target language options for a set of connection methods between the plurality of electrical load devices, the high-voltage terminal blocks, the plurality of relays, and the low-voltage terminal blocks when the electrical system transmits one of the types of electrical signals.

7. The method according to any one of claims 1-5, characterized in that, The electrical load equipment includes water pumps, fans, or air conditioners.

8. A server comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it causes the server to perform the method as described in any one of claims 1 to 7.

9. A storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it causes the computer to perform the method as described in any one of claims 1 to 7.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is run, it causes the server to perform the method as described in any one of claims 1 to 7.