Virtual component construction method and device, computing equipment and storage medium

By building virtual components and using software configuration and graphical editing tools, the problem of lack of flexibility and scalability of traditional mechanical control systems is solved, and the rapid adaptation and efficient operation of mechanical control systems are achieved, and the stability and adaptability of the system are improved.

CN120085853APending Publication Date: 2025-06-03SUZHOU TRENDSHENG TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510159878.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-13
Publication Date
2025-06-03

AI Technical Summary

Technical Problem

Traditional mechanical control systems lack flexibility and scalability, and are difficult to adapt to rapidly changing market demands and technological advances. Especially in the scenario where multiple components work together, it is difficult for the existing technology to efficiently realize the linkage between components.

Method used

By building virtual components, using software configuration to implement control logic, combining graphical editing tools and component framework templates, quickly define and modify control logic, and simulate the operation process of physical devices through a virtual running environment.

Benefits of technology

It realizes flexible configuration and rapid deployment of mechanical control systems, supports rapid adaptation of a variety of different application scenarios, simplifies operations, improves efficiency, improves system stability and adaptability, and reduces development costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120085853A_ABST
    Figure CN120085853A_ABST
Patent Text Reader

Abstract

The invention discloses a virtual component construction method and device, computing equipment and a storage medium, and the method comprises the steps: determining the input and output of a virtual component, a plurality of virtual devices contained in the virtual component and corresponding logic behaviors of the virtual devices according to the requirements of mechanical control logic; selecting and connecting corresponding virtual devices, constructing a virtual component, and performing software configuration on the virtual component to form a configuration file; creating a virtual running environment, loading and executing the configuration file, compiling and running the configuration file in the virtual running environment, and simulating the running process of the physical device; and repeating the steps until the constructed virtual component meets the requirement. According to the method, the virtual component can be flexibly configured and constructed, new market requirements and technical changes can be rapidly adapted, and rapid deployment and adjustment of various different application scenes of the mechanical control system are supported.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of mechanical control, and particularly relates to a method, apparatus, computing device, and storage medium for constructing virtual components. Background Art

[0002] In the field of mechanical automation control, motor control and other mechanical control systems usually rely on the underlying code in embedded systems. The design of these systems is often tailored for specific hardware and application scenarios, resulting in extreme rigidity and complexity when system updates are needed or new application requirements need to be adapted. Especially in scenarios where multiple components need to work together, it is difficult for the prior art to efficiently achieve linkage between components. Specific examples are as follows:

[0003] First, such as the control of production lines in manufacturing. In traditional production lines, the control system is usually designed for specific production tasks. If the production line needs to be adjusted to adapt to new product specifications, it often requires re-embedded programming of the control system. This process is not only time-consuming but also requires professional programming technicians to participate, increasing the maintenance cost.

[0004] Second, such as robot control systems. Industrial robots usually need to execute complex task sequences, which are implemented through hard coding in traditional systems. When production tasks change, the underlying control program of the robot must be modified. This method is not only inefficient but also prone to introducing errors.

[0005] Third, such as test equipment in automobile manufacturing. Many test equipment in automobile manufacturing need to be adjusted according to different vehicle models and test items. Traditional control systems are difficult to quickly adapt to these changes because each adjustment requires modification of the underlying code.

[0006] Fourth, such as the control system of medical device IVD diagnostic equipment. In the IVD medical field, devices need to process various different types of diagnostic tests, which may involve different chemical reactions and operation steps. Traditional IVD devices are usually designed for specific test types, resulting in a large amount of underlying code writing and verification during the development of new products, extending the development cycle. In addition, the compatibility maintenance of old products is also a challenge because each time a new function is added or a new test is supported, complex code updates and tests need to be performed on the existing system. This not only increases the development and maintenance costs but also may affect the stability and reliability of the device.

[0007] These examples show that traditional mechanical control systems lack flexibility and scalability and are difficult to adapt to the rapidly changing market demands and technological advancements. Summary of the Invention

[0008] To solve the above technical problems, the present invention proposes a method, apparatus, computing device, and storage medium for constructing virtual components.

[0009] To achieve the above object, the technical solution of the present invention is as follows:

[0010] In the first aspect, the present invention discloses a method for constructing virtual components, including:

[0011] Step S1: Determine the inputs, outputs, several virtual devices included in the virtual component, and their corresponding logical behaviors according to the requirements of the mechanical control logic;

[0012] Step S2: Select and connect the corresponding virtual devices, construct the virtual component, and perform software configuration on it to form a configuration file;

[0013] Step S3: Create a virtual operating environment, load and execute the configuration file, and compile and run it in the virtual operating environment to simulate the operation process of physical devices;

[0014] Step S4: Repeat Step S2 - Step S3 until the constructed virtual component meets the requirements.

[0015] Based on the above technical solution, the following improvements can be made:

[0016] As a preferred solution, Step S2 includes:

[0017] Step S2.1: Select a suitable component framework template according to the requirements of the mechanical control logic;

[0018] Step S2.2: Based on the selected component framework template, use a graphical editing tool to select and connect the corresponding virtual devices, construct the virtual component, and define the interfaces, logical rules, and control parameters of each virtual device to form a configuration file.

[0019] As a preferred solution, when compiling and running in Step S3, the linkage function of the virtual component is triggered by a single control command, the single control command is decomposed into several control sub - commands, and distributed to each corresponding virtual device, and the virtual devices execute in coordination according to the timing or logical relationship.

[0020] As a preferred solution, the virtual operating environment can communicate with physical devices through a standardized interface to achieve real - time control and monitoring of physical devices.

[0021] In the second aspect, the present invention also discloses a device for constructing virtual components, including:

[0022] A requirement analysis module, configured to determine the inputs, outputs, several virtual devices included in the virtual component, and their corresponding logical behaviors according to the requirements of the mechanical control logic;

[0023] A virtual component construction module for selecting and connecting corresponding virtual devices, constructing a virtual component, and performing software configuration on it to form a configuration file;

[0024] A virtual running environment module for creating a virtual running environment, loading and executing the configuration file so that it compiles and runs in the virtual running environment, simulating the running process of physical devices;

[0025] An output module for repeatedly executing the methods in the virtual component construction module and the virtual running environment module until the constructed virtual component meets the requirements.

[0026] As a preferred solution, the virtual component construction module includes:

[0027] A template selection unit for selecting a suitable component framework template according to the requirements of mechanical control logic;

[0028] A configuration file formation unit for selecting and connecting corresponding virtual devices based on the selected component framework template, constructing a virtual component, and defining the interfaces, logic rules, and control parameters of each virtual device to form a configuration file.

[0029] As a preferred solution, when the virtual running environment module compiles and runs, it triggers the linkage function of the virtual component through a single control command, decomposes the single control command into several control sub-commands, and distributes them to the corresponding virtual devices, and the virtual devices execute in coordination according to the timing or logical relationship.

[0030] As a preferred solution, the virtual running environment can communicate with physical devices through a standardized interface to achieve real-time control and monitoring of physical devices.

[0031] In a third aspect, the present invention also discloses a computing device, including:

[0032] One or more processors;

[0033] A memory;

[0034] And one or more programs, where one or more programs are stored in the memory and are configured to be executed by one or more processors, and one or more programs include instructions for the construction method of any of the above virtual components.

[0035] In a fourth aspect, the present invention also discloses a storage medium, and the storage medium stores one or more computer-readable programs, and one or more programs include instructions, and the instructions are adapted to be loaded and executed by the memory to perform the construction method of any of the above virtual components.

[0036] The present invention discloses a construction method, device, computing device, and storage medium for virtual components, which have the following beneficial effects:

[0037] First, the present invention can flexibly configure and construct virtual components, can quickly adapt to new market demands and technological changes, and support the rapid deployment and adjustment of various different application scenarios of the mechanical control system.

[0038] Second, the present invention realizes the control logic through software configuration, without the need to rewrite a large amount of underlying code, significantly shortening the development time of new products.

[0039] Third, the present invention combines multiple virtual devices into one virtual component, and realizes its linkage control through a single command, thereby simplifying the operation, improving the efficiency and enhancing the stability of the mechanical control system.

[0040] Fourth, the present invention constructs virtual components through a component framework template and a graphical editing tool, and performs software configuration on them, greatly improving the adaptability and maintenance efficiency of the mechanical control system and reducing the development cost. Description of the Drawings

[0041] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention, and therefore should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can also be obtained based on these drawings without creative efforts.

[0042] Figure 1 It is a flowchart of the construction method of the virtual component provided by the embodiment of the present invention.

[0043] Figure 2 It is a schematic diagram of the interface of the virtual component construction platform provided by the embodiment of the present invention.

[0044] Figure 3 It is a schematic diagram of the construction of the virtual component in the first embodiment.

[0045] Figure 4 It is a schematic diagram of the construction of the virtual component in the second embodiment. Detailed Embodiments

[0046] The preferred embodiments of the present invention will be described in detail below with reference to the drawings.

[0047] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present invention.

[0048] The expression "including" an element is an "open-ended" expression, which merely means the existence of corresponding components or steps and should not be construed as excluding additional components or steps.

[0049] To achieve the object of the present invention, in some embodiments of the method for constructing a virtual component, as Figure 1 shown, the construction method includes:

[0050] Step S101: Determine the inputs, outputs, a number of virtual devices included therein and their corresponding logical behaviors of the virtual component according to the requirements of the mechanical control logic;

[0051] Step S102: Select and connect the corresponding virtual devices, construct the virtual component, and perform software configuration on it to form a configuration file;

[0052] Step S103: Create a virtual operating environment, load and execute the configuration file, and compile and run it in the virtual operating environment to simulate the operation process of the physical device;

[0053] Step S104: Repeat Step S102 - Step S103 until the constructed virtual component meets the requirements.

[0054] Before Step S101, first analyze the requirements to determine the requirements of the mechanical control logic.

[0055] The present invention logically binds and parameter maps multiple virtual devices to combine them into a virtual component. The attributes and functions of the virtual component can be defined by itself, including input parameters, output states, internal logic, etc.

[0056] Further, Step S102 includes:

[0057] Step S102.1: Select a suitable component framework template according to the requirements of the mechanical control logic;

[0058] Step S102.2: Based on the selected component framework template, use a graphical editing tool to select and connect the corresponding virtual devices, construct the virtual component, and define the interfaces, logical rules, and control parameters of each virtual device using a unified description language (such as JSON, XML, or a dedicated DSL) to form a configuration file.

[0059] The virtual devices of the present invention have flexible parameter configuration options, allowing users to quickly customize virtual components by adjusting control parameters.

[0060] The present invention has a device library and a component template library. The device library is used to store a number of virtual devices, while the component template library is used to store a number of component framework templates. The materials stored in the device library and the component template library can be dynamically updated.

[0061] The component framework template allows users to write custom rules and logic, reducing the development cycle. Meanwhile, the present invention adopts a graphical editing tool, enabling users to define control logic through dragging and parameter setting.

[0062] Further, when compiling and running in step S103, the linkage function of the virtual component is triggered by a single control command. The single control command is decomposed into several control sub-commands and distributed to the corresponding virtual devices, and the virtual devices are coordinated and executed according to the timing or logical relationship.

[0063] Further, the lightweight virtual running environment can communicate with physical devices through standardized interfaces (such as Ethernet RJ45, RS232, etc.) to achieve real-time control and monitoring of physical devices.

[0064] It should be noted that the construction of the virtual component of the present invention is realized based on the virtual component construction platform, such as Figure 2 shown, the virtual component construction platform supports dynamic update and management, and has security and permission management.

[0065] The virtual component construction platform supports online update and dynamic loading of new control logic without stopping the system operation. At the same time, it provides version management and rollback functions to ensure the stability and reliability of the system during the update process. Further, strict permission management is implemented to ensure that only authorized users can modify the control logic. Through the log and audit functions, all configuration and logic changes are tracked and recorded.

[0066] To better understand the present invention, two specific embodiments are introduced below.

[0067] Embodiment 1: Combine three motors into an XYZ three-axis virtual component and control its synchronous operation through a single command, which is used for devices that require spatial coordinate positioning such as 3D printing.

[0068] Specifically, it includes the following steps:

[0069] Step 1: According to the requirements of the mechanical control logic, determine the input, output, the three motors included in the virtual component and their corresponding logical behaviors;

[0070] Step 2: Select the XYZ component template, drag virtual devices such as the X motor, Y motor, Z motor, X axis, Y axis, and Z axis into the operation window to construct the virtual component, as Figure 3 shown, and perform software configuration on it to form a configuration file, as shown in Table 1 specifically;

[0071] Step 3: Create a virtual running environment, load and execute the configuration file, and compile and run it in the virtual running environment to simulate the running process of physical devices;

[0072] Step 4: Repeat steps S2 - S3 until the constructed virtual component meets the requirements.

[0073] For a single instruction, only one absolute spatial coordinate (X, Y, Z) instruction needs to be input to run to the target position. And after setting the logic rules, there will be no dangers such as mechanical collisions caused by carelessness or operation setting mistakes. The simulation window of the virtual operation environment will also display the simulation situation in real time, and the status is updated by default at a frequency of 2 Hz. Among them: The refresh frequency can be set in the background.

[0074] When the virtual component meets the requirements, connect the corresponding hardware board and download and save it.

[0075] Table 1 Relevant parameter table in the configuration file of Example 1

[0076]

[0077] Example 2: Combine multiple pumps and valves to form a virtual component, and realize the automatic distribution of liquid among multiple containers through a single command.

[0078] Step 1: According to the requirements of the mechanical control logic, determine the inputs, outputs, one motor and multiple solenoid valves included in the virtual component and their corresponding logical behaviors;

[0079] Step 2: Select the valve - pump component template, drag virtual devices such as syringes, three - way solenoid valves, one - way solenoid valves, and blocking pumps into the operation window, and connect the lines to build a pump - valve liquid path to construct the virtual component, as Figure 4 shown, and perform software configuration on it to form a configuration file, as shown in Table 2 specifically;

[0080] Step 3: Create a virtual operation environment, load and execute the configuration file, and make it compile and run in the virtual operation environment to simulate the operation process of physical devices;

[0081] Step 4: Repeat steps S2 - S3 until the constructed virtual component meets the requirements.

[0082] For a single instruction, only one liquid path number and a pump action (extraction / distribution) instruction need to be input to achieve the control of complex liquid paths. And after setting the logic rules, users do not need to understand the underlying liquid path design of the component, which also reduces the learning cost of equipment operators. The simulation window will also display the simulation situation in real time, and the status is updated by default at a frequency of 2 Hz. The refresh frequency can be set in the background.

[0083] When the virtual component meets the requirements, connect the corresponding hardware board and download and save it.

[0084] Table 2 Relevant parameter table in the configuration file of Example 2

[0085]

[0086] In summary, the present invention discloses a method for constructing virtual components, which abstracts control logic into independent virtual components and, with the support of a graphical configuration tool and a scripting language, enables users to conveniently define and modify control logic. Meanwhile, a lightweight virtual operating environment is constructed to load and execute the configured control logic and communicate with physical devices (i.e., actual mechanical equipment) through a standardized interface. In addition, functions such as dynamic update and management, security and permission management are provided to ensure the stability and security of the system.

[0087] In some other embodiments, the present invention also discloses a device for constructing virtual components, including:

[0088] A requirements analysis module, configured to determine the inputs, outputs, several virtual devices included therein, and their corresponding logical behaviors of the virtual components according to the requirements of the mechanical control logic;

[0089] A virtual component construction module, configured to select and connect corresponding virtual devices, construct virtual components, and perform software configuration on them to form a configuration file;

[0090] A virtual operating environment module, configured to create a virtual operating environment, load and execute the configuration file, compile and run it in the virtual operating environment, and simulate the operation process of physical devices;

[0091] An output module, configured to repeatedly execute the methods in the virtual component construction module and the virtual operating environment module until the constructed virtual components meet the requirements.

[0092] Furthermore, the virtual component construction module includes:

[0093] A template selection unit, configured to select a suitable component framework template according to the requirements of the mechanical control logic;

[0094] A configuration file formation unit, configured to select and connect corresponding virtual devices based on the selected component framework template by using a graphical editing tool, construct virtual components, and define the interfaces, logical rules, and control parameters of each virtual device to form a configuration file.

[0095] Furthermore, when the virtual operating environment module compiles and runs, the linkage function of the virtual component is triggered by a single control command, the single control command is decomposed into several control sub-commands, and distributed to the corresponding virtual devices, and the virtual devices execute in coordination according to the timing or logical relationship.

[0096] Furthermore, the virtual operating environment can communicate with physical devices through a standardized interface to achieve real-time control and monitoring of physical devices.

[0097] Furthermore, it should be noted that: when constructing the virtual component by the construction device of the virtual component provided in the above embodiments, only the division of the above functional modules is used for illustration. In practical applications, the above functions can be assigned to different functional modules according to needs, that is, the internal structure of the construction device of the virtual component is divided into different functional modules to complete all or part of the functions described above.

[0098] In addition, the construction device of the virtual component provided in the above embodiments and the embodiments of the construction method of the virtual component belong to the same concept. For the specific implementation process, please refer to the method embodiments and will not be elaborated here.

[0099] In addition, in some other embodiments, the present invention also discloses a computing device, including:

[0100] One or more processors;

[0101] A memory;

[0102] And one or more programs, where one or more programs are stored in the memory and are configured to be executed by one or more processors. One or more programs include instructions for the construction method of the virtual component disclosed in the above embodiments.

[0103] The processor may include one or more processing cores. For example: a 4-core processor, an 8-core processor, etc. The processor can be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor may also include a main processor and a coprocessor. The main processor is a processor for processing data in the wake state, also known as the CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor may be integrated with a GPU (Graphics Processing Unit), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor may also include an AI (Artificial Intelligence) processor, and the AI processor is used to process computing operations related to machine learning.

[0104] The memory may include one or more computer-readable storage media, which may be non-transitory. The memory may also include high-speed random access memory, as well as non-volatile memory, such as one or more disk storage devices and flash storage devices. In some embodiments, the non-transitory computer-readable storage media in the memory is used to store at least one instruction, which is to be executed by a processor to implement the method for constructing a virtual component provided in the method embodiments of the present invention.

[0105] In addition, the computing device may optionally further include: a peripheral device interface and at least one peripheral device. The processor, the memory, and the peripheral device interface may be connected through a bus or signal lines. Each peripheral device may be connected to the peripheral device interface through a bus, signal lines, or a circuit board. Schematically, the peripheral devices include, but are not limited to: radio frequency circuits, touch display screens, audio circuits, and power supplies, etc.

[0106] Of course, the computing device may also include fewer or more components, and this embodiment does not limit this.

[0107] In addition, in some other embodiments, the present invention also discloses a storage medium storing one or more computer-readable programs, and the one or more programs include instructions, and the instructions are adapted to be loaded and executed by the memory to implement the method for constructing a virtual component disclosed in the above embodiments.

[0108] The present invention discloses a method, an apparatus, a computing device, and a storage medium for constructing a virtual component, which have the following beneficial effects:

[0109] First, the present invention can flexibly configure the construction of virtual components, can quickly adapt to new market demands and technological changes, and supports the rapid deployment and adjustment of multiple different application scenarios of the mechanical control system.

[0110] Second, the present invention realizes the control logic through software configuration, without the need to rewrite a large amount of underlying code, significantly shortening the new product development time.

[0111] Third, the present invention combines multiple virtual devices into one virtual component, and realizes its linkage control through a single command, thereby simplifying the operation, improving the efficiency, and enhancing the stability of the mechanical control system.

[0112] Fourth, the present invention constructs virtual components through a component framework template and a graphical editing tool, and performs software configuration on them, greatly improving the adaptability and maintenance efficiency of the mechanical control system and reducing the development cost.

[0113] The foregoing has shown and described the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited by the above embodiments. The above embodiments and the description in the specification are only used to illustrate the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention will have various changes and improvements, and all these changes and improvements fall within the scope of the present invention claimed. The scope of the present invention claimed is defined by the appended claims and their equivalents.

Claims

1. A method for constructing a virtual component, characterized in that: include: Step S1: Determine the input, output, several virtual devices included and their corresponding logic behaviors of the virtual component according to the requirements of the mechanical control logic; Step S2: Select and connect corresponding virtual devices, build virtual components, and perform software configuration on them to form configuration files; Step S3: creating a virtual operating environment, loading and executing the configuration file, compiling and running it in the virtual operating environment, and simulating the operating process of the physical device; Step S4: Repeat steps S2 to S3 until the constructed virtual component meets the requirements.

2. The construction method according to claim 1, characterized in that: The step S2 comprises: Step S2.1: Select a suitable component framework template according to the requirements of the mechanical control logic; Step S2.2: Based on the selected component framework template, use a graphical editing tool to select and connect corresponding virtual devices, build virtual components, and define the interface, logic rules and control parameters of each virtual device to form a configuration file.

3. The construction method according to claim 1, characterized in that: When step S3 is compiled and run, the linkage function of the virtual components is triggered by a single control command, and the single control command is decomposed into several control sub-commands, which are distributed to each corresponding virtual device, and the virtual devices are coordinated and executed according to the timing or logical relationship.

4. The construction method according to claim 1, characterized in that: The virtual operating environment can communicate with the physical device through a standardized interface to achieve real-time control and monitoring of the physical device.

5. A virtual component construction device, characterized in that: include: The demand analysis module is used to determine the input, output, several virtual devices included and their corresponding logical behaviors of the virtual component according to the requirements of the mechanical control logic; A virtual component building module is used to select and connect corresponding virtual devices, build virtual components, and perform software configuration on them to form a configuration file; The virtual operating environment module is used to create a virtual operating environment, load and execute configuration files, compile and run them in the virtual operating environment, and simulate the operating process of the physical device; The output module is used to repeatedly execute the methods in the virtual component construction module and the virtual operating environment module until the constructed virtual component meets the requirements.

6. The construction device according to claim 5, characterized in that The virtual component building blocks include: A template selection unit, used to select a suitable component framework template according to the requirements of the mechanical control logic; The configuration file forming unit is used to select and connect corresponding virtual devices based on the selected component framework template using a graphical editing tool to construct virtual components, and define interfaces, logic rules and control parameters of each virtual device to form a configuration file.

7. The construction device according to claim 5, characterized in that When the virtual operating environment module is compiled and run, the linkage function of the virtual components is triggered by a single control command, and the single control command is decomposed into several control sub-commands, which are distributed to each corresponding virtual device. The virtual devices are coordinated and executed according to the timing or logical relationship.

8. The construction device according to claim 5, characterized in that The virtual operating environment can communicate with the physical device through a standardized interface to achieve real-time control and monitoring of the physical device.

9. A computing device, characterized in that include: one or more processors; Memory; and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, and the one or more programs include instructions for the method for constructing a virtual component as described in any one of claims 1-4 above.

10. A storage medium, characterized in that The storage medium stores one or more computer-readable programs, and the one or more programs include instructions, and the instructions are suitable for being loaded by the memory and executing the method for constructing a virtual component as described in any one of claims 1 to 4.