Industrial control task execution method and device, mirror image deployment method and device, medium and product

By building target mirroring and configuring interactive components, the problem of difficult algorithms in different stages in industrial control systems is solved, and the flexible deployment and management of algorithms is realized, improving the adaptability and stability of the system.

CN120276358AInactive Publication Date: 2025-07-08ALIBABA CLOUD FEITIAN (HANGZHOU) CLOUD COMPUTING TECH CO LTD

Patent Information

Application Number
CN202510765468.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-10
Publication Date
2025-07-08
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the prior art, industrial control algorithms at different stages in the same industrial control system are difficult to integrate, resulting in complex deployment and management and difficult to adapt to diversified production scenarios.

Method used

By building target mirrors, pre-encapsulate the operating environment and algorithm packages, flexibly configure operating parameters using configuration interactive components, realizing the integration and flexible combination of industrial control algorithms, and supporting industrial control tasks at different stages.

Benefits of technology

It realizes the rapid deployment and migration of industrial control algorithms on different hardware and operating systems, reduces the complexity of environment configuration, improves the adaptability and robustness of the system, and reduces the risk of failure and maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120276358A_ABST
    Figure CN120276358A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an industrial control task execution and mirror image deployment method and device, a medium and a product, and relates to the technical field of computers, and the method comprises the steps: obtaining task logic corresponding to a target industrial control task; using a configuration interaction component corresponding to the industrial control algorithm to configure operation parameters of an algorithm packet of the industrial control algorithm based on task logic; the algorithm package of the at least one industrial control algorithm is operated in the target mirror image to execute the target industrial control task, the algorithm package of the at least one industrial control algorithm is deployed in the pre-constructed target mirror image, and the target mirror image is obtained based on the operation environment required by the target industrial control task; therefore, deployment of the at least one to-be-deployed algorithm based on the target mirror image meets the requirement of the operating environment corresponding to the to-be-constructed scene, integration of the algorithms can be realized, and flexible combination of the industrial control algorithms corresponding to the target industrial control task can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technologies, and in particular, to a method, device, medium, and product for executing and mirror deploying industrial control tasks. Background Art

[0002] Industrial control algorithms are technologies used to achieve automated control in industrial control systems. Industrial control algorithms are usually related to the scenarios in which they are applied, and industrial control algorithms rely on specific operating environments corresponding to the scenarios.

[0003] In related technologies, usually in a production and living scenario, the required operating environments are different in different stages, and the corresponding industrial control algorithms are different in each stage. It is difficult to integrate the industrial control algorithms in different stages into the same industrial control system. Summary of the Invention

[0004] The embodiments of the present application provide a method, an electronic device, a storage medium, and a program product for executing and mirror deploying industrial control tasks to alleviate or solve one or more technical problems existing in the prior art.

[0005] According to a first aspect of the embodiments of the present application, there is provided a method for executing an industrial control task, including: obtaining task logic corresponding to a target industrial control task, where the target industrial control task includes at least one industrial control algorithm, and the task logic includes execution logic of the at least one industrial control algorithm. An algorithm package of the at least one industrial control algorithm is deployed in a pre-constructed target mirror, and the target mirror is obtained based on the operating environment required by the target industrial control task; for any industrial control algorithm, using a configuration interaction component corresponding to the industrial control algorithm, configuring operating parameters of the algorithm package of the industrial control algorithm based on the task logic; and running the algorithm package of the at least one industrial control algorithm in the target mirror to execute the target industrial control task.

[0006] According to a second aspect of the embodiments of the present application, there is provided a method for mirror deployment, including: obtaining a target mirror based on the operating environment required by a target industrial control task, where the target industrial control task includes at least one industrial control algorithm; deploying an algorithm package of the at least one industrial control algorithm in the target mirror, where the operation of the algorithm package of the at least one industrial control algorithm in the target mirror is used to execute the target industrial control task, and the operating parameters of the algorithm package of the industrial control algorithm are configured based on the task logic of the target industrial control task, and the task logic includes execution logic of the at least one industrial control algorithm.

[0007] According to a third aspect of the embodiments of the present application, an electronic device is provided, including a memory, a processor, and a computer program stored on the memory and executable on the processor. The computer program is run by the processor to cause the electronic device to execute the method described in the first aspect or the second aspect.

[0008] According to a fourth aspect of the embodiments of the present application, a computer-readable storage medium is provided, on which a computer program is stored. The program is executed by a processor to implement the method described in the first aspect or the second aspect.

[0009] According to a fifth aspect of the embodiments of the present application, a computer program product is provided, including instructions that, when run on a computer, cause the computer to execute the method described in the first aspect or the second aspect.

[0010] According to the technical solution of the embodiments of the present application, the task logic corresponding to the target industrial control task is obtained, where the target industrial control task includes at least one industrial control algorithm, and the task control logic includes the execution logic of at least one industrial control algorithm; on this basis, algorithm packages of at least one industrial control algorithm are deployed in the pre-built target image. Since the target image is obtained based on the operating environment required by the target industrial control task, deploying at least one algorithm to be deployed based on the target image meets the requirements of the operating environment corresponding to the scenario to be constructed, and the integration of each algorithm can be realized; further, for any industrial control algorithm, the running parameters of the algorithm package of the industrial control algorithm can be flexibly combined and configured based on the task logic by using the configuration interaction component corresponding to the industrial control algorithm; run the algorithm packages of at least one industrial control algorithm in the target image to execute the target industrial control task, and realize the flexible combination of each industrial control algorithm corresponding to the target industrial control task.

[0011] The above description is only an overview of the technical solution of the present application. In order to be able to understand the technical means of the present application more clearly, it can be implemented according to the content of the description. And in order to make the above and other purposes, features, and advantages of the present application more obvious and understandable, the specific embodiments of the present application are given below. Description of the Drawings

[0012] In the drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings denote the same or similar components or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments according to the present application and should not be regarded as limiting the scope of the present application.

[0013] Figure 1 It is a schematic diagram of the scenario corresponding to the execution method of the industrial control task provided by the embodiments of the present application.

[0014] Figure 2 It is an exemplary method flow diagram of the execution method for industrial control tasks provided by the embodiments of the present application.

[0015] Figure 3 It is an exemplary timing diagram of the execution method for industrial control tasks provided by the embodiments of the present application.

[0016] Figure 4 It is an exemplary method flow diagram of the mirror deployment method provided by the embodiments of the present application.

[0017] Figure 5 It is a schematic diagram of the mirror deployment method provided by the embodiments of the present application.

[0018] Figure 6 It is a schematic diagram of execution and deployment provided by the embodiments of the present application.

[0019] Figure 7 It is an exemplary schematic diagram of the execution device for industrial control tasks provided by the embodiments of the present application.

[0020] Figure 8 It is an exemplary schematic diagram of the mirror deployment device provided by the embodiments of the present application.

[0021] Figure 9 It is a schematic diagram of the electronic device provided by the embodiments of the present application. Detailed implementation manners

[0022] In the following, only some exemplary embodiments are briefly described. As those skilled in the art can recognize, the described embodiments can be modified in various different ways without departing from the concept or scope of the present application. Therefore, the drawings and the description are considered to be exemplary in nature and not restrictive.

[0023] To facilitate the understanding of the technical solutions of the embodiments of the present application, the related technologies of the embodiments of the present application are described below. The following related technologies can be arbitrarily combined with the technical solutions of the embodiments of the present application as optional solutions, and they all fall within the protection scope of the embodiments of the present application.

[0024] Industrial control is a process of using various technologies and devices to automatically monitor, adjust, and control industrial production processes in order to improve production efficiency, product quality, and safety. An industrial control system can consist of sensors, controllers, actuators, communication networks, and human-machine interfaces, etc. Among them, sensors are used to collect various physical quantities in the production process and convert them into electrical signals. The physical quantities can include temperature, pressure, flow rate, etc.; the controller can be a programmable logic controller, a distributed control system, etc., which processes the collected data according to a preset program and issues control instructions; the actuator can be a motor, a solenoid valve, a cylinder, etc., which completes specific actions according to the instructions of the controller, such as opening a valve, adjusting the motor speed, etc. The communication network is used to connect various devices and systems to achieve data transmission and sharing; the human-machine interface can provide an intuitive operation interface for monitoring the production process, setting parameters, and issuing manual instructions.

[0025] Industrial control can be applied to manufacturing industries such as automobile manufacturing, machining, and electronics production, energy industries such as power generation, oil extraction and refining, and natural gas transportation, and chemical industries such as controlling chemical reaction processes, material transportation and storage.

[0026] Industrial control algorithms can be algorithmic programs applied to the above industrial control systems. The industrial control algorithms corresponding to different industries and different types of industrial control systems, as well as the specific operating environments on which the industrial control algorithms corresponding to different control stages of the same industry and the same type of industrial control system depend, are different. Therefore, in the face of diverse production scenarios, the deployment and update processes of industrial control algorithms in existing industrial control systems are relatively cumbersome. At the same time, due to different specific operating environments, it is difficult to integrate different industrial control algorithms in the same industrial control system, and thus it is difficult to manage the corresponding industrial control algorithms of the same industrial control system.

[0027] In view of this, an embodiment of the present application proposes a method for executing an industrial control task. This method for executing an industrial control task can be applied to a system for executing an industrial control task. As Figure 1 shown, it is an exemplary architecture diagram for implementing the method for executing an industrial control task. Figure 1 The shown system for executing an industrial control task includes a server 101 and a client 102, which are connected through a network. Among them, the client 102 is used to obtain a target industrial control task and the task logic corresponding to the target industrial control task; the server 101 is used to use an industrial configuration component to configure the operating parameters of an industrial control algorithm based on the task logic and run the corresponding industrial control algorithm to achieve the integration and operation of different industrial control algorithms.

[0028] Among them, the role of the industrial configuration component is to split the existing industrial control algorithms into algorithm components, and then through a visualization tool, linearly combine the algorithm components one by one to implement the algorithm function corresponding to the industrial control task.

[0029] Exemplarily, the server 101 can be an application program, a service, an instance, a functional module in software form, a virtual machine (VM), a container, or a cloud server, etc., or a hardware device with data processing capabilities (such as a server, a terminal device) or a hardware chip. The client 102 can be a fixed terminal, for example, a personal computer, etc. The client 102 can also be a mobile terminal, for example, a mobile phone, a tablet computer, etc. In addition, the server 101 and the client 102 can also be deployed on the same side. For example, the server 101 and the client 102 can be deployed as functional modules in software form in the same terminal device, or the server 101 and the client 102 can be deployed as cloud products in the same cloud server or the same cluster.

[0030] It should be understood that Figure 1 The schematic application scenario diagram is only a schematic representation of the execution system of the industrial control task involved in the embodiments of the present application, and does not limit the technical solutions of the embodiments of the present application. The technical solutions of the present application and how the technical solutions of the present application solve the foregoing technical problems will be described in detail below with specific embodiments. The several specific embodiments listed can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0031] In the above operating environment, the embodiments of the present application provide an execution method for an industrial control task as Figure 2 shown. Please refer to Figure 2 , the execution method of the industrial control task includes steps S201 to S203.

[0032] In step S201, obtain the task logic corresponding to the target industrial control task, and an algorithm package of at least one industrial control algorithm is deployed in the pre-built target image.

[0033] Among them, the target industrial control task includes at least one industrial control algorithm, the task logic includes the execution logic of at least one industrial control algorithm, and the target image is obtained based on the operating environment required by the target industrial control task.

[0034] Exemplarily, the target industrial control task can be a specific industrial control function to be achieved, such as temperature control, motor speed regulation, production line automation, etc. The industrial control algorithm can be a specific algorithm for implementing the target industrial control task, such as the Proportional-Integral-Derivative (PID) control algorithm, fuzzy control algorithm, adaptive control algorithm, etc. The task logic can be the logic describing the execution of the industrial control algorithm, such as the trigger condition, execution order, parameter adjustment, etc. The target image can be a software image constructed based on the operating environment required by the target industrial control task, usually a complete software package containing an operating system, operating environment, and dependent libraries. The algorithm package can be a software package containing the industrial control algorithm and its dependencies, used for deployment in the target image.

[0035] After obtaining the task logic corresponding to the target industrial control task, first, at least one industrial control algorithm corresponding to the target industrial control task can be determined. A target control task can be implemented by multiple industrial control algorithms, and the corresponding industrial control algorithms can be industrial control algorithms for different stages of an industrial control task. After determining at least one industrial control algorithm, it is necessary to deploy the algorithm package of the corresponding industrial control algorithm in the pre-constructed target image. The target image in the embodiments of the present application is obtained based on the operating environment required by this industrial control task. Furthermore, after deploying the algorithm packages of at least one industrial control algorithm in the target image, the corresponding industrial control algorithm can be run.

[0036] Containerization technology can be used to construct the target image. The operating system, operating environment, and dependent libraries are packaged into the image. The algorithm package is deployed into the target image, and the operating environment of the algorithm package is configured in the target image to ensure that the algorithm can execute normally, and then the target image is started to run the algorithm package. It is also possible to construct the image by backing up the disk or copying the entire disk content, where the disk content can include the operating system, files, and related settings, etc.

[0037] By separating the environment configuration and the algorithm package, developers can focus on the development and optimization of the algorithm without having to worry about the configuration of the underlying operating environment. Additionally, using the target image can quickly deploy and test the algorithm, reducing the complexity of environment configuration. Moreover, the target image encapsulates a complete operating environment, enabling the algorithm package to run on different hardware and operating systems without reconfiguring the environment, facilitating the migration and reuse of the algorithm between different industrial control systems.

[0038] In step S202, for any industrial control algorithm, the operating parameters of the algorithm package of the industrial control algorithm are configured based on the task logic by using the configuration interaction component corresponding to the industrial control algorithm.

[0039] Exemplarily, a configuration interaction component can be an interface or tool for interacting with users, allowing users to input or adjust the operating parameters of an industrial control algorithm. For example, the configuration interaction component can be a Graphical User Interface (GUI), a Command-Line Interface (CLI), or a Web-based configuration tool. The operating parameters can be the parameters required during the operation of the industrial control algorithm, and these parameters determine the behavior and performance of the algorithm. For a PID control algorithm, the operating parameters may include the proportional coefficient P, the integral coefficient I, and the derivative coefficient D, etc.

[0040] According to the requirements of the target industrial control task, select an appropriate industrial control algorithm. For example, for a temperature control task, the PID control algorithm can be selected. The configuration interaction component can be a graphical user interface that provides controls such as sliders and text boxes for setting parameters; it can also be a command-line interface that allows users to input parameters through the command line, etc., allowing users to input or adjust the operating parameters of the algorithm.

[0041] According to the requirements of the task logic, set the operating parameters of the industrial control algorithm through the configuration interaction component. For example, if the task logic requires the temperature to be controlled at 100°C, the user can set the target temperature of the PID algorithm to 100°C through the configuration interaction component and adjust the proportional coefficient P, the integral coefficient I, and the derivative coefficient D to optimize the control effect. Save the operating parameters set by the user through the configuration interaction component to the configuration file of the algorithm package. When the algorithm package runs, it will read these configuration files and execute the industrial control algorithm according to the set parameters.

[0042] Through the configuration interaction component, the operating parameters of the algorithm can be flexibly adjusted according to different task logics without modifying the algorithm code. For example, users can adjust the parameters of the PID control algorithm according to different production batches or environmental conditions to achieve better control effects.

[0043] The configuration interaction component enables non-technical personnel to easily adjust the algorithm parameters, reduces the dependence on professional developers, reduces the risk of system failures caused by improper parameter adjustment, and reduces the maintenance cost. Further, the industrial control system can dynamically adjust the algorithm parameters according to different task logics and operating environments, enhancing the adaptability and robustness of the system. For example, in different production lines or different production stages, users can quickly adjust the algorithm parameters through the configuration interaction component to adapt to new control requirements. In addition, the configuration interaction component can be easily extended to other industrial control algorithms, only by adding new algorithm packages and corresponding configuration interfaces.

[0044] In step S203, run the algorithm packages of at least one industrial control algorithm in the target image to execute the target industrial control task.

[0045] Exemplarily, start the target image, load the algorithm package, and start the industrial control algorithm according to the task logic and operating parameters. The algorithm package runs in the target image to execute the target industrial control task. The target image encapsulates a complete operating environment, enabling the algorithm package to run on different hardware and operating systems without reconfiguring the environment. The operating environment of the algorithm package is isolated, reducing conflicts between different software packages. The clarification of the task logic makes the execution of the algorithm more reliable, reducing system failures caused by logical errors. The separation of the algorithm package and the target image makes it more convenient to update the algorithm or the operating environment, and only the corresponding package or image needs to be replaced.

[0046] According to the technical solution of the embodiment of the present application, first, obtain the task logic corresponding to the target industrial control task, where the target industrial control task includes at least one industrial control algorithm, and the task control logic includes the execution logic of at least one industrial control algorithm; on this basis, the algorithm packages of at least one industrial control algorithm are deployed in the pre-built target image. Since the target image is obtained based on the operating environment required by the target industrial control task, deploying at least one algorithm to be deployed based on the target image meets the requirements of the operating environment corresponding to the scenario to be built, and the integration of each algorithm can be realized; further, for any industrial control algorithm, using the configuration interaction component corresponding to the industrial control algorithm, the operating parameters of the industrial control algorithm can be flexibly combined and configured based on the task logic; run the algorithm packages of at least one industrial control algorithm in the target image to execute the target industrial control task.

[0047] In some embodiments, at least one of a parameter specification configuration control, an algorithm development configuration control, and an industrial model configuration control is set in the configuration interaction component; the operating parameters include input parameters and output parameters, and the parameter specification configuration control is used to configure the input parameters and output parameters of the corresponding industrial control algorithm; or, the operating parameters include algorithm call parameters and algorithm editing parameters, and the algorithm development configuration control is used to configure the algorithm call parameters and algorithm editing parameters of the corresponding industrial control algorithm; or, the operating parameters include control model call parameters and control model configuration parameters, and the industrial model configuration control is used to configure the control model call parameters and control model configuration parameters of the corresponding industrial control algorithm.

[0048] Exemplarily, the parameter specification configuration control can be used to specify the input and output parameters of the corresponding industrial control algorithm. Through this parameter specification configuration control, the input and output parameters corresponding to the industrial control algorithm can be configured. In some embodiments, a connection is established between the main function of the parameter configuration control and the algorithm package, so that after the user sets the input parameters through the parameter configuration control, the input parameters can be passed to the algorithm package through the connection between the main function and the algorithm package, thereby realizing the invocation of the industrial control algorithm corresponding to the algorithm package.

[0049] The algorithm development configuration control can be used to select and specify the development controls required for the corresponding industrial control algorithm. The development controls can be open application programming interface controls, Python editor controls, database editor controls. In the process of configuring the running parameters using the algorithm development configuration control, the running parameters can be the identifier of the corresponding algorithm development configuration control, etc. Based on this identifier, the corresponding algorithm development configuration control is selected to provide development controls for the industrial control algorithm, and thus operations such as the development and update of the industrial control algorithm can be realized, which solves the problem of difficult update and maintenance of industrial control algorithms to a certain extent.

[0050] The industrial model configuration control can be used to select industrial model controls, industrial model predictive controller controls, industrial optimization algorithm controls, etc. required for the industrial control algorithm. In addition to the relevant algorithm development configuration, the industrial control algorithm also needs to be matched with the industrial controls in the corresponding application scenarios. Therefore, when the industrial control algorithm is split into various components, the corresponding industrial controls need to be provided.

[0051] The functions in the above embodiments are implemented by configuring the interaction component, and a connection is established between the interaction component and the algorithm corresponding to the target industrial control task. In the embodiments of the present application, the industrial control algorithm corresponding to the target industrial control task can be split into pluggable algorithm components. When deploying the corresponding industrial control algorithm, the functions of the industrial control algorithm are realized according to the linear combination of each algorithm component. For example, the industrial control algorithm can be split into a parameter specification configuration control, an algorithm development configuration control, and an industrial configuration control.

[0052] In the above embodiments, after determining the industrial control algorithm corresponding to the target industrial control task through the algorithm component, it is necessary to run each industrial control algorithm. In the embodiments of the present application, it is necessary to deploy each industrial control algorithm in the target image to run each industrial control algorithm. Then, the algorithm packages of at least one industrial control algorithm can be deployed in the target image in the following manner: obtain the target image based on the operating environment required by the target industrial control task; copy the algorithm packages corresponding to at least one industrial control algorithm into the target image; for any industrial control algorithm: determine the algorithm type corresponding to the industrial control algorithm, screen the target framework corresponding to the algorithm type in the framework library based on the algorithm type, and call the target framework to deploy the loading parameters of the industrial control algorithm, where the loading parameters are used to deploy the algorithm package.

[0053] Exemplarily, when determining the target image, it can be determined according to the operating environment required by the target industrial control task. For example, the dependent operating environment is a Linux system, a Windows system, etc. After determining the target image, only the initial operating environment is determined. It is also necessary to copy algorithm packages including industrial control algorithms, their configuration files, dependent libraries, etc. into the target image so that the algorithm package can be called and run in the target image. For example, a compressed package containing PID control algorithm code, configuration files, and Python dependencies.

[0054] Further, analyze the algorithm package to determine the industrial control algorithm type therein, and screen the target framework matching the algorithm type in the framework library. For example, if the algorithm package contains a PID control algorithm, select the PID control framework from the framework library. Use the interfaces or tools provided by the target framework to configure the loading parameters of the algorithm package in the target image. Through diverse configuration interaction components, the configuration form can be enriched, human errors can be reduced, and the deployment efficiency can be improved.

[0055] Based on this, the target image can be constructed according to the requirements corresponding to each industrial control algorithm, so that the target image is more in line with the operating environment of the industrial control algorithm, and the algorithm package can run on different hardware and operating systems.

[0056] In some embodiments, before obtaining the target image based on the operating environment required by the target industrial control task, the method of the embodiments of the present application further includes: obtaining the mirror construction requirements, where the mirror construction requirements include operating environment parameters and running dependent files; screening the initial mirror corresponding to the operating environment parameters in the pre-constructed mirror library; copying the running dependent files into the initial mirror and setting the startup instruction of the running dependent files to obtain the target image, where the startup instruction is used to run the running dependent files when the target image is started.

[0057] Exemplarily, the mirror building requirements refer to the information required to build the target mirror, including runtime environment parameters and runtime dependency files. The runtime environment parameters can include the operating system version, programming language, specific library versions, etc.; the runtime dependency files may include Python requirements files (requirements.txt), configuration files, etc. The runtime environment parameters can be the specific parameters defining the runtime environment of the target mirror, such as the operating system, programming language, middleware, etc. For example, the operating system is Linux, the Python version is 3.9, and the libraries to be installed include numerical libraries (Numpy), etc. The runtime dependency files are the files required to run the applications in the target mirror, such as configuration files, dependency library lists, etc. For example, the requirements.txt file, configuration files, etc. The pre-built mirror library contains a repository of multiple pre-built mirrors that already include common runtime environment configurations.

[0058] Exemplarily, determine the runtime environment parameters required by the target application, such as the operating system version, programming language version, middleware, etc.; determine the runtime dependency files, such as configuration files, dependency library lists, etc. For example, in some embodiments, the corresponding runtime environment parameters can be obtained according to the existing environment in which the target application runs. In the pre-built mirror library, filter out the matching initial mirror according to the runtime environment parameters. Exemplarily, a mirror that already includes most of the required runtime environments can be selected as the initial mirror.

[0059] Further, copy the runtime dependency files into the initial mirror. Exemplarily, startup instructions can be set in the mirror to ensure that the required scripts or programs run when the mirror starts. For example, copy the requirements.txt file to the application directory of the initial mirror, and then set the startup instructions to ensure that the dependencies are installed and the main program runs when the mirror starts. Exemplarily, a containerization tool can be used to build the target mirror, where the containerization tool can be an application container engine (Docker). For example, ensure that the target mirror includes all runtime environment parameters and runtime dependency files, and the startup instructions are correctly set, and then use Docker to build the target mirror to generate a complete mirror containing all dependencies and startup instructions.

[0060] Based on this, by using the pre-built mirror library, a matching initial mirror can be quickly found, reducing the time for building the mirror from scratch.

[0061] After at least one industrial control algorithm is deployed, during actual use, if the corresponding industrial control algorithm needs to be updated, in some embodiments, it can be achieved in the following manner: in response to obtaining an algorithm update instruction, determining the algorithm identifier and algorithm version information corresponding to the algorithm update instruction; determining the algorithm package to be updated corresponding to the algorithm identifier in the target image; in response to the target version corresponding to the algorithm version information being included in the historical version corresponding to the algorithm package to be updated, updating the algorithm package to be updated to the algorithm package corresponding to the target version; or, in response to the target version not being included in the historical version corresponding to the algorithm to be updated, obtaining the algorithm package corresponding to the target version and deploying the algorithm package corresponding to the target version in the target image.

[0062] Exemplarily, the algorithm update instruction can be an operation instruction that triggers algorithm update, usually issued by a system administrator or an automation tool. The algorithm identifier is used to uniquely identify the name or identity number of an algorithm package. The algorithm version information can be the specific version number of the algorithm package, used to distinguish different versions of the algorithm. For example, 1.0.0, 2.1.3, etc. The algorithm package to be updated is the algorithm package that needs to be updated in version, for example, the PID control algorithm package running in the current image. The historical version is the version record of the algorithm package that already exists in the target image, for example, the historical versions of the PID control algorithm package are 1.0.0, 1.1.0, etc. The target version is the algorithm package version that needs to be updated to, for example, 2.0.0.

[0063] After receiving the algorithm update instruction, extract the algorithm identifier and algorithm version information. For example, the update instruction is: update the PID control algorithm to version 2.0.0. Search for the algorithm package corresponding to the algorithm identifier in the target image and confirm the current version of this algorithm package. For example, find the algorithm package of the PID control algorithm in the target image, and the current version is 1.1.0. Check the historical version list of the algorithm package to be updated and confirm whether it contains the target version. For example, check the historical versions of the PID control algorithm and find that the 2.0.0 version is included.

[0064] If the target version exists in the historical version, update the algorithm package to be updated to the algorithm package corresponding to the target version to ensure that the updated algorithm package is correctly loaded and run; if the target version does not exist in the historical version, obtain the algorithm package corresponding to the target version from an external source and deploy the newly obtained algorithm package in the target image.

[0065] Through the dynamic update of the algorithm, it can quickly adapt to new control requirements or optimize the algorithm performance. For example, during the production process, update the algorithm version according to the new control strategy without redeploying the entire system. Further, by checking the historical version, the correctness of the update operation can be ensured, avoiding system failures caused by version incompatibility, and confirming the existence of the target version before the update can avoid update failures caused by version absence.

[0066] In the process of deploying at least one industrial control algorithm, the computing power requirements corresponding to each industrial control algorithm are different. Therefore, in order to ensure the smooth completion of the target industrial control task, in some embodiments, when running the algorithm packages of at least one industrial control algorithm in the target image, the following method can be adopted: determine the allocation order of allocating computing power resources for at least one industrial control algorithm based on the computing power priority of the industrial control algorithm; allocate the computing power resources corresponding to the industrial control algorithm to each industrial control algorithm according to the allocation order; call the computing power resources in the target image to run the algorithm packages of the corresponding industrial control algorithms according to the allocation order.

[0067] Exemplarily, the computing power priority can be the priority pre-allocated for each industrial control algorithm according to the importance and real-time requirements of the industrial control task. Algorithms with high priority may require a faster response time, such as emergency shutdown control; algorithms with low priority may have less demanding response time requirements, such as data recording. Sort all industrial control algorithms according to the computing power priority. Further, determine the order of resource allocation. Algorithms with higher priority are allocated resources first. The allocation order is, for example: emergency shutdown control > temperature control > data recording. Allocate the required computing power resources to each industrial control algorithm in sequence according to the allocation order, so as to ensure that each algorithm obtains sufficient resources to meet its operation requirements.

[0068] In some embodiments, in response to the number of available computing power resources being less than the total computing power of at least one industrial control algorithm, determine the allocation ratio of the industrial control algorithm in the available computing power resources based on the computing power priority of the industrial control algorithm; allocate the computing power resources corresponding to the allocation ratio of the corresponding industrial control algorithm to each industrial control algorithm according to the allocation order.

[0069] Exemplarily, the available computing power resources are the currently available computing resources, and the total computing power is the total computing resources required by all industrial control algorithms. By comparing the available computing power resources and the total computing power requirements, it can be determined whether there is a shortage of resources. When resources are insufficient, it is necessary to allocate the computing power resources corresponding to its allocation ratio to each industrial control algorithm according to the allocation order of the computing power priority, ensuring that the resources obtained by each algorithm do not exceed the resource amount corresponding to its allocation ratio.

[0070] Exemplarily, calculate the allocation ratio of each industrial control algorithm in the available computing power resources according to its computing power priority. Among them, the allocation ratio can be calculated through the priority weight, and algorithms with higher priority have a higher allocation ratio. For example, the emergency shutdown control algorithm (high priority): the allocation ratio is 50%, the temperature control algorithm (medium priority): the allocation ratio is 30%, and the data recording algorithm (low priority): the allocation ratio is 20%.

[0071] By reasonably allocating limited computing power resources, ensure that each algorithm can obtain a certain amount of computing power resources, avoid waste of computing power resources. Even when the computing power resources are insufficient, by preferentially allocating computing power resources to high-priority algorithms, ensure that critical tasks can run normally and reduce system instability caused by insufficient computing power resources.

[0072] As Figure 3 shown, it is the timing diagram for the execution of the corresponding industrial control task of this application. Figure 3 The corresponding functions are implemented through software with multi-module collaboration. For example, it is implemented using the Function as a Service (FaaS) algorithm framework platform. The execution process of the corresponding industrial control task is as follows: 1) The user sends a request to deploy an industrial control algorithm through the client; 2) The server, based on the request and the container cluster (Kubernetes, K8S) platform, launches a container for deploying the industrial control algorithm, and this container is used to run, store, and isolate the corresponding target image; 3) The target image pulls the algorithm package corresponding to the industrial control algorithm and copies it into the target image, and deploys the corresponding industrial control algorithm based on this algorithm package; 4) Return a message indicating that the deployment is completed. After the deployment is completed here, it is possible to further verify with the target image whether the deployment is completed and check the health status of the response industrial control algorithm; 5) After obtaining the message indicating that the deployment is completed, an algorithm execution instruction can be sent to the target image to call this industrial control algorithm; 6) Execute the corresponding industrial control algorithm in the target image; 7) After the target image finishes executing the industrial control algorithm, the client issues a cancel deployment instruction; 8) The server cancels the deployment of the corresponding industrial control algorithm to reduce memory occupancy. Specifically, it can cancel the deployment of the image of this industrial control algorithm, and canceling the image of the target industrial control algorithm can cancel the container where this image is located.

[0073] It can be seen that through the embodiments of this application, obtain the task logic corresponding to the target industrial control task, where the target industrial control task includes at least one industrial control algorithm, and the task control logic includes the execution logic of at least one industrial control algorithm; on this basis, the algorithm packages of at least one industrial control algorithm are deployed in the pre-built target image. Since this target image is obtained based on the operating environment required by the target industrial control task, deploying at least one algorithm to be deployed based on this target image meets the requirements of the corresponding operating environment of the scenario to be built, and the integration of each algorithm can be realized; further, for any industrial control algorithm, use the configuration interaction component corresponding to the industrial control algorithm to configure the operating parameters of the algorithm package of the industrial control algorithm based on the task logic; run the algorithm packages of at least one industrial control algorithm in the target image to execute the target industrial control task, and realize the flexible combination of each industrial control algorithm corresponding to the target industrial control task.

[0074] On the basis that the industrial control algorithm corresponding to the industrial control algorithm task can be executed, a target image corresponding to the operating environment is provided. Therefore, corresponding to the above embodiments, the embodiments of the present application also disclose a mirror deployment method, as Figure 4 shown, which includes the following steps: In step S401, a target image is obtained based on the operating environment required for the target industrial control task.

[0075] Among them, the target industrial control task includes at least one industrial control algorithm.

[0076] Exemplarily, the implementation manner of obtaining the target image in the embodiments of the present application is as Figure 2 the manner of obtaining the target image in the corresponding embodiment, which will not be elaborated here.

[0077] In step S402, algorithm packages of at least one industrial control algorithm are deployed in the target image. Among them, the operation of the algorithm packages of at least one industrial control algorithm in the target image is used to execute the target industrial control task, and the operation parameters of the algorithm packages of the industrial control algorithm are configured based on the task logic of the target industrial control task, and the task logic includes the execution logic of at least one industrial control algorithm.

[0078] Exemplarily, as Figure 5 shown, it is a framework diagram for deploying the target image in the embodiments of the present application. For any industrial control algorithm corresponding to the target industrial control task, after splitting the industrial control algorithm into each algorithm component, prepare the basic (Base) libraries, frameworks, and software development kits (SDKs) relied on by each algorithm component as the basis for running the industrial control algorithm. Develop each algorithm into functional development, provide the main method entry, and realize the call of the algorithm. After building the basic environment and dependency files of the algorithm, package the corresponding algorithm into an algorithm package for subsequent mirror deployment to deploy the corresponding algorithm.

[0079] When performing mirror deployment, first create an initial mirror, pull the algorithm packages corresponding to at least one industrial control algorithm in the initial mirror, and then use the created container group (Pod). The container group is a scheduling unit in K8S and is a running instance of a certain application. Each container group encapsulates the following contents: one or more application containers; one or more storage resources shared by the application containers, such as data volumes (Volume); one or more Internet Protocol (IP) addresses shared by the application containers; configuration information for running the application containers, such as environment variables, command line parameters, etc., used to control how the application containers start and run.

[0080] Specifically, after pulling the algorithm package and determining the target framework corresponding to the algorithm package in the pre-configured framework library, the algorithm package is integrated into the target framework to achieve the loading of the algorithm package corresponding to the industrial control algorithm. After loading the algorithm package, the model can also be downloaded through the SDK to start the algorithm. The above process of pulling the code, injecting the framework, and starting the algorithm is carried out in the Pod managed by the Deployment created in K8S. The Deployment is responsible for managing the life cycle of the container Pod to ensure the high availability of the service. By creating Pods, isolation between corresponding algorithms can be achieved, which helps prevent interference between different industrial control algorithms. Moreover, the creation and deletion of Pods can be adjusted in real time according to changes in the algorithm package to correspond to different industrial control algorithms for different industrial control tasks.

[0081] As Figure 6 shown, it is the overall architecture diagram of the execution method and image deployment method of the industrial control task of this application, including the entire process from the front-end control (configuration interaction component) to the algorithm framework, and then to deployment and scheduling. The following is a detailed description of Figure 6 each part: The front-end control (configuration interaction component) includes: industrial model configuration controls, such as configuration controls for industrial models like Manual Valve (MV) / Control Valve (CV) / Diaphragm Valve (DV), etc.; parameter specification configuration controls, such as text boxes, buttons, trend charts, etc.; algorithm development configuration controls, such as those supporting JavaScript Object Notation (JSON), Python, Structured Query Language (SQL), etc., which are used for algorithm development. The algorithm component library corresponding to each configuration control contains various predefined algorithm components, for example: model predictive control, PID control, modeling optimization. Exemplarily, custom configuration interaction components can be developed. Based on the linear combination of these configuration interaction components, it can correspond to the algorithm package, where the algorithm package is the algorithm code obtained after developing and compressing the industrial control algorithm, and the libraries and tools used during the algorithm development, such as SDK, tools, frameworks, Base Environment (Base Env), etc.

[0082] During the actual use process, as Figure 6It is necessary to process the perception data of the camera, and accordingly analyze the timing data and historical data. Based on this requirement, the corresponding algorithm package is selected through the configuration interaction component at the front end, and the corresponding industrial control algorithm is deployed in the target image. After the corresponding industrial control algorithm is deployed, the corresponding industrial control algorithm is called and executed according to the task logic, such as Figure 6 The configuration arrangement shown can include devices, data fusion, image algorithms, optimization recommendations, PID control algorithms, filtering, trend monitoring, and model predictive control (MPC) algorithms, etc.

[0083] It can be seen that through the embodiments of the present application, obtaining the target image based on the operating environment required for the target industrial control task can quickly deploy the industrial control algorithm and shorten the online time, where the target industrial control task includes at least one industrial control algorithm; deploying the algorithm packages of at least one industrial control algorithm in the target image, and the update and maintenance of the algorithm packages are easier, and the algorithm upgrade can be achieved by updating the image; the operation of the algorithm packages of at least one industrial control algorithm in the target image is used to execute the target industrial control task, and the operation parameters of the algorithm packages of the industrial control algorithm are configured based on the task logic of the target industrial control task, and the task logic includes the execution logic of at least one industrial control algorithm. Running the algorithm in a controlled environment can reduce accidental errors and improve the reliability and stability of the system.

[0084] The above implementation steps can also be implemented by software modules to achieve the corresponding functions. Corresponding to the above method for executing an industrial control task, an embodiment of the present application can also provide an apparatus for executing an industrial control task.

[0085] Such as Figure 7 shown, an apparatus for executing an industrial control task is provided, and the apparatus may include: a task logic acquisition module 701, a configuration module 702, and an operation module 703.

[0086] For example: the task logic acquisition module 701 is used to acquire the task logic corresponding to the target industrial control task, where the target industrial control task includes at least one industrial control algorithm, and the task logic includes the execution logic of the at least one industrial control algorithm. The algorithm packages of the at least one industrial control algorithm are deployed in a pre-built target image, and the target image is obtained based on the operating environment required for the target industrial control task; the configuration module 702 is used to, for any industrial control algorithm, configure the operation parameters of the algorithm package of the industrial control algorithm based on the task logic by using the configuration interaction component corresponding to the industrial control algorithm; the operation module 703 is used to run the algorithm packages of the at least one industrial control algorithm in the target image to execute the target industrial control task.

[0087] Optionally, at least one of a parameter specification configuration control, an algorithm development configuration control, and an industrial model configuration control is provided in the configuration interaction component; the operating parameters include input parameters and output parameters, and the parameter specification configuration control is used to configure the input parameters and output parameters of the corresponding industrial control algorithm; or, the operating parameters include algorithm call parameters and algorithm editing parameters, and the algorithm development configuration control is used to configure the algorithm call parameters and algorithm editing parameters of the corresponding industrial control algorithm; or, the operating parameters include control model call parameters and control model configuration parameters, and the industrial model configuration control is used to configure the control model call parameters and control model configuration parameters of the corresponding industrial control algorithm.

[0088] Optionally, the acquisition task logic module is further configured to: obtain the target image based on the operating environment required by the target industrial control task; copy the algorithm packages corresponding to the at least one industrial control algorithm into the target image; for any industrial control algorithm, determine the algorithm type corresponding to the industrial control algorithm, screen a target framework corresponding to the algorithm type in the framework library based on the algorithm type, and call the target framework to configure the loading parameters of the algorithm package corresponding to the industrial control algorithm, where the loading parameters are used to deploy the algorithm package.

[0089] Optionally, the operating environment includes operating environment parameters and running dependency files, and the device further includes a target image building module, configured to: obtain an image building requirement, where the image building requirement includes operating environment parameters and running dependency files; screen an initial image corresponding to the operating environment parameters in a pre-built image library; copy the running dependency files into the initial image, and set a startup instruction for the running dependency files to obtain the target image, where the startup instruction is used to run the running dependency files when the target image is started.

[0090] Optionally, the device further includes an algorithm package deployment module, configured to: in response to obtaining an algorithm update instruction, determine an algorithm identifier and algorithm version information corresponding to the algorithm update instruction; determine a to-be-updated algorithm package corresponding to the algorithm identifier in the target image; in response to the historical version of the to-be-updated algorithm package including the algorithm package corresponding to the target version corresponding to the algorithm version information, update the to-be-updated algorithm package to the target version; or, in response to the historical version of the to-be-updated algorithm not including the target version, obtain the algorithm package corresponding to the target version, and deploy the algorithm package corresponding to the target version in the target image.

[0091] Optionally, the operation module 703 is further configured to: determine the allocation order of allocating computing power resources to the at least one industrial control algorithm based on the computing power priority of the industrial control algorithm; allocate computing power resources corresponding to each industrial control algorithm to each industrial control algorithm according to the allocation order; and call the computing power resources to run the corresponding industrial control algorithm according to the allocation order.

[0092] Optionally, the operation module 703 is further configured to: in response to the number of available computing power resources being less than the total computing power of the at least one industrial control algorithm, determine the allocation ratio of the industrial control algorithm in the available computing power resources based on the computing power priority of the industrial control algorithm; and allocate computing power resources corresponding to the allocation ratio of the corresponding industrial control algorithm to each industrial control algorithm according to the allocation order.

[0093] As Figure 8 shown, a mirror deployment device is provided. The device may include: an obtaining target mirror module 801, configured to obtain a target mirror based on the operating environment required by a target industrial control task, where the target industrial control task includes at least one industrial control algorithm; and a deployment module 802, configured to deploy algorithm packages of the at least one industrial control algorithm in the target mirror, where the running of the algorithm packages of the at least one industrial control algorithm in the target mirror is used to execute the target industrial control task, and the running parameters of the algorithm packages of the industrial control algorithm are configured based on the task logic of the target industrial control task, and the task logic includes the execution logic of the at least one industrial control algorithm.

[0094] It can be understood that Figure 7 and Figure 8 the division of each module above is only a division of logical functions. In actual implementation, the functions of the above-mentioned modules can be integrated into the hardware entity of the electronic device for implementation.

[0095] For the functions of each module in each device of the embodiments of the present application, reference may be made to the corresponding descriptions in the above methods, and the corresponding beneficial effects are achieved, which will not be elaborated here.

[0096] Figure 9 It is a block diagram of an electronic device for implementing the embodiments of the present application. As Figure 9 shown, the electronic device includes: a memory 901 and a processor 902. The memory 901 stores a computer program that can run on the processor 902. When the processor 902 executes the computer program, the methods in the above embodiments are implemented. The number of the memory 901 and the processor 902 may be one or more. Specifically, the electronic device may further include a communication interface 903 for communicating with external devices and performing data interaction and transmission.

[0097] In specific implementation, if the memory 901, the processor 902, and the communication interface 903 are implemented independently, the memory 901, the processor 902, and the communication interface 903 can be interconnected through a bus and communicate with each other. This bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. This bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience of representation, Figure 9 only a thick line is used to represent it in the figure, but it does not mean that there is only one bus or one type of bus.

[0098] Optionally, in specific implementation, if the memory 901, the processor 902, and the communication interface 903 are integrated on a chip, the memory 901, the processor 902, and the communication interface 903 can communicate with each other through an internal interface.

[0099] The embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the program is executed by a processor, the method provided in the embodiment of the present application is implemented.

[0100] The embodiment of the present application provides a computer program product, including a computer program. When the program is executed by a processor, the method provided in the embodiment of the present application is implemented.

[0101] The embodiment of the present application further provides a chip, which includes a processor for calling and running an instruction stored in a memory from the memory, so that a communication device installed with the chip executes the method provided in the embodiment of the present application.

[0102] The embodiment of the present application further provides a chip, including: an input interface, an output interface, a processor, and a memory. The input interface, the output interface, the processor, and the memory are connected through an internal connection path. The processor is used to execute the code in the memory. When the code is executed, the processor is used to execute the method provided in the embodiment of the application.

[0103] It should be understood that the above-mentioned processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor, etc. It is worth noting that the processor can be a processor that supports the advanced risc machines (ARM) architecture.

[0104] Further, optionally, the above-mentioned memory may include a read-only memory and a random access memory. The memory can be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory can include a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can include a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus random access memory (DR RAM).

[0105] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions according to the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium.

[0106] In the description of this specification, the descriptions with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples", etc. mean that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present application. Moreover, the specific features, structures, materials, or characteristics described can be combined in a suitable manner in any one or more embodiments or examples. In addition, without contradiction, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples.

[0107] In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" can explicitly or implicitly include at least one of the features. In the description of the present application, "a plurality" means two or more, unless otherwise specifically defined.

[0108] Any process or method described in the flowchart or otherwise described herein can be understood to represent a module, segment, or part of code including one or more executable instructions for implementing a specific logical function or process. And the scope of the preferred embodiments of the present application includes additional implementations, where the functions can be executed in a substantially simultaneous manner or in a reverse order according to the functions involved, rather than in the order shown or discussed.

[0109] The logic and / or steps described in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing a logical function, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other systems that can fetch and execute instructions from the instruction execution system, apparatus, or device), or in combination with these instruction execution systems, apparatuses, or devices.

[0110] It should be understood that each part of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. All or part of the steps of the method in the above embodiments can be completed by a program instructing relevant hardware. The program can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiment.

[0111] In addition, each functional unit in various embodiments of the present application can be integrated in a processing module, or each unit can exist physically alone, or two or more units can be integrated in a module. The above integrated module can be implemented in the form of hardware or in the form of a software functional module. If the above integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. The storage medium can be a read-only memory, a magnetic disk or an optical disc, etc.

[0112] As mentioned above, only the exemplary embodiments of the present application are described, but the protection scope of the present application is not limited thereto. Any person skilled in the art in the technical scope recorded in the present application can easily think of various changes or substitutions, and these should all be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A method for executing an industrial control task, comprising: Obtaining the task logic corresponding to the target industrial control task, wherein the target industrial control task includes at least one industrial control algorithm, the task logic includes the execution logic of the at least one industrial control algorithm, and algorithm packages of the at least one industrial control algorithm are deployed in a pre-constructed target image, and the target image is obtained based on the operating environment required by the target industrial control task; For any industrial control algorithm, using the configuration interaction component corresponding to the industrial control algorithm, configuring the operating parameters of the algorithm package of the industrial control algorithm based on the task logic; Running the algorithm packages of the at least one industrial control algorithm in the target image to execute the target industrial control task.

2. The method according to claim 1, wherein At least one of a parameter specification configuration control, an algorithm development configuration control, and an industrial model configuration control is set in the configuration interaction component; The operating parameters include input parameters and output parameters, and the input parameters and output parameters of the corresponding industrial control algorithm are configured using the parameter specification configuration control; or, The operating parameters include algorithm call parameters and algorithm editing parameters, and the algorithm call parameters and algorithm editing parameters of the corresponding industrial control algorithm are configured using the algorithm development configuration control; or, The operating parameters include control model call parameters and control model configuration parameters, and the control model call parameters and control model configuration parameters of the corresponding industrial control algorithm are configured using the industrial model configuration control.

3. The method according to claim 1, wherein Before running the algorithm packages of the at least one industrial control algorithm in the target image, it further includes: Obtaining the target image based on the operating environment required by the target industrial control task; Copying the algorithm packages corresponding to the at least one industrial control algorithm into the target image; For any industrial control algorithm, determining the algorithm type corresponding to the industrial control algorithm, screening a target framework corresponding to the algorithm type in the framework library based on the algorithm type, and calling the target framework to configure the loading parameters of the algorithm package corresponding to the industrial control algorithm, where the loading parameters are used for deploying the algorithm package.

4. The method according to claim 3, wherein The operating environment includes operating environment parameters and operating dependency files. Before obtaining the target image based on the operating environment required by the target industrial control task, the method further includes: Obtaining the image construction requirements, where the image construction requirements include the operating environment parameters and the operating dependency files; Screening an initial image corresponding to the operating environment parameters in a pre-constructed image library; Copying the operating dependency files into the initial image and setting the startup instruction of the operating dependency files to obtain the target image, where the startup instruction is used to run the operating dependency files when the target image is started.

5. The method according to any one of claims 1-4, wherein, The method further includes: In response to obtaining an algorithm update instruction, determining the algorithm identifier and algorithm version information corresponding to the algorithm update instruction; Determining the algorithm package to be updated corresponding to the algorithm identifier in the target image; In response to the target version corresponding to the algorithm version information being included in the historical version of the algorithm package to be updated, updating the algorithm package to be updated to the algorithm package corresponding to the target version; or, in response to the target version not being included in the historical version of the algorithm to be updated, obtaining the algorithm package corresponding to the target version and deploying the algorithm package corresponding to the target version in the target mirror.

6. The method according to any one of claims 1 to 4, wherein Running the algorithm packages of the at least one industrial control algorithm in the target mirror includes: Determining the allocation order of computing power resources for the at least one industrial control algorithm based on the computing power priority of the industrial control algorithm; Allocating computing power resources corresponding to each industrial control algorithm to each industrial control algorithm according to the allocation order; Invoking the computing power resources in the target mirror to run the algorithm packages of the corresponding industrial control algorithms according to the allocation order.

7. The method according to claim 6, wherein The allocating computing power resources corresponding to each industrial control algorithm to each industrial control algorithm according to the allocation order includes: In response to the number of available computing power resources being less than the total computing power of the at least one industrial control algorithm, determining the allocation ratio of the industrial control algorithm in the available computing power resources based on the computing power priority of the industrial control algorithm; Allocating computing power resources corresponding to the allocation ratio of the corresponding industrial control algorithm to each industrial control algorithm according to the allocation order.

8. A mirror deployment method, including: Obtaining a target mirror based on the operating environment required by a target industrial control task, where the target industrial control task includes at least one industrial control algorithm; Deploying the algorithm packages of the at least one industrial control algorithm in the target mirror, where the running of the algorithm packages of the at least one industrial control algorithm in the target mirror is used to execute the target industrial control task, and the running parameters of the algorithm packages of the industrial control algorithm are configured using the configuration interaction component corresponding to the industrial control algorithm and based on the task logic, and the task logic includes the execution logic of the at least one industrial control algorithm.

9. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein, The computer program is run by the processor to cause the electronic device to execute the method according to any one of claims 1-8.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, The program is executed by the processor to implement the method according to any one of claims 1-8.

11. A computer program product, characterized in that, Including instructions that, when run on a computer, cause the computer to execute the method according to any one of claims 1-8.

Citation Information

Patent Citations

  • Computing power resource allocation method and device

    CN110995614A

  • Docker-based remote sensing intelligent processing algorithm management method

    CN112527319A

  • Mirror image generation method and device based on container service, equipment and medium

    CN115202729A

  • Algorithm service processing method and device based on Docker container and medium

    CN115562690A

  • Online editing algorithm device deployment method

    CN115756829A

Cited By

  • Screw anchor foundation grouting pressure-flow-deformation intelligent coupling control method

    CN120595568A

  • An intelligent coupling control method for pressure-flow-deformation of spiral anchor foundation grouting

    CN120595568B