Control method, related equipment, system, medium and program product
Obtain image data from the cloud through the terminal device and load the control instance, and use Edgecore and Cloudcore components to manage the device, which solves the problem of insufficient control flexibility of industrial field equipment and realizes real-time control and stability improvement of industrial field equipment by cloud devices.
Patent Information
- Application Number
- CN202410535652.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-29
- Publication Date
- 2024-10-22
AI Technical Summary
In the existing technology, the control flexibility of industrial field equipment is insufficient, and programmable logic controllers (PLCs) need to be deployed within the enterprise or factory for on-site control logic development and configuration, resulting in high costs, complex wiring, and inability to access external devices in real time. Real-time control of industrial field equipment cannot be achieved.
Obtain image data from cloud devices through terminal devices, load control instances and obtain control logic, control the operating status of industrial field devices based on this logic, realize indirect and flexible control of industrial field devices by cloud devices, and use Edgecore and Cloudcore components to manage edge nodes and terminal equipment to improve data transmission stability and accuracy.
It improves the stability and flexibility of the control of industrial field equipment by terminal equipment, reduces the cost of control logic development and configuration, realizes real-time control of industrial field equipment and the isolation of software and hardware control, and satisfies the industrial requirements in enterprises or factories. Control requirements for field equipment.
Smart Images

Figure CN118819081A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of remote control technology, and in particular to a control method, related equipment, system, medium and program product. Background Art
[0002] In practical applications, industrial field equipment in industrial production links are usually controlled by programmable logic controllers. These programmable logic controllers are usually deployed within the enterprise to which the industrial field equipment belongs, and the control logic between the programmable logic controllers and the industrial field equipment needs to be set on site. Therefore, the flexibility of the above-mentioned control of industrial field equipment is insufficient. Summary of the invention
[0003] Based on the above technical problems, the embodiments of the present application provide a control method, related equipment, system, medium and program product.
[0004] The present application embodiment first provides a control method applied to a terminal device, the method comprising:
[0005] Acquire control logic; wherein the control logic is included in a control instance; the control instance is obtained by the terminal device acquiring the mirror data from the cloud device and then loading the mirror data;
[0006] At least the operating state of the industrial field device is controlled based on the control logic; wherein the terminal device is pre-associated with the industrial field device through configuration parameters; and the configuration parameters include parameters of the industrial field device.
[0007] In some embodiments, the data in the mirror data is associated with the operating status of the industrial field device; the method further includes:
[0008] An Edgecore component is deployed in the terminal device, and a registration request is sent to the Cloudcore component deployed in the cloud device, so that the Cloudcore component responds to the registration request and registers the terminal device to the cloud device; wherein the registered terminal device is an edge node corresponding to the cloud node deployed in the cloud device; the Cloudcore component is used to manage the Edgecore component; and the Edgecore component is used to manage the edge node.
[0009] In some embodiments, the controlling at least the operating state of the industrial field device based on the control logic includes:
[0010] Collecting data associated with the industrial field device through a collection component deployed in the edge node;
[0011] Based on the control logic and the collected data, the operating state of the industrial field device is controlled.
[0012] In some embodiments, the method further comprises:
[0013] Collecting the collected data of the industrial field equipment through the collection component deployed in the edge node;
[0014] storing the collected data,
[0015] and / or,
[0016] The collected data is sent to the cloud node so that the cloud node can store the collected data.
[0017] In some embodiments, the method further comprises:
[0018] Receiving the configuration parameters sent by the cloud node through the Cloudcore component;
[0019] Based on the configuration parameters, the edge node is associated with the industrial field device.
[0020] The present application also provides a control method, which is applied to a cloud device; the method includes:
[0021] Get image data;
[0022] The mirror data is sent to the terminal device through the communication connection between the cloud device and the terminal device; wherein the terminal device obtains a control instance after loading the mirror data; the control instance includes a control logic; the control logic is used for the terminal device to at least control the operating status of the industrial field device; the terminal device is pre-associated with the industrial field device based on configuration parameters.
[0023] In some embodiments, a Cloudcore component is deployed in the cloud device; the method further includes:
[0024] The Cloudcore component receives a registration request sent by the Edgecore component deployed in the terminal device, and in response to the registration request, registers the terminal device to the cloud device; wherein the registered terminal device is an edge node corresponding to the cloud node deployed in the cloud device; the Cloudcore component is used to manage the Edgecore component; and the Edgecore component is used to manage the edge node.
[0025] In some embodiments, obtaining the image data includes:
[0026] The Cloudcore component responds to the acquisition request sent by the Edgecore component of the edge node to acquire the image data from the image repository of the cloud node.
[0027] In some embodiments, obtaining the image data includes:
[0028] Acquiring, through the human-computer interaction component deployed in the cloud node, a first parameter corresponding to the first operation in response to the first operation; wherein the first parameter at least includes an identification parameter indicated by the first operation;
[0029] The image data is obtained from the image repository of the cloud node based on the first parameter.
[0030] In some embodiments, the method further comprises:
[0031] Acquire, by the human-computer interaction component deployed in the cloud node, a second parameter corresponding to the second operation in response to the second operation; wherein the second parameter at least includes programming language input data indicated by the second operation;
[0032] determining the mirror data based on the second parameter;
[0033] The image data is stored in the image repository deployed in the cloud node.
[0034] In some embodiments, the method further comprises:
[0035] determining the configuration parameters;
[0036] The configuration parameters are sent to the Edgecore component of the edge node through the cloud node; wherein the configuration parameters are used by the edge node to associate the edge node with the industrial field device.
[0037] In some embodiments, the determining the configuration parameter comprises:
[0038] Collecting a third parameter through a human-computer interaction component deployed in the cloud node; wherein the third parameter includes data mapped between the identifier of the edge node and the identifier of the industrial field device;
[0039] The configuration parameter is determined based on the third parameter.
[0040] In some embodiments, the method further comprises:
[0041] The cloud node receives the collected data sent by the edge node; wherein the collected data is obtained by collecting the operating status of the industrial field equipment by the collection component deployed in the edge node;
[0042] The collected data is stored.
[0043] An embodiment of the present application also provides a terminal device, comprising a first processor and a first memory; wherein a first computer program is stored in the first memory; when the first computer program is executed by the first processor, it can implement a control method applied to the terminal device as described in any of the above.
[0044] An embodiment of the present application also provides a cloud device, which includes a second processor and a second memory; wherein a second computer program is stored in the second memory; when the second computer program is executed by the second processor, it can implement the control method applied to the cloud device as described in any of the above.
[0045] An embodiment of the present application also provides a control system, which includes the terminal device as described above, the cloud device as described above, and the industrial field device.
[0046] An embodiment of the present application further provides a computer-readable storage medium, in which a third computer program is stored; when the third computer program is executed by a processor of an electronic device, it can implement any of the control methods described above.
[0047] An embodiment of the present application further provides a computer program product, which includes a fourth computer program; when the fourth computer program is executed by a processor of an electronic device, it can implement any of the control methods described above.
[0048] The control method applied to the terminal device provided in the embodiment of the present application is that the terminal device obtains the mirror data from the cloud device, loads the mirror data to obtain the control instance, and obtains the control logic from the control instance. In this way, through the above operation, the stability and robustness of the mirror data transmission can be improved, and then the stability of the terminal device obtaining the control instance can be improved; and, the terminal device controls at least the operating state of the industrial field device based on the control logic, so that the terminal device becomes the medium for the cloud device to control the industrial field device, thereby realizing indirect and flexible control of the industrial field device through the cloud device; at the same time, the operating state of the industrial field device is controlled by the control logic contained in the control instance, thereby realizing the isolation of software control and hardware control of the industrial field device, thereby improving the flexibility of controlling the operating state of the industrial field device; on the other hand, the terminal device is pre-associated with the industrial field device through configuration parameters, and the configuration parameters include the parameters of the industrial field device. In this way, the accuracy of the corresponding association between the terminal device and the industrial field device can be improved, and the efficiency of controlling the operating state of the industrial field device based on the control logic can also be improved.
[0049] In the case where the terminal device is an internal device set up in an enterprise or factory for setting a programmable logic controller (PLC) component to control industrial field equipment within the enterprise or factory, and the control instance is a virtualized PLC instance, the control method applied to the terminal device provided in the embodiment of the present application enables the control logic based on which the industrial field equipment is controlled to be loaded from the mirror data of the cloud device, thereby overcoming the technical problem in the related art that the field control logic development and configuration needs to be performed through the control device deployed within the enterprise or factory; and, through the communication connection between the cloud device and the terminal device, the cloud device can also efficiently and flexibly send the mirror data corresponding to the control logic to the terminal device, thereby improving the flexibility and efficiency of the control of the industrial field equipment within the enterprise or factory; at the same time, by controlling the operating status of the industrial field equipment through the virtualized PLC instance, the flexibility of controlling the operating status of the industrial field equipment can also be improved, thereby meeting the control requirements of the industrial field equipment in the enterprise or factory. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 A flow chart of a control method applied to a terminal device provided in an embodiment of the present application;
[0051] Figure 2 A schematic diagram of the structure of an edge node controlling an industrial field device provided in an embodiment of the present application;
[0052] Figure 3 A schematic diagram of a control method for a cloud device according to an embodiment of the present application;
[0053] Figure 4 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application;
[0054] Figure 5 A schematic diagram of the structure of a cloud device provided in an embodiment of the present application;
[0055] Figure 6 A schematic diagram of the structure of a control system provided in an embodiment of the present application;
[0056] Figure 7 Another schematic diagram of the structure of the control system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0057] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0058] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0059] Industrial control is the core link for enterprises to implement efficient and safe production, and PLC is the most direct and widely used control device to achieve industrial control. In actual industrial production, PLC is usually deployed in the form of physical hardware around industrial field equipment in the production line, and establishes communication connection with industrial field equipment through industrial bus, thereby realizing networking between PLC and industrial field equipment, and then realizing signaling and data transmission between PLC and industrial field equipment to achieve status control of industrial field equipment.
[0060] In actual applications, devices deployed with hardware PLCs are usually deployed in a dispersed manner inside an enterprise or factory, and in order to achieve flexible control of diverse production links, it is necessary to develop and set up the control logic between the PLC and the industrial field equipment on site, and connect the hardware PLC input / output (I / O) interface or its extended I / O interface to the industrial field equipment through a wired network connection to achieve signaling and data transmission between the hardware PLC and the industrial field equipment. Obviously, during the execution of the above scheme, the on-site networking cost of the hardware PLC and the industrial field equipment is high and the wiring is complicated; and the PLC is usually deployed in the service inside the enterprise or factory, which makes it impossible for external devices to access the PLC in real time, and thus it is impossible to achieve real-time control of the industrial field equipment. Therefore, the flexibility of the above scheme is insufficient.
[0061] Based on the above technical problems, the embodiments of the present application provide a control method, related equipment, system, medium and program product.
[0062] The embodiment of the present application first provides a control method applied to a terminal device. Figure 1 A flow chart of a control method applied to a terminal device provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the method may include the following steps:
[0063] Step 101: Obtain control logic.
[0064] The control logic is included in the control instance; the control instance is obtained by loading the image data after the terminal device obtains the image data from the cloud device.
[0065] In one implementation, the terminal device may include a device disposed inside an enterprise or a factory and used to control industrial field devices; illustratively, the terminal device may include a gateway device disposed inside the enterprise or the factory.
[0066] In one embodiment, the terminal device may include a device on which KubeEdge is deployed; wherein KubeEdge is based on Kubernetes but extends the capabilities of Kubernetes.
[0067] In one implementation, the terminal device may include a physical machine device or a virtual machine device.
[0068] In one embodiment, the industrial field device may include a device installed in a production line of an enterprise or a factory and used to perform operations such as commodity production, inspection, packaging, and warehousing.
[0069] In one embodiment, the cloud device may include a device set up in the cloud; illustratively, the cloud device may include a physical machine device or a virtual machine device with a cloud node deployed in Kubernetes.
[0070] In one embodiment, a mirror set may be stored in the storage space of a cloud device; exemplarily, the mirror set may include multiple mirror data; exemplarily, the mirror data may include control logic required for controlling at least one and / or at least one industrial field device; exemplarily, the mirror data may be pre-set based on at least one of the device type, operating scenario, function, and power consumption state of the industrial field device.
[0071] In one implementation, obtaining the control logic may be achieved by the following steps:
[0072] Step 101 - 1 : Establish a communication connection between the cloud device and the edge node.
[0073] In one embodiment, the communication connection may be a long connection; illustratively, the communication connection may be a long link of WebSocket, through which long-term stable data transmission between the cloud node and the edge node may be achieved.
[0074] In one embodiment, the communication connection can be established based on the Kubernetes architecture between the terminal device and the cloud device.
[0075] In one embodiment, the above-mentioned communication connection may include a first connection and a second connection; exemplarily, the first connection can be used to realize data transmission, for example, the first connection can be used for the edge node to transmit collected data to the cloud node; exemplarily, the second connection can realize control signal transmission, for example, the second connection can be used for the edge node to send a registration request, and can also be used for the edge node to receive a registration script and configuration parameters sent by the cloud node.
[0076] Step 101 - 2 : Send an acquisition request through a communication connection, so that the cloud node responds to the acquisition request, acquires and sends the image data from the image repository of the cloud node to the edge node.
[0077] In one implementation, the acquisition request may include a number or an identifier of the requested mirror data.
[0078] In one implementation, the image collection described in the above embodiments may be stored in the image repository.
[0079] In one implementation, after receiving the acquisition request, the cloud node may acquire the image data from the image repository based on the number or identifier of the image data included in the acquisition request.
[0080] In one implementation, the cloud node may send the mirrored data to the edge node via the second connection.
[0081] Step 101 - 3 : Receive and load the image data to obtain a control instance.
[0082] In one implementation, after the terminal device receives the image data, the control instance can be obtained by loading the image data into a container deployed in the terminal device.
[0083] In one implementation, after receiving the mirror data, the terminal device may load the mirror data and determine the loaded mirror data as the control instance.
[0084] In one embodiment, the control instance may include a software-based, virtualized PLC instance.
[0085] In one implementation, the control instance may run in a container pre-deployed in the terminal device.
[0086] Step 101 - 4 : Determine the control logic based on the control instance.
[0087] In one implementation, the control logic may include at least a portion of the logical relationships such as methods, processes, and conditions for controlling the industrial field device contained in the control instance.
[0088] In one implementation, the control logic may be obtained in the following manner:
[0089] According to the current state of the industrial field device, the logical relationship in the control instance is screened, and the screened logical relationship is determined as the control logic.
[0090] Step 102: Control at least the operating state of the industrial field device based on the control logic.
[0091] The terminal device is pre-associated with the industrial field device through configuration parameters; the configuration parameters include parameters of the industrial field device.
[0092] In one implementation, the operating status of the industrial field device may include whether the industrial field device is in an operating state, whether it is in a normal operating state, and the operating mode of the industrial field device; illustratively, the operating mode may include a low power consumption mode or a full power mode, etc.
[0093] In one implementation, the configuration parameters may include a one-to-one association relationship between devices included in the industrial field device and the terminal device, and may also include a one-to-one association relationship between at least some modules included in the industrial field device and the port number of the terminal device.
[0094] In one embodiment, the configuration parameters may be embodied in the form of a configuration file; exemplarily, the configuration file may include the device identification of the industrial field device, the association relationship between the terminal identification of the terminal device and / or the port number of the terminal device; exemplarily, the device identification may include the number, name or address of the industrial field device; exemplarily, the terminal identification may include the number, name or address of the terminal device; exemplarily, the above-mentioned address may include at least one of an Internet Protocol (IP) address, a Domain Name System (DNS) address, a Media Access Control (MAC) address and a Uniform Resource Locator (URL) address.
[0095] In one implementation, the parameters of the industrial field device may include parameters such as the number, name, or address of the industrial field device.
[0096] In one embodiment, the operating state of the industrial field device can be controlled by any of the following methods:
[0097] Determine the industrial field equipment associated with the terminal device according to the configuration parameters; then analyze the control logic to determine the control parameters such as the method, conditions and timing for controlling the operating status of the modules or modules contained in the industrial field equipment, and then control the operating status of the modules or modules according to the above control parameters, thereby realizing real-time control of the operating status of the industrial field equipment.
[0098] A plurality of industrial field devices are selected based on the control logic, and the operation status of the selected industrial field devices is controlled.
[0099] As can be seen from the above, the control method applied to the terminal device provided in the embodiment of the present application is that the terminal device obtains the mirror data from the cloud device and then loads the mirror data to obtain the control instance, and obtains the control logic from the control instance, and a communication connection is established between the terminal device and the cloud device. In this way, through the above operation, the stability and robustness of the mirror data transmission can be improved, thereby improving the stability of the terminal device obtaining the control instance; and, by controlling at least the operating state of the industrial field device based on the control logic through the terminal device, the terminal device becomes the medium for the cloud device to control the industrial field device, thereby realizing indirect and flexible control of the industrial field device through the cloud device; at the same time, the operating state of the industrial field device is controlled by the control logic contained in the control instance, thereby realizing the isolation of software control and hardware control of the industrial field device, thereby improving the flexibility of controlling the operating state of the industrial field device; on the other hand, the terminal device is pre-associated with the industrial field device through configuration parameters, and the configuration parameters include the parameters of the industrial field device, so that the accuracy of the corresponding association between the terminal device and the industrial field device can be improved, and the efficiency of controlling the operating state of the industrial field device based on the control logic can also be improved.
[0100] In the case where the terminal device is an internal device set up in an enterprise or factory for setting up PLC components to control industrial field equipment within the enterprise or factory, and the control instance is a virtualized PLC instance, the control method applied to the terminal device provided in the embodiment of the present application enables the control logic based on which the industrial field equipment is controlled to be loaded from the mirror data of the cloud device, thereby overcoming the technical problem in the related technology that the field control logic development and configuration needs to be performed through the control device deployed within the enterprise or factory; and, through the communication connection between the cloud device and the terminal device, the cloud device can also efficiently and flexibly send the mirror data corresponding to the control logic to the terminal device, thereby improving the flexibility and efficiency of the control of the industrial field equipment within the enterprise or factory; at the same time, by controlling the operating status of the industrial field equipment through the virtualized PLC instance, the flexibility of controlling the operating status of the industrial field equipment can also be improved, thereby meeting the control requirements of the industrial field equipment in the enterprise or factory.
[0101] Based on the foregoing embodiments, in the control method applied to a terminal device provided in the embodiments of the present application, the data in the mirror data is associated with the operating status of the industrial field device.
[0102] In one embodiment, the data in the mirror data may be a set of pre-written executable codes for controlling the operating state of at least one industrial field device; illustratively, the above-mentioned set of executable codes may control at least one operating state in at least one scenario.
[0103] Accordingly, the control method applied to the terminal device provided in the embodiment of the present application may also perform the following operations:
[0104] The Edgecore component is deployed in the terminal device, and a registration request is sent to the Cloudcore component deployed in the cloud device, so that the Cloudcore component responds to the registration request and registers the terminal device to the cloud device.
[0105] Among them, the registered terminal device is the edge node corresponding to the cloud node deployed in the cloud device; the Cloudcore component is used to manage the Edgecore component; and the Edgecore component is used to manage the edge node.
[0106] In one implementation, a Cloudcore component and a cloud node associated with the Cloudcore component may be pre-deployed in the cloud device.
[0107] In one embodiment, the terminal device can complete the environment initialization of the terminal device by running a registration script; exemplarily, the above initialization may include identifying the version of the operating system set for the terminal device, installing necessary components including Docker, installing monitoring components and scheduled task components, etc.; exemplarily, the monitoring component may include Prometheus's Node-Exporter; exemplarily, the scheduled task component may include Corntab.
[0108] In one implementation, the terminal device can also complete the installation of Edgecore and the download of related certificates by running a registration script, so that the terminal device can register with the cloud cluster where the cloud device is located and become an edge node of the cloud cluster.
[0109] In one implementation, the Cloudcore component deployed based on the Kubernetes base in the cloud device can be connected to the Edgehub of the cloud node or edge node through the Cloudhub it contains to manage the resources in the cloud node and edge node.
[0110] In one implementation, the registration request may include parameters such as a terminal identifier of the terminal device and a deployment status of an Edgecore component in the terminal device.
[0111] In one embodiment, after receiving the registration request, the Cloudcore component can parse the registration request to obtain the terminal identifier, and determine whether the terminal device is already in a registered state based on the terminal identifier. If the terminal device is in an unregistered state, it can respond to the registration request and register the terminal device to the cloud device.
[0112] From the above, it can be seen that in the control method applied to the terminal device provided by the embodiment of the present application, the data in the mirror data is associated with the operating status of the industrial field device. In this way, in combination with the aforementioned embodiment, the control instance is obtained by acquiring and loading the mirror data through the terminal device, and the targeted control of the operating status of the industrial field device can be achieved through the control logic in the control instance; and, by deploying the Edgecore component in the terminal device and sending a registration request to the Cloudcore component deployed in the cloud device, so that the Cloudcore component responds to the registration request, registers the terminal device to the cloud device, and the registered terminal device is the edge node corresponding to the cloud node deployed in the cloud device. In this way, through the above operations, the terminal device establishes a connection with the cloud node in the form of an edge node, thereby improving the stability and robustness of the connection between the edge node and the cloud node; at the same time, since the Cloudcore component is used to manage the Edgecore component, and the Edgecore component is used to manage the edge node, the Edgecore component can achieve precise management of the edge node under the management of the Cloudcore component.
[0113] Based on the foregoing embodiments, in the control method applied to the terminal device provided in the embodiments of the present application, at least the operating state of the industrial field device is controlled based on the control logic, which can be achieved by the following steps:
[0114] Step A1: Collect data associated with industrial field equipment through a collection component deployed in an edge node.
[0115] In one embodiment, the acquisition component may include a software component capable of performing data acquisition for industrial field equipment; exemplarily, the acquisition component may perform data acquisition for the operating status, input data, output data and intermediate data of the industrial field equipment; exemplarily, the intermediate data may include data obtained by the industrial field equipment performing at least one link of processing on the input data; exemplarily, the acquisition component may include at least one of a temperature sensor, a humidity sensor, a pressure or gravity sensor, a camera and an audio collector.
[0116] Accordingly, the collected data may include the operating status of the industrial field device in at least one period or at least one moment, and may also include at least part of the input data, output data, and intermediate data.
[0117] In one embodiment, the collection component may perform data collection on the industrial field device based on the timing parameters included in the timing task component; illustratively, the collection component may include a MAPPER component.
[0118] In one embodiment, the cloud node can send configuration parameters and MAPPER components to the edge node, so that after the edge node loads the MAPPER component, it can be associated with the industrial field device based on the above configuration and perform data collection operations on the industrial field device; exemplarily, the above configuration parameters can include the custom resource definition (Custom Resource Definition, CRD) of the industrial field device; exemplarily, the CRD can be transmitted to the MAPPER component through the DeviceTwin and EventBus components deployed in the edge node.
[0119] In one implementation, the collection component may perform data collection operations through a sensor device associated with the industrial field device, thereby obtaining collected data.
[0120] Step A2: Based on the control logic and collected data, the operating status of the industrial field equipment is controlled.
[0121] In one implementation, controlling the operating state of the industrial field device may be achieved by:
[0122] The collected data is analyzed to determine the kth state of the industrial field device at the kth moment, the established state that the industrial field device should be in at the kth moment is determined based on the control logic, and then control parameters are generated based on the degree of difference between the kth state and the established state, and the operating state of the industrial field device is controlled based on the control parameters; wherein k is an integer greater than or equal to 1; the control parameters may include conditions and / or timing for controlling at least one module and / or component of the industrial field device.
[0123] From the above, it can be seen that the control method applied to the terminal device provided in the embodiment of the present application collects the collected data associated with the industrial field equipment through the collection component deployed in the edge node, and controls the operating state of the industrial field equipment based on the control logic and the collected data. In this way, by adding the collected data factor in the process of controlling the operating state of the industrial field equipment, the accuracy of the control of the industrial field equipment can be improved; and, by adding the two factors of collected data and control logic at the same time in the process of controlling the operating state of the industrial field equipment, the stability and pertinence of the control of the industrial field equipment can be improved.
[0124] Based on the above embodiments, the control method applied to the terminal device provided by the present invention may perform the following steps:
[0125] Step B1: Collect data from industrial field equipment through the collection components deployed in the edge nodes.
[0126] Step B2: storing the collected data, and / or sending the collected data to a cloud node so that the cloud node can store the collected data.
[0127] In one implementation, a first database may be provided in the edge node, so that the collected data may be stored in the first database based on the time information included in the collected data; illustratively, the first database may be InflexDB.
[0128] In one embodiment, a second database may be provided in the cloud node, so that after the cloud node receives the collected data, the collected data may be stored in the second database based on the time information contained in the collected data; illustratively, the first database and the second database may be the same or different.
[0129] In one implementation, the edge node may also obtain the collected data from the first database, and send the collected data to the second database, so as to achieve synchronization of the collected data between the first database and the second database.
[0130] From the above, it can be seen that the control method applied to the terminal device provided in the embodiment of the present application is that after the terminal device collects the collected data of the industrial field equipment through the collection component deployed in the edge node, the collected data is stored, so that the edge node can store the collected data in real time; and, by sending the collected data to the cloud node for the cloud node to store the collected data, the real-time synchronization of the collected data between the cloud node and the edge node is realized.
[0131] Based on the foregoing embodiments, in the control method applied to the terminal device provided in the embodiments of the present application, the following operations may also be performed:
[0132] Receive configuration parameters sent by cloud nodes through Cloudcore components, and associate edge nodes with industrial field devices based on the configuration parameters.
[0133] In one embodiment, the configuration parameters may be pre-set for the cloud node and associated with the terminal device or edge node.
[0134] In one embodiment, a human-computer interaction component may be set in the cloud node, through which the cloud node can generate configuration parameters in response to the user's setting operation on at least one configuration data; exemplarily, the human-computer interaction component may include a human-computer interaction window in the cloud node and a background data processing mechanism associated with the human-computer interaction window, and the human-computer interaction component may also include an application deployed in the cloud node, and the above-mentioned application may include a Web application.
[0135] In one implementation, the cloud node may send the configuration parameters to the edge node via the second connection.
[0136] In one embodiment, the edge node can parse the configuration parameters to determine the device identification of the industrial field device associated with the terminal device, and the port number associated with the container where the edge node is located in the terminal device, and then associate the edge node to the industrial field device based on the above port number and device identification.
[0137] Figure 2 The schematic diagram of the structure of the edge node controlling the industrial field equipment provided in the embodiment of the present application is as follows: Figure 2 As shown, a virtualized PLC instance 201 and a MAPPER component 202 may be provided in the edge node 200, wherein the MAPPER component 202 is used to perform data transmission with an industrial field device 204 through an industrial input output (IO) interface 203; illustratively, the virtualized PLC instance 201 may be a control instance in the aforementioned embodiment.
[0138] Exemplarily, the MAPPER component 202 may include a Configmap parser, an Event process, a Timer, and a Driver; Exemplarily, the Configmap parser is used to parse the Configmap, and the Configmap may include the configuration parameters in the aforementioned embodiment; the Event process is used to process the events captured in the edge node 200, the Timer may be associated with the timing task component in the aforementioned embodiment, and the Driver is used to drive the industrial IO interface 203.
[0139] Exemplarily, the industrial IO interface 203 may include interfaces such as RS232, RS483, Controller Area Network (CAN), and RJ45.
[0140] Exemplarily, the edge node 200 may send control instructions to the industrial field device 204 through the industrial IO interface 203 to control the operating state of the industrial field device 204 , and may also obtain collected data obtained by performing data collection on the industrial field device 204 .
[0141] As can be seen from the above, in the control method applied to the terminal device provided in the embodiment of the present application, the terminal device receives the configuration parameters sent by the cloud node through the Cloudcore component, and associates the edge node with the industrial field device based on the configuration parameters. In this way, through the above operation, the unified management of the configuration parameters by the cloud node is realized, thereby improving the controllability of the cloud node over the association operation between the edge node and the industrial field device.
[0142] Based on the foregoing embodiments, the embodiments of the present application also provide a control method applied to a cloud device. Figure 3 A flow chart of a control method applied to a cloud device provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, the method may include the following steps:
[0143] Step 301: Obtain mirror data.
[0144] Step 302: Send the mirrored data to the terminal device through the communication connection between the cloud device and the terminal device.
[0145] Among them, the terminal device obtains a control instance after loading the mirror data; the control instance contains control logic; the control logic is used for the terminal device to at least control the operating status of the industrial field device; the terminal device is pre-associated with the industrial field device based on configuration parameters.
[0146] As can be seen from the above, the control method applied to the cloud device provided in the embodiment of the present application, after obtaining the mirror data, sends the mirror data to the terminal device through the communication connection between the cloud device and the terminal device, and the terminal device obtains the control instance after loading the mirror data, and the control logic contained in the control instance is used for the terminal device to at least control the running state of the industrial field device. In this way, through the above operation, the terminal device can indirectly control the industrial field device based on the mirror data sent by the cloud device, thereby breaking through the limitation that the control logic for the industrial field device can only be developed in the control device deployed in the factory or enterprise; and since a communication connection is established between the cloud device and the terminal device, in this way, through the above communication connection, the technical problem that the terminal device cannot be accessed by an external device and cannot control the industrial field device through an external device can be overcome; at the same time, since the terminal device is pre-associated with the industrial field device based on the configuration parameters, the accuracy of the terminal device's control of the industrial field device is improved; on the other hand, the running state of the industrial field device is controlled by the control logic contained in the control instance, thereby realizing the isolation of the software control and the hardware control of the industrial field device, thereby improving the flexibility of the running state control of the industrial field device;.
[0147] When the terminal device is an internal device set up in an enterprise or factory for setting up PLC components to control industrial field equipment within the enterprise or factory, and the control instance is a virtualized PLC instance, the control method applied to the cloud device provided in the embodiment of the present application enables the cloud device to flexibly and accurately control the production line equipment deployed within the enterprise or factory via the terminal device; and, by controlling the operating status of the industrial field equipment through the virtualized PLC instance, the flexibility of controlling the operating status of the industrial field equipment can also be improved, thereby meeting the control requirements for industrial field equipment in actual applications.
[0148] Based on the foregoing embodiments, in the control method applied to a cloud device provided in the embodiments of the present application, a Cloudcore component is deployed in the cloud device.
[0149] Accordingly, the above method can also perform the following operations:
[0150] The Cloudcore component receives the registration request sent by the Edgecore component deployed in the terminal device, and in response to the registration request, registers the terminal device to the cloud device.
[0151] Among them, the registered terminal device is the edge node corresponding to the cloud node deployed in the terminal device; the Cloudcore component is used to manage the Edgecore component; and the Edgecore component is used to manage the edge node.
[0152] From the above, it can be seen that in the control method applied to cloud devices provided by the embodiment of the present application, a Cloudcore component is deployed in the cloud device, a registration request sent by an Edgecore component deployed in the terminal device is received through the Cloudcore component, and the terminal device is registered to the cloud device in response to the registration request, and the registered terminal device is an edge node corresponding to the cloud node deployed in the cloud device. In this way, through the above operation, the cloud device can convert the terminal device into an edge node corresponding to the cloud node deployed in the cloud device based on the registration request sent by the Edgecore component of the terminal device. Therefore, through the deployment relationship between the cloud node of the cloud device and the edge node of the terminal device, the stability and robustness of data transmission between the terminal device and the cloud device can be improved; and the Cloudcore component is used to manage the Edgecore component, and the Edgecore component is used to manage the edge node. In this way, the Cloudcore component deployed in the cloud device can achieve indirect management of the edge node, thereby improving the flexibility of edge node management.
[0153] Based on the above embodiments, in the control method for cloud devices provided in the embodiments of the present application, obtaining mirror data can be achieved in the following ways:
[0154] The Cloudcore component responds to the acquisition request sent by the Edgecore component of the edge node and obtains the image data from the image repository of the cloud node.
[0155] As can be seen from the above, in the control method for cloud devices provided by the embodiment of the present application, the Cloudcore component responds to the acquisition request sent by the Edgecore component of the edge node to obtain the image data from the image warehouse of the cloud node. In this way, through the above operation, the cloud node can obtain the image data based on the acquisition request sent by the edge node, thereby realizing the conditional control of the cloud node obtaining the image data; and, because the image data is stored in the image warehouse, the management efficiency of the cloud node on the image data can be improved.
[0156] Based on the above embodiments, the control method for a cloud device provided in the embodiments of the present application to obtain mirror data can also be implemented by the following steps:
[0157] Step C1: In response to a first operation, a first parameter corresponding to the first operation is obtained through a human-computer interaction component deployed in a cloud node.
[0158] The first parameter at least includes an identification parameter indicated by the first operation.
[0159] In one embodiment, the human-computer interaction component can be embodied in the form of upper computer software, which can detect touch input, key input and input of peripheral devices associated with the cloud device performed by the user of the cloud device to determine the first operation, and analyze the first operation to obtain the first parameter; exemplarily, the above-mentioned peripheral devices may include a remote control, a data acquisition device or a keyboard, etc.; exemplarily, the data acquisition device may include a voice acquisition device or a video acquisition device.
[0160] In one embodiment, the first operation can be used to determine or indicate an operation for identifying one of the mirrored data, edge nodes, and industrial field devices; accordingly, the identification parameters may include parameters for identifying one of the mirrored data, edge nodes, and industrial field devices indicated by the first operation; exemplarily, the identification parameters may be embodied in the form of a number, name, or address of one of the mirrored data, edge nodes, and industrial field devices.
[0161] Step C2: Obtain image data from the image repository of the cloud node based on the first parameter.
[0162] In one embodiment, the mirror data in the image warehouse can be pre-associated with at least one industrial field device. In this way, when the first parameter is the identifier of the mirror data or the industrial field device, the mirror data corresponding to the industrial field device indicated by the first parameter can be obtained from the image warehouse through the association relationship between the first parameter and the mirror data in the image warehouse and the industrial field device.
[0163] In one embodiment, the image data in the image repository may be pre-associated with at least one edge node. Thus, when the first parameter is an identifier of the edge node, the image data corresponding to the edge node indicated by the first parameter may be obtained from the image repository through the first parameter.
[0164] As can be seen from the above, the control method applied to the cloud node provided in the embodiment of the present application responds to the first operation and obtains the first parameter corresponding to the first operation through the human-computer interaction component deployed in the cloud node, and the first parameter at least includes the identification parameter indicated by the first operation, and obtains the image data from the image warehouse of the cloud node based on the first parameter. In this way, through the above operation, not only the flexible control of the operation of obtaining the image data is realized, but also, through the human-computer interaction component deployed in the cloud node, the accurate, flexible and targeted selection of the image data stored in the image warehouse can be realized.
[0165] Based on the above embodiments, the control method applied to the cloud device provided in the embodiments of the present application may further perform the following steps:
[0166] Step D1: In response to a second operation, a second parameter corresponding to the second operation is obtained through a human-computer interaction component deployed in the cloud node.
[0167] The second parameter at least includes programming language input data indicated by the second operation.
[0168] In one embodiment, the human-computer interaction component may include an application or software component deployed in a cloud node that can implement functions such as editing, compiling, and debugging of a programming language.
[0169] In one implementation, the second operation may include operations such as editing and / or updating of a programming language performed by a user of the cloud device.
[0170] In one implementation, the programming language may include any one of C language, C++ language, JAVA language, assembly language, and hardware description language.
[0171] In one embodiment, the programming language input data may include source code of the programming language input through the second operation; illustratively, the source code includes a control flow for executing data collection and control for at least one and / or at least one industrial field device.
[0172] Step D2: determining the mirror data based on the second parameter.
[0173] In an implementation manner, when the source code represented by the second parameter is compiled and the compilation passes, the compilation result obtained by compiling the source code may be determined as the mirror data.
[0174] Step D3: store the image data in the image repository deployed in the cloud node.
[0175] In one embodiment, when image data is generated, the image data may be associated with edge nodes and / or industrial field devices, and the image data associated with the edge nodes and / or industrial field devices may be stored in an image repository deployed in a cloud node.
[0176] In one implementation, storing the image data in the image warehouse may include adding the image data to the image warehouse, and may also include overwriting or updating the original image data in the image warehouse.
[0177] In one implementation, the image repository may be Harbor deployed in a cloud node.
[0178] In one implementation, after the mirror data is determined, the mirror data may be sent to a designated edge node, so that the edge node can control the industrial field device through the method provided in the aforementioned embodiment.
[0179] From the above, it can be seen that the control method applied to cloud devices provided in the embodiment of the present application, through the human-computer interaction component deployed in the cloud node, responds to the second operation, obtains the second parameter corresponding to the second operation, including at least the programming language data indicated by the second operation, and determines the mirror data based on the second parameter. In this way, through the above operation, the cloud device can realize targeted and flexible management of the mirror data; and by storing the mirror data in the mirror warehouse deployed in the cloud node, it is possible to flexibly add and update the mirror data stored in the mirror warehouse, so that the mirror data stored in the mirror warehouse can meet the actual control needs of industrial field equipment.
[0180] Based on the above embodiments, the control method applied to the cloud device provided in the embodiments of the present application may also perform the following operations:
[0181] Determine configuration parameters; send configuration parameters to the Edgecore component of the edge node through the cloud node.
[0182] The configuration parameters are used for the edge node to associate the edge node with the industrial field device.
[0183] In one implementation, the cloud device may predetermine the configuration parameters.
[0184] In one implementation, the configuration parameters may be sent to the edge node via the second connection via a Cloudcore component of the cloud device.
[0185] As can be seen from the above, the control method applied to the cloud device provided in the embodiment of the present application, after determining the configuration parameters, sends the configuration parameters to the Edgecore component of the edge node through the cloud node, and the configuration parameters are used for the edge node to associate the edge node with the industrial field device. In this way, through the above operation, the cloud device or cloud node can realize flexible control of the association status between the edge node and the industrial field device.
[0186] Based on the above embodiments, in the control method for a cloud device provided in the embodiments of the present application, determining the configuration parameters can also be achieved in the following ways:
[0187] The third parameter is collected through the human-computer interaction component deployed in the cloud node; and the configuration parameter is determined based on the third parameter.
[0188] The third parameter includes data mapping between the identifier of the edge node and the identifier of the industrial field device.
[0189] In one embodiment, the human-computer interaction component can respond to user input of the cloud device, data mapped between the edge node or terminal device and the industrial field device.
[0190] In one implementation, the identifier of the edge node may include the name, number or address of the edge node; the identifier of the industrial field device may include the name, number or address of the industrial field device.
[0191] In one implementation, the identifier of the edge node may further include the port number of a port set in the edge node; the identifier of the industrial field device may further include the port number of a port set in the industrial field device.
[0192] In one implementation, the data included in the third data may be integrated based on the identifier of the edge node or the identifier of the industrial field device, thereby determining the configuration parameters.
[0193] From the above, it can be seen that the control method for cloud devices provided in the embodiment of the present application determines the configuration parameters based on the third parameter after collecting data including the mapping between the identifier of the edge node and the identifier of the industrial field device through the human-computer interaction component deployed in the cloud node. In this way, through the above operation, the flexibility and controllability of the configuration parameter determination process are improved, thereby improving the flexibility and pertinence of the association between the edge node and the industrial field device.
[0194] Based on the above embodiments, the control method applied to the cloud device provided in the embodiments of the present application may also perform the following operations:
[0195] Receive the collected data sent by the edge node through the cloud node; store the collected data.
[0196] The collected data is obtained by collecting the operating status of industrial field equipment by the collection components deployed in the edge nodes.
[0197] In one implementation, the cloud node may store the collected data in a second database provided in the cloud node.
[0198] From the above, it can be seen that the control method applied to cloud devices provided in the embodiment of the present application stores the collected data after receiving the collected data sent by the edge node through the cloud node, and the collected data is collected by the collection component deployed in the edge node on the operating status of the industrial field equipment. In this way, through the above operation, the cloud node or cloud device can obtain the collected data associated with the operating status of the industrial field equipment associated with the edge node, thereby providing a data basis for the cloud node or cloud device to obtain the operating status of the industrial field equipment.
[0199] Based on the above embodiments, the present application also provides a terminal device, Figure 4 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application, such as Figure 4 As shown, the terminal device 400 includes a first processor 401 and a first memory 402; wherein the first memory 402 stores a first computer program; when the first computer program is executed by the first processor 401, it can implement the control method applied to the terminal device as provided in any of the previous embodiments.
[0200] Based on the foregoing embodiment, the present application further provides another terminal device, which may include:
[0201] A first acquisition module is used to acquire control logic; wherein the control logic is included in a control instance; the control instance is obtained by the terminal device acquiring the image data from the cloud device and then loading the image data;
[0202] The control module is used to control at least the operating state of the industrial field device based on the control logic; wherein the terminal device is pre-associated with the industrial field device through configuration parameters; the configuration parameters include parameters of the industrial field device.
[0203] In some embodiments, the data in the mirrored data is associated with the operating status of the industrial field device; the terminal device may also include a first processing module and a first transceiver module; wherein the first processing module is used to deploy the Edgecore component in the terminal device;
[0204] The first transceiver module is used to send a registration request to the Cloudcore component deployed in the cloud device, so that the Cloudcore component responds to the registration request and registers the terminal device to the cloud device; wherein the registered terminal device is an edge node corresponding to the cloud node deployed in the cloud device; the Cloudcore component is used to manage the Edgecore component; the Edgecore component is used to manage the edge node.
[0205] In some embodiments, a first acquisition module is used to collect collection data associated with industrial field equipment through a collection component deployed in an edge node;
[0206] The control module is used to control the operating status of industrial field equipment based on control logic and collected data.
[0207] In some embodiments, a first acquisition module is used to collect data collected from industrial field devices through a collection component deployed in an edge node;
[0208] Processing module, used to store collected data,
[0209] and / or,
[0210] The first transceiver module is used to send the collected data to the cloud node so that the cloud node can store the collected data.
[0211] In some embodiments, the first transceiver module is used to receive configuration parameters sent by the cloud node through the Cloudcore component;
[0212] The first processing module is used to associate the edge node with the industrial field device based on the configuration parameters.
[0213] Based on the above embodiments, the present application also provides a cloud device, Figure 5 A schematic diagram of the structure of the cloud device provided in the embodiment of the present application, such as Figure 5As shown, the cloud device 500 includes a second processor 501 and a second memory 502; wherein a second computer program is stored in the second memory 502; when the second computer program is executed by the second processor 501, it can implement the control method applied to the cloud device as provided in any of the previous embodiments.
[0214] Based on the foregoing embodiment, the embodiment of the present application further provides another cloud device, which may include:
[0215] A second acquisition module is used to acquire image data;
[0216] The second transceiver module is used to send the mirror data to the terminal device through the communication connection between the cloud device and the terminal device; wherein the terminal device obtains a control instance after loading the mirror data; the control instance contains control logic; the control logic is used for the terminal device to at least control the operating status of the industrial field device; the terminal device is pre-associated with the industrial field device based on the configuration parameters.
[0217] In some embodiments, a Cloudcore component is deployed in the cloud device;
[0218] The second transceiver module is used to receive the registration request sent by the Edgecore component deployed in the terminal device through the Cloudcore component;
[0219] The cloud device may also include a second processing module for registering the terminal device to the cloud device in response to a registration request; wherein the registered terminal device is an edge node corresponding to the cloud node deployed in the cloud device; the Cloudcore component is used to manage the Edgecore component; and the Edgecore component is used to manage the edge node.
[0220] In some embodiments, the second acquisition module is used to obtain image data from the image repository of the cloud node in response to an acquisition request sent by the Edgecore component of the edge node through the Cloudcore component.
[0221] In some embodiments, the second acquisition module is used to acquire, through the human-computer interaction component deployed in the cloud node, a first parameter corresponding to the first operation in response to the first operation; wherein the first parameter at least includes an identification parameter indicated by the first operation;
[0222] The second acquisition module is further used to acquire the image data from the image repository of the cloud node based on the first parameter.
[0223] In some embodiments, the second acquisition module is used to acquire, in response to the second operation, a second parameter corresponding to the second operation through a human-computer interaction component deployed in the cloud node; wherein the second parameter at least includes programming language input data indicated by the second operation;
[0224] The second processing module is used to determine the image data based on the second parameter; and store the image data in the image warehouse deployed in the cloud node.
[0225] In some embodiments, the second processing module is used to determine the configuration parameters;
[0226] The second transceiver module is used to send configuration parameters to the Edgecore component of the edge node through the cloud node; the configuration parameters are used for the edge node to associate the edge node with the industrial field device.
[0227] In some embodiments, the second acquisition module is used to collect the third parameter through the human-computer interaction component deployed in the cloud node; wherein the third parameter includes data mapped between the identifier of the edge node and the identifier of the industrial field device;
[0228] The second processing module is used to determine the configuration parameter based on the third parameter.
[0229] In some embodiments, the second acquisition module is used to receive the collected data sent by the edge node through the cloud node; wherein the collected data is obtained by the collection component deployed in the edge node collecting the operating status of the industrial field equipment;
[0230] The second processing module is used to store the collected data.
[0231] Based on the foregoing embodiments, the embodiments of the present application also provide a control system. Figure 6 A schematic diagram of the structure of the control system provided in the embodiment of the present application, such as Figure 6 As shown, the control system 600 may include the terminal device 400, the cloud device 500 and the industrial field device 204 as provided in the aforementioned embodiment.
[0232] Figure 7 Another structural diagram of the control system provided in the embodiment of the present application is as follows: Figure 7 As shown, the control system 600 may include a cloud device 500 and a factory device 701; wherein the factory device 701 may be a gateway device set in an enterprise or factory in the aforementioned embodiment, that is, the terminal device in the aforementioned embodiment.
[0233] Exemplarily, a Cloudcore component and a cloud node 702 may be deployed in the cloud device 500; wherein the Cloudcore component may include an Edge / Device Controller and a Cloudhub; exemplarily, the Cloudhub is respectively connected to the cloud node 702 and the Edgehub respectively set in the edge node 200 to respectively implement the management of the cloud node and the edge node.
[0234] Exemplarily, the cloud node 702 can be clustered and containerized to deploy host software with a browser / server (B / S) architecture, a message queuing telemetry transport (MQTT) broker, a time series database including InflexDB, a mirror repository, and services including third-party applications; wherein, the MQTT broker is used to receive collected data sent by the edge node through a lightweight edge broker & data processing component, and save the collected data to InflexDB to achieve synchronization of the collected data between the cloud node and the edge node, and the mirror repository is used to store PLC images for the edge node to pull the PLC image; exemplarily, the mirror repository may include Harbor, and the host software may include a PLC programming application; the PLC image may be the mirror data in the aforementioned embodiment.
[0235] Exemplarily, in the cloud device 500, backend services based on Kubeedge and Harbor interfaces can be developed through the SpringCloud framework; exemplary, the backend services are mainly used to implement gateway management for edge nodes, device management for edge nodes, data routing, container application management, and image data management for image repositories.
[0236] Exemplarily, in the cloud device 500, a front-end interface can also be constructed using the Vue framework, and human-computer interaction components can be provided in the form of graphical pages, so that users of the cloud device 500 can flexibly perform operations such as life cycle management of image data in the image repository and edge nodes; exemplarily, the above-mentioned human-computer interaction components can also provide a window for users of the cloud device 500 to log in.
[0237] Exemplarily, users of cloud nodes can access the PLC programming software deployed in the cloud node through the NodePort provided by the Kubernetes-Service of the cloud node, and execute the programming of the control logic for the industrial field equipment through the PLC programming software to obtain the source code. After the source code compilation is completed and the PLC image is obtained, the PLC image can be sent to the edge node through the WebSocket connection between the cloud node and the edge node, so that the edge node can load the PLC image to obtain a PLC instance, so that the edge node can realize its automated logic control of the industrial field equipment through the PLC instance; exemplarily, the PLC instance can be the control instance in the aforementioned embodiment.
[0238] Exemplarily, the PLC image obtained by performing programming and compiling operations through the PLC programming software can also be stored in the image warehouse.
[0239] Exemplarily, the cloud device 500 can transmit the PLC image to the image warehouse through the image data upload channel, and can also upload the PLC image to the image warehouse through the docker client.
[0240] Exemplarily, the user of the cloud device 500 can also execute the deployment of the virtualized PLC image through the human-computer interaction component, thereby deploying the virtualized PLC image to the designated edge node; exemplarily, the user of the cloud device can also configure environment variables and storage volumes through the human-computer interaction component, and can also enable necessary port mapping to improve the stability of data transmission and reception between the cloud node and the edge node.
[0241] Exemplarily, a user of the cloud device 500 configures the front-end page contained in the human-computer interaction component to obtain the configuration parameters of the CRD including the industrial field device, and sends the configuration parameter component to MAPPER through the DeviceTwin and EventBus of the edge node 200; exemplarily, MAPPER can be the MAPPER component in the aforementioned embodiment.
[0242] Exemplarily, after the edge node obtains the PLC image, at least one PLC instance can be obtained by loading the PLC image, thereby obtaining a PLC instance group; exemplary, the PLC instance can be the control instance in the aforementioned example.
[0243] Exemplarily, in the case where the terminal device may be a small gateway device with limited resources, after MAPPER collects the collected data of the industrial field device 204, it can perform streaming conversion on the collected data and store it in the InflexDB of the edge node. At the same time, it can also send it to the cloud node through the lightweight edge Broker & data processing component to achieve synchronization of the collected data between the cloud node and the edge node.
[0244] For example, after the PLC instance completes processing of the collected data, it can directly call MAPPER's EventProcess and Driver to transmit its desired target state to MAPPER, and control the operating state of the industrial field equipment based on the target state through the Driver.
[0245] For example, for the edge node, since it has obtained the PLC instance for controlling the industrial field equipment, even if the long connection between the edge node and the cloud node is disconnected, continuous and stable control of the industrial field equipment can be achieved through the PLC instance.
[0246] Exemplarily, when the control system provided by the embodiment of the present application is applied to an oil range scenario, the industrial field equipment may include a beam pumping unit, and the edge device may be deployed around the beam pumping unit and connected thereto. Through the long connection between the cloud node and the edge node in the control system provided by the embodiment of the present application, the PLC image of the control logic and data acquisition logic for the beam pumping unit may be sent to the edge node, so that the edge node can load the PLC image to obtain a PLC instance, and through the PLC instance, continuous tracking and control of the operating states of the beam pumping unit, such as temperature, sound waves, and vibration, can be achieved. The above-mentioned PLC instance can also be used to achieve data collection of the pressure sensor of the beam pumping unit, thereby achieving mechanical and electronic control of flexible and accurate tracking of the operating state of the beam pumping unit.
[0247] Exemplarily, an application for analyzing data may also be deployed in the cloud-native base of the control system provided in the embodiment of the present application; wherein the above-mentioned application may include an analysis component running in a containerized form, which may monitor the operating status of the walking beam pump in real time based on the data sent back by the sound waves, vibrations, pressure and temperature sensors contained in the collected data of the walking beam pump, and stop production in time before a failure occurs.
[0248] In the steelmaking process, an important step is oxygen blowing into the converter, which is used to mix steel with molten iron in a high-oxygen environment and oxidize the carbon and other impurities in the molten iron into carbon dioxide or corresponding oxides through the violent reaction between the steel and the molten iron.
[0249] Since the effect of removing impurities during the converter oxygen blowing step is sensitive to oxygen concentration, furnace temperature and reaction time, the oxygen gas concentration sensor, temperature sensor, electronic airflow valve, temperature controller and gate switch deployed at the steelmaking site can be connected to the edge node, and according to the steelmaking needs, the programming operation is performed through the PLC programming software on the cloud node to obtain the PLC image for the above steps, and then the PLC image is sent to the edge node for the edge node to load the PLC image to obtain a virtualized PLC instance, and then the virtualized PLC instance is used to realize real-time monitoring of the temperature and oxygen status in the above steps, so that the temperature and oxygen can be automatically controlled according to the monitoring results, and the operation of opening the gate to send the molten iron into the next process flow can be performed efficiently and accurately.
[0250] In the above two scenario cases, the control system provided by the embodiment of the present application not only provides a virtualized PLC instance and a runtime environment for controlling different industrial field equipment, but also provides a human-computer interaction component corresponding to the graphical interface of the cloud node, and a data transmission channel between the cloud node and the edge node, so that the operating status and resource usage of various industrial field equipment can be monitored in real time through the edge node; and, unlike the traditional hard PLC, which needs to stop production for on-site troubleshooting after detecting a fault in the industrial field equipment, the virtualized PLC instance running in a container can automatically restart through the failure of the container application, thereby improving the continuity and reliability of the process flow of the industrial field equipment in the production line.
[0251] The control system provided in the embodiment of the present application can be implemented based on the cloud-native Kubeedge edge computing architecture. Based on the decoupling of PLC software and hardware, the control system deploys PLC instances in a containerized form in the edge node, thereby getting rid of the limitation of on-site networking for industrial field equipment and PLC control equipment. Moreover, unified and flexible control of industrial field equipment can be achieved through data transmission between cloud nodes and edge nodes.
[0252] In the related technology, the currently widely used virtualized PLC capabilities have limited association with cloud native, and its configuration, deployment, management, and destruction and other lifecycle management operations often need to be operated through locally deployed hardware. The control system provided by the embodiment of the present application, through the data communication and lifecycle management between the edge node and the cloud node executed by the Kubeedge edge computing architecture, enables the above-mentioned start-up system to have the advantages of data edge persistence, offline autonomy, and elastic expansion; and, by executing the generation, sending, deployment, configuration, and elastic expansion of PLC images by the human-machine service component of the cloud node, the pertinence of PLC image data is improved, and the transmission of collected data executed by MQTT can improve the persistence level between cloud nodes and edge nodes.
[0253] Based on the foregoing embodiments, an embodiment of the present application further provides a computer-readable storage medium, in which a third computer program is stored; when the third computer program is executed by a processor of an electronic device, it can implement a control method provided in any of the previous embodiments.
[0254] Based on the foregoing embodiments, an embodiment of the present application further provides a computer program product, which includes a fourth computer program; when the fourth computer program is executed by a processor of an electronic device, it can implement a control method provided in any of the previous embodiments.
[0255] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.
[0256] The methods disclosed in the various method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0257] The features disclosed in the various product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0258] The features disclosed in the various method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0259] It should be noted that the above-mentioned computer-readable storage medium can be 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), a magnetic random access memory (FRAM), a flash memory (Flash Memory), a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM) and other memories; it can also be various electronic devices including one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc.
[0260] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0261] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0262] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus necessary general hardware nodes, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0263] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0264] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0265] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0266] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A control method, characterized in that: The method is applied to a terminal device; the method comprises: Acquire control logic; wherein the control logic is included in a control instance; the control instance is obtained by the terminal device acquiring the mirror data from the cloud device and then loading the mirror data; At least the operating state of the industrial field device is controlled based on the control logic; wherein the terminal device is pre-associated with the industrial field device through configuration parameters; and the configuration parameters include parameters of the industrial field device.
2. The method according to claim 1, characterized in that: The data in the mirror data is associated with the operating status of the industrial field device; the method further includes: An Edgecore component is deployed in the terminal device, and a registration request is sent to the Cloudcore component deployed in the cloud device, so that the Cloudcore component responds to the registration request and registers the terminal device to the cloud device; wherein the registered terminal device is an edge node corresponding to the cloud node deployed in the cloud device; the Cloudcore component is used to manage the Edgecore component; and the Edgecore component is used to manage the edge node.
3. The method according to claim 2, characterized in that The controlling at least the operating state of the industrial field device based on the control logic comprises: Collecting data associated with the industrial field device through a collection component deployed in the edge node; Based on the control logic and the collected data, the operating state of the industrial field device is controlled.
4. The method according to claim 2, characterized in that: The method further comprises: Collecting the collected data of the industrial field equipment through the collection component deployed in the edge node; storing the collected data, and / or, The collected data is sent to the cloud node so that the cloud node can store the collected data.
5. The method according to claim 2, characterized in that: The method further comprises: Receiving the configuration parameters sent by the cloud node through the Cloudcore component; Based on the configuration parameters, the edge node is associated with the industrial field device.
6. A control method, characterized in that: The method is applied to a cloud device; the method comprises: Get image data; The mirror data is sent to the terminal device through the communication connection between the cloud device and the terminal device; wherein the terminal device obtains a control instance after loading the mirror data; the control instance includes a control logic; the control logic is used for the terminal device to at least control the operating status of the industrial field device; the terminal device is pre-associated with the industrial field device based on configuration parameters.
7. The method according to claim 6, characterized in that The cloud device has a Cloudcore component deployed therein; the method further includes: The Cloudcore component receives a registration request sent by the Edgecore component deployed in the terminal device, and in response to the registration request, registers the terminal device to the cloud device; wherein the registered terminal device is an edge node corresponding to the cloud node deployed in the cloud device; the Cloudcore component is used to manage the Edgecore component; and the Edgecore component is used to manage the edge node.
8. The method according to claim 7, characterized in that The obtaining of the image data includes: The Cloudcore component responds to the acquisition request sent by the Edgecore component of the edge node to acquire the image data from the image repository of the cloud node.
9. The method according to claim 7, characterized in that: The obtaining of the image data includes: Acquiring, through the human-computer interaction component deployed in the cloud node, a first parameter corresponding to the first operation in response to the first operation; wherein the first parameter at least includes an identification parameter indicated by the first operation; The image data is obtained from the image repository of the cloud node based on the first parameter.
10. The method according to claim 7, characterized in that The method further comprises: Acquire, by the human-computer interaction component deployed in the cloud node, a second parameter corresponding to the second operation in response to the second operation; wherein the second parameter at least includes programming language input data indicated by the second operation; determining the mirror data based on the second parameter; The image data is stored in the image repository deployed in the cloud node.
11. The method according to claim 7, characterized in that The method further comprises: determining the configuration parameters; The configuration parameters are sent to the Edgecore component of the edge node through the cloud node; wherein the configuration parameters are used by the edge node to associate the edge node with the industrial field device.
12. The method according to claim 11, characterized in that The determining of the configuration parameters comprises: Collecting a third parameter through a human-computer interaction component deployed in the cloud node; wherein the third parameter includes data mapped between the identifier of the edge node and the identifier of the industrial field device; The configuration parameter is determined based on the third parameter.
13. The method according to claim 7, characterized in that The method further comprises: The cloud node receives the collected data sent by the edge node; wherein the collected data is obtained by collecting the operating status of the industrial field equipment by the collection component deployed in the edge node; The collected data is stored.
14. A terminal device, characterized in that: The terminal device has a first processor and a first memory; wherein a first computer program is stored in the first memory; when the first computer program is executed by the first processor, the control method as described in any one of claims 1 to 5 can be implemented.
15. A cloud device, characterized in that: The cloud device includes a second processor and a second memory; wherein a second computer program is stored in the second memory; when the second computer program is executed by the second processor, the control method as described in any one of claims 6 to 13 can be implemented.
16. A control system, characterized in that: The control system includes the terminal device as described in claim 14, the cloud device as described in claim 15, and an industrial field device.
17. A computer-readable storage medium, characterized in that: A third computer program is stored in the computer-readable storage medium; when the third computer program is executed by the processor of the electronic device, it can implement the control method as described in any one of claims 1 to 5 or claims 6 to 13.
18. A computer program product, characterized in that The computer program product includes a fourth computer program; when the fourth computer program is executed by a processor of an electronic device, it can implement the control method as described in any one of claims 1 to 5 or 6 to 13.
Citation Information
Patent Citations
IM (Intelligent Manufacturing) oriented edge computing controller and work method thereof
CN109709811A
Equipment data processing method and device, equipment and medium
CN113055478A
Metallurgy automatic control and edge computing system and method, all-in-one machine and medium
CN115705025A
Containerized PLC implementation method and system, and management server
CN116909678A
End-side cloud collaborative process technological parameter optimization system and method
CN117369391A
