Construction method, system and equipment for operation process of industrial control system and medium
By building a database storage to separate execution action items and configure thread pools, the problem of long development cycle of industrial control systems is solved, the multiplexing and modular design of execution action items is realized, and the development efficiency and system flexibility are improved.
Patent Information
- Application Number
- CN202410882427.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-11-15
AI Technical Summary
Existing industrial control systems require the development of customized software from scratch for each control component, resulting in long development cycles, low efficiency and uncertain quality.
By building a database to store split execution action items, loading the default scheme, configuring the thread pool and calling the execution action items, obtaining control instructions to trigger the dispatch node, and responding to the instructions to execute related operation processes, realizing the reuse and modularization of the execution action items design.
The development process of industrial control systems is simplified, development efficiency is improved, development difficulty is reduced, and execution action items are reused, avoiding redevelopment for each system.
Smart Images

Figure CN118963259A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of industrial control systems, and in particular to a construction method, system, device and medium of an industrial control system. Background Art
[0002] Industrial Control Systems (ICS) is a business process management system that ensures the automated operation, process control and monitoring of industrial infrastructure, which is composed of various automation control components and process control components that collect and monitor real-time data. In order to meet the requirements of specific industrial environments, personalized production needs, improved production efficiency, integration and compatibility, safety and reliability, and technological upgrading, the demand for customization of industrial control systems is increasing.
[0003] Based on the customization requirements of ICS, ICS needs to carry out highly customized software packaging and development for control components such as programmable logic controller (PLC), motion card, robotic arm, camera, servo, and manufacturing execution system (MES) interaction. At present, each ICS needs to be developed and designed separately, which increases the workload and development difficulty of developers, resulting in a long development cycle, and also increases the uncertainty of delivery quality. Summary of the invention
[0004] The present disclosure provides an industrial control system operation process method, device, equipment and storage medium to at least solve the above technical problems existing in the prior art.
[0005] According to a first aspect of the present disclosure, a method for constructing an industrial control system operation process is provided, the method comprising:
[0006] Constructing a database, wherein the database is used to store the separable execution action items corresponding to the control device;
[0007] Loading a default solution, wherein the default solution at least includes control device information, execution action items, process sequence, scheduling nodes, and variable pool initial parameters;
[0008] Configure the thread pool based on the default solution and call the execution action item corresponding to each thread from the database;
[0009] Acquire a control instruction, where the control instruction is used to trigger the scheduling node;
[0010] In response to the control instruction, an operation process associated with the scheduling node triggered by the control instruction is executed.
[0011] In one embodiment, the method further comprises:
[0012] A termination instruction is obtained, and the running process is terminated in response to the termination instruction.
[0013] In one possible implementation, configuring the thread pool based on the default solution and calling the execution action item corresponding to each thread from the database includes:
[0014] determining whether there is an executable process in the default scheme;
[0015] If there is an executable process in the default solution, a thread pool including multiple threads is configured based on the control device information and the execution action item;
[0016] The execution action item corresponding to each thread is called based on the database.
[0017] In one possible implementation, determining whether there is an executable process in the default solution includes:
[0018] If there is a process that meets the preset conditions in the default solution, it is determined that there is an executable process.
[0019] In one possible implementation, the scheduling node at least includes a solution scheduling node, a process scheduling node, and an action scheduling node;
[0020] If the solution scheduling node exists, executing the operation process associated with the solution scheduling node;
[0021] If the process scheduling node exists, executing the running process associated with the process scheduling node;
[0022] If the action scheduling node exists, the operation process associated with the action scheduling node is executed.
[0023] In one possible implementation, the obtaining of the control instruction includes:
[0024] If the data in the variable pool changes, and / or
[0025] If the event in the event pool is updated, it is determined that the control instruction is obtained.
[0026] According to a second aspect of the present disclosure, a system for constructing an operation process of an industrial control system is provided, wherein the system comprises:
[0027] A construction module, used to construct a database, wherein the database is used to store the separable execution action items corresponding to the control device;
[0028] A loading module, used to load a default solution, wherein the default solution at least includes control device information, execution action items, process sequence, scheduling nodes, and variable pool initial parameters;
[0029] A configuration module, configured to configure the thread pool based on the default solution and call the execution action item corresponding to each thread from the database;
[0030] A first acquisition module, used to acquire a control instruction, where the control instruction is used to trigger the scheduling node;
[0031] A response module, used to respond to the control instruction and execute the operation process associated with the scheduling node triggered by the control instruction
[0032] In one embodiment, the system further includes:
[0033] The second acquisition module is used to acquire a termination instruction and terminate the running process in response to the termination instruction.
[0034] According to a third aspect of the present disclosure, there is provided an electronic device, including:
[0035] at least one processor; and
[0036] a memory communicatively connected to the at least one processor; wherein,
[0037] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the present disclosure.
[0038] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute the method described in the present disclosure.
[0039] The method, device, equipment and storage medium for constructing the operation process of the industrial control system disclosed in the present invention first construct a detachable execution action item corresponding to the control device, and then load the default scheme, wherein the default scheme at least includes the control device information, execution action item, process sequence, scheduling node and variable pool initial parameters; then configure the thread pool based on the default scheme and call the execution action item corresponding to each thread from the database; then obtain the control instruction, the control instruction is used to trigger the scheduling node; finally, in response to the control instruction, execute the operation process associated with the scheduling node triggered by the control instruction. This solution encapsulates the detachable execution action item into a modular unit and stores it in the database; then calls and executes the corresponding execution action item from the database based on the loaded default scheme, and when the scheduling node is triggered, the operation process associated with the scheduling node can be executed. This solution can realize the reuse of execution action items, without the need to redevelop execution action items for each industrial control system, thereby improving the development efficiency of the industrial control system and simplifying the construction process of the operation process of the industrial control system.
[0040] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The above and other objects, features and advantages of the exemplary embodiments of the present disclosure will become readily understood by reading the detailed description below with reference to the accompanying drawings. In the accompanying drawings, several embodiments of the present disclosure are shown in an exemplary and non-limiting manner, in which:
[0042] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.
[0043] Figure 1 A flow chart showing a method for constructing an industrial control system operation process according to an embodiment of the present disclosure is shown;
[0044] Figure 2 A flow chart showing another method for constructing an operation process of an industrial control system according to an embodiment of the present disclosure is shown;
[0045] Figure 3 A flow chart showing another method for constructing an operation process of an industrial control system according to an embodiment of the present disclosure is shown;
[0046] Figure 4 A schematic diagram of the structure of a system for constructing an operation process of an industrial control system according to an embodiment of the present disclosure is shown;
[0047] Figure 5 A structural schematic diagram of a system for constructing an operation process of an industrial control system according to another embodiment of the present disclosure is shown;
[0048] Figure 6 A schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0049] In order to make the purpose, features, and advantages of the present disclosure more obvious and easy to understand, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0050] Industrial control systems are key systems that ensure the automated operation of industrial infrastructure and process control and monitoring. The core of industrial control systems lies in the integration and collaboration of various automated control components. Different industrial application scenarios have specific requirements for the functions and performance of control systems. For example, some production lines may require robotic arms to achieve high-precision operations, while other scenarios may require cameras for real-time image recognition. Therefore, in order to meet these specific business needs, customized software packaging and development of control units must be performed. At present, for customized industrial control systems, it is necessary to write the functions of each control component from scratch, resulting in a long development cycle and low efficiency. Based on this, the present disclosure provides a method for constructing an industrial control system operation process, which aims to reduce the development cycle of industrial control systems and improve the efficiency of constructing operation processes.
[0051] like Figure 1 A flow chart of a method for constructing an industrial control system operation process provided by an embodiment of the present disclosure is shown, and the method includes:
[0052] S1. Construct a database, where the database is used to store the separable execution action items corresponding to the control device.
[0053] By building a database to store the separable execution action items corresponding to the control device, it is necessary to define the data structure and the relationship between them. For example, a relational database (such as MySQL, PostgreSQL, etc.) can be built. The database includes the specific relationship between the control device, the execution function and the execution action items. One control device can have multiple execution functions, and one execution function consists of multiple execution action items. These execution action items are executed in a corresponding execution order.
[0054] For example, the database stores relevant information about the control device, including fields related to the control device, such as device ID, device name, and device description. The database also includes information for storing execution functions, such as function ID, function name, function description, and the device ID to which it belongs; the database also includes information for storing execution action items, such as action item ID, action item name, action item description, function ID to which it belongs, and split order (used to indicate the execution order of the execution action items in the function). When there are new control devices or new execution functions or new execution action items, the database can be further expanded or updated, for example, by using SQL statements to build new commands or update commands.
[0055] In a specific example, the control device takes a robot as an example, and its corresponding execution functions include function 1: parts grabbing and placement; function 2: quality inspection and screening; function 3: tool replacement and maintenance.
[0056] The execution actions corresponding to function 1 include:
[0057] Action 1: The robot moves to the designated parts storage location;
[0058] Action 2: The robot grabs the parts;
[0059] Action 3: The robot moves to the notebook assembly position;
[0060] Action 4: The robot places parts precisely.
[0061] The execution action items corresponding to function 2 include:
[0062] Action 5: The robot grabs the assembled notebook;
[0063] Action 6: The robot moves the notebook to the quality inspection table;
[0064] Action 7: Perform quality inspection through sensors (such as cameras, weight sensors, etc.) (this step is performed by other control devices);
[0065] Action 8: Based on the inspection results, the robot classifies the notebooks and places them in the qualified or unqualified product area.
[0066] By building a database and performing modular design on the execution action items, a complex system can be split into several relatively independent modules, each of which is responsible for implementing a specific function. This can reduce the difficulty of development, improve development efficiency, and facilitate subsequent maintenance and expansion.
[0067] S2. Load a default solution, wherein the default solution at least includes control device information, execution action items, process sequence, scheduling nodes, and variable pool initial parameters.
[0068] The default scheme is a serialized file, where the serialization method can be JSON, XML, YAML, etc. The default scheme includes control device information, execution action items, process sequence, scheduling nodes, and variable pool initial parameters. The control device information includes device ID, device type, device function, IP address, etc. Execution action items and process sequence include the name, parameters, dependencies, and execution order of each action. Scheduling nodes are key nodes in the marking process, such as start, end, branch points, etc. The variable pool initialization parameters are to set the initial variable values, which are used for conditional judgment and action execution in the process.
[0069] In one example, the default scenario includes:
[0070] Control device information: robot ID, conveyor belt ID, camera ID, etc.
[0071] Execution action items and process sequence: the execution sequence of a series of actions such as parts loading, robot assembly, quality inspection, and finished product unloading;
[0072] Scheduling nodes: including start nodes, assembly completion inspection nodes, quality inspection nodes, etc.;
[0073] Variable pool initialization parameters: such as parts inventory, product quality threshold, etc.
[0074] S3. Configure the thread pool based on the default solution and call the execution action item corresponding to each thread from the database.
[0075] Based on the default solution, parallel tasks are determined, and then a thread pool containing multiple threads is configured, and different tasks are assigned to each thread, where each thread can be executed in parallel. For example, the tasks corresponding to each thread in the thread pool are as follows:
[0076] Thread 1: responsible for loading parts and ensuring sufficient supply of parts on the conveyor belt;
[0077] Thread 2: The robot grabs parts from the conveyor belt and assembles them;
[0078] Thread 3: Use the camera to perform quality detection and send the results to the server.
[0079] Based on the tasks performed by each thread, it is necessary to call the execution action items corresponding to each thread from the database. Continuing with the above example, thread 2 is responsible for grabbing parts and assembling them; the execution action items called from the database are:
[0080] Action 1: The robot moves to the designated parts storage location;
[0081] Action 2: The robot grabs the parts;
[0082] Action 3: The robot moves to the notebook assembly position;
[0083] Action 4: The robot places parts precisely.
[0084] S4. Obtain a control instruction, where the control instruction is used to trigger the scheduling node.
[0085] For example, when there is a need for fast switching of the production line, or when the production line starts running, if a device failure or emergency is detected, or in the main control process, according to the current state and the triggered event (, the next action is determined by the action execution function and jump judgment, the corresponding control instruction will be obtained and the scheduling node associated with the control instruction will be triggered.
[0086] S5. In response to the control instruction, execute the operation process associated with the scheduling node triggered by the control instruction.
[0087] Based on the scheduling node triggered by the control instruction, the operation process associated with the scheduling node is executed.
[0088] In one example, the scheduling node includes at least a solution scheduling node, a process scheduling node, and an action scheduling node;
[0089] If the solution scheduling node exists, executing the operation process associated with the solution scheduling node;
[0090] If the process scheduling node exists, executing the running process associated with the process scheduling node;
[0091] If the action scheduling node exists, the operation process associated with the action scheduling node is executed.
[0092] For example, when there is a need for rapid switching on the production line, when the production line needs to switch to another product assembly, a new assembly plan can be defined in advance; when a production switching instruction is received or the current product inventory reaches a threshold, the control instruction is obtained and the plan scheduling logic node is triggered to load and execute the new assembly plan.
[0093] For example, when the robot assembly and inspection process is started, when the robot completes the assembly, this process scheduling node is triggered for preliminary inspection. If there is a problem, rework or alarm is issued. When the camera completes the quality inspection, it decides whether to proceed to the next step based on the result (if qualified, it will proceed to finished product unloading, if unqualified, it will be repaired).
[0094] For example, when executing an action item, if the robot successfully grabs the part and completes the assembly, the action scheduling node is triggered to jump to the quality inspection action; if the robot fails to grab the part, the action scheduling node is triggered to jump to the fault handling action, such as restarting the robot or manual intervention.
[0095] In the above scheme, a splittable execution action item corresponding to the control device is first constructed, and then a default scheme is loaded, wherein the default scheme includes at least the control device information, execution action item, process sequence, scheduling node and variable pool initial parameters; then the thread pool is configured based on the default scheme and the execution action item corresponding to each thread is called from the database; then the control instruction is obtained, and the control instruction is used to trigger the scheduling node; finally, in response to the control instruction, the operation process associated with the scheduling node triggered by the control instruction is executed. This scheme encapsulates the splittable execution action item into modular units and stores them in the database; then, based on the loaded default scheme, the corresponding execution action item is called and executed from the database, and when the scheduling node is triggered, the operation process associated with the scheduling node can be executed. This scheme can realize the reuse of execution action items, without the need to redevelop execution action items for each industrial control system, thereby improving the development efficiency of the industrial control system and simplifying the construction process of the operation process of the industrial control system.
[0096] In one example, if Figure 2 As shown, the method also includes:
[0097] S6. Obtain a termination instruction, and terminate the running process in response to the termination instruction.
[0098] When there is no running process (i.e. no thread) and there are no executable actions in the thread, a termination instruction is obtained; for example, when the parts loading thread detects that the inventory is sufficient, the thread ends; when all threads end, such as when all products are assembled and tested, the entire running process ends, and the system enters standby mode or waits for the next production instruction.
[0099] In one example, configuring the thread pool based on the default solution and calling the execution action item corresponding to each thread from the database includes:
[0100] determining whether there is an executable process in the default scheme;
[0101] If there is an executable process in the default solution, a thread pool including multiple threads is configured based on the control device information and the execution action item;
[0102] The execution action item corresponding to each thread is called based on the database.
[0103] If there is a process that meets the preset conditions in the default solution, it is determined that there is an executable process. The preset conditions include that the process is defined in the database structure and there is no problem with the process verification; the process verification is no problem means that the process can be executed normally without missing parameters, execution logic errors, unable to parse actions, etc.
[0104] For example, a process named "Robot Assembly and Inspection" is defined, which includes executable action items and scheduling nodes. Verify whether the process exists in the database structure, and check whether the parameters are complete and the execution logic is correct. If the "Robot Assembly and Inspection" process exists in the database and all parameters are complete, the executable process "Robot Assembly and Inspection" exists in the default solution.
[0105] In one example, obtaining the control instruction includes:
[0106] If the data in the variable pool changes, and / or
[0107] If the event in the event pool is updated, it is determined that the control instruction is obtained.
[0108] The variable pool is used to store the status and data during the operation process, including all dynamic data on the production line, such as product quantity, equipment status, timestamp, etc. The data changes in the variable pool are usually real-time. As each thread runs, the data in the variable pool will be continuously updated. For example, the initial number of A parts in the variable pool is 1000. As the A parts are delivered, the number of A parts in the variable pool is 150. The event pool is mainly used to manage and schedule events, including all events that may trigger changes in the control process, such as part arrival, equipment failure, etc. The event pool allows the publisher and subscriber of the event to communicate in a decoupled manner through the publish-subscribe model to achieve asynchronous processing. The variable pool and the event pool jointly achieve the purpose of data-driven, that is, when the data in the variable pool changes, the data flow drive mechanism will check these changes and trigger corresponding events.
[0109] The following is a specific example of how to dynamically control the operation process of an industrial control system through event triggering driven by data flow, including process control, solution loading, and action jump. Figure 3 Shown include:
[0110] S101. Subscribe to the variable pool and event pool.
[0111] The variable pool (V) contains all dynamic data on the production line, such as product quantity, equipment status, timestamp, etc. The event pool (E) contains all events that may trigger changes in the control process, such as part arrival, equipment failure, operator request, etc.
[0112] Variable pool: V = {v1,v2,…,v n}
[0113] Event pool: E = {e1, e2, ..., e m}
[0114] Data flow driven event trigger: D(V)→E
[0115] S102: Determine a logical node algorithm.
[0116] Conditional function of dynamic loading scheme: C(v)
[0117] Action execution function: a(v,e)
[0118] Action jump judgment:
[0119]
[0120] Among them, C(v) performs conditional judgment based on the state value in the variable pool, checking whether the state in the variable pool V meets a certain condition, such as "whether the parts inventory is lower than the threshold."
[0121] A(v,e) performs corresponding actions according to the current state v and event e, such as "start the robot to grab the part".
[0122] J(c,a) determines the next action based on condition c and the result of the current action a. If C(v) is true, it continues to execute A(v,e); otherwise, it jumps according to the preset logic.
[0123] S103: Update event.
[0124] When the data in the variable pool changes (such as new parts arriving on the conveyor belt), the data flow driving mechanism D(V)→E will check these changes and trigger corresponding events.
[0125] S104: Triggering process control, solution loading or action jump based on the updated event.
[0126] The process control includes: start, pause and terminate. Start: When the production line starts running, the start event is triggered and the default control process is loaded. Pause: If a device failure or emergency is detected, the pause event is triggered to pause the current process. Terminate: When the production line completes the current batch production or receives a termination instruction, the termination event is triggered to end the current process.
[0127] Solution loading: If the operation mode of the production line needs to be changed (such as switching to the production of new products), the solution loading event is triggered to dynamically load and execute the new control solution.
[0128] Action jump: In the main control process, according to the current state (variable pool V) and the triggered event (event pool E), the action execution function A (v, e) and jump judgment J (c, a) are used to determine the next action.
[0129] S105: Defect verification.
[0130] Defect detection function: D_f(a)
[0131] Verification operation: D_f(a)→"exception".
[0132] D_f(a): After each action is executed, D_f(a) is used to check whether a defect occurs, such as "whether the robot successfully grasps the part". If D_f(a) returns true (indicating a defect), an exception is thrown and the fault is handled according to the preset logic (such as restarting the robot, alarming, etc.). The above steps S101-S105 are repeated until the entire control process is completed or a termination instruction is received.
[0133] The above steps S101-S105 can be integrated as follows:
[0134] F ′ (v,e,a)={C(v)→A(v,e),
[0135] V={v1,v2,…,v n},
[0136] E={e1,e2,…,e m},
[0137] D(V)→E,
[0138]
[0139] (C(v)→A(v,e)) means that if the condition C(v) is true, then perform the action A(v,e).
[0140] (V) and (E) represent the variable pool and event pool respectively.
[0141] (D(V)→E) means that the data flow D(V) triggers an event in the event pool (E).
[0142] It means that for all actions (a), if the defect detection function (D f (a)) returns true, an exception is thrown. Repeat the above steps until the entire control flow is completed or a termination instruction is received. Repeat the above steps until the entire control flow is completed or a termination instruction is received.
[0143] Through the above process, a control device operation process can be built and scheduled in the industrial control system. Through thread pool configuration, action scheduling logic and data subscription update mechanism, an efficient and stable production process can be achieved, and various flexible and changeable requirements on the production line can be met.
[0144] According to an embodiment of the present disclosure, the present disclosure also provides a system for constructing an operation process of an industrial control system, such as Figure 4 As shown, the system includes:
[0145] A construction module 701 is used to construct a database, where the database is used to store the separable execution action items corresponding to the control device;
[0146] A loading module 702 is used to load a default solution, wherein the default solution at least includes control device information, execution action items, process sequence, scheduling nodes, and variable pool initial parameters;
[0147] Configuration module 703, configured to configure the thread pool based on the default solution and call the execution action item corresponding to each thread from the database;
[0148] A first acquisition module 704, used to acquire a control instruction, where the control instruction is used to trigger the scheduling node;
[0149] The response module 705 is used to respond to the control instruction and execute the operation process associated with the scheduling node triggered by the control instruction.
[0150] In one example, if Figure 5 As shown, the system also includes:
[0151] The second acquisition module 706 is used to acquire a termination instruction and terminate the running process in response to the termination instruction.
[0152] In one example, the configuration module 703 is further configured to:
[0153] determining whether there is an executable process in the default scheme;
[0154] If there is an executable process in the default solution, a thread pool including multiple threads is configured based on the control device information and the execution action item;
[0155] The execution action item corresponding to each thread is called based on the database.
[0156] In one example, the configuration module 703 is further configured to:
[0157] If there is a process that meets the preset conditions in the default solution, it is determined that there is an executable process.
[0158] In one example, the scheduling node includes at least a solution scheduling node, a process scheduling node, and an action scheduling node;
[0159] If the solution scheduling node exists, executing the operation process associated with the solution scheduling node;
[0160] If the process scheduling node exists, executing the running process associated with the process scheduling node;
[0161] If the action scheduling node exists, the operation process associated with the action scheduling node is executed.
[0162] In one example, the first acquisition module 704 is used to:
[0163] If the data in the variable pool changes, and / or
[0164] If the event in the event pool is updated, it is determined that the control instruction is obtained.
[0165] According to an embodiment of the present disclosure, there is provided an electronic device, including:
[0166] at least one processor; and
[0167] a memory communicatively connected to the at least one processor; wherein,
[0168] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the present disclosure.
[0169] According to an embodiment of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute the method described in the present disclosure.
[0170] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.
[0171] Figure 6 A schematic block diagram of an example electronic device 800 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0172] like Figure 6As shown, the device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0173] A number of components in the device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0174] The computing unit 801 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 801 performs the various methods and processes described above, such as a method for constructing an industrial control system operation process. For example, in some embodiments, the method for constructing an industrial control system operation process may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 800 via the ROM 802 and / or the communication unit 809. When the computer program is loaded into the RAM 803 and executed by the computing unit 801, one or more steps of the method for constructing the industrial control system operation process described above may be executed. Alternatively, in other embodiments, the computing unit 801 may be configured to execute the method for constructing the industrial control system operation process in any other appropriate manner (eg, by means of firmware).
[0175] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0176] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0177] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0178] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0179] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0180] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0181] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0182] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0183] The above is only a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A method for constructing an industrial control system operation process, characterized in that: The method comprises: Constructing a database, wherein the database is used to store the separable execution action items corresponding to the control device; Loading a default solution, wherein the default solution at least includes control device information, execution action items, process sequence, scheduling nodes, and variable pool initial parameters; Configure the thread pool based on the default solution and call the execution action item corresponding to each thread from the database; Acquire a control instruction, where the control instruction is used to trigger the scheduling node; In response to the control instruction, an operation process associated with the scheduling node triggered by the control instruction is executed.
2. The method according to claim 1, characterized in that The method further includes: A termination instruction is obtained, and the running process is terminated in response to the termination instruction.
3. The method according to claim 1, characterized in that The configuring of the thread pool based on the default solution and calling the execution action item corresponding to each thread from the database includes: determining whether there is an executable process in the default scheme; If there is an executable process in the default solution, a thread pool including multiple threads is configured based on the control device information and the execution action item; The execution action item corresponding to each thread is called based on the database.
4. The method according to claim 3, characterized in that The determining whether there is an executable process in the default scheme includes: If there is a process that meets the preset conditions in the default solution, it is determined that there is an executable process.
5. The method according to claim 1, characterized in that The scheduling nodes at least include a solution scheduling node, a process scheduling node and an action scheduling node; If the solution scheduling node exists, executing the operation process associated with the solution scheduling node; If the process scheduling node exists, executing the running process associated with the process scheduling node; If the action scheduling node exists, the operation process associated with the action scheduling node is executed.
6. The method according to claim 5, characterized in that The obtaining control instruction comprises: If the data in the variable pool changes, and / or If the event in the event pool is updated, it is determined that the control instruction is obtained.
7. A system for constructing an operation process of an industrial control system, characterized in that: The system comprises: A construction module, used to construct a database, wherein the database is used to store the separable execution action items corresponding to the control device; A loading module, used to load a default solution, wherein the default solution at least includes control device information, execution action items, process sequence, scheduling nodes, and variable pool initial parameters; A configuration module, configured to configure the thread pool based on the default solution and call the execution action item corresponding to each thread from the database; A first acquisition module, used to acquire a control instruction, where the control instruction is used to trigger the scheduling node; A response module is used to respond to the control instruction and execute the operation process associated with the scheduling node triggered by the control instruction.
8. The system according to claim 7, characterized in that The system also includes: The second acquisition module is used to acquire a termination instruction and terminate the running process in response to the termination instruction.
9. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.
10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-6.
