Industrial control equipment and configuration method and device thereof
By mounting a virtual machine with real-time and time-sharing operating system in industrial control equipment and adopting a dynamic allocation strategy of shared physical cores, the problem of hardware resources in the existing technology cannot be allocated, and the production efficiency of lithium battery components is improved.
Patent Information
- Application Number
- CN202411450009.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-16
- Publication Date
- 2025-04-18
- Estimated Expiration
- 2044-10-16
AI Technical Summary
In the automated production of lithium battery components, existing industrial control equipment requires at least two control equipment, which leads to the inability to allocate hardware resources and affects production efficiency.
An industrial control device is provided, equipped with a first virtual machine running a real-time operating system and a second virtual machine running a time-sharing operating system, and optimizes resource configuration according to the load state of the virtual machine through dynamic allocation of a shared physical core.
It improves the production efficiency of lithium battery components, reduces the occurrence of hardware resources that cannot meet operating needs, and reduces hardware costs.
Smart Images

Figure CN119847007A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of industrial control technology, and in particular to an industrial control device and a configuration method and apparatus thereof. Background Art
[0002] In order to improve the assembly efficiency of lithium battery components, such as battery cells, industrial control equipment is usually used to realize the automated production of lithium battery components. In related technologies, dual physical control devices are usually used, such as control devices equipped with time-sharing operating systems and hard PLC control systems, to control the production equipment of lithium battery components and realize the automated production of lithium battery components. Among them, the hard PLC control system refers to hardware or a dedicated ASIC chip to implement the execution of PLC instructions.
[0003] However, this method requires the configuration of at least two control devices, at least one control device executes the non-real-time tasks of the time-sharing operating system, and the other control device executes the real-time control tasks of the PLC control system. The hardware resources between the control device executing the non-real-time tasks and the control device executing the real-time control tasks cannot be allocated. As a result, when using industrial control equipment for automated production of lithium battery components, the hardware resources of the control device processing a certain task may not meet the operating requirements of the task, affecting the production efficiency of the lithium battery components. Summary of the invention
[0004] In view of the above problems, the present application provides an industrial control device and a configuration method and device thereof, which can improve the production efficiency of lithium battery components.
[0005] In a first aspect, an embodiment of the present application provides an industrial control device, which is equipped with a first virtual machine running a real-time operating system and a second virtual machine running a time-sharing operating system; the second virtual machine is used to perform real-time control tasks for real-time control of lithium battery production equipment, and the first virtual machine is used to perform non-real-time tasks; the industrial control device includes at least one first physical core configured for the first virtual machine, at least one second physical core configured for the second virtual machine, and at least one shared physical core; the industrial control device is used to determine the load state of each of the first physical cores configured for the first virtual machine according to the current real-time control task performed by the first virtual machine, so as to determine the corresponding resource configuration strategy for allocating the shared physical core to the first virtual machine and the second virtual machine according to the load state; wherein the load state includes a full load state and a light load state, the resource configuration strategy corresponding to the full load state includes allocating the shared physical core to the first virtual machine, and the resource configuration strategy corresponding to the light load state includes allocating the shared physical core to the second virtual machine.
[0006] In the technical solution of the embodiment of the present application, a first virtual machine running a real-time operating system and a second virtual machine running a time-sharing operating system are mounted on the same industrial control device, so that when the first physical core of the first virtual machine is saturated with load, more hardware resources are allocated to process real-time control tasks. Since non-real-time control tasks can be processed when idle, the allocation of shared physical cores to the first virtual machine has little impact on non-real-time control tasks, and can also reduce the operating pressure of each first physical core. When the first physical core of the first virtual machine is idle, more hardware resources are allocated to process non-real-time control tasks, thereby improving the processing efficiency of non-real-time control tasks, thereby reducing the situation where the hardware resources used to process real-time control tasks or non-real-time control tasks cannot meet the operating requirements, thereby improving the production efficiency of lithium battery components.
[0007] In some embodiments, the industrial control device is specifically used to: determine the load state of each of the first physical cores configured for the first virtual machine according to the comparison result of the time parameter collected by the current real-time control task executed by the first virtual machine and the preset time parameter; wherein, if the time parameter is greater than the preset time parameter, the corresponding load state is a full load state, and if the time parameter is less than or equal to the preset time parameter, the corresponding load state is a light load state; the time parameter includes at least one of a scanning cycle or a jitter time. Thus, the load state of the physical core can be used to affect the characteristics of the time parameter collected by the EtherCAT motion control task, and the load state of each of the first physical cores configured for the first virtual machine can be judged by the time parameter collected by the EtherCAT motion control task in the current real-time control task executed by the first virtual machine, so as to improve the accuracy of the load state judgment, so as to further improve the rationality of the subsequent use of the load state for hardware resource allocation.
[0008] In some embodiments, the industrial control device is specifically used to: determine that the load state is a full load state when the scanning cycle exceeds a preset scanning cycle, or the jitter time exceeds a preset jitter time; or determine that the load state is a light load state when the scanning cycle is less than or equal to the preset scanning cycle, and the jitter time is less than or equal to the preset jitter time. Thus, when the load state of the first physical core is determined by using the time parameter, the judgment can be made through multiple dimensions of the scanning cycle and the jitter time, thereby improving the accuracy of the load state judgment.
[0009] In some embodiments, the industrial control device is specifically used to: determine that the load state is a light load state, allocate the shared physical core to the second virtual machine, and detect the fault information of the production equipment; when the load state is a light load state, determine that the interval between the triggering time of the fault information and the current time reaches a preset time, and allocate the shared physical core to the first virtual machine. This reduces the possibility that the physical resources required for the real-time control task will suddenly increase, resulting in the possibility that each first physical core may not be able to effectively process the real-time control task, thereby further improving the processing efficiency of the real-time control task.
[0010] In some embodiments, the preset duration is determined according to the fault repair duration corresponding to the fault information, so as to reduce the situation where the load state of each first physical core has been switched to a full load state before the interval duration reaches the preset duration.
[0011] In some embodiments, the industrial control device is further used to: when the shared physical core is allocated to the first virtual machine, determine that the duration of the load state of each first physical core being in a full-load state reaches a target duration, and allocate at least one of the second physical cores to the first virtual machine. Since the non-real-time tasks executed by the second virtual machine can be executed when the load is idle, allocating the second physical core to the first virtual machine has a small impact on the non-real-time control tasks, and more physical resources can be allocated to the real-time control tasks to try to meet the physical resource requirements of the high-load real-time control tasks, thereby further improving the processing efficiency of the real-time control tasks.
[0012] In some embodiments, the industrial control device is further used to: when the shared physical core is allocated to the first virtual machine, determine that the duration of the load state of each first physical core being in a full-load state reaches a target duration, and share each second physical core with the first virtual machine. Since the non-real-time tasks executed by the second virtual machine can be executed when the load is idle, sharing each second physical core with the first virtual machine has a small impact on the non-real-time control tasks, and can also meet the physical resource requirements of high-load real-time control tasks as much as possible, thereby further improving the processing efficiency of real-time control tasks.
[0013] In a second aspect, the present application provides a configuration method for an industrial control device, which is applied to the industrial control device in any of the above embodiments, and the method includes: determining the load status of each of the first physical cores configured for the first virtual machine based on the current real-time control task performed by the first virtual machine; determining the corresponding resource configuration strategy for allocating the shared physical core to the first virtual machine and the second virtual machine based on the load status; wherein the load status includes a full load status and a light load status, and the resource configuration strategy corresponding to the full load status includes allocating the shared physical core to the first virtual machine, and the resource configuration strategy corresponding to the light load status includes allocating the shared physical core to the second virtual machine.
[0014] In the technical solution of the embodiment of the present application, when the load of the first physical core of the first virtual machine is saturated, more hardware resources are allocated to process real-time control tasks. Since non-real-time control tasks can be processed when idle, the allocation of shared physical cores to the first virtual machine has little impact on non-real-time control tasks, and can also reduce the operating pressure of each first physical core. When the load of the first physical core of the first virtual machine is idle, more hardware resources are allocated to process non-real-time control tasks, thereby improving the processing efficiency of non-real-time control tasks, thereby reducing the situation where the hardware resources used to process real-time control tasks or non-real-time control tasks cannot meet the operating requirements, thereby improving the production efficiency of lithium battery components.
[0015] In a third aspect, the present application provides a configuration device for industrial control equipment, which is applied to the industrial control equipment described in any of the above embodiments, and the device includes: a state determination module, which is used to determine the load state of each of the first physical cores configured for the first virtual machine according to the current real-time control task performed by the first virtual machine; a resource configuration module, which is used to determine the corresponding resource configuration strategy for allocating the shared physical core to the first virtual machine and the second virtual machine according to the load state; wherein the load state includes a full load state and a light load state, and the resource configuration strategy corresponding to the full load state includes allocating the shared physical core to the first virtual machine, and the resource configuration strategy corresponding to the light load state includes allocating the shared physical core to the second virtual machine.
[0016] In the technical solution of the embodiment of the present application, when the load of the first physical core of the first virtual machine is saturated, more hardware resources are allocated to process real-time control tasks. Since non-real-time control tasks can be processed when idle, the allocation of shared physical cores to the first virtual machine has little impact on non-real-time control tasks, and can also reduce the operating pressure of each first physical core. When the load of the first physical core of the first virtual machine is idle, more hardware resources are allocated to process non-real-time control tasks, thereby improving the processing efficiency of non-real-time control tasks, thereby reducing the situation where the hardware resources used to process real-time control tasks or non-real-time control tasks cannot meet the operating requirements, thereby improving the production efficiency of lithium battery components.
[0017] In a fourth aspect, the present application provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor executes the method in the implementation of the second aspect when executing the computer program.
[0018] In a fifth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, performs the method in the implementation of the second aspect.
[0019] In a sixth aspect, the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the method in the implementation of the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Moreover, the same reference numerals are used throughout the drawings to represent the same components. In the drawings: Figure 1 A structural diagram of an industrial control device according to some embodiments of the present application; Figure 2 A first flow chart of a configuration method for an industrial control device according to some embodiments of the present application; Figure 3 A second flow chart of a configuration method for an industrial control device according to some embodiments of the present application; Figure 4 A schematic diagram of the structure of a configuration device for industrial control equipment in some embodiments of the present application; Figure 5 This is a schematic diagram of the structure of an electronic device according to some embodiments of the present application.
[0021] Some of the reference numerals in the specific implementation manner are as follows: 10-industrial control equipment; 20-production equipment; 101-first virtual machine; 102-second virtual machine; 103-service virtual machine; 201-first physical core; 202-second physical core; 203-shared physical core; 301-state determination module; 302-resource configuration module; 400-electronic device; 401-processor; 402-memory; 403-communication bus. DETAILED DESCRIPTION
[0022] The following embodiments of the technical solution of the present application are described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.
[0023] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.
[0024] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.
[0025] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0026] In the description of the embodiments of the present application, the term "and / or" is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0027] In the description of the embodiments of the present application, the term "multiple" refers to more than two (including two). Similarly, "multiple groups" refers to more than two groups (including two groups), and "multiple pieces" refers to more than two pieces (including two pieces).
[0028] In the description of the embodiments of the present application, unless otherwise clearly specified and limited, technical terms such as "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or a connection; it can be a direct connection or an indirect connection through an intermediate medium, and it can be the internal connection of two elements or the interaction relationship between two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the embodiments of the present application can be understood according to the specific circumstances.
[0029] In order to improve the assembly efficiency of lithium battery components, such as battery cells, industrial control equipment is usually used to realize the automated production of lithium battery components. In related technologies, dual physical control devices are usually used, such as control devices equipped with time-sharing operating systems and hard PLC control systems, to control the production equipment of lithium battery components and realize the automated production of lithium battery components. Among them, the hard PLC control system refers to hardware or a dedicated ASIC chip to implement the execution of PLC instructions.
[0030] However, this method requires the configuration of at least two control devices, at least one of which executes the non-real-time tasks of the time-sharing operating system, and the other control device executes the real-time control tasks of the PLC control system. The hardware resources between the control device that executes the non-real-time tasks and the control device that executes the real-time control tasks cannot be allocated, resulting in the hardware resources of the control device that handles a certain task being unable to meet the operation requirements of the task when the industrial control device is used for the automated production of lithium battery components. For example, in the production process of lithium battery components, when a certain production equipment fails, the production equipment that executes the subsequent process will be in a light-load state, and at this time, the production equipment that fails will have material accumulation. When the fault is repaired, in order to avoid affecting the rhythm of the entire lithium battery production line, the real-time control task will be processed and produced at a high load by increasing the rhythm of the production equipment, which can easily lead to the hardware overload of the control device that executes the real-time control task of the PLC control system, which cannot meet the operation requirements of the task and affects the production efficiency of lithium battery components.
[0031] In response to the above technical problems, an embodiment of the present application provides an industrial control device, which is equipped with a first virtual machine running a real-time operating system and a second virtual machine running a time-sharing operating system; the second virtual machine is used to perform real-time control tasks for real-time control of lithium battery component production equipment, and the first virtual machine is used to perform non-real-time tasks; the industrial control device includes at least one first physical core configured for the first virtual machine, at least one second physical core configured for the second virtual machine, and at least one shared physical core; the industrial control device is used to obtain the load status of each first physical core configured for the first virtual machine according to the current real-time control task performed by the first virtual machine, so as to determine the corresponding resource configuration strategy for allocating shared physical cores to the first virtual machine and the second virtual machine according to the load status; wherein the load status includes a full load status and a light load status, the resource configuration strategy corresponding to the full load status includes allocating the shared physical core to the first virtual machine, and the resource configuration strategy corresponding to the light load status includes allocating the shared physical core to the second virtual machine. Therefore, by mounting a first virtual machine running a real-time operating system and a second virtual machine running a time-sharing operating system on the same industrial control device, when the first physical core of the first virtual machine is saturated with load, more hardware resources are allocated to process real-time control tasks. Since non-real-time control tasks can be processed when idle, the allocation of shared physical cores to the first virtual machine has less impact on non-real-time control tasks, and can also reduce the operating pressure of each first physical core. When the first physical core of the first virtual machine is idle, more hardware resources are allocated to process non-real-time control tasks, thereby improving the processing efficiency of non-real-time control tasks, thereby reducing the situation where the hardware resources used to process real-time control tasks or non-real-time control tasks cannot meet the operating requirements, thereby improving the production efficiency of lithium battery components.
[0032] In addition, since the first virtual machine running the real-time operating system and the second virtual machine running the time-sharing operating system are installed on the same industrial control device, the processor core of a dual-system industrial computer can be used to control the production equipment for automated production of lithium battery components. There is no need to configure multiple physical control systems, and there is no need to use dedicated ASIC chips to implement the execution of PLC instructions, thereby reducing hardware costs.
[0033] According to some embodiments of the present application, an industrial control device is provided, such as Figure 1As shown, the industrial control device 10 is equipped with a first virtual machine 101 running a real-time operating system and a second virtual machine 102 running a time-sharing operating system; the second virtual machine 102 is used to perform real-time control tasks for real-time control of a lithium battery assembly production device 20, and the first virtual machine 101 is used to perform non-real-time tasks; the industrial control device 10 includes at least one first physical core 201 configured for the first virtual machine 101, at least one second physical core 202 configured for the second virtual machine 102, and at least one shared physical core 203; the industrial control device 10 is used to perform real-time control tasks according to the first virtual machine 10 1, determine the load state of each of the first physical cores 201 configured for the first virtual machine 101, and determine the corresponding resource configuration strategy for allocating the shared physical core 203 to the first virtual machine 101 and the second virtual machine 102 according to the load state; wherein the load state includes a full load state and a light load state, the resource configuration strategy corresponding to the full load state includes allocating the shared physical core 203 to the first virtual machine 101, and the resource configuration strategy corresponding to the light load state includes allocating the shared physical core 203 to the second virtual machine 102.
[0034] In some embodiments, the real-time operating system can be deployed with the logic motion control program of the soft PLC and the motion control program of EtherCAT, etc., to realize functions such as sequential control, interlock alarm, one-key initialization and beat control, etc. The time-sharing operating system can be a Windows system, and the time-sharing operating system can be deployed with the programming software of the soft PLC and the human-computer interaction interface, etc.
[0035] The central processor of the industrial control device 10 is a multi-core processor, and the multi-core processor includes N processor cores, that is, N physical cores. The industrial control device 10 can pre-allocate physical cores for the first virtual machine 101 and the second virtual machine 102, and select at least one physical core from each physical core as a shared physical core 203. Exemplarily, the industrial control device 10 can create a service virtual machine 103, which runs an independent operating system and is configured with a physical core Core. The service virtual machine 103 can be equipped with a virtual machine hypervisor for configuring the hardware resources of the first virtual machine 101 and the second virtual machine 102. Through the service virtual machine 103, n physical cores can be configured for the first virtual machine 101 as each first physical core 201, m physical cores can be configured for the second virtual machine 102 as each second physical core 202, and the remaining physical cores can be configured as shared physical cores 203. If the central processor of the industrial control device 10 has 8 physical cores, the service virtual machine 103 can be used to configure 3 physical cores for the first virtual machine 101 as 3 first physical cores 201, and another 3 physical cores for the second virtual machine 102 as 3 second physical cores 202, and the remaining physical core can be configured as a shared physical core 203.
[0036] Each first physical core 201 configured for the first virtual machine 101 is used to perform real-time control tasks for real-time control of the production equipment 20 of lithium battery components, and the real-time control tasks may include EtherCAT motion control tasks and logic control tasks. Among them, the lithium battery component can be a battery-related component, such as a battery pack, a battery cell, a pole piece or a pole ear. The production equipment 20 of the lithium battery component may include various process equipment on the production logistics line of the lithium battery component, such as a servo drive, a stepper motor, and a barcode scanner. Each second physical core 202 configured for the second virtual machine 102 is used to perform non-real-time tasks such as data transmission and reception and edge data analysis, such as non-real-time tasks such as running file reading and writing, disk access, and communication between memories.
[0037] The first virtual machine 101 can be connected to each production device 20 of the lithium battery assembly in communication, such as through an EtherCAT network card, so that each first physical core 201 that performs a real-time control task can send a corresponding control instruction to each production device 20 to control each production device 20 to perform a corresponding operation. The first virtual machine 101 can also be connected to the second virtual machine 102 in communication, such as installing a virtual network card driver in the first virtual machine 101 and the second virtual machine 102, and then allocating corresponding IP addresses, so that the first virtual machine 101 and the second virtual machine 102 can perform normal network communication.
[0038] In some embodiments, during the operation of the industrial control device 10, the industrial control device 10 can detect the current real-time control task executed by the first virtual machine 101 to determine the load state of each first physical core 201 according to the current real-time control task executed by the first virtual machine 101. Exemplarily, considering that different real-time control tasks require different hardware resources, the number of physical cores required for different real-time control tasks can be pre-set. For example, for real-time control tasks with different control beats, different numbers of physical cores can be set, and the speed of the control beat is proportional to the number of physical cores, that is, the real-time control task with a faster control beat requires more physical cores.
[0039] After detecting the current real-time control task executed by the first virtual machine 101, the number of physical cores required to execute the current real-time control task can be found according to the current real-time control task, and the number of physical cores can be compared with the number of first physical cores 201 configured for the first virtual machine 101. If the number of physical cores is greater than or equal to the number of first physical cores 201, it means that the load of each first physical core 201 configured by the first virtual machine 101 when executing the current real-time control task is full load, and at this time, it can be determined that the load state of each first physical core 201 is full load state, that is, each first physical core 201 is running at the limit of its design load; if the number of physical cores is less than the number of first physical cores 201, it means that the load borne by each first physical core 201 configured by the first virtual machine 101 when executing the current real-time control task is small, so it can be determined that the load state of each first physical core 201 is light load state.
[0040] If the load state of each first physical core 201 is in a full load state, the shared physical core 203 can be allocated to the first virtual machine 101 through the service virtual machine 103, so that the shared physical core 203 and each first physical core 201 jointly perform the current real-time control task, thereby reducing the load pressure of each first physical core 201 and improving the execution efficiency of the current real-time control task. Since the first virtual machine 101 performs non-real-time tasks, such as data techniques and edge data analysis, and these non-real-time tasks can be processed when each second physical core 202 is idle, the impact on the non-real-time control task is small at this time. If the load state of each first physical core 201 is in a light load state, the shared physical core 203 can be allocated to the second virtual machine 102 through the service virtual machine 103, so that the shared physical core 203 and each second physical core 202 jointly perform the non-real-time control task, thereby ensuring the processing efficiency of real-time tasks while also improving the processing efficiency of non-real-time tasks.
[0041] An industrial control device 10 is provided, which is equipped with a first virtual machine 101 running a real-time operating system and a second virtual machine 102 running a time-sharing operating system; the second virtual machine 102 is used to perform a real-time control task of real-time control of a lithium battery assembly production device 20, and the first virtual machine 101 is used to perform a non-real-time task; the industrial control device 10 includes at least one first physical core 201 configured for the first virtual machine 101, at least one second physical core 202 configured for the second virtual machine 102, and at least one shared physical core 203; the industrial control device 10 is used to determine the load state of each first physical core 201 configured for the first virtual machine 101 according to the current real-time control task performed by the first virtual machine 101, so as to determine the corresponding resource configuration strategy to allocate the shared physical core 203 to the first virtual machine 101 and the second virtual machine 102 according to the load state; wherein the load state includes a full load state and a light load state, and the resource configuration strategy corresponding to the full load state includes allocating the shared physical core 203 to the first virtual machine 101, and the resource configuration strategy corresponding to the light load state includes allocating the shared physical core 203 to the second virtual machine 102. Therefore, by mounting the first virtual machine 101 running a real-time operating system and the second virtual machine 102 running a time-sharing operating system on the same industrial control device 10, when the first physical core 201 of the first virtual machine 101 is saturated with load, more hardware resources are allocated to process real-time control tasks. Since non-real-time control tasks can be processed when idle, the allocation of shared physical cores 203 to the first virtual machine 101 has little impact on non-real-time control tasks, and can also reduce the operating pressure of each first physical core 201. When the first physical core 201 of the first virtual machine 101 is idle, more hardware resources are allocated to process non-real-time control tasks, thereby improving the processing efficiency of non-real-time control tasks, thereby reducing the situation where the hardware resources used to process real-time control tasks or non-real-time control tasks cannot meet the operating requirements, thereby improving the production efficiency of lithium battery components.
[0042] In order to more accurately determine the load state of the first physical core 201 and further improve the rationality of hardware resource allocation, in some embodiments, the industrial control device 10 is specifically used for: Based on the time parameters collected from the current real-time control task executed by the first virtual machine 101 and the comparison results with the preset time parameters, the load state of each of the first physical cores 201 configured for the first virtual machine 101 is determined; wherein, if the time parameter is greater than the preset time parameter, the corresponding load state is a full load state, and if the time parameter is less than or equal to the preset time parameter, the corresponding load state is a light load state; the time parameter includes at least one of a scanning period or a jitter time.
[0043] In some embodiments, the real-time control task executed by the first virtual machine 101 includes an EtherCAT motion control task and a logic control task, wherein the EtherCAT motion control task is mainly used to collect the time parameters of the real-time control task, such as the scanning period and the jitter time, etc. The scanning period may include the real-time scanning period and the cyclic scanning period of the logic control task. The time parameter can be used to reflect whether the execution process of the real-time control task is abnormal. If the time parameter of the real-time control task collected is less than or equal to the expected value, it means that the real-time control task can be executed smoothly, that is, the execution process of the real-time control task is normal; if the time parameter of the real-time control task collected is greater than the expected value, it means that the real-time control task cannot be executed smoothly, that is, the execution process of the real-time control task is abnormal. The time parameter is affected by the load state of each first physical core 201. If each first physical core 201 is in a fully loaded state, the real-time control task cannot be effectively executed, and the time parameter of the real-time control task collected at this time will be abnormal.
[0044] Therefore, the industrial control device 10 can obtain the time parameters of the current real-time control task through the EtherCAT motion control task in the current real-time control task executed by the first virtual machine 101, such as obtaining at least one of the scanning period or jitter time of the real-time control task. After obtaining the time parameters of the current real-time control task, the time parameters can be compared with the preset time parameters, that is, the expected value. If the time parameter is greater than the preset time parameter, it can be determined that the load state of each first physical core 201 is a full load state; otherwise, it can be determined that the load state of each first physical core 201 is a light load state.
[0045] As a possible implementation, the time parameter may be a scanning cycle. When the scanning cycle is obtained, the scanning cycle may be compared with a preset scanning cycle. The preset scanning cycle may be the maximum scanning cycle measured when each first physical core 201 is in a light load state. If the scanning cycle is greater than the preset scanning cycle, it may be determined that each first physical core 201 is in a full load state; otherwise, it may be determined that each first physical core 201 is in a light load state. For example, the real-time scanning cycle in the scanning cycle may be compared with the preset real-time scanning cycle, and the logic control task cycle scanning cycle in the scanning cycle may be compared with the preset cycle scanning cycle. If the real-time scanning cycle is greater than the preset real-time scanning cycle, or the logic control task cycle scanning cycle is greater than the preset cycle scanning cycle, it may be determined that each first physical core 201 is in a full load state; otherwise, it may be determined that each first physical core 201 is in a light load state. Among them, the preset real-time scanning cycle may be the maximum real-time scanning cycle measured when each first physical core 201 is in a light load state, and the preset cycle scanning cycle may be the logic control task cycle scanning cycle measured when each first physical core 201 is in a light load state. For example, under normal circumstances, the real-time scan cycle is usually less than 1ms, and the logic control task cycle scan cycle is usually less than 10ms. Therefore, the preset real-time scan cycle can be set to 1ms, and the logic control task cycle scan cycle can be set to 10ms.
[0046] As another possible implementation, the time parameter may be a jitter time. When the jitter time is obtained, the jitter time may be compared with a preset jitter time. The preset jitter time may be a maximum jitter time measured when each first physical core 201 is in a light load state. If the jitter time is greater than the preset jitter time, it may be determined that each first physical core 201 is in a fully loaded state; otherwise, it may be determined that each first physical core 201 is in a light load state.
[0047] In this way, the load state of the physical core can be used to affect the characteristic of the time parameters collected by the EtherCAT motion control task, and the load state of each first physical core 201 configured by the first virtual machine 101 can be judged through the time parameters collected by the EtherCAT motion control task in the current real-time control task executed by the first virtual machine 101, thereby improving the accuracy of the load state judgment, and further improving the rationality of the subsequent use of the load state for hardware resource allocation.
[0048] In order to further improve the accuracy of load status judgment, in some embodiments, the industrial control device 10 is specifically used to: determine that the load status is a full load status when the scanning cycle exceeds the preset scanning cycle, or the jitter time exceeds the preset jitter time; or determine that the load status is a light load status when the scanning cycle is less than or equal to the preset scanning cycle, and the jitter time is less than or equal to the preset jitter time.
[0049] In some embodiments, the time parameters may include a scanning cycle and a jitter time. When the scanning cycle and the jitter time are obtained, the scanning cycle may be compared with a preset scanning cycle, and the jitter time may be compared with a preset jitter time. If the scanning cycle is greater than the preset scanning cycle, or the jitter time is greater than the preset jitter time, it may be determined that each first physical core 201 is in a fully loaded state; if the scanning cycle is less than or equal to the preset scanning cycle, and the jitter time is less than or equal to the preset scanning cycle, it may be determined that each first physical core 201 is in a lightly loaded state. Thus, when the load state of the first physical core 201 is determined using the time parameters, the judgment may be made in multiple dimensions using the scanning cycle and the jitter time, thereby improving the accuracy of the load state judgment.
[0050] The scanning period is greater than the preset scanning period, which may be that the preset real-time scanning period in the scanning period is greater than the preset real-time scanning period, or the logic control task cycle scanning period in the scanning period is greater than the preset cycle scanning period. Otherwise, it can be determined that the scanning period is less than or equal to the preset scanning period.
[0051] Considering that each first physical core 201 is in a light-load state, it may be caused by a fault in the production equipment 20 of the lithium battery component. For example, in the process of generating lithium battery components, the production equipment 20 includes each process equipment, and each process equipment is strongly coupled together by the logistics line conveyor belt, thereby forming a production and manufacturing structure close to semi-discrete and semi-continuous. When a process equipment fails, the material will be accumulated at the failed process equipment, and the equipment responsible for processing the subsequent process will be in a production idle state waiting for the production equipment 20 of the previous process to repair the fault. At this time, the physical resources required for the real-time control task are relatively small, so each first physical core 201 will be in a light-load state. After the fault is repaired, in order to avoid the rhythm of the entire logistics line being unaffected, the real-time control task will perform high-load processing and production by increasing the rhythm of the production equipment 20. At this time, the physical resources required for the real-time control task will suddenly increase, resulting in each first physical core 201 may not be able to effectively process the real-time control task. To this end, in some embodiments, the industrial control device 10 is specifically used to: Determine that the load state is a light load state, allocate the shared physical core 203 to the second virtual machine 102, and detect fault information of the production device 20; When the load state is a light load state, it is determined that the interval between the triggering time of the fault information and the current time reaches a preset time, and the shared physical core 203 is allocated to the first virtual machine 101 .
[0052] In some embodiments, when each first physical core 201 is in a light load state, the shared physical core 203 may be allocated to the second virtual machine 102, and detect whether there is fault information in the production equipment 20. For example, the operation data of each process equipment in the production equipment 20 may be collected through the second virtual machine 102 to determine whether there is fault information in the production equipment 20.
[0053] If no fault information of the production device 20 is detected, it can be determined that the light load state of each first physical core 201 is not caused by the fault of the production device 20 , and the shared physical core 203 is not reallocated at this time.
[0054] If fault information is detected in the production equipment 20, it can be determined that the light load state of each first physical core 201 is caused by the fault of the production equipment 20. At this time, the interval duration T=t2-t1 can be obtained based on the triggering time of the fault information, that is, the time t1 when the production equipment 20 fails, and the current time t2.
[0055] After the interval duration is obtained, the interval duration can be compared with a preset duration, wherein the preset duration can be set according to actual conditions, such as the average fault repair duration of the production equipment 20, or less than the average fault repair duration of the production equipment 20.
[0056] Alternatively, the preset duration may also be determined based on the fault repair duration corresponding to the fault information, such as determining the fault type based on the fault information to obtain the fault repair duration of all faults of the fault type, and determining the average fault repair duration of each fault repair duration as the preset duration, or setting the preset duration to be less than the average fault repair duration of each fault repair duration. Alternatively, the shortest fault repair duration among the fault repair durations may be determined as the preset duration, or the preset duration may be set to be less than the shortest fault repair duration, so as to reduce the situation where the interval duration has not reached the preset duration, but the load state of each first physical core 201 has been switched to the full load state.
[0057] When the load state of each first physical core 201 is in a light load state, if the interval duration reaches the preset duration, it may indicate that the fault of the production equipment 20 may be about to be repaired, and the real-time control task may soon have an increase in the demand for hardware resources. At this time, the shared physical core 203 can be allocated to the first virtual machine 101 through the service virtual machine 103 to reduce the possibility that the physical resources required for the real-time control task will suddenly increase, resulting in the possibility that each first physical core 201 may not be able to effectively process the real-time control task, thereby further improving the processing efficiency of the real-time control task.
[0058] In order to further improve the processing efficiency of real-time control tasks, in some embodiments, the industrial control device 10 is also used to: when the shared physical core 203 is allocated to the first virtual machine 101, determine that the duration of the load state of each first physical core 201 being in the full load state reaches a target duration, and allocate at least one second physical core 202 to the first virtual machine 101.
[0059] Considering that the real-time control task executed by the first virtual machine 101 may require more physical resources, only adding a shared physical core 203 to the first virtual machine 101 may still not make each first physical core 201 exit the full load state. For example, if the failure time of the production equipment 20 is long, and a large amount of materials will be accumulated at this time, when the failure of the production equipment 20 is repaired, even if a shared physical core 203 is added to the first virtual machine 101, it may not be able to meet the physical resource requirements of the real-time control task. For this reason, when the shared physical core 203 is allocated to the first virtual machine 101, it can be detected whether the load state of each first physical core 201 is in a full load state. If it is detected that the duration of the full-load state of each first physical core 201 is less than the target duration, it means that the full-load state is an abnormal fluctuation and there is no need to reallocate physical resources; if the duration reaches the target duration, it means that the number of physical cores allocated to the first virtual machine 101 at this time cannot fully meet the physical resource requirements of the real-time control task. At this time, the second physical cores 202 of the second virtual machine 102 can be deployed through the service virtual machine 103 to allocate at least one second physical core 202 to the first virtual machine 101. The target duration can be set according to actual conditions.
[0060] Exemplarily, when allocating at least one second physical core 202 to the first virtual machine 101, a single second physical core 202 may be allocated to the first virtual machine 101 at least once until the first physical core 201 exits the full load state, or the number of the second physical cores 202 currently configured by the second virtual machine 102 reaches a preset number. The preset number is the minimum number of physical cores required for the second virtual machine 102 to execute non-real-time tasks, such as 1. Assuming that the number of second physical cores 202 allocated to the second virtual machine 102 is 3, when allocating at least one second physical core 202 to the first virtual machine 101, one second physical core 202 may be allocated to the first virtual machine 101 first. If each first physical core 201 exits the full load state at this time, the allocation of the second physical core 202 is terminated. If it does not exit the full load state, another second physical core 202 is allocated to the first virtual machine 101. Since only one second physical core 202 is allocated to the second virtual machine 102 at this time, the allocation of the second physical core 202 is terminated to avoid being unable to process non-real-time control tasks.
[0061] Since the non-real-time tasks executed by the second virtual machine 102 can be executed when the load is idle, allocating the second physical core 202 to the first virtual machine 101 has little impact on the non-real-time control tasks. At the same time, more physical resources can be allocated to the real-time control tasks to try to meet the physical resource requirements of high-load real-time control tasks, thereby further improving the processing efficiency of real-time control tasks.
[0062] Alternatively, in some embodiments, the industrial control device 10 is also used to: when allocating the shared physical core 203 to the first virtual machine 101, determine that the duration of the load state of each first physical core 201 being in a full load state reaches a target duration, and share each second physical core 202 to the first virtual machine 101.
[0063] In some embodiments, when the shared physical core 203 is allocated to the first virtual machine 101, it can be detected whether the load state of each first physical core 201 is in a full load state. If it is detected that the duration of the load state of each first physical core 201 being in a full load state reaches the target duration, it means that the number of physical cores allocated to the first virtual machine 101 at this time cannot fully meet the physical resource requirements of the real-time control task. At this time, the second physical cores 202 of the second virtual machine 102 can be shared with the first virtual machine 101 through the service virtual machine 103, so that the first virtual machine 101 can jointly perform the real-time control task through each first physical core 201, each second physical core 202 and the shared physical core 203, thereby further improving the processing efficiency of the real-time control task. Since the non-real-time task executed by the second virtual machine 102 can be executed when the load is idle, the second physical core 202 is shared with the first virtual machine 101, which has a small impact on the non-real-time control task, and can also try to meet the physical resource requirements of the high-load real-time control task, thereby further improving the processing efficiency of the real-time control task.
[0064] Figure 2 A flow chart of a configuration method of an industrial control device provided in an embodiment of the present application is shown. The configuration method of the industrial control device is applied to the industrial control device in any of the above embodiments.
[0065] In some embodiments, the configuration method of the industrial control device includes: S101, determining a load state of each of the first physical cores configured for the first virtual machine according to a current real-time control task executed by the first virtual machine; S102, determining a corresponding resource configuration strategy to allocate the shared physical core to the first virtual machine and the second virtual machine according to the load state; Among them, the load state includes a full load state and a light load state, the resource configuration strategy corresponding to the full load state includes allocating the shared physical core to the first virtual machine, and the resource configuration strategy corresponding to the light load state includes allocating the shared physical core to the second virtual machine.
[0066] When the first physical core of the first virtual machine is saturated with load, more hardware resources are allocated to process real-time control tasks. Since non-real-time control tasks can be processed when idle, the allocation of shared physical cores to the first virtual machine has little impact on non-real-time control tasks, and can also reduce the operating pressure of each first physical core. When the first physical core of the first virtual machine is idle, more hardware resources are allocated to process non-real-time control tasks, thereby improving the processing efficiency of non-real-time control tasks, thereby reducing the situation where the hardware resources used to process real-time control tasks or non-real-time control tasks cannot meet the operating requirements, thereby improving the production efficiency of lithium battery components.
[0067] In some embodiments, the load state of each of the first physical cores configured for the first virtual machine is determined based on the current real-time control task executed by the first virtual machine, including: determining the load state of each of the first physical cores configured for the first virtual machine by comparing the time parameter collected based on the current real-time control task executed by the first virtual machine with the preset time parameter; wherein, if the time parameter is greater than the preset time parameter, the corresponding load state is a full load state, and if the time parameter is less than or equal to the preset time parameter, the corresponding load state is a light load state; the time parameter includes at least one of a scanning period or a jitter time.
[0068] In some embodiments, the load state of each of the first physical cores configured for the first virtual machine is determined based on the time parameters collected from the current real-time control task executed by the first virtual machine, including: when the scanning period exceeds the preset scanning period, or the jitter time exceeds the preset jitter time, determining that the load state is a full load state; or, when the scanning period is less than or equal to the preset scanning period, and the jitter time is less than or equal to the preset jitter time, determining that the load state is a light load state.
[0069] In some embodiments, based on the load status, a corresponding resource configuration strategy is determined to allocate the shared physical core to the first virtual machine and the second virtual machine, including: determining that the load status is a light load status, allocating the shared physical core to the second virtual machine, and detecting fault information of the production equipment; when the load status is a light load status, determining that the interval between the triggering time of the fault information and the current time reaches a preset time, and allocating the shared physical core to the first virtual machine.
[0070] In some embodiments, the preset duration is determined according to the fault repair duration corresponding to the fault information.
[0071] In some embodiments, the above method also includes: when allocating the shared physical core to the first virtual machine, determining that the duration of the load state of each first physical core being in a full load state reaches a target duration, and allocating at least one of the second physical cores to the first virtual machine.
[0072] In some embodiments, the above method also includes: when allocating the shared physical core to the first virtual machine, determining that the duration of the load state of each first physical core being in a full load state reaches a target duration, and sharing each second physical core to the first virtual machine.
[0073] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution in the present application will be described clearly and completely below. In some embodiments, Figure 3 As shown, a configuration method of an industrial control device is provided, and the configuration method of the industrial control device is applied to the industrial control device in any of the above embodiments, including: S201, according to the time parameters collected by the EtherCAT motion control task in the current real-time control task executed by the first virtual machine, obtain the load state of each first physical core configured for the first virtual machine. Wherein, the time parameters include a scan cycle and a jitter time. When the scan cycle exceeds a preset scan cycle, or the jitter time exceeds a preset jitter time, the load state is determined to be a full load state; or when the scan cycle is less than or equal to the preset scan cycle, and the jitter time is less than or equal to the preset jitter time, the load state is determined to be a light load state.
[0074] S202, determining that the load state is a light load state, allocating a shared physical core to a second virtual machine, and detecting fault information of a production device.
[0075] S203, when the load state is light load state, determine that the interval between the triggering time of the fault information and the current time reaches a preset time, and allocate the shared physical core to the first virtual machine. The preset time is determined according to the fault repair time corresponding to the fault information.
[0076] S204: Determine that the load state is a full load state, and allocate the shared physical core to the first virtual machine.
[0077] S205, when allocating the shared physical core to the first virtual machine, determine that the duration of the full load state of each first physical core reaches a target duration, allocate at least one second physical core to the first virtual machine; or share each second physical core to the first virtual machine.
[0078] Figure 4A schematic structural block diagram of a configuration device for industrial control equipment provided in an embodiment of the present application is shown. It should be understood that the device and Figure 2 The method embodiment executed in corresponds to the embodiment of the method, and the steps involved in the aforementioned method can be executed. The specific functions of the device can be referred to the description above. To avoid repetition, the detailed description is appropriately omitted here. The device includes at least one software function module that can be stored in a memory in the form of software or firmware or solidified in the operating system (OS) of the device. Specifically, the device can be applied to the industrial control equipment in any of the above embodiments. The device includes: a state determination module 301, which is used to determine the load state of each first physical core configured for the first virtual machine according to the current real-time control task performed by the first virtual machine; a resource configuration module 302, which is used to determine the corresponding resource configuration strategy to allocate the shared physical core to the first virtual machine and the second virtual machine according to the load state; wherein the load state includes a full load state and a light load state, and the resource configuration strategy corresponding to the full load state includes allocating the shared physical core to the first virtual machine, and the resource configuration strategy corresponding to the light load state includes allocating the shared physical core to the second virtual machine.
[0079] In the technical solution of the embodiment of the present application, when the load of the first physical core of the first virtual machine is saturated, more hardware resources are allocated to process real-time control tasks. Since non-real-time control tasks can be processed when idle, the allocation of shared physical cores to the first virtual machine has little impact on non-real-time control tasks, and can also reduce the operating pressure of each first physical core. When the load of the first physical core of the first virtual machine is idle, more hardware resources are allocated to process non-real-time control tasks, thereby improving the processing efficiency of non-real-time control tasks, thereby reducing the situation where the hardware resources used to process real-time control tasks or non-real-time control tasks cannot meet the operating requirements, thereby improving the production efficiency of lithium battery components.
[0080] According to some embodiments of the present application, the state determination module 301 is specifically used to: determine the load state of each of the first physical cores configured for the first virtual machine based on the time parameter collected from the current real-time control task executed by the first virtual machine and the comparison result with the preset time parameter; wherein, if the time parameter is greater than the preset time parameter, the corresponding load state is a full load state, and if the time parameter is less than or equal to the preset time parameter, the corresponding load state is a light load state; and the time parameter includes at least one of a scanning period or a jitter time.
[0081] According to some embodiments of the present application, the state determination module 301 is specifically used to: determine that the load state is a full load state when the scanning cycle exceeds the preset scanning cycle, or the jitter time exceeds the preset jitter time; or, determine that the load state is a light load state when the scanning cycle is less than or equal to the preset scanning cycle, and the jitter time is less than or equal to the preset jitter time.
[0082] According to some embodiments of the present application, the resource configuration module 302 is specifically used to: determine that the load state is a light load state, allocate the shared physical core to the second virtual machine, and detect fault information of the production equipment; when the load state is a light load state, determine that the interval between the triggering moment of the fault information and the current moment reaches a preset time length, and allocate the shared physical core to the first virtual machine.
[0083] According to some embodiments of the present application, the preset duration is determined according to the fault repair duration corresponding to the fault information.
[0084] According to some embodiments of the present application, the resource configuration module 302 is also used to: when the shared physical core is allocated to the first virtual machine, determine that the duration of the load state of each first physical core being in a full load state reaches a target duration, and allocate at least one of the second physical cores to the first virtual machine.
[0085] According to some embodiments of the present application, the resource configuration module 302 is also used to: when allocating the shared physical core to the first virtual machine, determine that the duration of the load state of each first physical core being in a full load state reaches a target duration, and share each second physical core to the first virtual machine.
[0086] According to some embodiments of the present application, Figure 5As shown, an embodiment of the present application provides an electronic device 400, including: a processor 401 and a memory 402, the processor 401 and the memory 402 are interconnected and communicate with each other through a communication bus 403 and / or other forms of connection mechanisms (not marked), the memory 402 stores a computer program executable by the processor 401, and when the computing device is running, the processor 401 executes the computer program to execute the configuration method of the industrial control device in any optional implementation method, for example: according to the current real-time control task performed by the first virtual machine, determine the load state of each of the first physical cores configured for the first virtual machine; according to the load state, determine the corresponding resource configuration strategy to allocate the shared physical core to the first virtual machine and the second virtual machine; wherein the load state includes a full load state and a light load state, the resource configuration strategy corresponding to the full load state includes allocating the shared physical core to the first virtual machine, and the resource configuration strategy corresponding to the light load state includes allocating the shared physical core to the second virtual machine.
[0087] The present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method in any of the aforementioned optional implementations is executed.
[0088] Among them, the storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable red-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.
[0089] The present application provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the method in any optional implementation manner.
[0090] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application, and they should all be included in the scope of the claims and specification of the present application. In particular, as long as there is no structural conflict, the various technical features mentioned in the various embodiments can be combined in any way. The present application is not limited to the specific embodiments disclosed herein, but includes all technical solutions that fall within the scope of the claims.
Claims
1. An industrial control device, characterized in that: The industrial control device is equipped with a first virtual machine running a real-time operating system and a second virtual machine running a time-sharing operating system; the second virtual machine is used to perform a real-time control task of real-time control of a production device for lithium battery components, and the first virtual machine is used to perform a non-real-time task; the industrial control device includes at least one first physical core configured for the first virtual machine, at least one second physical core configured for the second virtual machine, and at least one shared physical core; The industrial control device is used to determine the load state of each of the first physical cores configured for the first virtual machine according to the current real-time control task executed by the first virtual machine, so as to determine the corresponding resource configuration strategy to allocate the shared physical core to the first virtual machine and the second virtual machine according to the load state; Among them, the load state includes a full load state and a light load state, the resource configuration strategy corresponding to the full load state includes allocating the shared physical core to the first virtual machine, and the resource configuration strategy corresponding to the light load state includes allocating the shared physical core to the second virtual machine.
2. The industrial control device according to claim 1, characterized in that: The industrial control equipment is specifically used for: Determining the load state of each of the first physical cores configured for the first virtual machine according to a comparison result of a time parameter collected from the current real-time control task executed by the first virtual machine and a preset time parameter; Among them, when the time parameter is greater than the preset time parameter, the corresponding load state is a full load state; when the time parameter is less than or equal to the preset time parameter, the corresponding load state is a light load state; the time parameter includes at least one of a scanning period or a jitter time.
3. The industrial control device according to claim 2, characterized in that: The industrial control equipment is specifically used for: When the scanning period exceeds the preset scanning period, or the jitter time exceeds the preset jitter time, determining that the load state is a full load state; or, When the scanning period is less than or equal to the preset scanning period, and the jitter time is less than or equal to the preset jitter time, it is determined that the load state is a light load state.
4. The industrial control device according to any one of claims 1 to 3, characterized in that: The industrial control equipment is specifically used for: Determining that the load state is a light load state, allocating the shared physical core to the second virtual machine, and detecting fault information of the production device; When the load state is a light load state, it is determined that the interval between the triggering time of the fault information and the current time reaches a preset time, and the shared physical core is allocated to the first virtual machine.
5. The industrial control device according to claim 4, characterized in that: The preset duration is determined according to the fault repair duration corresponding to the fault information.
6. The industrial control device according to any one of claims 1 to 3 or 5, characterized in that: The industrial control equipment is also used for: When the shared physical core is allocated to the first virtual machine, it is determined that the duration of the full-load state of each first physical core reaches a target duration, and at least one second physical core is allocated to the first virtual machine.
7. The industrial control device according to claim 1-3 or 5, characterized in that: The industrial control equipment is also used for: When the shared physical cores are allocated to the first virtual machine, it is determined that the duration of the full-load state of each of the first physical cores reaches a target duration, and each of the second physical cores is shared with the first virtual machine.
8. A configuration method for industrial control equipment, characterized in that: Applied to the industrial control device according to any one of claims 1 to 7, the method comprises: Determining a load state of each of the first physical cores configured for the first virtual machine according to a current real-time control task executed by the first virtual machine; Determine, according to the load state, a corresponding resource configuration strategy to allocate the shared physical core to the first virtual machine and the second virtual machine; Among them, the load state includes a full load state and a light load state, the resource configuration strategy corresponding to the full load state includes allocating the shared physical core to the first virtual machine, and the resource configuration strategy corresponding to the light load state includes allocating the shared physical core to the second virtual machine.
9. A configuration device for industrial control equipment, characterized in that: Applied to the industrial control device according to any one of claims 1 to 7, the device comprises: a state determination module, configured to determine a load state of each of the first physical cores configured for the first virtual machine according to a current real-time control task executed by the first virtual machine; A resource configuration module, configured to determine a corresponding resource configuration strategy to allocate the shared physical core to the first virtual machine and the second virtual machine according to the load state; Among them, the load state includes a full load state and a light load state, the resource configuration strategy corresponding to the full load state includes allocating the shared physical core to the first virtual machine, and the resource configuration strategy corresponding to the light load state includes allocating the shared physical core to the second virtual machine.
10. An electronic device comprising a processor and a memory storing a computer program, characterized in that: When the processor executes the computer program, the configuration method of the industrial control device described in claim 8 is implemented.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the configuration method of the industrial control device according to claim 8 is implemented.
Citation Information
Patent Citations
Hardware virtualization for media processing
CN102667725A
Multi-processor system and data processing method thereof
CN103514043A
Load balancing method based on KVM virtual cluster
CN104994145A
Industrial internet operating system-based heterogeneous field equipment control management system
CN106941516A
Computer-system-resource scheduling method and device
CN107436810A