PLC combination command generation method, industrial edge computing device and electronic device

By providing a PLC combination command generation method on an industrial edge computing device, operators are allowed to drag node labels to edit parameters and sequences, and generate and deploy combination commands, which solves the problem of low intelligence and realizes the function of automatic control of industrial equipment. Improved efficiency.

CN118051274BActive Publication Date: 2024-11-15北京伟联科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410045077.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-11
Publication Date
2024-11-15
Estimated Expiration
2044-01-11

AI Technical Summary

Technical Problem

The existing industrial edge computing devices are low in intelligence, requiring professional and technical personnel to edit applications, and changing the working status of industrial equipment controlled by PLC requires manual operation, which is time-consuming and labor-intensive.

Method used

Provides a method of generating PLC combination commands, by displaying an editing page on a web page, allowing operators to drag node labels for parameter editing and running sequence definition, generate combination commands for target PLCs, and deploy them to industrial edge computing devices. Among them, including the node area, editing area and information display area, the operator can freely edit or modify the application according to actual needs.

Benefits of technology

It improves the intelligence of industrial edge computing devices, enables operators without programming capabilities to edit or modify applications themselves, automatically change the working status of industrial equipment, reduces manual operations, and improves efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118051274B_ABST
    Figure CN118051274B_ABST
Patent Text Reader

Abstract

The present invention discloses a PLC combination command generation method, an industrial edge computing device and an electronic device applied to an industrial edge computing device. The method includes: displaying an editing page on a web page; in response to a parameter editing trigger operation of a first node tag dragged to an editing area, determining a target node tag, and opening a parameter editing page of the target node tag; in response to an editing completion instruction of the parameter editing page, configuring the parameters edited in the parameter editing page to a node program corresponding to the target node tag; in response to an operation of defining an operating order for each first node tag in the editing area, splicing and combining the node programs corresponding to each first node tag according to the operating order of each first node tag, and obtaining a combination command for a target PLC; in response to a deployment instruction for the combination command, deploying the combination command to an industrial edge computing device. The invention can further improve the intelligence of industrial edge computing devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of industrial edge computing devices, and specifically to a PLC combination command generation method, an industrial edge computing device, and an electronic device. Background Art

[0002] Industrial edge computing devices are important devices for data analysis and decision-making in industrial production activities. In production activities, industrial edge computing devices are usually set up at industrial sites and communicate with the PLC (Programmable Logic Controller) of various industrial equipment, thereby providing data processing services directly for various industrial equipment at the industrial site, so as to respond quickly and make quick decisions according to the data changes of the PLC.

[0003] Existing industrial edge computing devices usually communicate with multiple PLCs, and professional technicians edit and deploy applications with functions such as data collection and data analysis in the industrial edge computing devices through programming, thereby enabling the industrial edge computing devices to have functions such as data collection and data analysis.

[0004] However, the applications of existing industrial edge computing devices can only be edited or modified by professional technicians, which wastes manpower. In addition, although the existing industrial edge computing devices are connected to the PLC for communication, they only collect and analyze the data in the PLC. If the working status of the industrial equipment controlled by the PLC is to be changed, the operators on the industrial site are required to manually change it according to the data analysis results of the industrial edge computing device. The intelligence level is low and it is time-consuming and labor-intensive. Therefore, how to improve the intelligence level of industrial edge computing devices has become a technical problem to be solved. Summary of the invention

[0005] The present invention provides a PLC combination command generation method applied to an industrial edge computing device to solve the problem of low intelligence of existing industrial edge computing devices. The present invention also provides an industrial edge computing device, an electronic device and a storage medium corresponding to the PLC combination command generation method applied to the industrial edge computing device.

[0006] A first aspect of an embodiment of the present application provides a PLC combination command generation method applied to an industrial edge computing device, the method comprising:

[0007] Displaying an editing page on a web page; the editing page includes a node area, an editing area, and an information display area; the node area is preset with a plurality of different node labels, each node label is associated with a corresponding node program, and each node label can be dragged into the editing area;

[0008] In response to a parameter editing trigger operation on a first node tag dragged into the editing area, a target node tag is determined, and a parameter editing page of the target node tag is opened, and editing guide information of each parameter to be edited in the parameter editing page is displayed in the information display area;

[0009] In response to an edit completion instruction on the parameter editing page, the parameters edited on the parameter editing page are configured to the node program corresponding to the target node tag, and the parameter editing page is closed;

[0010] In response to the operation of defining the running order for each first node tag in the editing area, each first node tag is connected in sequence according to the running order of each first node tag, and the node programs corresponding to each first node tag are spliced ​​and combined according to the running order of each first node tag to obtain a combined command for the target PLC; the combined command includes a communication address of the target PLC;

[0011] In response to a deployment instruction for the combined command, the combined command is deployed to the industrial edge computing device.

[0012] Preferably, in response to the parameter editing trigger operation on the first node tag dragged into the editing area, before determining the target node tag and opening the parameter editing page of the target node tag, the method further comprises:

[0013] In response to an operation of dragging a node label in the node area to the editing area, determining a first node label and a display position of the first node label in the editing area;

[0014] The first node label is displayed at the display position of the first node label in the editing area; the first node label displayed in the editing area can be dragged to any position in the editing area.

[0015] Preferably, in response to an edit completion instruction on the parameter editing page, configuring the parameters edited on the parameter editing page to the node program corresponding to the target node tag includes:

[0016] In response to the editing completion instruction of the parameter editing page, each parameter in the parameter editing page is configured to the node program corresponding to the target node tag according to the editing order of the parameters in the parameter editing page.

[0017] Preferably, in response to an edit completion instruction on the parameter editing page, configuring the parameters edited on the parameter editing page to the node program corresponding to the target node tag includes:

[0018] In response to an edit completion instruction of the parameter editing page, writing the parameters edited in the parameter editing page into the parameter configuration text;

[0019] The parameter configuration text is stored in the parameter calling address of the node program corresponding to the target node label, so that the node program corresponding to the target node label calls the parameters in the parameter configuration text.

[0020] Preferably, the first node tag includes: an information acquisition tag;

[0021] In response to a parameter editing trigger operation on a first node tag dragged into an editing area, determining a target node tag and opening a parameter editing page of the target node tag includes:

[0022] In response to a parameter editing trigger operation on the information acquisition tag dragged into the editing area, the information acquisition tag is determined as a target node tag, and a parameter editing page of the information acquisition tag is opened; the parameter editing page of the information acquisition tag includes an editing column for an IP address of a target PLC and an editing column for a slot number of a target CPU of the target PLC;

[0023] In response to an edit completion instruction on the parameter editing page, configuring the parameters edited on the parameter editing page to the node program corresponding to the target node tag includes:

[0024] In response to the editing completion instruction on the parameter editing page, the IP address of the target PLC and the slot number of the target CPU of the target PLC edited in the parameter editing page are configured to the node program corresponding to the information acquisition tag, so that the industrial edge computing device obtains information from the target CPU of the target PLC through the node program corresponding to the information acquisition tag.

[0025] Preferably, the first node tag includes: a variable value writing tag;

[0026] In response to a parameter editing trigger operation on a first node tag dragged into an editing area, determining a target node tag and opening a parameter editing page of the target node tag includes:

[0027] In response to a parameter editing trigger operation of a variable value writing tag dragged into the editing area, the variable value writing tag is determined as a target node tag, and a parameter editing page of the variable value writing tag is opened; the parameter editing page of the variable value writing tag includes an editing bar for the IP address of the target PLC, an editing bar for the target variable name, an editing bar for the target variable value address, and an editing bar for the value to be written;

[0028] In response to an edit completion instruction on the parameter editing page, configuring the parameters edited on the parameter editing page to the node program corresponding to the target node tag includes:

[0029] In response to the editing completion instruction on the parameter editing page, the IP address, target variable name, target variable numerical address and numerical value to be written of the target PLC edited in the parameter editing page are configured to the node program corresponding to the variable numerical write label, so that the industrial edge computing device writes the numerical value to be written to the target variable numerical address of the target PLC through the node program corresponding to the variable numerical write label.

[0030] Preferably, the first node tag includes a run check tag, and the run check tag is run in the order of the last one of the first node tags;

[0031] After deploying the combined command to the industrial edge computing device in response to the deployment instruction for the combined command, the method further includes:

[0032] By running the node program corresponding to the inspection tag, the running results of the industrial edge computing device executing the combined command are displayed in the information display area.

[0033] A second aspect of an embodiment of the present application provides an industrial edge computing device, including:

[0034] A display unit is used to display an editing page on a web page; the editing page includes a node area, an editing area and an information display area; the node area is preset with a plurality of different node tags, each node tag is associated with a corresponding node program, and each node tag can be dragged into the editing area;

[0035] An editing unit, configured to determine a target node tag in response to a parameter editing trigger operation on a first node tag dragged to the editing area, and open a parameter editing page of the target node tag, while displaying editing guide information of each parameter to be edited in the parameter editing page in the information display area;

[0036] The editing unit is further used to configure the parameters edited in the parameter editing page to the node program corresponding to the target node label in response to the editing completion instruction of the parameter editing page, and close the parameter editing page;

[0037] The editing unit is further used for responding to the operation of defining the running order for each first node tag in the editing area, connecting each first node tag in sequence according to the running order of each first node tag, and splicing and combining the node programs corresponding to each first node tag according to the running order of each first node tag to obtain a combined command for the target PLC; the combined command includes the communication address of the target PLC;

[0038] A deployment unit is used to deploy the combined command to the industrial edge computing device in response to a deployment instruction for the combined command.

[0039] A third aspect of an embodiment of the present application provides an electronic device, including: a memory and a processor, and the memory and the processor are coupled;

[0040] The memory is used to store one or more computer instructions;

[0041] The processor is used to execute one or more computer instructions to implement any one of the above-mentioned feasible methods.

[0042] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium having one or more computer instructions stored thereon, which are executed by a processor to implement any one of the feasible methods described above.

[0043] Compared with the prior art, the present invention has the following advantages:

[0044] The present embodiment provides a PLC combination command generation method for an industrial edge computing device, comprising: displaying an editing page on a web page; the editing page comprises a node area, an editing area and an information display area; the node area is preset with a plurality of different node tags, each node tag is associated with a corresponding node program, and each node tag can be dragged into the editing area; in response to a parameter editing trigger operation of a first node tag dragged into the editing area, a target node tag is determined, and a parameter editing page of the target node tag is opened, and editing guidance information of each parameter to be edited in the parameter editing page is displayed in the information display area; in response to a parameter editing trigger operation of a first node tag dragged into the editing area, a target node tag is determined, and a parameter editing page of the target node tag is opened, and editing guidance information of each parameter to be edited in the parameter editing page is displayed in the information display area; The editing completion instruction of the parameter editing page configures the parameters edited in the parameter editing page to the node program corresponding to the target node tag, and closes the parameter editing page; in response to the operation of defining the running order for each first node tag in the editing area, each first node tag is connected in sequence according to the running order of each first node tag, and the node programs corresponding to each first node tag are spliced ​​and combined according to the running order of each first node tag to obtain a combined command for the target PLC; the combined command includes the communication address of the target PLC; in response to the deployment instruction for the combined command, the combined command is deployed to the industrial edge computing device.

[0045] In this method, an editing page including a node area, an editing area and an information display area is set on the industrial edge computing device. Each node tag in the node area is associated with a corresponding node program. An operator without programming ability can drag the node tag in the node area to the editing area for parameter editing, thereby obtaining a corresponding application program, which enables operators without programming ability to freely edit or modify the application program deployed on the industrial edge computing device according to actual needs, thereby improving the intelligence of the industrial edge computing device. In a preferred embodiment, the first node tag includes a variable value writing tag, and the variable value can be written to the target PLC through the node program associated with this tag to change the working state of the industrial equipment controlled by the target PLC, thereby controlling the industrial equipment through the industrial edge computing device to avoid manually changing the working state of the industrial equipment in a harsh environment, thereby further improving the intelligence of the industrial edge computing device. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 This is a schematic diagram of an application scenario of an industrial edge computing device provided in an embodiment of the present application.

[0047] Figure 2 It is a flow chart of a PLC combination command generation method applied to an industrial edge computing device provided in an embodiment of the present application.

[0048] Figure 3 It is a schematic diagram of page changes of a web page during the node program editing process provided by an embodiment of the present application.

[0049] Figure 4 It is a structural schematic diagram of an industrial edge computing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0050] In order to enable those skilled in the art to better understand the technical solution of the present application, the present application is described clearly and completely below in conjunction with the drawings in the embodiments of the present application. However, the present application can be implemented in many other ways different from the following description. Therefore, based on the embodiments provided by the present application, all other embodiments obtained by those of ordinary skill in the art without creative work should fall within the scope of protection of the present application.

[0051] It should be noted that the terms "first", "second", "third", etc. in the claims, description and drawings of the present application are used to distinguish similar objects and are not used to describe a specific order or sequence. The data used in this way are interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including", "having" and their variants are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0052] In this application, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed", "set" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integrated connection. It can be directly connected or indirectly connected through an intermediate medium, and it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0053] Industrial edge computing devices are important devices for data analysis and decision-making in industrial production activities. In production activities, industrial edge computing devices are usually set up at industrial sites and communicate with the PLC (Programmable Logic Controller) of various industrial equipment, thereby providing data processing services directly for various industrial equipment at the industrial site, so as to respond quickly and make quick decisions according to the data changes of the PLC.

[0054] Existing industrial edge computing devices usually communicate with multiple PLCs, and professional technicians edit and deploy applications with functions such as data collection and data analysis in the industrial edge computing devices through programming, thereby enabling the industrial edge computing devices to have functions such as data collection and data analysis.

[0055] However, the applications of existing industrial edge computing devices can only be edited or modified by professional technicians, which wastes manpower. In addition, although the existing industrial edge computing devices are connected to the PLC for communication, they only collect and analyze the data in the PLC. If the working status of the industrial equipment controlled by the PLC is to be changed, the operators on the industrial site are required to manually change it according to the data analysis results of the industrial edge computing device. The intelligence level is low and it is time-consuming and labor-intensive. Therefore, how to improve the intelligence level of industrial edge computing devices has become a technical problem to be solved.

[0056] In order to solve the technical problem of the low intelligence level of the above-mentioned industrial edge computing device, the embodiment of the present application provides a PLC combination command generation method applied to the industrial edge computing device, in which an editing page including a node area, an editing area and an information display area is set on the industrial edge computing device, and each node label in the node area is associated with a corresponding node program. An operator without programming ability can drag the node label in the node area to the editing area for parameter editing, thereby obtaining the corresponding application program, which can enable operators without programming ability to freely edit or modify the application program deployed on the industrial edge computing device according to actual needs, thereby improving the intelligence level of the industrial edge computing device. In a preferred embodiment, the first node label includes a variable value writing label, and the variable value can be written to the target PLC through the node program associated with this label to change the working state of the industrial equipment controlled by the target PLC, so as to control the industrial equipment through the industrial edge computing device to avoid manually changing the working state of the industrial equipment in a harsh environment, thereby further improving the intelligence level of the industrial edge computing device.

[0057] The PLC combination command generation method provided in this embodiment is applied to an industrial edge computing device. For details, please refer to Figure 1 , Figure 1 This is a schematic diagram of an application scenario of an industrial edge computing device provided in an embodiment of the present application. The industrial edge computing device can communicate with the PLCs of multiple industrial devices to collect variable values ​​of the PLCs of multiple industrial devices and write the variable values ​​into the PLCs. At the same time, the industrial edge computing device can also be connected to a cloud server, so that the cloud server can access data or download data from the cloud server. For example, Figure 1As shown, the industrial edge computing device 5 is respectively connected to the PLCs of industrial equipment 1, industrial equipment 2, industrial equipment 3 and industrial equipment 4, and is simultaneously connected to the cloud server 6, so that the industrial edge computing device 5 collects the variable values ​​in the PLCs of industrial equipment 1, industrial equipment 2, industrial equipment 3 and industrial equipment 4, and performs data analysis and decision-making based on the variable values ​​of each PLC. At the same time, the industrial edge computing device 5 is accessed by the cloud server 6 for data or downloads the node labels and node programs associated with the node labels updated on the cloud server 6 from the cloud server 6. Of course, in a specific implementation, it is not limited to Figure 1 The connection method shown can be used to set up more industrial edge computing devices and more industrial equipment, without any limitation here.

[0058] The method for generating a PLC combined command for an industrial edge computing device provided in this embodiment is as follows: Figure 2 and Figure 3 As shown, Figure 2 1 is a flow chart of a method for generating a PLC combination command for an industrial edge computing device provided in an embodiment of the present application. Figure 3 Schematic diagram of page changes of a web page during the node program editing process provided by an embodiment of the present application. Figure 2 As shown, the method includes steps S101-S105, which are specifically as follows.

[0059] S101. Display an editing page on a web page; the editing page includes a node area, an editing area and an information display area; the node area is preset with a plurality of different node tags, each node tag is associated with a corresponding node program, and each node tag can be dragged into the editing area.

[0060] The industrial edge computing device provided in this embodiment has a graphical user interface for operators to interact with the industrial edge computing device. The graphical user interface displays a web page for operators to customize the application, such as Figure 3 As shown, the web page includes a node area, an editing area and an information display area.

[0061] The node area is a display area for displaying node labels. The node area is pre-set with multiple different node labels, each node label is associated with a corresponding node program, and each node label can be dragged into the editing area. Different node labels correspond to different functions, and accordingly, the node programs associated with different node labels are pre-written applications with the functions of each node label according to the functions of each node label.

[0062] Exemplarily, the node tag may include an information acquisition tag, and the function of the node program associated with the information acquisition tag is to obtain information from the PLC. The node tag may also include a variable value writing tag, and the function of the node program associated with the variable value writing tag is to write the preset or simulated variable value into the PLC to change the working state of the industrial equipment controlled by the PLC. The node tag may also include an operation inspection tag, and the function of the node program associated with the operation inspection tag is to inspect the operation results of the node programs of other node tags. In addition, the node tags preset in the node area may also include tags of other functions, such as setting an attribute modification tag to modify the attributes of other tags, setting an information aggregation node to combine multiple data information into a preset format, and setting a function node to process the received data information.

[0063] When each node label is displayed in the node area, it is arranged and displayed in the form of an image mark. The image mark of the node label in the node area can be set to a variety of image styles or shapes. For example, Figure 3 The elliptical icon shown is also a square icon, etc., and can be distinguished by a code, which is not specifically limited here. The node label in the node area can be removed from the node area under the removal operation of the operator, or the node label in the database or cloud server can be added to the node area in response to the node addition operation of the operator, which is not limited here.

[0064] The editing area is an area where each node label is edited into a combination command for the target PLC, where the combination command for the target PLC is the application program required by the operator. Specifically, the operator can define parameters for the node label in the editing area so that the node program associated with the node label is complete. The operation order of each node label can also be defined so that the node programs associated with each node label are spliced ​​and combined in order.

[0065] The information display area is used to display the editing guidance information of each node label. The editing guidance information is to introduce the functions and properties of each node label and what parameters need to be edited for the node label to the operator to guide the operator to edit it correctly. For example, after the operator clicks the information acquisition label in the node area, the name, function, parameters to be edited and the running order relative to other node labels of the information acquisition label will be displayed in the information display area, so as to guide the operator to edit it correctly.

[0066] When the operator edits the required combined command for the target PLC, he must first drag the required node label from the node area to the editing area, and then edit the node label dragged to the editing area. For ease of explanation, in this embodiment, the node label dragged to the editing area is called the first node label to distinguish it from the node label that is not dragged to the editing area.

[0067] It should be clear that the node labels displayed in the node area are equivalent to the templates of each node label. When the operator drags the node label from the node area to the editing area, the dragged node label in the node area will not disappear, but the identification of the first node label will be generated and displayed according to the first node label dragged to the editing area. A specific implementation may include: in response to the operation of dragging a node label in the node area to the editing area, determining the first node label and the display position of the first node label in the editing area; displaying the first node label at the display position of the first node label in the editing area; the first node label displayed in the editing area can be dragged to any position in the editing area.

[0068] The process of editing the first node label dragged into the edit area is specifically shown in step S102 and step S103, and is specifically as follows.

[0069] S102. In response to the parameter editing trigger operation of the first node label dragged into the editing area, the target node label is determined, and the parameter editing page of the target node label is opened, and the editing guidance information of each parameter to be edited in the parameter editing page is displayed in the information display area.

[0070] When the operator edits the parameters of the first node tag dragged to the editing area, the operator needs to first perform a parameter editing trigger operation on the first node tag to be edited. After the operator performs the parameter editing trigger operation, the industrial edge computing device responds to the parameter editing trigger operation, thereby determining the target node tag and opening the parameter editing page of the target node tag.

[0071] The parameter editing trigger operation refers to the human-computer interaction operation of the operator opening the parameter editing page of the target node tag. In a specific implementation, the parameter editing trigger operation can be a click operation performed by the operator on the first node tag that the operator wants to edit, and the click operation can be a touch screen operation or a key operation, which is not limited here.

[0072] When the industrial edge computing device responds to a parameter editing trigger operation, it determines the node label specified by the parameter editing trigger operation as the target node label, and then opens the parameter editing page of the target node label so that the operator can edit the parameters to be defined for the node program associated with the target node label.

[0073] The parameter editing page includes an editing bar for the parameters to be defined and a virtual control indicating that the editing is completed, and the editing methods provided by the editing bar may include a selected input method or a typed input method, which is not limited here. At the same time, in order to enable the operator to accurately edit each parameter, the editing guidance information of each parameter to be edited in the parameter editing page will be displayed in the information display area to explain the meaning and function of each parameter.

[0074] When the operator has finished editing each parameter, he / she performs the editing completion operation on the parameter editing page to generate an editing completion instruction for the parameter editing page, and the industrial edge computing device will respond to the editing completion instruction, as shown in the next step.

[0075] S103. In response to an editing completion instruction on the parameter editing page, the parameters edited on the parameter editing page are configured to the node program corresponding to the target node tag, and the parameter editing page is closed.

[0076] In this step, the industrial edge computing device will respond to the edit completion instruction and configure the parameters edited in the parameter editing page to the node program corresponding to the target node tag. Specifically, the node program corresponding to the target node tag will reserve parameters that need to be edited by the operator. When the industrial edge computing device detects the edit completion instruction of the parameter editing page, it will automatically configure the parameters in the parameter editing page to the positions reserved for each parameter in the node program corresponding to the target node tag, thereby completing the node program corresponding to the target node tag.

[0077] In this embodiment, when configuring the parameters edited in the parameter editing page to the node program corresponding to the target node tag, the configuration can be completed by parameter writing or parameter calling.

[0078] When parameter configuration is completed by parameter writing, in response to the editing completion instruction of the parameter editing page, the parameters edited in the parameter editing page are configured to the node program corresponding to the target node label, including: in response to the editing completion instruction of the parameter editing page, each parameter in the parameter editing page is configured to the node program corresponding to the target node label according to the editing order of the parameters in the parameter editing page.

[0079] That is to say, when responding to the editing completion instruction on the parameter editing page, the parameters are written into the position reserved for each parameter in the node program corresponding to the target node label in the order of their appearance on the parameter editing page, thereby making the node program complete and completing the parameter configuration process.

[0080] When the configuration is completed by means of parameter calling, in response to the editing completion instruction of the parameter editing page, the parameters edited in the parameter editing page are configured to the node program corresponding to the target node label, including: in response to the editing completion instruction of the parameter editing page, the parameters edited in the parameter editing page are written into the parameter configuration text; the parameter configuration text is stored in the parameter calling address of the node program corresponding to the target node label, so that the node program corresponding to the target node label calls the parameters in the parameter configuration text.

[0081] In this implementation, when responding to the editing completion instruction on the parameter editing page, the parameters edited in the parameter editing page will be written into the parameter configuration text, and the parameter configuration text will be stored in the parameter call address of the node program corresponding to the target node label, so that the node program corresponding to the target node label can directly call the edited parameters from the parameter call address to avoid repeated superposition of too many node programs when multiple target node labels are used simultaneously in parameter changes or a combined command.

[0082] It should be clear that not all node labels require operators to edit parameters. The node programs associated with node labels that do not require parameter editing are preset complete programs and are often used in combination with other node labels that require parameter editing. For example, the node program associated with the run check label is a preset run check program, which is generally used in combination with other node labels to check the running results of the node programs of other node labels. The node program associated with the run check label is a preset complete program and does not require operators to edit parameters.

[0083] After the operator completes the parameter editing of each first node tag, the operator can further define the operation sequence of each first node tag, as shown in the next step.

[0084] S104. In response to the operation of defining the running order for each first node tag in the editing area, each first node tag is connected in sequence according to the running order of each first node tag, and the node programs corresponding to each first node tag are spliced ​​and combined according to the running order of each first node tag to obtain a combined command for the target PLC; the combined command includes the communication address of the target PLC.

[0085] When the operator performs an operation to define the running order for each first node tag in the editing area, the industrial edge computing device adjusts the running order of each first node tag. In addition, in order to display the current running order of each first node tag to the operator, each first node tag is connected in sequence according to the running order of each first node tag.

[0086] At the same time, when the operator defines the running order of each first node label, the industrial edge computing device will splice and combine the node programs corresponding to each first node label according to the running order of each first node label. In addition, the operator can modify the order of each first node label with a defined running order, and the industrial edge computing device will re-order and splice the node programs corresponding to each first node label according to the modified running order.

[0087] When the running order of each first node tag is defined, the background will splice and combine the node programs corresponding to each first node tag into a combined command according to the running order of each first node tag, and the combined command includes the communication address of the target PLC, so that the combined command is targeted at the target PLC. Specifically, the communication address of the target PLC can be edited by the operator when editing parameters for each first node tag, or it can be a preset fixed communication address, which is not limited here.

[0088] After defining the running order of each first node label and generating a combined command for the target PLC, the operator can deploy it on the industrial edge computing device so that the edited combined command can be run on the industrial edge computing device, as shown in the next step.

[0089] S105. In response to a deployment instruction for the combined command, deploy the combined command to an industrial edge computing device.

[0090] When the operator performs a deployment operation on the combined command, it can be achieved by triggering the deployment control on the graphical user interface or by a preset button, without limitation. When the operator performs the deployment operation, the industrial edge computing device detects the generated deployment instruction for the combined command and deploys the edited combined command to the industrial edge computing device for execution.

[0091] The implementation process of step S101 to step S105 substantially corresponds to the process of the operator editing the combined command. In this process, the web page will generate page changes in response to the node program editing process. Specifically, Figure 3 shown.

[0092] In such Figure 3 In the illustrated implementation mode, first, the operator drags node label A, node label C and node label E from the node area to the editing area respectively, and node label A, node label C and node label E are the first node labels.

[0093] Then, the operator edits the parameters of these three nodes. When the parameter editing trigger operation is performed on node label A, node label A is the target node label, and the parameter editing page of node label A is opened. The information display area displays the editing guidance information of each parameter to be edited. After the operator has edited each parameter on the parameter editing page of node label A, the "editing completed" control is triggered, thereby generating an editing completion instruction for the parameter editing page, so that the industrial edge computing device configures the parameters edited in the parameter editing page of node label A to the node program corresponding to node label A, and closes the parameter editing page of node label A.

[0094] After the operator edits the parameters of node label A, node label C, and node label E, the operator adjusts the positions of node label A, node label C, and node label E and defines their respective running orders, so that the three node labels are connected in the order of A-E-C. The background will splice and combine the node programs of the three node labels in the order of A-E-C to obtain the combined command for the target PLC. Finally, the operator triggers the "deploy" control to deploy the combined command to the industrial edge computing device.

[0095] The above is the basic implementation method of the PLC combination command generation method provided in this embodiment. On the basis of the above implementation method, when the first node label used to generate the combination command for the target PLC is different, the specific implementation method of each step and the function of the obtained combination command will also be different.

[0096] In one embodiment, the first node tag includes an information acquisition tag. After the combined command generated by the first node tag for the target PLC is deployed, the combined command must obtain information from the target PLC, so the information acquisition address needs to be defined for the first node tag. In the communication protocol for the industrial edge computing device to communicate with the target PLC, the IP address of the target PLC and the slot number of the target CPU of the target PLC are used to locate the information acquisition address of the industrial edge computing device in the target PLC. Therefore, the parameters that need to be edited for the first node tag include at least the IP address of the target PLC and the slot number of the target CPU of the target PLC.

[0097] The specific implementation method is that the first node tag includes: an information acquisition tag. In response to the parameter editing trigger operation of the first node tag dragged into the editing area, the target node tag is determined, and the parameter editing page of the target node tag is opened, including: in response to the parameter editing trigger operation of the information acquisition tag dragged into the editing area, the information acquisition tag is determined as the target node tag, and the parameter editing page of the information acquisition tag is opened; the parameter editing page of the information acquisition tag includes an editing bar for the IP address of the target PLC and an editing bar for the slot number of the target CPU of the target PLC. In response to the editing completion instruction of the parameter editing page, the parameters edited in the parameter editing page are configured to the node program corresponding to the target node tag, including: in response to the editing completion instruction of the parameter editing page, the IP address of the target PLC edited in the parameter editing page and the slot number of the target CPU of the target PLC are configured to the node program corresponding to the information acquisition tag, so that the industrial edge computing device determines the information acquisition address through the node program corresponding to the information acquisition tag and obtains the information of the target PLC from the information acquisition address.

[0098] Of course, in addition to editing the IP address of the target PLC and the slot number of the target CPU of the target PLC, the parameter editing page can also include an editing bar for the information acquisition mode, which can be edited as a periodic trigger mode and a value change trigger mode. When set to the periodic trigger mode, the node program corresponding to the information acquisition tag is periodically triggered according to the preset period value, thereby periodically acquiring data from the target PLC. When set to the value change trigger mode, the target PLC detects changes in the value of its own variables. Whenever a change in the value of a variable is detected, it is fed back to the industrial edge computing device, which collects the information accordingly.

[0099] It should be noted that the information collected by the industrial edge computing device is mainly the variable values ​​of the target PLC. In the target PLC, different variables are associated with different terminal components, and the variable values ​​are used to indicate the working status of the terminal components associated with the variables. Exemplarily, when a variable is associated with a switch, the value of the variable corresponds to the open and closed state of the switch. For example, if the variable value is 0, it means that the switch associated with the variable is in the closed state, and if the variable value is 1, it means that the switch associated with the variable is in the open state. In addition, the variable can also be associated with a sensor. In this case, the variable value is the specific value detected by the sensor. Of course, a certain value can also be preset to indicate that the sensor is in the closed state.

[0100] In another embodiment, the first node tag includes a variable value writing tag, so that when the industrial edge computing device executes the combined command generated according to the variable value writing tag, it can write the variable value to the target PLC, thereby changing the working state of the terminal element associated with the variable of the target PLC, thereby changing the overall working state of the industrial equipment controlled by the target PLC, or providing a reference value for the sensor associated with the variable of the target PLC by writing the variable value to the target PLC. Of course, when the variable value is written to the target PLC to change the working state of the terminal element associated with the variable of the target PLC, the terminal element associated with the variable of the target PLC can be controlled by the target PLC. For example, when the variable of the target PLC is associated with a switch, the switch should be an electric switch or an electromagnetic switch that can be controlled by the target PLC. The switch is originally in the closed state, that is, the variable value associated with the switch is 0, but after the industrial edge computing device writes the variable value associated with the switch to the target PLC as 1 through the combined command, the target PLC can control the switch from the closed state to the open state according to the change of the variable value.

[0101] When editing the parameters for writing variable values ​​to tags, you need to define the target PLC's IP address, the target variable name, the target variable value address, and the value to be written. A specific implementation method thereof may be that the first node label includes: a variable value write label; in response to a parameter editing trigger operation of the first node label dragged into the editing area, determining the target node label, and opening the parameter editing page of the target node label includes: in response to a parameter editing trigger operation of the variable value write label dragged into the editing area, determining the variable value write label as the target node label, and opening the parameter editing page of the variable value write label; the parameter editing page of the variable value write label includes an editing bar for the IP address of the target PLC, an editing bar for the target variable name, an editing bar for the target variable value address, and an editing bar for the value to be written; in response to an editing completion instruction of the parameter editing page, configuring the parameters edited in the parameter editing page to the node program corresponding to the target node label includes: in response to an editing completion instruction of the parameter editing page, configuring the IP address of the target PLC, the target variable name, the target variable value address, and the value to be written edited in the parameter editing page to the node program corresponding to the variable value write label, so that the industrial edge computing device writes the value to be written to the target variable value address of the target PLC through the node program corresponding to the variable value write label.

[0102] Of course, in this embodiment, in addition to editing the IP address of the target PLC and the slot number of the target CPU of the target PLC, the parameter editing page can also include an editing bar for the information acquisition mode. The information acquisition mode can be edited as a periodic trigger mode and a value change trigger mode, which will not be elaborated here.

[0103] This implementation method can write variable values ​​to the target PLC through the node program associated with the variable value writing tag to change the working state of the industrial equipment controlled by the target PLC, realize the automatic control of the industrial equipment, and further improve the intelligence of the industrial edge computing device.

[0104] In addition, in a further implementation, before the running order of the variable value writing tag, an information acquisition tag and a function tag are also included, and the three are combined to obtain a command in the running order of information acquisition tag-function tag-variable value writing tag. After this combined command is deployed, the industrial edge computing device can obtain the variable value of the target PLC through the node program corresponding to the information acquisition tag, and then the function tag determines whether each numerical variable is abnormal based on the obtained variable value of the target PLC. If an abnormality occurs, the function tag generates the correct variable value, and writes the correct variable value to the target PLC through the variable value writing tag, thereby achieving the purpose of automatically correcting the working state of the terminal components associated with each variable of the target PLC by the industrial edge computing device.

[0105] By executing PLC combination commands in the edge computing device, the calculations originally performed by the PLC device can be taken over, reducing the calculation burden of the PLC device. It can also realize some calculations that the PLC device cannot realize, and send the calculation results back to the target PLC device for execution, or send the calculation results to other target devices (for example, send them to the display monitoring device to display the status of the device controlled by the PLC device, etc.); in addition, by connecting the association information between multiple PLC devices of the edge computing device, it is also possible to obtain calculations that a certain PLC device cannot perform based on its own information, thereby realizing information association and operation association between multiple devices.

[0106] In addition, in this embodiment, the normal operation of the combined command can also be checked by running the inspection tag. A feasible implementation method may be that the first node tag includes an operation inspection tag, and the operation order of the operation inspection tag is the last one of the first node tags; after the combined command is deployed to the industrial edge computing device in response to the deployment instruction for the combined command, the method also includes: displaying the operation result of the industrial edge computing device executing the combined command in the information display area through the node program corresponding to the operation inspection tag.

[0107] Of course, in addition to the implementation methods listed above, the node labels in this embodiment can also include labels of other functions so that the combined command has other functions. When the node labels are different, the parameter editing page may also be different, and no specific restrictions are made here.

[0108] The PLC combination command generation method applied to the industrial edge computing device provided by the present application is provided on the industrial edge computing device, and an editing page including a node area, an editing area and an information display area is set. Each node label in the node area is associated with a corresponding node program. An operator without programming ability can drag the node label in the node area to the editing area for parameter editing, thereby obtaining a corresponding application program, which can enable an operator without programming ability to freely edit or modify the application program deployed on the industrial edge computing device according to actual needs, thereby improving the intelligence of the industrial edge computing device. In a preferred embodiment, the first node label includes a variable value writing label, and the variable value can be written to the target PLC through the node program associated with this label to change the working state of the industrial equipment controlled by the target PLC, thereby controlling the industrial equipment through the industrial edge computing device to avoid manually changing the working state of the industrial equipment in a harsh environment, thereby further improving the intelligence of the industrial edge computing device.

[0109] The above embodiments introduce in detail the PLC combination command generation method for industrial edge computing devices involved in this application. Figure 4 The industrial edge computing device involved in this application is introduced in detail. Figure 4 A schematic diagram of the structure of an industrial edge computing device provided in an embodiment of the present application. The industrial edge computing device can implement any feasible PLC combination command generation method provided in the above embodiments.

[0110] The industrial edge computing device includes:

[0111] The display unit 401 is used to display an editing page on a web page; the editing page includes a node area, an editing area and an information display area; the node area is preset with a plurality of different node tags, each of which is associated with a corresponding node program, and each of which can be dragged into the editing area;

[0112] The editing unit 402 is used to determine a target node tag in response to a parameter editing trigger operation of the first node tag dragged to the editing area, open a parameter editing page of the target node tag, and display editing guide information of each parameter to be edited in the parameter editing page in the information display area;

[0113] The editing unit 402 is further configured to configure the parameters edited in the parameter editing page to the node program corresponding to the target node tag in response to an editing completion instruction of the parameter editing page, and close the parameter editing page;

[0114] The editing unit 402 is further configured to, in response to an operation of defining a running order for each of the first node tags in the editing area, sequentially connect each of the first node tags according to the running order of each of the first node tags, and splice and combine the node programs corresponding to each of the first node tags according to the running order of each of the first node tags to obtain a combined command for a target PLC; the combined command includes a communication address of the target PLC;

[0115] The deployment unit 403 is used to deploy the combined command to the industrial edge computing device in response to a deployment instruction for the combined command.

[0116] The display unit 401, the editing unit 402, and the deployment unit 403 are also specifically used to execute the other steps of any feasible PLC combination command generation method applied to the industrial edge computing device provided in the above-mentioned embodiments. For the corresponding functions, please refer to the relevant description of the PLC combination command generation method applied to the industrial edge computing device provided in the above-mentioned embodiments, and no redundant description is made here.

[0117] The embodiment of the present application also provides an electronic device, wherein the electronic device includes a processor and a memory, the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the above method. The electronic device also includes a bus and a communication interface, wherein the processor, the communication interface and the memory are connected via the bus.

[0118] Among them, the memory and the processor are coupled, the memory is used to store one or more computer instructions; the processor is used to execute one or more computer instructions to implement any feasible method provided in the above embodiments. The specific implementation can be found in the above method embodiments, which will not be repeated here.

[0119] An embodiment of the present application also provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are called and executed by a processor, the computer executable instructions prompt the processor to implement any feasible method provided in the above embodiments. The specific implementation can be found in the above method embodiments, which will not be repeated here.

[0120] In the description of the present application, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present application. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.

[0121] In addition, the information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0122] Finally, it should be noted that the above embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A PLC combination command generation method applied to an industrial edge computing device, characterized in that: The method comprises: Displaying an editing page on a web page; the editing page includes a node area, an editing area, and an information display area; the node area is preset with a plurality of different node tags, each of the node tags is associated with a corresponding node program, and each of the node tags can be dragged into the editing area; In response to a parameter editing trigger operation on a first node tag dragged to the editing area, a target node tag is determined, and a parameter editing page of the target node tag is opened, and editing guide information of each parameter to be edited in the parameter editing page is displayed in the information display area; In response to an edit completion instruction of the parameter editing page, configuring the parameters edited in the parameter editing page to the node program corresponding to the target node tag, and closing the parameter editing page; In response to the operation of defining the running order for each of the first node tags in the editing area, each of the first node tags is connected in sequence according to the running order of each of the first node tags, and the node programs corresponding to each of the first node tags are spliced ​​and combined according to the running order of each of the first node tags to obtain a combined command for the target PLC; the combined command includes the communication address of the target PLC; In response to a deployment instruction for the combined command, deploying the combined command to the industrial edge computing device; The first node tag includes a run inspection tag, the node program associated with the run inspection tag is a preset run inspection program, the run inspection tag is run in the order of the last one of the first node tags, and is used to verify the normal operation of the combined command through the run inspection tag, and display the running result of the combined command in the information display area through the node program corresponding to the run inspection tag; The configuring of the parameters edited in the parameter editing page to the node program corresponding to the target node label includes: configuring the parameters in the parameter editing page to the positions reserved for each parameter in the node program corresponding to the target node label, thereby making the node program corresponding to the target node label complete, wherein the parameters to be edited are reserved in the node program corresponding to the target node label.

2. The PLC combination command generation method applied to an industrial edge computing device according to claim 1 is characterized in that: Before determining a target node tag and opening a parameter editing page of the target node tag in response to a parameter editing trigger operation on the first node tag dragged into the editing area, the method further includes: In response to an operation of dragging a node label in the node area to the editing area, determining a first node label and a display position of the first node label in the editing area; The first node label is displayed at the display position of the first node label in the editing area; the first node label displayed in the editing area can be dragged to any position in the editing area.

3. The PLC combination command generation method applied to an industrial edge computing device according to claim 1 is characterized in that: The step of responding to the edit completion instruction of the parameter editing page, configuring the parameters edited in the parameter editing page to the node program corresponding to the target node tag includes: In response to the editing completion instruction of the parameter editing page, each parameter in the parameter editing page is configured to the node program corresponding to the target node tag according to the editing order of the parameters in the parameter editing page.

4. The PLC combination command generation method applied to an industrial edge computing device according to claim 1, characterized in that: The step of responding to the edit completion instruction of the parameter editing page, configuring the parameters edited in the parameter editing page to the node program corresponding to the target node tag includes: In response to an edit completion instruction of the parameter editing page, writing the parameters edited in the parameter editing page into the parameter configuration text; The parameter configuration text is stored in the parameter calling address of the node program corresponding to the target node label, so that the node program corresponding to the target node label calls the parameters in the parameter configuration text.

5. The PLC combination command generation method applied to an industrial edge computing device according to claim 1, characterized in that: The first node tag includes: an information acquisition tag; In response to the parameter editing trigger operation of the first node tag dragged into the editing area, determining the target node tag and opening the parameter editing page of the target node tag comprises: In response to a parameter editing trigger operation on an information acquisition tag dragged into the editing area, the information acquisition tag is determined as a target node tag, and a parameter editing page of the information acquisition tag is opened; the parameter editing page of the information acquisition tag includes an editing column for an IP address of a target PLC and an editing column for a slot number of a target CPU of the target PLC; The step of responding to the edit completion instruction of the parameter editing page, configuring the parameters edited in the parameter editing page to the node program corresponding to the target node tag includes: In response to the editing completion instruction of the parameter editing page, the IP address of the target PLC and the slot number of the target CPU of the target PLC edited in the parameter editing page are configured to the node program corresponding to the information acquisition tag, so that the industrial edge computing device determines the information acquisition address through the node program corresponding to the information acquisition tag and obtains the information of the target PLC from the information acquisition address.

6. The PLC combination command generation method for industrial edge computing device according to claim 1, characterized in that: The first node tag includes: a variable value writing tag; In response to the parameter editing trigger operation of the first node tag dragged into the editing area, determining the target node tag and opening the parameter editing page of the target node tag comprises: In response to a parameter editing trigger operation on a variable value writing tag dragged into the editing area, the variable value writing tag is determined as a target node tag, and a parameter editing page of the variable value writing tag is opened; the parameter editing page of the variable value writing tag includes an editing bar for an IP address of a target PLC, an editing bar for a target variable name, an editing bar for a target variable value address, and an editing bar for a value to be written; The step of responding to the edit completion instruction of the parameter editing page, configuring the parameters edited in the parameter editing page to the node program corresponding to the target node tag includes: In response to the editing completion instruction of the parameter editing page, the IP address of the target PLC, the target variable name, the target variable numerical address and the value to be written edited in the parameter editing page are configured to the node program corresponding to the variable numerical write label, so that the industrial edge computing device writes the value to be written to the target variable numerical address of the target PLC through the node program corresponding to the variable numerical write label.

7. An industrial edge computing device, characterized in that: include: A display unit, used to display an editing page on a web page; the editing page includes a node area, an editing area and an information display area; the node area is preset with a plurality of different node tags, each of which is associated with a corresponding node program, and each of which can be dragged into the editing area; an editing unit, configured to determine a target node tag in response to a parameter editing trigger operation on a first node tag dragged to the editing area, and open a parameter editing page of the target node tag, and display editing guide information of each parameter to be edited in the parameter editing page in the information display area; The editing unit is further used to configure the parameters edited in the parameter editing page to the node program corresponding to the target node label in response to an editing completion instruction of the parameter editing page, and close the parameter editing page; The editing unit is further configured to, in response to an operation of defining a running order for each of the first node tags in the editing area, sequentially connect each of the first node tags according to the running order of each of the first node tags, and splice and combine the node programs corresponding to each of the first node tags according to the running order of each of the first node tags to obtain a combined command for a target PLC; the combined command includes a communication address of the target PLC; a deployment unit, configured to deploy the combined command to the industrial edge computing device in response to a deployment instruction for the combined command; The first node tag includes a run inspection tag, the node program associated with the run inspection tag is a preset run inspection program, the run inspection tag is run in the order of the last one of the first node tags, and is used to verify the normal operation of the combined command through the run inspection tag, and display the running result of the combined command in the information display area through the node program corresponding to the run inspection tag; The configuring of the parameters edited in the parameter editing page to the node program corresponding to the target node label includes: configuring the parameters in the parameter editing page to the positions reserved for each parameter in the node program corresponding to the target node label, thereby making the node program corresponding to the target node label complete, wherein the parameters to be edited are reserved in the node program corresponding to the target node label.

8. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are coupled; The memory is used to store one or more computer instructions; The processor is configured to execute the one or more computer instructions to implement the method according to any one of claims 1-6.

9. A computer-readable storage medium having one or more computer instructions stored thereon, characterized in that: The instruction is executed by a processor to implement the method according to any one of claims 1 to 6.