Virtual part replacement method, control system, storage medium and electronic equipment

The virtual component replacement method solves the time-consuming and error-prone data updates caused by frequent changes in component selection in electrical engineering design, realizes rapid batch replacement of components and accurate matching of parameters, and improves design efficiency.

CN120808381APending Publication Date: 2025-10-17YIPAN SOFTWARE (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510886695.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-30
Publication Date
2025-10-17

AI Technical Summary

Technical Problem

When component selection frequently changes in existing electrical engineering design software, manual data updates are time-consuming and error-prone, and automated matching errors frequently occur, resulting in low design efficiency.

Method used

The virtual component replacement method is adopted to identify the standard circuit component type by receiving parameter data, establish virtual components, obtain component packages according to type processing, and replace and decompose components of the same type in the standard circuit to achieve rapid matching and updating of parameter data.

Benefits of technology

It enables rapid batch replacement of components, reduces the amount of data creation, improves design efficiency, and ensures the accuracy and consistency of parameters.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120808381A_ABST
    Figure CN120808381A_ABST
Patent Text Reader

Abstract

The invention discloses a virtual component replacement method, a control system, a storage medium and electronic equipment, and the replacement method comprises the steps: receiving parameter data, and recognizing a preset standard loop to obtain the type of a component in the standard loop; matching the parameter data with the type of the component, and establishing a virtual component; processing the virtual component according to the type to obtain a component package, and replacing the components of the same type in the standard loop with the virtual component according to the component package; decomposing the component package to obtain a virtual component, and re-matching parameter data; by designing a virtual component, the method can be used for quickly replacing components in a standard loop in the standardized design process, reducing data creation of variables and logic conditions, realizing batch replacement, and performing decomposition and rematching parameter data according to a component package to quickly complete scheme change of the standard loop.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of electrical engineering design, and in particular to a virtual component replacement method, a control system, a storage medium and an electronic device. BACKGROUND

[0002] The existing electrical engineering design software, in the process of component data standardization, design parameterization and automatic drawing, due to the frequent change of component selection scheme, needs to match the component name, manufacturer, parameter, interface type, etc., basically depends on the static database, or needs to manually input and update the component information. When the component selection frequently changes, manually updating these data will be very time-consuming and prone to errors, and if automatic adaptation is established, a large amount of data parameterization scheme needs to be established and adapted one by one, and the automatic association of component parameters and graphic symbols in design drawings is also prone to matching errors, and the design becomes very inefficient. SUMMARY

[0003] The purpose of the present application is to solve the problems existing in the prior art and provide a virtual component replacement method, a control system, a storage medium and an electronic device.

[0004] In order to achieve the above-mentioned purpose, the present application adopts the following technical scheme: a virtual component replacement method, comprising:

[0005] Receiving parameter data, identifying a preset standard circuit to obtain the type of components in the standard circuit;

[0006] The parameter data is matched with the type of the component to establish a virtual component;

[0007] According to the type, the virtual component is processed to obtain a component package, and the same type of components in the standard circuit is replaced by the virtual component according to the component package;

[0008] The component package is decomposed and processed to obtain a virtual component and re-match parameter data.

[0009] As a further description of the above technical scheme: the parameter data includes component name, model number, power parameter or brand name.

[0010] As a further description of the above technical scheme: the identification of the preset standard circuit to obtain the type of components in the standard circuit comprises:

[0011] Obtaining image data of the standard circuit;

[0012] According to the image data, according to the preset graphic symbol, the number and connection position of the corresponding components are identified.

[0013] As a further description of the above technical solutions: the parameter data is matched with the type of the component, which includes:

[0014] For the same type of component, the corresponding parameter data is selected for matching;

[0015] For another type of component, the corresponding parameter data is selected for matching;

[0016] The matched component is constructed as a virtual component.

[0017] As a further description of the above technical solutions: the virtual component is processed according to the type to obtain a component package, which includes:

[0018] The virtual component is classified according to the type to form a parameter data set;

[0019] The corresponding virtual component in the data set is used as a component package.

[0020] As a further description of the above technical solutions: the virtual component is replaced by the virtual component in the standard circuit according to the type of the component package, which includes:

[0021] According to the number and connection position of the identified components;

[0022] According to the parameter data matched by the component package, it is judged whether it meets the parameter requirement, if yes, the replacement is performed, if not, the component package is replaced, until all the components in the standard circuit are replaced.

[0023] As a further description of the above technical solutions: the component package is decomposed and processed, which includes:

[0024] According to the replaced component package, the number of components in each component package for replacement is identified;

[0025] The component package is decomposed to obtain the parameter data of the replaced component, and new parameter data is matched for the non-replaced component.

[0026] Further comprising a control system, comprising:

[0027] A data acquisition module receives parameter data;

[0028] A circuit identification module identifies a preset standard circuit to obtain the type of the component in the standard circuit;

[0029] A virtual component creation module matches the parameter data with the type of the component to establish a virtual component;

[0030] The replacement decomposition module processes the virtual component according to the type to obtain a component package, and replaces the component of the same type in the standard circuit with the virtual component according to the component package, and decomposes the component package;

[0031] The component library module is used to store the established virtual component.

[0032] The application further provides a computer readable storage medium storing a computer program for implementing the replacement method, wherein the computer program enables a computer to perform the replacement method according to any one of the above technical solutions.

[0033] The application further provides an electronic device, comprising:

[0034] one or more processors; a memory; and

[0035] one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the programs comprise a program for performing the replacement method according to any one of the above technical solutions.

[0036] The above technical solutions have the following advantages or beneficial effects:

[0037] By designing the virtual component, the component in the standard circuit can be quickly replaced in the standardized design process, the data creation of variables and logical conditions is reduced, batch replacement is achieved, and decomposition is performed according to the component package, parameter data is re-matched, and scheme change of the standard circuit is quickly completed. BRIEF DESCRIPTION OF DRAWINGS

[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor on the basis of these drawings.

[0039] Figure 1 The flowchart of the replacement method provided by the present application;

[0040] Figure 2 The flowchart of obtaining the type of the component in the standard circuit in the present application;

[0041] Figure 3 The flowchart of matching the parameter data with the type of the component in the present application;

[0042] Figure 4 The flowchart of processing the virtual component to obtain the component package according to the type in the present application;

[0043] Figure 5 Flow chart for replacing the same type of components in the standard circuit with virtual components in the present application;

[0044] Figure 6 Flow chart for decomposing the component package in the present application;

[0045] Figure 7 Flow chart of the control system proposed in the present application.

[0046] Legend:

[0047] 1, data acquisition module; 2, circuit identification module; 3, virtual component creation module; 4, replacement and decomposition module; 5, component library module. DETAILED DESCRIPTION

[0048] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.

[0049] Referring to Figure 1 An embodiment provided by the present application: a virtual component replacement method, comprising:

[0050] S1: receiving parameter data, identifying the type of components in the standard circuit to obtain the type of components in the standard circuit;

[0051] S2: matching the parameter data with the type of components to establish a virtual component;

[0052] S3: processing the virtual component according to the type to obtain a component package, and replacing the same type of components in the standard circuit with virtual components according to the component package;

[0053] S4: decomposing the component package to obtain a virtual component and re-matching the parameter data.

[0054] In the embodiment, the virtual components are designed to replace the components in the standard circuit, and the specifications and names of the virtual components are defined according to the standardization rules of the user. By matching the parameter data uploaded through the interface with the components in the standard circuit, the parameter data is converted into a reusable digital model through the preset standard circuit. For example, in electrical engineering, the circuit of a predefined three-phase asynchronous motor includes a combination of standard components such as circuit breakers, contactors, thermal relays, etc. The types of components in the circuit are identified, the parameter data is matched with the types of components, and virtual components are established. The virtual components abstract the core parameters of the physical components, support quick replacement of products from different manufacturers, encapsulate virtual components of the same type into component packages, realize batch replacement of components in the standard circuit, and after the replacement of the components, the component packages are decomposed, the standard circuit and the corresponding bill of materials are automatically updated, and the parameter data of the decomposed virtual components is updated. The component package for replacing the corresponding standard circuit can be obtained, and the component package can be directly called for reuse in the future.

[0055] The parameter data includes component name, model number, power parameter, or brand name.

[0056] In the embodiment, by receiving parameter data and matching virtual components, specific virtual components are established, such as virtual components defined as:

[0057] DUM. Contactors_3Pole_24VDC_2NO2NC_9A; DUM represents the brand name; the component name is a contactor, the key technical parameters are 3 poles, 24VDC control voltage, 2NO, 2NC auxiliary contacts, and 9A rated current. Through the virtual component, the virtual placeholder for component selection and the virtual material quotation can be realized, and the bill of materials can be quickly provided for procurement reference.

[0058] Referring to Figure 2 , the types of components in the standard circuit are identified by the preset standard circuit, including:

[0059] S11: Obtain image data of the standard circuit;

[0060] S12: According to the image data, the number and connection position of the corresponding components are identified according to the preset graphic symbol.

[0061] In the embodiment, in the circuit design of the electrical circuit, many functional circuits are standard in graphical expression, such as the direct starting circuit of the motor, the forward and reverse rotation circuit, the star-delta starting circuit and the like, the main circuit and the control circuit are standard circuits, the graphical symbols of the circuits are consistent with the IEC / GB standards, the components corresponding to the graphical symbols in the standard circuit can be directly identified by acquiring the image data of the standard circuit, the graphical symbols in the standard circuit are identified by acquiring the image data of the standard circuit, the number and the connection position of the components in the standard circuit are confirmed, since the parameters of the components in the standard circuit are changed in the design, for example, the parameters of the motor are 0.12kW, 0.18kW, 0.55kW, 3kW and 15kW, the changes of the motor parameters and the changes of the component brand selection are required to be adjusted, which leads to the difficulty in improving the design efficiency, the standard circuit is defined by the virtual component, the virtual component is replaced, and the batch replacement of the virtual component is realized.

[0062] With reference to Figure 3 The matching of the parameter data and the type of the component includes:

[0063] S21: for the same type of component, the corresponding parameter data is selected for matching;

[0064] S22: another type of component is switched, and the corresponding parameter data is selected for matching;

[0065] S23: the matched component is constructed as a virtual component.

[0066] In the embodiment, in order to determine the accuracy of the matching, the standard circuit is defined by the parameter, a standardized circuit with technical parameters is created, the parameter data of the same type of component is matched through the preset parameter matching rule, another type of component is switched after the matching is completed, the parameter data is matched again, and each matched component is constructed as a virtual component for storage.

[0067] With reference to Figure 4 The virtual component is processed according to the type to obtain a component package, which includes:

[0068] S311: the virtual components are classified according to the type to form a parameter data set;

[0069] S312: the corresponding virtual components in the data set are used as the component package.

[0070] In the embodiment, the virtual components are stored by establishing the component data management library, and the parameter data of the components are created, modified and added, and the parameter data of the components are integrated into a data set according to the types of the components, so as to facilitate the reuse of the component data and the increase of the parameters, such as the price parameter, the specification parameter and the management parameter. This is beneficial to the management, data transfer and data maintenance of the parameter data of the virtual components. The virtual components in the data set are used as component packages to replace the standard circuit.

[0071] Referring to Figure 5 , the replacing of the same type of components in the standard circuit with the virtual components according to the component package includes:

[0072] S321: according to the number and the connection position of the identified components;

[0073] S322: according to the matching of the corresponding parameter data of the component package, it is judged whether the parameter requirement is met, if yes, the replacing is performed, if not, the component package is replaced until the replacing of all the components in the standard circuit is completed.

[0074] In the embodiment, the number and the connection position of the components in the standard circuit are identified according to the image data of the standard circuit, the matching of the corresponding parameter data of the component package is performed according to the parameterization definition in the standard circuit, it is judged whether the parameter requirement is met, and the matching verification is performed based on the physical interface parameters of the components, such as the mounting hole distance and the terminal type. After each replacing, the chain effect on other components is analyzed, for example, after replacing a transformer with higher power, the related cable specification needs to be upgraded synchronously, and the switch capacity needs to be verified again. Different component packages are used to match the types of each component in the standard circuit, if not met, the component package is replaced, and the accurate component processing of the virtual component is performed, for example, the specific model of the switch, the specific model of the contactor and the specific model of the terminal are defined, the brand name of the virtual component is replaced with the batch of the real brand, and the replaced virtual component is automatically written into the component parameter of the standard circuit until the replacing of all the components in the standard circuit is completed, and the virtual components used in the standard circuit can be obtained.

[0075] Referring to Figure 6 , the component package is decomposed and processed, including:

[0076] S41: according to the replaced component package, the number of components used for replacing in each component package is identified;

[0077] S42: the component package is decomposed, the parameter data of the replaced components are obtained, and the new parameter data of the non-replaced components is matched again.

[0078] In the embodiment, in order to facilitate batch replacement of virtual components in the standard circuit, the component package is decomposed according to the number of virtual components used in each standard circuit, the virtual components are released, detailed virtual component statistics are facilitated, and new parameter data is matched for the components that are not replaced, and the different standard circuits are matched again, so that the batch replacement of virtual components in different standard circuits is quickly completed.

[0079] With reference to Figure 7 The control system further comprises:

[0080] The data acquisition module 1 receives parameter data.

[0081] The circuit identification module 2 identifies the types of components in the standard circuit.

[0082] The virtual component creation module 3 matches the parameter data with the types of components to establish virtual components.

[0083] The replacement and decomposition module 4 processes the virtual components according to the types to obtain a component package, replaces the components of the same type in the standard circuit with the virtual components according to the component package, and decomposes the component package.

[0084] The component library module 5 is used to store the established virtual components.

[0085] In the embodiment, the Eplan Platform software is taken as an example for design. In the Eplan platform, the component library module 5 is provided, and the user can create, modify, and add component data. The component library module 5 can be a local Eplan standard library or a SQL deployment server library.

[0086] The data acquisition module 1 receives the parameter data uploaded by the operator and sends the parameter data to the virtual component creation module 3.

[0087] The circuit identification module 2 identifies the image data of the standard circuit, identifies the number and connection positions of different types of components according to the preset graphic symbols, and sends the data to the virtual component creation module 3.

[0088] The virtual component creation module 3 automatically matches the parameter data with the types to establish virtual components and integrate a component package.

[0089] The replacement and decomposition module 4 replaces the components of the same type in the standard circuit with the virtual components according to the component package, decomposes the component package after the replacement is completed, obtains the parameter data of the replaced components, and matches new parameter data for the components that are not replaced.

[0090] Also included is a computer-readable storage medium storing a computer program for running the replacement method, wherein the computer program causes a computer to perform the following steps:

[0091] S1: receiving parameter data, identifying a preset standard circuit to obtain the type of components in the standard circuit;

[0092] S2: matching the parameter data with the type of components to establish a virtual component;

[0093] S3: processing the virtual component according to the type to obtain a component package, and replacing the components of the same type in the standard circuit with the virtual component according to the component package;

[0094] S4: decomposing the component package to obtain the virtual component and re-matching the parameter data.

[0095] The computer-readable storage medium can be a computer storage medium or a communication medium. The communication medium includes any medium that facilitates the transfer of computer program from one place to another. The computer storage medium can be any available medium that can be accessed by a general or special purpose computer. For example, the computer-readable storage medium is coupled to the processor, so that the processor can read information from the computer-readable storage medium and write information to the computer-readable storage medium. Of course, the computer-readable storage medium can also be an integral part of the processor. The processor and the computer-readable storage medium can be located in an application specific integrated circuit (ASIC). In addition, the ASIC can be located in a user equipment. Of course, the processor and the computer-readable storage medium can also exist as discrete components in a communication device.

[0096] Specifically, the computer-readable storage medium can be implemented by any type of volatile or non-volatile storage devices or their combinations, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk. The storage medium can be any available medium that can be accessed by a general or special purpose computer.

[0097] Also included is an electronic device comprising:

[0098] one or more processors; memory; and

[0099] one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the programs including instructions for performing:

[0100] S1: receiving parameter data, identifying a preset standard circuit to obtain the type of components in the standard circuit;

[0101] S2: matching the parameter data with the type of components to establish a virtual component;

[0102] S3: processing the virtual component according to the type to obtain a component package, and replacing the components of the same type in the standard circuit with the virtual component according to the component package;

[0103] S4: decomposing the component package to obtain the virtual component and re-matching the parameter data.

[0104] The memory is used to store the computer program. The memory can include a high-speed random access memory (RAM), and can also include a non-volatile memory (NVM), such as at least one disk memory, and can also be a U disk, a mobile hard disk, a read-only memory, a magnetic disk or an optical disk, etc.

[0105] The processor is used to execute the computer program stored in the memory, and the processor can be a central processing unit (CPU), and can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), etc. The general-purpose processor can be a microprocessor, or the processor can also be any conventional processor, etc. The steps of the method disclosed in the application can be directly embodied as hardware processor execution, or executed by a combination of hardware and software modules in the processor.

[0106] Optionally, the memory can be independent or integrated with the processor.

[0107] When the memory is a device independent of the processor, the electronic device can further include a bus. The bus is used to connect the memory and the processor. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus can be divided into an address bus, a data bus, a control bus, and the like.

[0108] It should be noted that, through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be realized by means of software plus necessary universal hardware platforms. Based on such understanding, the above technical solutions can be embodied in the form of a software product in essence or in the form of a part of the prior art that contributes to the prior art. The computer software product can be stored in a computer readable storage medium, such as a ROM / RAM, a magnetic disk, an optical disk, or the like, and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0109] Finally, it should be noted that: the above only describes the preferred embodiments of the present application and is not used to limit the present application. Although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions recorded in the foregoing embodiments or equivalently replace some technical features thereof, as long as they are within the spirit and principles of the present application. Any modification, equivalent replacement, improvement, etc. made by those skilled in the art should be included in the protection scope of the present application.

Claims

1. A method for replacing a virtual component, characterized in that: include: Receiving parameter data, identifying a preset standard loop and obtaining the type of components in the standard loop; Matching the parameter data with the type of the component to create a virtual component; Processing the virtual component according to the type to obtain a component package, and replacing components of the same type in the standard circuit with the virtual component according to the component package; The component package is decomposed to obtain virtual components and re-match parameter data.

2. The replacement method according to claim 1, characterized in that: The parameter data includes component name, model, power parameter or brand name.

3. The replacement method according to claim 1, wherein: The identifying of a preset standard loop to obtain the type of components in the standard loop includes: Acquiring image data of the standard loop; According to the image data, the number and connection positions of corresponding components are identified according to preset graphic symbols.

4. The replacement method according to claim 1, wherein: Matching the parameter data with the type of the component includes: For the components of the same type, selecting the corresponding parameter data for matching; Switch to another type of component and select the corresponding parameter data for matching; The matched component is constructed as a virtual component.

5. The replacement method according to claim 1, characterized in that: Processing the virtual component according to the type to obtain a component package includes: Classifying the virtual components according to types to form a parameter data set; The corresponding virtual components in the data set are used as component packages.

6. The replacement method according to claim 3, characterized in that: The replacing the components of the same type in the standard circuit with the virtual components according to the component package includes: According to the number and connection positions of the identified components; According to the matching parameter data of the component package, it is determined whether the parameter requirements are met. If so, the component package is replaced. If not, the component package is replaced until all the components in the standard circuit are replaced.

7. The replacement method according to claim 1, characterized in that: The decomposing process of the component package includes: According to the replaced component packages, identifying the number of components in each component package to be replaced; The component package is decomposed to obtain parameter data of the replaced components, and new parameter data are re-matched to the components that are not replaced.

8. A control system, characterized in that: include: Data acquisition module, receiving parameter data; A circuit identification module identifies a preset standard circuit and obtains the types of components in the standard circuit; A virtual component creation module matches the parameter data with the type of the component to create a virtual component; a replacement decomposition module, processing the virtual component according to the type to obtain a component package, replacing components of the same type in the standard circuit with the virtual component according to the component package, and decomposing the component package; The component library module is used to store the created virtual components.

9. A computer-readable storage medium, characterized in that The computer stores a computer program for running the replacement method, wherein the computer program enables a computer to execute the replacement method according to any one of claims 1 to 7.

10. An electronic device, characterized in that: include: one or more processors; Memory; as well as One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the programs comprising instructions for executing the replacement method according to any one of claims 1 to 7.