Automatic design method and system for secondary circuit cable and storage medium

By associating and binding two-dimensional logic schematics and three-dimensional layout models in the design of substation secondary systems, and combining path planning algorithms and cable type parameter sets, numerical control instructions are generated. This solves the problem of logic-physical mismatch in secondary circuit cable design, realizes full-process automation and digitalization, and improves design efficiency and product quality.

CN121503403APending Publication Date: 2026-02-10POWER DISPATCHING CONTROL CENT OF GUANGDONG POWER GRID CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511628045.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-07
Publication Date
2026-02-10

AI Technical Summary

Technical Problem

In existing technologies, the logical connection relationship of secondary circuits in the design of substation secondary systems cannot be automatically mapped to physical wiring paths, resulting in low design efficiency, easy human error, inaccurate cable length estimation, difficulty in achieving automated production, and inability to adapt to the needs of flexible production of small batches and multiple varieties.

Method used

By acquiring two-dimensional logic schematics and three-dimensional layout models based on a preset component database, associating and binding them, and combining path planning algorithms and cable type parameter sets, a numerical control instruction set is generated to achieve full-process automation and digitalization from electrical connection logic to physical manufacturing.

Benefits of technology

It has achieved full automation and digitization of the secondary circuit cable process, from electrical connection logic to physical manufacturing, avoiding inaccurate cable process data generation, improving design efficiency and product quality consistency, and adapting to the needs of small-batch, multi-variety production.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121503403A_ABST
    Figure CN121503403A_ABST
Patent Text Reader

Abstract

The invention provides an automatic design method and system for a secondary circuit cable and a storage medium, and the method comprises the steps: obtaining a two-dimensional logic schematic diagram and a three-dimensional layout model based on a preset element database and a to-be-wired secondary circuit, and carrying out the correlation binding of the two-dimensional logic schematic diagram and the three-dimensional layout model, and obtaining a first three-dimensional layout model; acquiring a cable type parameter set of the secondary circuit to be wired; obtaining a to-be-wired cable set based on the model, the parameters, a path planning algorithm and a preset wiring rule; and generating a numerical control instruction set based on the to-be-wired cable set and a preset process rule, so as to control cable processing equipment to generate to-be-wired cables of the to-be-wired secondary circuit through the numerical control instruction set. According to the automatic design method for the secondary circuit cable, the situation that cable process data are not generated accurately due to the fact that data models of electrical design and structural design are not communicated can be avoided, and automation and digitization of the whole process from electrical connection logic to physical manufacturing of the to-be-wired secondary circuit cable are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of substation secondary system design and manufacturing technology, and in particular to an automated design method, system and storage medium for secondary circuit cables. Background Technology

[0002] In the design and manufacturing of substation secondary systems, the design and implementation of secondary circuits are the core links determining the performance and reliability of the secondary system. Currently, this process mainly relies on manual operation. Two-dimensional CAD software is commonly used in the electrical schematic design stage, while three-dimensional CAD software is used in the structural layout design stage. The data models of the two are independent and cannot be shared. This data barrier directly results in the inability to automatically map the logical connection relationship of the secondary circuits to the physical wiring path. This not only significantly reduces design efficiency but also easily leads to human design errors because the entire process is highly dependent on the designer's experience. Simultaneously, the determination of cable length is also limited by manual operation: cable length needs to be estimated by designers on two-dimensional drawings or manually measured in three-dimensional software, but it is impossible to accurately calculate the actual laying path length of the cable in the complex cabinet space. This leads to deviations between prefabricated cables and on-site requirements, resulting in waste of materials and time. Furthermore, the outputs of the existing design process (such as wiring tables and cable lists) lack the structured machine-readable instructions required to drive automated production equipment. This makes it difficult to support automated equipment driving processes such as secondary cable cutting and termination, restricting production efficiency and product quality consistency, and making it difficult to adapt to the flexible production needs of small batches and multiple varieties. More importantly, when the design of electrical principles or cabinet layout changes, electrical engineers and structural engineers need to work together manually to make modifications and re-check and update all affected cable information. The whole process is highly dependent on the experience of designers, and due to the obvious information barriers between each link, it is not only cumbersome and time-consuming, but also significantly increases the time and manpower costs of design iteration.

[0003] Under the current technological background, although some 3D cabling software has path planning functions, it usually requires manual specification of the start and end points of the cabling, and it is not natively integrated with the logic design of secondary loops, thus failing to fundamentally solve the problem of automatic conversion from logical connection to physical cabling. Summary of the Invention

[0004] The present invention aims to provide an automated design method, system and storage medium for secondary circuit cables to solve the above-mentioned technical problems, avoid the inaccuracy of cable process data generation caused by the incompatibility of data models between electrical design and structural design, and realize the full automation and digitization of the secondary circuit cables to be wired from electrical connection logic to physical manufacturing.

[0005] To address the aforementioned technical problems, this invention provides an automated design method for secondary loop cables, comprising:

[0006] Based on a pre-set component database and secondary circuits to be wired, obtain a two-dimensional logic schematic and a three-dimensional layout model;

[0007] Associate and bind the two-dimensional logic schematic and the three-dimensional layout model to obtain the first three-dimensional layout model;

[0008] Obtain the cable type parameter set for the secondary circuit to be wired;

[0009] Based on the first three-dimensional layout model, path planning algorithm, preset wiring rules and cable type parameter set, obtain the set of cables to be wired;

[0010] Based on the set of cables to be wired and the preset process rules, a set of numerical control instructions is generated to control the cable processing equipment to generate the cables to be wired for secondary circuits.

[0011] In the above scheme, a two-dimensional logic schematic corresponding to the secondary circuit to be routed is imported or created by calling the components in the preset component database. Based on the preset component database, a three-dimensional layout design of the secondary circuit to be routed is completed to obtain a three-dimensional layout model, providing basic design data support for the subsequent association and binding of the two-dimensional logic schematic and the three-dimensional layout model and automated routing. Next, by associating and binding the two-dimensional logic schematic and the three-dimensional layout model, a first three-dimensional layout model is generated, breaking down the information barrier between logic design and physical layout, and clarifying the routing task in three-dimensional space. Then, by collecting the core parameters of various cables in the secondary circuit to be routed, a cable type parameter set is obtained, providing key parameter basis for the subsequent path planning algorithm to plan a reasonable path under the constraint of cable physical characteristics. Subsequently, taking the connection relationship to be routed in the first three-dimensional layout model as the routing target, and the path planning algorithm as the calculation core, combined with the preset routing rules and the cable type parameter set, the three-dimensional laying path that meets the constraints is automatically calculated and a set of cables to be routed is formed, completing the transformation from routing task to specific cable digital model. Finally, by combining the set of cables to be wired with preset process rules, the design data is transformed into standardized CNC instructions, generating a CNC instruction set. This provides precise operating instructions for automated cable processing equipment, enabling the digital prefabrication of the cables to be wired. These steps avoid inaccurate cable process data generation caused by the incompatibility between electrical and structural design data models, achieving full automation and digitization of the entire process from electrical connection logic to physical manufacturing of the secondary circuit cables to be wired.

[0012] Furthermore, based on a preset component database and secondary circuits to be wired, a two-dimensional logic schematic and a three-dimensional layout model are obtained; the preset component database includes:

[0013] Acquire several secondary circuit components;

[0014] A preset component database is constructed based on the device attributes and geometric data corresponding to the secondary circuit components.

[0015] In the above scheme, by collecting various secondary circuit components required for the secondary circuit, core data support is provided for constructing a preset component database covering complete component information. Next, by extracting the device attributes and geometric data corresponding to each type of secondary circuit component, a preset component database containing complete logical and physical information of the components is constructed, providing standardized component information support for subsequent two-dimensional logic schematic drawing, three-dimensional layout model design, and logic-physical association.

[0016] Furthermore, the step of associating and binding the two-dimensional logic schematic and the three-dimensional layout model to obtain the first three-dimensional layout model includes:

[0017] Obtain the first set of component identifiers corresponding to the two-dimensional logic schematic and the second set of component identifiers corresponding to the three-dimensional layout model;

[0018] Compare the first set of component identifiers and the second set of component identifiers to establish a first correspondence;

[0019] Based on the first correspondence and the preset connection relationship conversion rules, the two-dimensional logic schematic diagram and the three-dimensional layout model are associated and bound to obtain the first three-dimensional layout model.

[0020] In the above scheme, identifiers of all component instances are extracted from the 2D logic schematic to form a first set of component identifiers, and identifiers of all placed component instances are extracted from the 3D layout model to form a second set of component identifiers. This clarifies the component identification information corresponding to the 2D logic layer and the 3D physical layer, providing comparable basic data for establishing the relationship between the two. Next, by comparing the identifiers in the first and second sets of component identifiers one by one, a first correspondence is established between component instances in the 2D logic schematic and component instances in the 3D layout model, breaking down the component association barrier between the 2D logic design and the 3D structural design, achieving precise matching at the component level. Then, based on the first correspondence and combined with preset connection relationship conversion rules, the 2D logic schematic and the 3D layout model are associated and bound to generate a first 3D layout model containing clearly defined connections to be routed, providing a clear physical routing task basis for subsequent automatic routing.

[0021] Furthermore, the step of obtaining the set of cables to be routed based on the first three-dimensional layout model, path planning algorithm, preset routing rules, and cable type parameter set includes:

[0022] The first three-dimensional layout model is discretized to obtain a three-dimensional mesh model;

[0023] Establish the cost function;

[0024] Based on a 3D mesh model, path planning algorithm, preset wiring rules and cable type parameter set, the path of the cable to be wired is solved with the goal of minimizing the cost function, and the set of cables to be wired corresponding to the path of the cable to be wired is obtained.

[0025] In the above scheme, the complex three-dimensional space is transformed into a three-dimensional mesh model by discretizing the first three-dimensional layout model, providing spatial environment data support for subsequent accurate pathfinding. Then, based on the three-dimensional mesh model as the spatial environment foundation, a path planning algorithm is invoked, with the goal of minimizing the cost function, to generate cable paths that satisfy preset wiring rules and cable type parameter sets. Based on these cable paths, a corresponding set of cables to be wired is formed, completing the transformation from a wiring task to a digital cable model.

[0026] Furthermore, the step of generating a numerical control instruction set based on the set of cables to be wired and preset process rules, and controlling the cable processing equipment to generate the cables for secondary circuits to be wired through the numerical control instruction set, includes:

[0027] Extract the attribute set of the cables to be routed corresponding to the set of cables to be routed;

[0028] Based on the attribute set of the cable to be wired and the preset process rules, obtain the process parameter set of the cable to be wired;

[0029] Based on the process parameter set of the cable to be wired and the preset communication protocol, a numerical control instruction set is generated to control the cable processing equipment to generate the cable to be wired secondary circuit.

[0030] In the above scheme, by traversing all digital cable objects in the set of cables to be wired, the attribute set of the cables to be wired corresponding to the set of cables to be wired is extracted, providing basic design data support for subsequent conversion into specific production process parameters. Next, the information in the attribute set of the cables to be wired is matched with preset process rules to obtain the process parameter set of the cables to be wired, realizing the conversion of design data into production process data. Subsequently, the process parameter set of the cables to be wired is standardized according to the format requirements of the preset communication protocol to generate a numerical control instruction set, which enables the cable processing equipment to generate the cables to be wired for secondary circuits.

[0031] This invention provides an automated design system for secondary loop cables, comprising an initial design module, an association and binding module, a parameter acquisition module, an automatic routing module, and an instruction set generation module, specifically:

[0032] The initial design module is used to obtain a two-dimensional logic schematic and a three-dimensional layout model based on a preset component database and secondary circuits to be wired.

[0033] The association binding module is used to associate and bind the two-dimensional logic schematic diagram and the three-dimensional layout model to obtain the first three-dimensional layout model;

[0034] The parameter acquisition module is used to acquire the cable type parameter set of the secondary circuit to be wired;

[0035] The automatic routing module is used to obtain a set of cables to be routed based on a first three-dimensional layout model, a path planning algorithm, preset routing rules, and a set of cable type parameters.

[0036] The instruction set generation module is used to generate a numerical control instruction set based on the set of cables to be wired and preset process rules, so as to control the cable processing equipment to generate the cables to be wired for secondary circuits through the numerical control instruction set.

[0037] This invention provides an automated design system for secondary loop cables. In practical applications, only an initial design module is needed. This module imports or creates a two-dimensional logic schematic corresponding to the secondary loop to be wired by calling components from a preset component database. Based on this database, a three-dimensional layout design is completed to obtain a three-dimensional layout model, providing basic design data support for the subsequent association and binding of the two-dimensional logic schematic and the three-dimensional layout model, as well as automated wiring. Next, an association and binding module is used to generate a first three-dimensional layout model by associating and binding the two-dimensional logic schematic and the three-dimensional layout model, breaking down the information barrier between logic design and physical layout and clarifying the wiring task in three-dimensional space. Then, a parameter acquisition module is used to collect the core parameters of various cables in the secondary loop to be wired, obtaining a cable type parameter set. This provides key parameter basis for the subsequent path planning algorithm to plan a reasonable path while satisfying the physical characteristics constraints of the cables. Finally, an automatic wiring module is used, taking the connection relationships to be wired in the first three-dimensional layout model as the wiring target, using the path planning algorithm as the calculation core, and combining preset wiring rules and the cable type parameter set to automatically calculate the three-dimensional laying path that meets the constraints and form a set of cables to be wired, completing the transformation from wiring task to specific cable digital model. Finally, an instruction set generation module is used to combine the set of cables to be wired with preset process rules, transforming the design data into standardized CNC instructions and generating a CNC instruction set. This provides precise operating instructions for automated cable processing equipment, enabling the digital prefabrication of the cables to be wired. These steps avoid inaccurate cable process data generation caused by the incompatibility between electrical and structural design data models, achieving full automation and digitization of the entire process from electrical connection logic to physical manufacturing of the secondary circuit cables to be wired.

[0038] Furthermore, the initial design module is used to obtain a two-dimensional logic schematic and a three-dimensional layout model based on a preset component database and secondary circuits to be wired; the preset component database includes:

[0039] Acquire several secondary circuit components;

[0040] A preset component database is constructed based on the device attributes and geometric data corresponding to the secondary circuit components.

[0041] In the above scheme, by collecting various secondary circuit components required for the secondary circuit, core data support is provided for constructing a preset component database covering complete component information. Next, by extracting the device attributes and geometric data corresponding to each type of secondary circuit component, a preset component database containing complete logical and physical information of the components is constructed, providing standardized component information support for subsequent two-dimensional logic schematic drawing, three-dimensional layout model design, and logic-physical association.

[0042] Furthermore, the association binding module is used to associate and bind the two-dimensional logic schematic and the three-dimensional layout model to obtain a first three-dimensional layout model; including:

[0043] Obtain the first set of component identifiers corresponding to the two-dimensional logic schematic and the second set of component identifiers corresponding to the three-dimensional layout model;

[0044] Compare the first set of component identifiers and the second set of component identifiers to establish a first correspondence;

[0045] Based on the first correspondence and the preset connection relationship conversion rules, the two-dimensional logic schematic diagram and the three-dimensional layout model are associated and bound to obtain the first three-dimensional layout model.

[0046] In the above scheme, identifiers of all component instances are extracted from the 2D logic schematic to form a first set of component identifiers, and identifiers of all placed component instances are extracted from the 3D layout model to form a second set of component identifiers. This clarifies the component identification information corresponding to the 2D logic layer and the 3D physical layer, providing comparable basic data for establishing the relationship between the two. Next, by comparing the identifiers in the first and second sets of component identifiers one by one, a first correspondence is established between component instances in the 2D logic schematic and component instances in the 3D layout model, breaking down the component association barrier between the 2D logic design and the 3D structural design, achieving precise matching at the component level. Then, based on the first correspondence and combined with preset connection relationship conversion rules, the 2D logic schematic and the 3D layout model are associated and bound to generate a first 3D layout model containing clearly defined connections to be routed, providing a clear physical routing task basis for subsequent automatic routing.

[0047] Furthermore, the automatic routing module is used to obtain a set of cables to be routed based on a first three-dimensional layout model, a path planning algorithm, preset routing rules, and a set of cable type parameters; including:

[0048] The first three-dimensional layout model is discretized to obtain a three-dimensional mesh model;

[0049] Establish the cost function;

[0050] Based on a 3D mesh model, path planning algorithm, preset wiring rules and cable type parameter set, the path of the cable to be wired is solved with the goal of minimizing the cost function, and the set of cables to be wired corresponding to the path of the cable to be wired is obtained.

[0051] In the above scheme, the complex three-dimensional space is transformed into a three-dimensional mesh model by discretizing the first three-dimensional layout model, providing spatial environment data support for subsequent accurate pathfinding. Then, based on the three-dimensional mesh model as the spatial environment foundation, a path planning algorithm is invoked, with the goal of minimizing the cost function, to generate cable paths that satisfy preset wiring rules and cable type parameter sets. Based on these cable paths, a corresponding set of cables to be wired is formed, completing the transformation from a wiring task to a digital cable model.

[0052] The present invention provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the functions of the system as described above. Attached Figure Description

[0053] Figure 1 A flowchart illustrating an automated design method for a secondary loop cable according to an embodiment of the present invention;

[0054] Figure 2 This is an architecture diagram of an automated design system for secondary loop cables provided in an embodiment of the present invention. Detailed Implementation

[0055] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.

[0056] This embodiment provides an automated design method for secondary circuit cables; its flowchart can be found in [link to flowchart]. Figure 1 ,include:

[0057] Step S1: Based on the preset component database and the secondary circuit to be wired, obtain the two-dimensional logic schematic and the three-dimensional layout model;

[0058] Step S2: Associate and bind the two-dimensional logic schematic and the three-dimensional layout model to obtain the first three-dimensional layout model;

[0059] Step S3: Obtain the cable type parameter set for the secondary circuit to be wired;

[0060] Step S4: Based on the first 3D layout model, path planning algorithm, preset wiring rules and cable type parameter set, obtain the set of cables to be wired;

[0061] Step S5: Based on the set of cables to be wired and the preset process rules, generate a set of numerical control instructions to control the cable processing equipment to generate the cables to be wired for secondary circuits.

[0062] In this embodiment, a two-dimensional logic schematic diagram (typically containing logical instances of secondary circuit components (such as "relay K1" and "terminal block XT1") and logical connection lines (wires) between their functional terminals) is imported or created from a preset component database to import or create the secondary circuit to be wired. Based on this preset component database and the secondary circuit to be wired, three-dimensional model instances of the secondary circuit components are placed in specific installation positions (such as guide rails, panels, etc.) to complete the three-dimensional layout design of the secondary circuit to be wired, thereby obtaining a three-dimensional layout model. This provides basic design data support for the subsequent association and binding of the two-dimensional logic schematic diagram and the three-dimensional layout model, as well as automated wiring. Next, by associating and binding the two-dimensional logic schematic diagram and the three-dimensional layout model, a first three-dimensional layout model is generated, breaking down the information barrier between the logic design and the physical layout, and clarifying the wiring task in three-dimensional space. Then, by collecting the core parameters of various cables in the secondary circuit to be wired, a cable type parameter set is obtained, providing key parameter basis for the subsequent path planning algorithm to plan a reasonable path while satisfying the constraints of the cable physical characteristics. Subsequently, using the wiring connections in the first 3D layout model as the wiring target and a path planning algorithm as the core of the calculation, combined with preset wiring rules and cable type parameter sets, the system automatically calculates the constrained 3D laying paths and forms a set of cables to be wired, completing the transformation from the wiring task to a specific digital cable model. Finally, by combining the set of cables to be wired with preset process rules, the design data is transformed into standardized CNC instructions, generating a CNC instruction set to provide precise operating instructions for automated cable processing equipment, realizing the digital prefabrication of the cables to be wired. The above steps can avoid inaccurate cable process data generation caused by the incompatibility between electrical design and structural design data models, achieving full automation and digitization of the entire process of secondary circuit cables to be wired, from electrical connection logic to physical manufacturing.

[0063] Furthermore, based on a preset component database and secondary circuits to be wired, a two-dimensional logic schematic and a three-dimensional layout model are obtained; the preset component database includes:

[0064] Acquire several secondary circuit components;

[0065] A preset component database is constructed based on the device attributes and geometric data corresponding to the secondary circuit components.

[0066] In this embodiment, by collecting various secondary circuit components (such as relays, terminal blocks, circuit breakers, etc.) required for the secondary circuit, core data support is provided for constructing a preset component database covering complete component information. Next, by extracting the device attributes (such as the logic symbol information of the secondary circuit components (IEC or GB standard symbol graphics) and the logical definitions of their functional terminals for each type of secondary circuit component; for example, for an intermediate relay, its corresponding device attributes include the logic terminal numbers (such as A1, A2, 13, 14, etc.) of its coil, normally open contacts, and normally closed contacts, as well as their electrical characteristics) and geometric data (the three-dimensional geometric model of the secondary circuit components (STEP or IGES format file) and the spatial coordinates (X, Y, Z coordinates in a local coordinate system based on the geometric center or feature point of the secondary circuit component itself) of the physical ports (actual wiring terminals or ports) corresponding to each functional terminal in the three-dimensional geometric model), a preset component database containing complete logical and physical information of the components is constructed, providing standardized component information support for subsequent two-dimensional logic schematic drawing, three-dimensional layout model design, and logic-physical association.

[0067] Furthermore, the step of associating and binding the two-dimensional logic schematic and the three-dimensional layout model to obtain the first three-dimensional layout model includes:

[0068] Obtain the first set of component identifiers corresponding to the two-dimensional logic schematic and the second set of component identifiers corresponding to the three-dimensional layout model;

[0069] Compare the first set of component identifiers and the second set of component identifiers to establish a first correspondence;

[0070] Based on the first correspondence and the preset connection relationship conversion rules, the two-dimensional logic schematic diagram and the three-dimensional layout model are associated and bound to obtain the first three-dimensional layout model.

[0071] In this embodiment, identifiers of all component instances are extracted from the two-dimensional logic schematic to form a first set of component identifiers, and identifiers of all arranged component instances are extracted from the three-dimensional layout model to form a second set of component identifiers. This clarifies the component identification information corresponding to the two-dimensional logic layer and the three-dimensional physical layer, providing comparable basic data for establishing the relationship between the two. Next, by comparing the identifiers in the first set of component identifiers with those in the second set one by one, a first correspondence is established between component instances in the two-dimensional logic schematic and component instances in the three-dimensional layout model. This breaks down the component association barrier between the two-dimensional logic design and the three-dimensional structural design, achieving precise matching at the component level. Then, based on the first correspondence and combined with preset connection relationship conversion rules, for each secondary loop component instance with an established correspondence, according to its corresponding information model, the functional terminals (such as "normally open contact 14 of K1") on the secondary loop component instance in the two-dimensional logic schematic are mapped to the corresponding physical port space coordinates in the three-dimensional layout model through their logical definitions. (For example, logic terminal "14" is mapped to a specific screw terminal coordinate point on the 3D model). Then, any logic connection line between any two secondary circuit component functional terminals in the 2D logic schematic is converted into a specific "connection to be routed". This "connection to be routed" clearly defines the two physical endpoints that need to be connected by a physical cable in the 3D layout model, including the secondary circuit component instance identifiers to which the two physical ports belong, and clearly defines their corresponding start coordinates (e.g., (X1, Y1, Z1) for a specific terminal of device "K1") and end coordinates (e.g., (X2, Y2, Z2) for terminal number 5 of terminal block "XT1"). This associates and binds the 2D logic schematic with the 3D layout model, generating a first 3D layout model containing clearly defined connections to be routed, providing a clear physical routing task basis for subsequent automatic routing.

[0072] Furthermore, the step of obtaining the set of cables to be routed based on the first three-dimensional layout model, path planning algorithm, preset routing rules, and cable type parameter set includes:

[0073] The first three-dimensional layout model is discretized to obtain a three-dimensional mesh model;

[0074] Establish the cost function;

[0075] Based on a 3D mesh model, path planning algorithm, preset wiring rules and cable type parameter set, the path of the cable to be wired is solved with the goal of minimizing the cost function, and the set of cables to be wired corresponding to the path of the cable to be wired is obtained.

[0076] In this embodiment, by discretizing the first three-dimensional layout model, the complex three-dimensional space is transformed into a high-resolution three-dimensional mesh model (or a three-dimensional navigation mesh model, with a mesh size of 1mm x 1mm x 1mm) containing obstacles (obstacles include the cabinet structure in the secondary loop to be wired, the entities of the already arranged secondary loop components, the boundaries of the cable trays, existing cables, etc., represented by triangular meshes for calculating subsequent spacing) to provide spatial environment data support for subsequent accurate pathfinding. Next, based on the three-dimensional mesh model as the spatial environment foundation, a path planning algorithm (which can be an improved A* algorithm or a fast randomized tree (RRT) algorithm) is invoked. With the minimization of the cost function as the solution objective, a path for the cable to be wired that satisfies the preset wiring rules and cable type parameter set is generated. Based on the path for the cable to be wired, a corresponding set of cables to be wired is formed. Specifically, the established cost function is F = ∑(W i *C i ); where C i W represents the cost of a single item, signifying the "cost" incurred when a path violates or fails to satisfy the i-th rule. i The weight coefficient represents the corresponding rule C. i The importance or priority in overall decision-making. It can be preset based on specific engineering specifications and experience. C1 refers to the curvature constraint cost, when the path curvature radius r... <R min When r ≥ R, C1 = ∞ (hard constraint); min When C1 = 0, the unit is dimensionless; C2 refers to the fixed-point constraint cost. C2 is the sum of the distances from all points on the path to the nearest fixed point, the unit is millimeters (mm); the closer to the fixed point, the smaller this cost; C3 refers to the safety distance cost, the unit is dimensionless; its calculation depends on the piecewise function: when expanding each new node through the path planning algorithm, the shortest Euclidean distance d between the node's position and the surfaces of all surrounding obstacles is automatically calculated in real time using spatial indexing techniques (such as AABB trees, OBB trees); the distance d is substituted into the preset piecewise function: C3 = f(d) = {∞, (if d <D min )K*(D safe -d) 2 ,(if D min ≤d <D safe )0,(if d≥D safe )}, where d <D min Absolutely prohibited zone: If the distance between the path and the obstacle is less than the absolute minimum safe distance D min If the path is deemed unacceptable, an infinite cost is imposed, and the path direction is automatically rejected; D min ≤d <D safe The transitional zone with higher costs: Within this zone, while the path is acceptable, the closer the distance, the higher the risk and the greater the cost, i.e., C3 = K*(Dsafe -d) 2 The value increases sharply (non-linearly) as the distance d decreases, causing the path to move away from the obstacle; K is a preset amplification factor used to adjust the sensitivity of the cost in this area, which can be preset based on empirical values. d≥D safe Safe zone: When the distance reaches or exceeds the recommended safe distance D safe When the path is considered to have no safety margin penalty, C3 = 0; C4 is the priority penalty for cable trays. If the path is within a cable tray, C4 = 0; if it is a "flying wire", C4 = L * δ, unit: millimeters (mm), where L is the length of the flying wire (mm) and δ is the unit length penalty coefficient, which can be preset based on experience. Preset cabling rules include: 1. Minimum bending radius rule: When planning the path, ensure that the radius of curvature of the path at any bend is not less than the minimum bending radius required by the cable type, and avoid right angles or excessively sharp bends in the path; 2. Cable tray constraint rule: Prioritize guiding the path to be laid along the preset cable tray channel. If it is necessary to leave the cable tray to directly connect to the equipment port, the path must meet the aesthetic and safety margin requirements of open wiring; 3. Safety margin rule: The path must maintain a minimum safety distance from obstacles (such as equipment casings, sharp edges) to prevent mechanical wear or electrical interference; 4. Bundling and fixing point rule: The path planning will consider the recommended cable bundling points and fixing clamp positions to ensure that the generated path is easy to physically fix later. Based on the above process, the transformation from a wiring task to a digital cable model is completed. The set of cables to be wired includes at least a unique identifier for each cable (such as "Wire_001", used to globally and uniquely identify the cable), a path coordinate sequence (stores an ordered sequence of three-dimensional coordinate points output by the path planning algorithm, accurately describing the cable's direction in space), the corresponding precise length (calculated by accumulating the Euclidean distance between adjacent path points based on the path coordinate sequence, with an accuracy up to the millimeter level), and instances of secondary loop components and port identifiers of the starting and ending points to which the cable connects.

[0077] Furthermore, the step of generating a numerical control instruction set based on the set of cables to be wired and preset process rules, and controlling the cable processing equipment to generate the cables for secondary circuits to be wired through the numerical control instruction set, includes:

[0078] Extract the attribute set of the cables to be routed corresponding to the set of cables to be routed;

[0079] Based on the attribute set of the cable to be wired and the preset process rules, obtain the process parameter set of the cable to be wired;

[0080] Based on the process parameter set of the cable to be wired and the preset communication protocol, a numerical control instruction set is generated to control the cable processing equipment to generate the cable to be wired secondary circuit.

[0081] In this embodiment, by traversing all digital cable objects in the set of cables to be wired, the attribute set of the cables to be wired corresponding to the set of cables to be wired (including the cut length of each cable to be wired, the stripping length at both ends, and the specifications of the terminals to be crimped) is extracted, providing basic design data support for subsequent conversion into specific production process parameters. Next, the information in the attribute set of the cables to be wired is matched with preset process rules to obtain the process parameter set of the cables to be wired, realizing the conversion of design data into production process data. Subsequently, the process parameters of the cables to be wired are standardized according to the format requirements of the preset communication protocol (assigning and generating a visual marker information with a unique identifier for each cable to be wired), generating a set of numerical control instructions. This set of numerical control instructions is usually in text format (such as CSV, XML) or specific machine instruction codes, and its content must at least explicitly specify: the cutting length of the cable to be wired, the stripping length at the starting end, the stripping length at the ending end, the specifications of the terminals to be crimped at the starting end, the specifications of the terminals to be crimped at the ending end, and the cable identifier (one-dimensional barcode, two-dimensional barcode, or radio frequency identification (RFID) tag information). Finally, the numerical control instruction set is sent to the automated cable processing equipment through a data interface module (such as OPC UA, TCP / IP, or a specific device driver), controlling the cable processing equipment to complete the entire process of cutting, stripping, marking, and crimping terminals of the cable, and printing / attaching a mark containing a unique identifier (such as a QR code label) at a designated position on the cable, and crimping the specified type of terminal as required, generating the cable to be wired for the secondary circuit. During on-site assembly, the three-dimensional spatial laying path of the cable can be retrieved and displayed through the visual markers to guide the assembly.

[0082] This embodiment provides an automated design system for secondary loop cables, including an initial design module, an association and binding module, a parameter acquisition module, an automatic routing module, and an instruction set generation module, specifically:

[0083] The initial design module is used to obtain a two-dimensional logic schematic and a three-dimensional layout model based on a preset component database and secondary circuits to be wired.

[0084] The association binding module is used to associate and bind the two-dimensional logic schematic diagram and the three-dimensional layout model to obtain the first three-dimensional layout model;

[0085] The parameter acquisition module is used to acquire the cable type parameter set of the secondary circuit to be wired;

[0086] The automatic routing module is used to obtain a set of cables to be routed based on a first three-dimensional layout model, a path planning algorithm, preset routing rules, and a set of cable type parameters.

[0087] The instruction set generation module is used to generate a numerical control instruction set based on the set of cables to be wired and preset process rules, so as to control the cable processing equipment to generate the cables to be wired for secondary circuits through the numerical control instruction set.

[0088] This embodiment provides an automated design system for secondary loop cables. In practical applications, only an initial design module is required. In this embodiment, by importing or creating a two-dimensional logic schematic diagram (typically containing logical instances of secondary loop components (such as "relay K1" and "terminal block XT1") and logical connection lines (wires) between their functional terminals) from a preset component database, and based on the preset component database and the secondary loop to be wired, the three-dimensional model instances of the secondary loop components are placed in specific installation positions (such as guide rails, panels, etc.) to complete the three-dimensional layout design of the secondary loop to be wired, thereby obtaining a three-dimensional layout model. This provides basic design data support for the subsequent association and binding of the two-dimensional logic schematic diagram and the three-dimensional layout model, as well as automated wiring. Next, the association and binding module is used to generate a first three-dimensional layout model by associating and binding the two-dimensional logic schematic diagram and the three-dimensional layout model, breaking down the information barrier between the logic design and the physical layout, and clarifying the wiring task in three-dimensional space. Then, the parameter acquisition module is used to collect the core parameters of various cables in the secondary loop to be wired, obtaining a cable type parameter set, which provides key parameter basis for the subsequent path planning algorithm to plan a reasonable path under the constraints of cable physical characteristics. Subsequently, an automatic routing module is employed. Using the connections to be routed in the first 3D layout model as the routing target and a path planning algorithm as the core of the calculation, combined with preset routing rules and cable type parameter sets, it automatically calculates 3D laying paths that meet the constraints and forms a set of cables to be routed, completing the transformation from the routing task to a specific digital cable model. Finally, an instruction set generation module is used. By combining the set of cables to be routed with preset process rules, the design data is transformed into standardized CNC instructions, generating a CNC instruction set. This provides precise operating instructions for automated cable processing equipment, realizing the digital prefabrication of the cables to be routed. These steps avoid inaccurate cable process data generation caused by the incompatibility between electrical and structural design data models, achieving full automation and digitization of the entire process from electrical connection logic to physical manufacturing of the secondary circuit cables to be routed.

[0089] Furthermore, the initial design module is used to obtain a two-dimensional logic schematic and a three-dimensional layout model based on a preset component database and secondary circuits to be wired; the preset component database includes:

[0090] Acquire several secondary circuit components;

[0091] A preset component database is constructed based on the device attributes and geometric data corresponding to the secondary circuit components.

[0092] In this embodiment, by collecting various secondary circuit components (such as relays, terminal blocks, circuit breakers, etc.) required for the secondary circuit, core data support is provided for constructing a preset component database covering complete component information. Next, by extracting the device attributes (such as the logic symbol information of the secondary circuit components (IEC or GB standard symbol graphics) and the logical definitions of their functional terminals for each type of secondary circuit component; for example, for an intermediate relay, its corresponding device attributes include the logic terminal numbers (such as A1, A2, 13, 14, etc.) of its coil, normally open contacts, and normally closed contacts, as well as their electrical characteristics) and geometric data (the three-dimensional geometric model of the secondary circuit components (STEP or IGES format file) and the spatial coordinates (X, Y, Z coordinates in a local coordinate system based on the geometric center or feature point of the secondary circuit component itself) of the physical ports (actual wiring terminals or ports) corresponding to each functional terminal in the three-dimensional geometric model), a preset component database containing complete logical and physical information of the components is constructed, providing standardized component information support for subsequent two-dimensional logic schematic drawing, three-dimensional layout model design, and logic-physical association.

[0093] Furthermore, the association binding module is used to associate and bind the two-dimensional logic schematic and the three-dimensional layout model to obtain a first three-dimensional layout model; including:

[0094] Obtain the first set of component identifiers corresponding to the two-dimensional logic schematic and the second set of component identifiers corresponding to the three-dimensional layout model;

[0095] Compare the first set of component identifiers and the second set of component identifiers to establish a first correspondence;

[0096] Based on the first correspondence and the preset connection relationship conversion rules, the two-dimensional logic schematic diagram and the three-dimensional layout model are associated and bound to obtain the first three-dimensional layout model.

[0097] In this embodiment, identifiers of all component instances are extracted from the two-dimensional logic schematic to form a first set of component identifiers, and identifiers of all arranged component instances are extracted from the three-dimensional layout model to form a second set of component identifiers. This clarifies the component identification information corresponding to the two-dimensional logic layer and the three-dimensional physical layer, providing comparable basic data for establishing the relationship between the two. Next, by comparing the identifiers in the first set of component identifiers with those in the second set one by one, a first correspondence is established between component instances in the two-dimensional logic schematic and component instances in the three-dimensional layout model. This breaks down the component association barrier between the two-dimensional logic design and the three-dimensional structural design, achieving precise matching at the component level. Then, based on the first correspondence and combined with preset connection relationship conversion rules, for each secondary loop component instance with an established correspondence, according to its corresponding information model, the functional terminals (such as "normally open contact 14 of K1") on the secondary loop component instance in the two-dimensional logic schematic are mapped to the corresponding physical port space coordinates in the three-dimensional layout model through their logical definitions. (For example, logic terminal "14" is mapped to a specific screw terminal coordinate point on the 3D model). Then, any logic connection line between any two secondary circuit component functional terminals in the 2D logic schematic is converted into a specific "connection to be routed". This "connection to be routed" clearly defines the two physical endpoints that need to be connected by a physical cable in the 3D layout model, including the secondary circuit component instance identifiers to which the two physical ports belong, and clearly defines their corresponding start coordinates (e.g., (X1, Y1, Z1) for a specific terminal of device "K1") and end coordinates (e.g., (X2, Y2, Z2) for terminal number 5 of terminal block "XT1"). This associates and binds the 2D logic schematic with the 3D layout model, generating a first 3D layout model containing clearly defined connections to be routed, providing a clear physical routing task basis for subsequent automatic routing.

[0098] Furthermore, the automatic routing module is used to obtain a set of cables to be routed based on a first three-dimensional layout model, a path planning algorithm, preset routing rules, and a set of cable type parameters; including:

[0099] The first three-dimensional layout model is discretized to obtain a three-dimensional mesh model;

[0100] Establish the cost function;

[0101] Based on a 3D mesh model, path planning algorithm, preset wiring rules and cable type parameter set, the path of the cable to be wired is solved with the goal of minimizing the cost function, and the set of cables to be wired corresponding to the path of the cable to be wired is obtained.

[0102] In this embodiment, by discretizing the first three-dimensional layout model, the complex three-dimensional space is transformed into a high-resolution three-dimensional mesh model (or a three-dimensional navigation mesh model, with a mesh size of 1mm x 1mm x 1mm) containing obstacles (obstacles include the cabinet structure in the secondary loop to be wired, the entities of the already arranged secondary loop components, the boundaries of the cable trays, existing cables, etc., represented by triangular meshes for calculating subsequent spacing) to provide spatial environment data support for subsequent accurate pathfinding. Next, based on the three-dimensional mesh model as the spatial environment foundation, a path planning algorithm (which can be an improved A* algorithm or a fast randomized tree (RRT) algorithm) is invoked. With the minimization of the cost function as the solution objective, a path for the cable to be wired that satisfies the preset wiring rules and cable type parameter set is generated. Based on the path for the cable to be wired, a corresponding set of cables to be wired is formed. Specifically, the established cost function is F = ∑(W i *C i ); where C i W represents the cost of a single item, signifying the "cost" incurred when a path violates or fails to satisfy the i-th rule. i The weight coefficient represents the corresponding rule C. i The importance or priority in overall decision-making. It can be preset based on specific engineering specifications and experience. C1 refers to the curvature constraint cost, when the path curvature radius r... <R min When r ≥ R, C1 = ∞ (hard constraint); min When C1 = 0, the unit is dimensionless; C2 refers to the fixed-point constraint cost. C2 is the sum of the distances from all points on the path to the nearest fixed point, the unit is millimeters (mm); the closer to the fixed point, the smaller this cost; C3 refers to the safety distance cost, the unit is dimensionless; its calculation depends on the piecewise function: when expanding each new node through the path planning algorithm, the shortest Euclidean distance d between the node's position and the surfaces of all surrounding obstacles is automatically calculated in real time using spatial indexing techniques (such as AABB trees, OBB trees); the distance d is substituted into the preset piecewise function: C3 = f(d) = {∞, (if d <D min )K*(D safe -d) 2 ,(if D min ≤d <D safe )0,(if d≥D safe )}, where d <D min Absolutely prohibited zone: If the distance between the path and the obstacle is less than the absolute minimum safe distance D min If the path is deemed unacceptable, an infinite cost is imposed, and the path direction is automatically rejected; D min ≤d <D safe The transitional zone with higher costs: Within this zone, while the path is acceptable, the closer the distance, the higher the risk and the greater the cost, i.e., C3 = K*(Dsafe -d) 2 The value increases sharply (non-linearly) as the distance d decreases, causing the path to move away from the obstacle; K is a preset amplification factor used to adjust the sensitivity of the cost in this area, which can be preset based on empirical values. d≥D safe Safe zone: When the distance reaches or exceeds the recommended safe distance D safe When the path is considered to have no safety margin penalty, C3 = 0; C4 is the priority penalty for cable trays. If the path is within a cable tray, C4 = 0; if it is a "flying wire", C4 = L * δ, unit: millimeters (mm), where L is the length of the flying wire (mm) and δ is the unit length penalty coefficient, which can be preset based on experience. Preset cabling rules include: 1. Minimum bending radius rule: When planning the path, ensure that the radius of curvature of the path at any bend is not less than the minimum bending radius required by the cable type, and avoid right angles or excessively sharp bends in the path; 2. Cable tray constraint rule: Prioritize guiding the path to be laid along the preset cable tray channel. If it is necessary to leave the cable tray to directly connect to the equipment port, the path must meet the aesthetic and safety margin requirements of open wiring; 3. Safety margin rule: The path must maintain a minimum safety distance from obstacles (such as equipment casings, sharp edges) to prevent mechanical wear or electrical interference; 4. Bundling and fixing point rule: The path planning will consider the recommended cable bundling points and fixing clamp positions to ensure that the generated path is easy to physically fix later. Based on the above process, the transformation from a wiring task to a digital cable model is completed. The set of cables to be wired includes at least a unique identifier for each cable (such as "Wire_001", used to globally and uniquely identify the cable), a path coordinate sequence (stores an ordered sequence of three-dimensional coordinate points output by the path planning algorithm, accurately describing the cable's direction in space), the corresponding precise length (calculated by accumulating the Euclidean distance between adjacent path points based on the path coordinate sequence, with an accuracy up to the millimeter level), and instances of secondary loop components and port identifiers of the starting and ending points to which the cable connects.

[0103] This embodiment provides a non-transitory computer-readable storage medium on which a computer program is stored, which, when executed by a processor, implements the functions of the system as described above.

[0104] This embodiment achieves integrated design and manufacturing: by establishing a "logical-physical" association model and realizing automatic 3D wiring, it eliminates information silos between electrical and structural design, forming a digital closed loop; it improves the accuracy and consistency of process data: based on the real 3D spatial path, it automatically calculates cable length and process parameters, ensuring the accuracy of prefabricated cables, avoiding on-site modifications from the source, saving costs and improving project quality; it empowers flexible intelligent manufacturing: it can automatically and quickly convert any design changes into production instructions, greatly shortening the production preparation cycle, making small-batch, customized cabinet production possible, and improving market responsiveness; it reduces technical barriers and human error: the automated process reduces reliance on the experience of engineers, and avoids errors that are prone to occur in manual wiring and calculation through path planning algorithms, improving the reliability and efficiency of the overall design.

[0105] The above description represents the preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. An automated design method for secondary circuit cables, characterized in that, include: Based on a pre-set component database and secondary circuits to be wired, obtain a two-dimensional logic schematic and a three-dimensional layout model; Associate and bind the two-dimensional logic schematic and the three-dimensional layout model to obtain the first three-dimensional layout model; Obtain the cable type parameter set for the secondary circuit to be wired; Based on the first three-dimensional layout model, path planning algorithm, preset wiring rules and cable type parameter set, obtain the set of cables to be wired; Based on the set of cables to be wired and the preset process rules, a set of numerical control instructions is generated to control the cable processing equipment to generate the cables to be wired for secondary circuits.

2. The automated design method for a secondary circuit cable according to claim 1, characterized in that, Based on a preset component database and secondary circuits to be wired, a two-dimensional logic schematic and a three-dimensional layout model are obtained; the preset component database includes: Acquire several secondary circuit components; A preset component database is constructed based on the device attributes and geometric data corresponding to the secondary circuit components.

3. The automated design method for a secondary circuit cable according to claim 1, characterized in that, The step of associating and binding the two-dimensional logic schematic diagram and the three-dimensional layout model to obtain the first three-dimensional layout model includes: Obtain the first set of component identifiers corresponding to the two-dimensional logic schematic and the second set of component identifiers corresponding to the three-dimensional layout model; Compare the first set of component identifiers and the second set of component identifiers to establish a first correspondence; Based on the first correspondence and the preset connection relationship conversion rules, the two-dimensional logic schematic diagram and the three-dimensional layout model are associated and bound to obtain the first three-dimensional layout model.

4. The automated design method for a secondary circuit cable according to claim 1, characterized in that, The process of obtaining the set of cables to be routed based on the first three-dimensional layout model, path planning algorithm, preset routing rules, and cable type parameter set includes: The first three-dimensional layout model is discretized to obtain a three-dimensional mesh model; Establish the cost function; Based on a 3D mesh model, path planning algorithm, preset wiring rules and cable type parameter set, the path of the cable to be wired is solved with the goal of minimizing the cost function, and the set of cables to be wired corresponding to the path of the cable to be wired is obtained.

5. The automated design method for a secondary circuit cable according to claim 1, characterized in that, The process involves generating a numerical control instruction set based on the set of cables to be wired and preset process rules, and then controlling the cable processing equipment to generate the cables with secondary circuits to be wired using the numerical control instruction set; including: Extract the attribute set of the cables to be routed corresponding to the set of cables to be routed; Based on the attribute set of the cable to be wired and the preset process rules, obtain the process parameter set of the cable to be wired; Based on the process parameter set of the cable to be wired and the preset communication protocol, a numerical control instruction set is generated to control the cable processing equipment to generate the cable to be wired secondary circuit.

6. An automated design system for secondary circuit cables, characterized in that, It includes an initial design module, an association and binding module, a parameter acquisition module, an automatic routing module, and an instruction set generation module, specifically: The initial design module is used to obtain a two-dimensional logic schematic and a three-dimensional layout model based on a preset component database and secondary circuits to be wired. The association binding module is used to associate and bind the two-dimensional logic schematic diagram and the three-dimensional layout model to obtain the first three-dimensional layout model; The parameter acquisition module is used to acquire the cable type parameter set of the secondary circuit to be wired; The automatic routing module is used to obtain a set of cables to be routed based on a first three-dimensional layout model, a path planning algorithm, preset routing rules, and a set of cable type parameters. The instruction set generation module is used to generate a numerical control instruction set based on the set of cables to be wired and preset process rules, so as to control the cable processing equipment to generate the cables to be wired for secondary circuits through the numerical control instruction set.

7. The automated design system for secondary circuit cables according to claim 6, characterized in that, The initial design module is used to obtain a two-dimensional logic schematic and a three-dimensional layout model based on a preset component database and secondary circuits to be wired; the preset component database includes: Acquire several secondary circuit components; A preset component database is constructed based on the device attributes and geometric data corresponding to the secondary circuit components.

8. The automated design system for secondary circuit cables according to claim 6, characterized in that, The association binding module is used to associate and bind the two-dimensional logic schematic diagram and the three-dimensional layout model to obtain the first three-dimensional layout model; including: Obtain the first set of component identifiers corresponding to the two-dimensional logic schematic and the second set of component identifiers corresponding to the three-dimensional layout model; Compare the first set of component identifiers and the second set of component identifiers to establish a first correspondence; Based on the first correspondence and the preset connection relationship conversion rules, the two-dimensional logic schematic diagram and the three-dimensional layout model are associated and bound to obtain the first three-dimensional layout model.

9. The automated design system for secondary circuit cables according to claim 6, characterized in that, The automatic routing module is used to obtain a set of cables to be routed based on a first three-dimensional layout model, a path planning algorithm, preset routing rules, and a set of cable type parameters; including: The first three-dimensional layout model is discretized to obtain a three-dimensional mesh model; Establish the cost function; Based on a 3D mesh model, path planning algorithm, preset wiring rules and cable type parameter set, the path of the cable to be wired is solved with the goal of minimizing the cost function, and the set of cables to be wired corresponding to the path of the cable to be wired is obtained.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it performs the functions of the system as described in any one of claims 6 to 9.