Control method, system, device, equipment, storage medium and computer program product

By establishing a first interface for setting correlation between vPLCs and limiting interaction conditions, the problem of excessive interactions between vPLCs in the cloud-based centralized industrial collaborative control architecture is solved, and the efficiency of computing power resources is improved.

CN118938789APending Publication Date: 2024-11-12CHINA MOBILE COMM LTD RES INST +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410924017.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

The existing cloud-based centralized industrial collaborative control architecture in PLC networking has led to an exponential increase in the number of interactions between vPLCs, reducing the efficiency of computing resource use.

Method used

By establishing a first interface with set correlation between vPLCs, the interaction conditions are restricted and the interface is established only when necessary to coordinate the interaction between vPLCs and reduce the number of interactions between containers.

Benefits of technology

It improves the efficiency of computing power resources, avoids signaling storms, and improves the coordination efficiency between vPLCs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118938789A_ABST
    Figure CN118938789A_ABST
Patent Text Reader

Abstract

The invention discloses a control method, system, device and equipment, a storage medium and a computer program product, and the method comprises the steps: network equipment generates a control instruction combination; the control instruction combination comprises a plurality of control instructions sequentially executed by a plurality of virtual programmable logic controllers (vPLCs) respectively; sending the control instruction combination to one or more vPLCs in the plurality of vPLCs based on the establishment condition of a first interface between the vPLCs in the plurality of vPLCs; wherein the first interface between the two vPLCs is established under the condition that the set correlation exists between the two vPLCs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of industrial control, and in particular to a control method, system, device, equipment, storage medium and computer program product. Background Art

[0002] In the related technology, a cloud-based centralized industrial collaborative control architecture is used to network programmable logic controllers (PLCs), cloud the control logic of each physical PLC, and use virtual programmable logic controllers (vPLCs) for industrial collaboration. However, the cloud-based control logic corresponding to each vPLC is the same as the control logic of the original physical PLC, which reduces the efficiency of computing resource utilization.

[0003] Most industrial production adopts assembly line operation. Specifically, industrial control equipment is located in the industrial site, and forms production-capable workstations with robots and production equipment. The workstations are connected by conveyor belts, material racks, etc., and the closed loop of the production process is completed through unified and precise collaborative control. Traditional collaborative control systems mainly network the core control device PLC through wired connections. The network topology structures of the mainstream collaborative architecture in industrial sites include ring, star, and bus types, but they all have defects, such as Figure 1 As shown,

[0004] In the ring structure, the data on the ring is transmitted from the source node to the destination node in a predetermined direction, and the path selection control method is simple. However, since the data from the source node to the destination node must pass through various intermediate nodes on the ring, a node failure will block the information path, resulting in poor reliability.

[0005] The star structure has a central node, and all other nodes on the network are connected to the central node. Communications are managed by the central node, and any communication between two nodes must be relayed through the central node. This structure has a simple control method, but low reliability. Once the central node fails, the entire system will be paralyzed.

[0006] In a bus structure, all nodes are connected to a common communication bus. Any node can transmit data on the bus and can be received by any node on the bus. This structure is simple and flexible, and it is easy to add new nodes, and even multiple buses can be connected using repeaters. Nodes communicate directly through the bus, which is fast and has low latency. The failure of a node will not affect the work of other nodes, and the reliability is high. However, since all nodes share a bus, the information transmitted on the bus is prone to conflict and collision, resulting in contention for bus control and reduced transmission efficiency.

[0007] With the development of new generation information technologies such as 5G and cloud computing, related technologies use cloud-based centralized industrial collaborative control architecture to network PLCs, such as Figure 2 As shown, the control logic of each physical PLC is clouded and placed in its own independent container. Figure 2 The PLC in the container of the industrial cloud base station is also called vPLC. vPLC reuses computing resources for industrial collaborative control. However, the cloud control logic corresponding to the vPLC is the same as the control logic of the original physical PLC, which makes all vPLCs have the ability to interact with each other. This will lead to an exponential increase in the number of interactions between containers, resulting in signaling storms and reducing the efficiency of computing resource utilization. Summary of the invention

[0008] To solve the related technical problems, the present application provides a control method, system, device, equipment, storage medium and computer program product.

[0009] The technical solution of this application is implemented as follows:

[0010] The present application provides a control method, which is applied to a network device, and the method includes:

[0011] Generate a control instruction combination; the control instruction combination includes a plurality of control instructions to be executed in sequence by a plurality of virtual programmable logic controllers vPLC respectively;

[0012] Based on the establishment of the first interface between the vPLCs in the multiple vPLCs, the control instruction combination is sent to one or more vPLCs in the multiple vPLCs; wherein,

[0013] The first interface between two vPLCs is established with a set correlation between the two vPLCs.

[0014] In the above solution, the sending of the control instruction combination to one or more vPLCs among the multiple vPLCs based on the establishment of the first interface between the vPLCs among the multiple vPLCs includes:

[0015] Sending all or part of the control instructions in the control instruction combination to a first vPLC among the multiple vPLCs; the first vPLC represents one of the multiple vPLCs with the first interface established between each other; all or part of the control instructions are respectively executed by the multiple vPLCs with the first interface established between each other; and / or,

[0016] A control instruction in the control instruction combination is sent to a second vPLC among the multiple vPLCs; the second vPLC represents a vPLC that does not have a first interface established; and the one control instruction is executed by the second vPLC.

[0017] In the above scheme, the method further comprises:

[0018] When the set correlation exists between the two vPLCs, third information is sent to any one of the two vPLCs; the third information is used to indicate the establishment of the first interface between the two vPLCs, and the third information includes an identifier of each of the two vPLCs.

[0019] In the above scheme, the set correlation indicates that periodic calls are made between the two vPLCs, and the call frequency in each cycle exceeds a set threshold; the method further includes:

[0020] Determine whether the two vPLCs have the set correlation based on the reported information; and / or,

[0021] The calling frequency between the two vPLCs is sensed, and based on the calling frequency, it is determined whether the two vPLCs have the set correlation.

[0022] In the above solution, sensing the calling frequency between the two vPLCs and determining whether the two vPLCs have the set correlation based on the calling frequency includes:

[0023] At every set time, sense the calling frequency between the two vPLCs within the set time, and obtain one or more sensing results;

[0024] When the one or more perception results indicate that the calling frequency between the two vPLCs exceeds a set threshold within each set time period, it is determined that there is a set correlation between the two vPLCs.

[0025] In the above scheme, the method further comprises:

[0026] Receive the fourth information sent by the vPLC; wherein,

[0027] The fourth information is used to request registration of the vPLC; the fourth information includes capabilities of the vPLC for which registration is requested; and the capabilities include control instructions that the vPLC supports for execution.

[0028] In the above solution, after receiving the fourth information sent by the vPLC, the method further includes:

[0029] A second interface is established with the vPLC requesting registration.

[0030] The present application also provides a control method, which is applied to a first vPLC, wherein the first vPLC represents a vPLC having a first interface established; wherein the first interface is established when there is a set correlation between two vPLCs; the method comprises:

[0031] Based on the received multiple control instructions, execute one of the multiple control instructions, and send other control instructions of the multiple control instructions except the one control instruction through one or more first interfaces; and / or,

[0032] A control instruction is received through the first interface, and the control instruction is executed.

[0033] In the above scheme, the method further includes:

[0034] Receive third information; the third information is used to indicate that the first interface is established between two vPLCs, and the third information includes an identifier of the first vPLC and an identifier of a third vPLC;

[0035] Based on the third information, the first interface is established with the third vPLC.

[0036] In the above solution, the set correlation indicates that periodic calls are made between the two vPLCs, and the calling frequency in each period exceeds the set threshold.

[0037] In the above scheme, the method further includes:

[0038] Send fourth information to the network device, where the fourth information is used to request registration of a vPLC, and the fourth information includes capabilities of the vPLC for which registration is requested, where the capabilities include control instructions that the vPLC supports for execution.

[0039] In the above solution, after sending the fourth information, the method further includes:

[0040] A second interface is established with the network device.

[0041] The present application also provides a control system, including: a network device and a plurality of vPLCs, wherein the plurality of vPLCs include a plurality of first vPLCs, wherein:

[0042] The network device is used to execute the steps of any of the above-mentioned control methods on the network device side;

[0043] The first vPLC is used to execute the steps of any of the above-mentioned control methods on the first vPLC side.

[0044] The present application also provides a control device, applied to a network device, comprising:

[0045] A generating unit, configured to generate a control instruction combination; the control instruction combination includes a plurality of control instructions to be executed in sequence by a plurality of virtual programmable logic controllers vPLC respectively;

[0046] A first sending unit is configured to send the control instruction combination to one or more vPLCs among the multiple vPLCs based on the establishment of the first interface between the vPLCs among the multiple vPLCs; wherein,

[0047] The first interface between two vPLCs is established with a set correlation between the two vPLCs.

[0048] The present application further provides a control device, applied to a first vPLC, wherein the first vPLC represents a vPLC having a first interface established; wherein the first interface is established when there is a set correlation between two vPLCs, including:

[0049] A receiving unit, used for receiving a control instruction;

[0050] A second sending unit, configured to send out other control instructions other than one control instruction among the multiple control instructions through one or more first interfaces based on the received multiple control instructions;

[0051] The execution unit is used to execute one control instruction among the multiple control instructions received based on the multiple control instructions; and / or receive a control instruction through the first interface and execute the one control instruction.

[0052] The present application also provides a network device, comprising: a first processor and a first communication interface; wherein,

[0053] The first processor is used to generate a control instruction combination; the control instruction combination includes a plurality of control instructions to be executed in sequence by a plurality of virtual programmable logic controllers vPLC respectively;

[0054] The first communication interface is used to send the control instruction combination to one or more vPLCs in the multiple vPLCs based on the establishment of the first interface between the vPLCs in the multiple vPLCs; wherein,

[0055] The first interface between two vPLCs is established with a set correlation between the two vPLCs.

[0056] The present application also provides an electronic device, comprising: a second processor and a second communication interface; a first vPLC is deployed on the electronic device, wherein the first vPLC represents a vPLC with a first interface established, and the first interface is established when there is a set correlation between two vPLCs;

[0057] The second communication interface is used to send out other control instructions except one control instruction among the multiple control instructions through one or more first interfaces based on the received multiple control instructions; and / or, receive a control instruction through the first interface;

[0058] The second processor executes a control instruction among the multiple control instructions based on the received multiple control instructions; and / or executes a control instruction received through the first interface.

[0059] The present application also provides a network device, comprising: a first processor and a first memory for storing a computer program that can be run on the processor,

[0060] Wherein, the first processor is used to execute the steps of any of the above-mentioned control methods on the network device side when running the computer program.

[0061] The present application also provides an electronic device, comprising: a second processor and a second memory for storing a computer program that can be run on the processor, wherein a first vPLC is deployed on the electronic device.

[0062] Wherein, the second processor is used to execute the steps of any of the above-mentioned control methods on the first vPLC side when running the computer program.

[0063] The present application also provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above control methods are implemented.

[0064] The present application also provides a computer program product, including a computer program, which implements the steps of any of the above control methods when executed by a processor.

[0065] In the present application, a network device generates a control instruction combination, which includes multiple control instructions to be executed in sequence by multiple vPLCs, and then sends the control instruction combination to one or more vPLCs in the multiple vPLCs based on the establishment of the first interface between the vPLCs in the multiple vPLCs, wherein the first interface between two vPLCs is established when there is a set correlation between the two vPLCs. Based on the correlation between the vPLCs, the network device controls the sending of control instructions to coordinate the interaction between the vPLCs. Compared with the related technology, the conditions for the interaction between the vPLCs are limited, thereby reducing the number of interactions between containers and improving the efficiency of computing resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] Figure 1It is a schematic diagram of the network of the mainstream industrial collaborative control architecture in the industrial field in the relevant technology;

[0067] Figure 2 This is a network diagram of the cloud-based centralized industrial collaborative control architecture in the relevant technology;

[0068] Figure 3 A schematic diagram of an implementation flow of a control method provided in an embodiment of the present application;

[0069] Figure 4 A schematic diagram of an implementation flow of a control method provided in an embodiment of the present application;

[0070] Figure 5 A schematic diagram of a control system architecture provided in an embodiment of the present application;

[0071] Figure 6 A schematic diagram of the structure of a control device provided in an embodiment of the present application;

[0072] Figure 7 A schematic diagram of the structure of a control device provided in an embodiment of the present application;

[0073] Figure 8 A schematic diagram of the structure of the hardware composition of a network device provided in an embodiment of the present application;

[0074] Fig. 9 A schematic diagram of the structure of the hardware composition of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0075] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments.

[0076] In an embodiment of the present application, a network device generates a control instruction combination, which includes multiple control instructions to be executed in sequence by multiple vPLCs, and then sends the control instruction combination to one or more vPLCs in the multiple vPLCs based on the establishment of the first interface between the vPLCs in the multiple vPLCs, wherein the first interface between two vPLCs is established when there is a set correlation between the two vPLCs. Based on the correlation between the vPLCs, the network device controls the sending of control instructions to coordinate the interaction between the vPLCs. Compared with related technologies, the conditions for the interaction between the vPLCs are limited, thereby reducing the number of interactions between containers and improving the efficiency of computing resources.

[0077] The present application embodiment provides a control method applied to a network device, the network device can be connected with Figure 2 The industrial cloud base station in the architecture is co-located, that is, the network equipment is deployed in the industrial cloud base station, and the network equipment can also be connected to the industrial cloud base station. Figure 2The industrial cloud base station in the architecture is separated, that is, the network equipment is deployed in other devices besides the industrial cloud base station, such as Figure 3 As shown, the method includes:

[0078] Step 301: Generate a control instruction combination.

[0079] The control instruction combination includes a plurality of control instructions which are respectively executed in sequence by a plurality of vPLCs.

[0080] In actual applications, control instructions are used to instruct vPLC to control production equipment to achieve business needs. Production equipment can be physical equipment such as robots and machine tools. vPLC executes control instructions, that is, vPLC controls the corresponding production equipment to perform actions according to the instructions of the control instructions. For example, if control instruction 1 is used to achieve business requirement 1, the content of business requirement 1 is: device A rotates 30 degrees, then vPLC1 executes control instruction 1, that is, vPLC1 controls device A to rotate 30 degrees.

[0081] Since business requirements are generally complex, a single business requirement may require multiple actions to be performed by the production equipment to be realized. Therefore, the network equipment needs to generate a control instruction combination, and then multiple vPLCs execute the control instructions in the control instruction combination in sequence. Here, the control instruction combination can be generated by the network equipment parsing the business requirements and combining the capabilities of the vPLC. The capabilities of the vPLC can be understood as the control logic of the vPLC, including the control instructions that the vPLC supports to execute. For example, if the content of business requirement 2 is: device A rotates 30 degrees and moves forward 3 steps with a step size of X, PLC1 supports control instructions related to controlling the rotation of device A, and PLC1 supports control instructions related to controlling the advancement of device A. The network device can generate a control instruction combination according to business requirement 2. The control instruction combination includes control instruction 1 and control instruction 2. Control instruction 1 is used to instruct PLC1 to control device A to rotate 30 degrees, and control instruction 2 is used to instruct PLC2 to control device A to move forward 3 steps with a step size of X. Then PLC1 and PLC2 execute the control instruction combination in sequence. That is, when implementing business requirement 2, PLC1 executes control instruction 1 first, and then PLC2 executes control instruction 2.

[0082] In practical applications, in order to enable the network device to generate a control instruction combination in combination with the service requirements and the capabilities supported by the vPLC, in one embodiment, the method further includes:

[0083] Receive the fourth information sent by the vPLC; wherein,

[0084] The fourth information is used to request registration of the vPLC; the fourth information includes capabilities of the vPLC for which registration is requested; and the capabilities include control instructions that the vPLC supports for execution.

[0085] Here, the fourth information can also be understood as the registration information of the vPLC, which is used to inform the network device of the control logic-related information of the vPLC corresponding to the fourth information, so that the network device can better coordinate the vPLC. Specifically, the vPLC can report the fourth information to the network device after deployment, and then the network device receives and records the fourth information. Exemplarily, the network device can set up a vPLC logic library locally, and record the control logic-related information determined from the fourth information in the vPLC logic library.

[0086] Since the fourth information includes the capabilities of the vPLC requested for registration, the network device can obtain the control instructions supported by the vPLC, and then generate a control instruction combination that can be used to implement business needs.

[0087] After generating the control instruction combination, the network device needs to send the control instruction combination to the vPLC so that the vPLC can execute the control instructions in the control instruction combination to meet the service requirements. Therefore, it is necessary to continue to the next step:

[0088] Step 302: Based on the establishment of the first interface between the vPLCs in the multiple vPLCs, send the control instruction combination to one or more vPLCs in the multiple vPLCs.

[0089] The first interface between the two vPLCs is established when there is a set correlation between the two vPLCs.

[0090] Here, based on the establishment of the first interface, the network device can send each control instruction in the control instruction combination to the corresponding execution vPLC, or send part or all of the control instructions in the control instruction combination to a certain vPLC. After receiving the part or all of the control instructions, the vPLC executes the control instructions corresponding to itself, and transmits the control instructions that need to be executed by other vPLCs to other vPLCs, thereby achieving collaboration between vPLCs.

[0091] In actual applications, two vPLCs that have established the first interface communicate directly through the first interface, while if two vPLCs that have not established the first interface communicate with each other, the vPLC that sends the message needs to send the message to the network device, and then the network device forwards the message to the vPLC that receives the message; compared with two vPLCs that do not have the first interface, the two vPLCs that have established the first interface do not need the network device as an intermediate device to forward messages, and the communication efficiency is higher. Therefore, when transmitting the control instruction in the control instruction combination, the control instruction can also be directly transmitted from the previous vPLC to the next vPLC, and the transmission efficiency of the control instruction is also higher, thereby improving the collaborative efficiency between vPLCs.

[0092] However, if the first interface is established between any two vPLCs, the number of interactions between the vPLCs will increase exponentially, triggering a signaling storm. The containers to which each vPLC belongs need to frequently consume computing resources, reducing the efficiency of computing resources. In the embodiment of the present application, the first interface is established when there is a set correlation between the two vPLCs, which limits the conditions for establishing the first interface. Only vPLCs with set correlations can communicate directly, which improves the collaborative efficiency while avoiding the occurrence of signaling storms and improves the efficiency of computing resources.

[0093] Regarding the sending method of the control instruction combination, in one embodiment,

[0094] The sending the control instruction combination to one or more vPLCs among the multiple vPLCs based on the establishment of the first interface between the vPLCs among the multiple vPLCs includes:

[0095] Sending all or part of the control instructions in the control instruction combination to a first vPLC among the multiple vPLCs; the first vPLC represents one of the multiple vPLCs with the first interface established between each other; all or part of the control instructions are respectively executed by the multiple vPLCs with the first interface established between each other; and / or,

[0096] A control instruction in the control instruction combination is sent to a second vPLC among the multiple vPLCs; the second vPLC represents a vPLC that does not have a first interface established; and the one control instruction is executed by the second vPLC.

[0097] Among them, the multiple vPLCs with the first interface established between each other can be multiple vPLCs with the first interface established between any two vPLCs among the multiple vPLCs, for example, the first interface is established between any two vPLCs among vPLC1, vPLC2 and vPLC3; the multiple vPLCs with the first interface established between each other can also be: for any vPLC among the multiple vPLCs, there is a vPLC among the multiple vPLCs that establishes a first interface with any vPLC, so that there is a path between the multiple vPLCs, so that signaling or data can be transmitted from any vPLC to other vPLCs among the multiple vPLCs. There is a vPLC. For example, if vPLC1 and vPLC2 establish a first interface, and vPLC2 and vPLC3 establish a first interface, even if vPLC1 and vPLC3 do not establish a first interface, since vPLC1, vPLC2 and vPLC3 can all find a vPLC that has established a first interface with themselves among the remaining two vPLCs, that is, there is a path between vPLC1, vPLC2 and vPLC3, so that signaling or data is transmitted from any vPLC to the other two vPLCs. Therefore, vPLC1, vPLC2 and vPLC3 are also multiple vPLCs with first interfaces established between each other.

[0098] Here, the vPLC with a first interface can directly transmit the control instruction to the next vPLC through the first interface. Therefore, for multiple vPLCs with a first interface established between each other, if there are multiple control instructions in the control instruction combination that need to be executed by these multiple vPLCs, then the network device only needs to send the multiple control instructions to one of the multiple vPLCs, and the starting vPLC sends the other control instructions other than the control instructions executed by itself to another vPLC, wherein the other vPLC is a vPLC among the multiple vPLCs that has a first interface established with the starting vPLC, and then the other vPLC sends the other control instructions other than the control instructions executed by itself to another vPLC, wherein the another vPLC is a vPLC among the multiple vPLCs that has a first interface established with another vPLC, and then the control instructions are transmitted in sequence in this way, so that the multiple control instructions can be sent to the corresponding execution vPLC. The first vPLC may be understood as the starting vPLC, or may be understood as other vPLCs except the starting vPLC among a plurality of vPLCs between which first interfaces are established.

[0099] Exemplarily, if vPLC1 and vPLC2 establish a first interface, and vPLC2 and vPLC3 establish a first interface, control instruction 1, control instruction 2, and control instruction 3 in the control instruction combination generated by the network device need to be executed by vPLC1, vPLC2, and vPLC3 respectively, then the network device can send control instruction 1, control instruction 2, and control instruction 3 to vPLC1, vPLC1 executes control instruction 1, and sends control instruction 2 and control instruction 3 directly to vPLC2, vPLC2 executes control instruction 2, and sends control instruction 3 directly to vPLC3, thereby realizing the sending of control instruction 1, control instruction 2, and control instruction 3.

[0100] In actual applications, the vPLC that needs to execute the control instruction in the control instruction combination may not have established a first interface with other vPLCs. In this case, the network device needs to send the corresponding control instruction to the second vPLC that does not have a first interface. Specifically, the network device can send the corresponding control instruction through the second interface between the network device and the second vPLC. Exemplarily, if vPLC4 and vPLC5 do not have a first interface with other vPLCs other than themselves, control instruction 4 and control instruction 5 in the control instruction combination generated by the network device need to be executed by vPLC4 and vPLC5 respectively, then the network device can send control instruction 4 directly to vPLC4 and control instruction 5 directly to vPLC5.

[0101] In an embodiment of the present application, a network device generates a control instruction combination, which includes multiple control instructions to be executed in sequence by multiple vPLCs, and then sends the control instruction combination to one or more vPLCs in the multiple vPLCs based on the establishment of the first interface between the vPLCs in the multiple vPLCs, wherein the first interface between two vPLCs is established when there is a set correlation between the two vPLCs. Based on the correlation between the vPLCs, the network device controls the sending of control instructions to coordinate the interaction between the vPLCs. Compared with related technologies, the conditions for the interaction between the vPLCs are limited, thereby reducing the number of interactions between containers and improving the efficiency of computing resources.

[0102] In the embodiment of the present application, the interface through which the control instruction combination is sent includes:

[0103] The first interface, the interface between two vPLCs, may also be represented by PPxy, where x represents the identifier of the vPLC at the message sending end, and y represents the identifier of the vPLC at the message receiving end;

[0104] The second interface, the interface between the network device and the vPLC, can also be represented by CPn, where n represents the identifier of the vPLC that establishes the second interface with the network device.

[0105] The first interface and the second interface are used to send control instructions, and may also be used to send other communication messages.

[0106] Next, the establishment methods of the above two interfaces are described in detail.

[0107] In one embodiment, the method further comprises:

[0108] When the set correlation exists between the two vPLCs, third information is sent to any one of the two vPLCs; the third information is used to indicate the establishment of the first interface between the two vPLCs, and the third information includes an identifier of each of the two vPLCs.

[0109] Here, when there is a set correlation between the two vPLCs, the network device sends the third information to any vPLC of the two vPLCs. After receiving the third information, the vPLC can obtain the necessary information for interface communication with the other vPLC based on the third information, thereby establishing a first interface with the other vPLC. At the same time, the network device can also record the situation that the first interface has been established between the two vPLCs, for example, using a graph to represent the relationship between the vPLCs, using the vPLC as a node in the graph, and adding an edge between the two vPLCs with the first interface established, so as to control the collaboration between the vPLCs based on the establishment of the interface in the future.

[0110] Among them, the vPLC identifier in the third information can be used to inform the vPLC receiving the third information which vPLC it supports direct interface communication with. Exemplarily, the vPLC identifier can be the media access control (MAC) address of the vPLC, or it can be a unique serial number assigned by the control system.

[0111] Regarding setting the correlation, in one embodiment, the setting correlation indicates that periodic calls are made between two vPLCs, and the calling frequency in each period exceeds a set threshold; the method further includes:

[0112] Determine whether the two vPLCs have the set correlation based on the reported information; and / or,

[0113] The calling frequency between the two vPLCs is sensed, and based on the calling frequency, it is determined whether the two vPLCs have the set correlation.

[0114] In actual applications, the relationship between two vPLCs exists in the following three situations:

[0115] Case 1: The control logic between the two vPLCs does not have any correlation, or the correlation is weak. Then, the relationship between the two vPLCs can be understood as weak correlation. For example, if vPLC1 controls robot A to move forward, and vPLC2 controls robot B to move forward, the forward actions of robots A and B are never performed at the same time, or are occasionally performed at the same time. There is no specific correlation rule between the forward actions of the two robots. Therefore, there is no specific correlation rule for the data interaction between vPLC1 and vPLC2. Then, the relationship between vPLC1 and vPLC2 is weakly correlated.

[0116] Case 2: The control logic between the two vPLCs is related, but they only interact in certain emergencies. In this case, the relationship between the two vPLCs can be understood as a strong non-periodic correlation. For example, if vPLC1 controls device A to issue an alarm, and vPLC2 controls device A to collect alarm data, the alarm issued by device A must be accompanied by the collection of alarm data by device A. During the alarm period, data interaction between vPLC1 and vPLC2 is required to synchronize the status. However, since the alarm is an emergency, it may take a long time for device A to issue an alarm and collect alarm data. Therefore, the interaction between vPLC1 and vPLC2 only occurs occasionally, and the relationship between vPLC1 and vPLC2 is a strong non-periodic correlation.

[0117] Case 3: The control logic between the two vPLCs is related and interacts periodically, so the relationship between the two vPLCs can be understood as a strong periodic correlation. For example, if vPLC1 controls device A to add materials, and vPLC2 controls device B to transmit the materials added by device A, in the production process, adding materials and transmitting materials will be performed periodically, and data interaction and synchronization between vPLC1 and vPLC2 are required. Therefore, the relationship between vPLC1 and vPLC2 is a strong periodic correlation.

[0118] Based on the above three situations, it can be seen that only when the relationship between vPLC1 and vPLC2 is the periodic strong correlation in situation 3, vPLC1 and vPLC2 need to interact frequently. At this time, it is necessary to establish a first interface between vPLC1 and vPLC2 to improve the collaborative efficiency. Therefore, in the embodiment of the present application, for the above situation 3, a set correlation is set to represent the relationship of periodic strong correlation. Further, the set correlation is set to represent the periodic call between the two vPLCs, and the call frequency in each cycle exceeds the set threshold; thereby, the two vPLCs with strong periodic correlation can be identified as having the set correlation, and then the first interface is established to improve the collaborative efficiency. In addition, since the meaning of the set correlation representation is not determined arbitrarily, but is determined according to the interactive relationship between the two vPLCs, the conditions for establishing the first interface between the vPLCs are also limited. It is only established in the scenario where it is necessary to establish the first interface, avoiding the occurrence of signaling storms, ensuring the rational use of computing resources, and improving the efficiency of computing resources.

[0119] Here, the determination method for setting the correlation can be based on the reported information, and the reported information can come from the information reported by the vPLC when initiating a registration request to the network device. Therefore, in one embodiment, the vPLC capability included in the fourth information sent by the vPLC requesting registration can also include: relationship information between the vPLC and other vPLCs. The reported information can also come from information reported by a third-party system as a downstream data. For example, the third-party system records the relationship information between multiple vPLCs, which is used to provide services to the network device and provide the relationship information recorded by the third-party system itself to the network device.

[0120] The determination method of setting the correlation may be based on the perception of the calling frequency between the vPLCs by the network device. In one embodiment, the sensing of the calling frequency between the two vPLCs and the determination of whether the two vPLCs have the set correlation based on the calling frequency include:

[0121] At every set time, sense the calling frequency between the two vPLCs within the set time, and obtain one or more sensing results;

[0122] When the one or more perception results indicate that the calling frequency between the two vPLCs exceeds a set threshold within each set time period, it is determined that there is a set correlation between the two vPLCs.

[0123] It can be understood that before the first interface is established between the two vPLCs, if the two vPLCs expect to interact, the network device needs to act as a message transfer device to transmit the interaction messages between the two vPLCs. Therefore, the network device can perceive the call frequency between the two vPLCs.

[0124] Specifically, during the perception process, the network device can continuously count the call frequency between the two vPLCs, and count the call frequency between the two vPLCs within the past set time period at set intervals to obtain one or more perception results. The interface call frequency represented by the one or more perception results is then compared with the set threshold. If the call frequency represented by each of the one or more perception results exceeds the set threshold, it is considered that the two vPLCs have a set correlation.

[0125] For example, the network device counts the calling frequencies of vPLC1 and vPLC2 in the past 10 minutes every 10 minutes. Then, within 30 minutes, the network device counts three times and obtains three perception results. If the calling frequencies represented by these three perception results are 5 times, 6 times, and 5 times respectively, and the threshold is set to 3 times, it is obvious that the calling frequencies represented by these three perception results all exceed the set threshold, then there is a set correlation between vPLC1 and vPLC2.

[0126] For the determination method of setting the correlation, it can also be determined in combination with the above-mentioned two methods of determination based on reported information and perception based on call frequency, so as to improve the flexibility of determining the setting correlation. Exemplarily, the network device can first determine whether the two vPLCs have the setting correlation based on the reported information, and then perceive the call frequency between the two vPLCs not involved in the reported information, and supplement the existence of the setting correlation between the two vPLCs not involved in the reported information; in the perception process, the interface call frequency between some vPLCs in the unreported vPLC can also be perceived based on artificial intelligence technology. For example, the network device establishes graph structure data based on the reported information of the vPLC, and then uses the graph convolutional neural network algorithm to process the graph structure data, detects the missing edge data in the graph structure data, perceives the call frequency between the two vPLCs corresponding to the edge data, and determines the specific situation of the setting correlation between the two vPLCs, so as to improve the perception efficiency.

[0127] In the embodiment of the present application, the fourth information sent by the vPLC requesting registration can be used not only to establish the first interface, but also to establish the second interface, and the second interface is used for the control of the vPLC between the collaborative control units. For example, the collaborative control unit can control the collaboration between two vPLCs that have not established the first interface based on the second interface. Therefore, in one embodiment, after sending the fourth information, the method further includes: establishing a second interface with the network device.

[0128] In this way, the information sent by the vPLC requesting registration can be fully utilized, the number of communications required to establish the second interface can be reduced, and the efficiency of computing resource utilization can be improved.

[0129] Corresponding to the control method applied to the network device in the above embodiment, the embodiment of the present application further provides a control method applied to a first vPLC, wherein the first vPLC represents a vPLC with a first interface established; wherein the first interface is established when there is a set correlation between two vPLCs, such as Figure 4 As shown, the method includes:

[0130] Step 401: based on the received multiple control instructions, executing one of the multiple control instructions, and sending the other control instructions except the one of the multiple control instructions through one or more first interfaces; and / or,

[0131] A control instruction is received through the first interface, and the control instruction is executed.

[0132] In actual applications, control instructions are used to instruct vPLC to control production equipment to achieve business needs. Production equipment can be physical equipment such as robots and machine tools. vPLC executes control instructions, that is, vPLC controls the corresponding production equipment to perform actions according to the instructions of the control instructions. For example, if control instruction 1 is used to achieve business requirement 1, the content of business requirement 1 is: device A rotates 30 degrees, then vPLC1 executes control instruction 1, that is, vPLC1 controls device A to rotate 30 degrees.

[0133] Since business requirements are generally complex, a single business requirement may require multiple actions to be performed by the production equipment to be realized. Therefore, the network equipment needs to generate a control instruction combination, and then multiple vPLCs execute the control instructions in the control instruction combination in sequence. Here, the control instruction combination can be generated by the network equipment parsing the business requirements and combining the capabilities of the vPLC. The capabilities of the vPLC can be understood as the control logic of the vPLC, including the control instructions that the vPLC supports to execute. For example, if the content of business requirement 2 is: device A rotates 30 degrees and moves forward 3 steps with a step size of X, PLC1 supports control instructions related to controlling the rotation of device A, and PLC1 supports control instructions related to controlling the advancement of device A. The network device can generate a control instruction combination according to business requirement 2. The control instruction combination includes control instruction 1 and control instruction 2. Control instruction 1 is used to instruct PLC1 to control device A to rotate 30 degrees, and control instruction 2 is used to instruct PLC2 to control device A to move forward 3 steps with a step size of X. Then PLC1 and PLC2 execute the control instruction combination in sequence. That is, when implementing business requirement 2, PLC1 executes control instruction 1 first, and then PLC2 executes control instruction 2.

[0134] In actual applications, in order to enable the network device to generate a control instruction combination in combination with the service requirements and the capabilities supported by the vPLC, the vPLC needs to report its own information to the network device. The first vPLC is also a type of vPLC. Therefore, in one embodiment, the method further includes:

[0135] Send fourth information to the network device, where the fourth information is used to request registration of a vPLC, and the fourth information includes capabilities of the vPLC for which registration is requested, where the capabilities include control instructions that the vPLC supports for execution.

[0136] Here, the fourth information can also be understood as the registration information of the vPLC, which is used to inform the network device of the control logic-related information of the vPLC corresponding to the fourth information, so that the network device can better coordinate the vPLC. Specifically, the vPLC can report the fourth information to the network device after deployment, and then the network device receives and records the fourth information. Exemplarily, the network device can set up a vPLC logic library locally and record the control logic-related information determined from the fourth information in the vPLC logic library.

[0137] Since the fourth information includes the capabilities of the vPLC requesting registration, the vPLC can provide control instructions supported by itself so that the network device can obtain the control instructions supported by the vPLC, and then the network device generates a control instruction combination that can be used to implement business needs.

[0138] Here, the first vPLC represents a vPLC with a first interface established. Therefore, the first vPLC can also be understood as one vPLC among multiple vPLCs with first interfaces established between each other.

[0139] The network device sends all or part of the control instructions in the control instruction combination to the first vPLC among multiple vPLCs; because the vPLC with the first interface can directly transmit the control instructions to the next vPLC through the first interface, the network device only needs to send the multiple control instructions to one of the multiple vPLCs, and the starting vPLC sends the other control instructions other than the control instructions executed by itself to another vPLC, wherein the other vPLC is the vPLC among the multiple vPLCs that has the first interface established with the starting vPLC, and then the other vPLC sends the other control instructions other than the control instructions executed by itself to another vPLC, wherein the another vPLC is the vPLC among the multiple vPLCs that has the first interface established with the other vPLC, and then the control instructions are transmitted in sequence in this way, so that the multiple control instructions can be sent to the corresponding execution vPLC. It can be seen that

[0140] If the first vPLC is the starting vPLC, that is, the multiple control instructions received by the first vPLC are from the network device, then the first vPLC needs to execute a control instruction corresponding to itself among the multiple control instructions received, and send the other control instructions among the multiple control instructions except the control instruction executed by the first vPLC to other vPLCs through the first interface;

[0141] If the first vPLC is a vPLC that receives a control instruction sent by another vPLC through the first interface, and there is only one control instruction received, then the first vPLC needs to execute the received control instruction.

[0142] In addition, if the first vPLC is a vPLC that receives control instructions sent by other vPLCs through the first interface, and there are multiple control instructions received, then the first vPLC needs to execute one control instruction corresponding to itself among the multiple control instructions, and send the other control instructions among the multiple control instructions except the control instructions executed by the first vPLC to other vPLCs through the first interface to ensure that the control instructions can be passed to each corresponding executing vPLC.

[0143] In an embodiment of the present application, a first interface between two vPLCs is established when a set correlation is set between the two vPLCs. The vPLC receives a control instruction sent by a network device based on the establishment of the first interface. After receiving the control instruction, the vPLC executes or issues the control instruction to perform collaborative operations. Compared with related technologies, the network device controls the interaction between vPLCs based on the correlation between vPLCs, limits the conditions for pairwise interaction between vPLCs, thereby reducing the number of interactions between containers and improving the utilization efficiency of computing resources.

[0144] In the embodiment of the present application, the interface established by the first vPLC for transmitting control instructions includes:

[0145] The first interface, which is an interface between the first vPLC and other vPLCs, can also be represented by PPxy, where x represents the sequence number of the vPLC at the message sending end, and y represents the identifier of the vPLC at the message receiving end;

[0146] The second interface, the interface between the network device and the first vPLC, can also be represented by CPn, where n represents the identifier of the vPLC that establishes the second interface with the network device.

[0147] The first interface and the second interface are used to send control instructions, and may also be used to send other communication messages.

[0148] Next, the establishment methods of the above two interfaces are described in detail.

[0149] In one embodiment, the method further comprises:

[0150] Receive third information; the third information is used to indicate that the first interface is established between two vPLCs, and the third information includes an identifier of the first vPLC and an identifier of a third vPLC;

[0151] Based on the third information, the first interface is established with the third vPLC.

[0152] Here, when the two vPLCs have the set correlation, the network device sends the third information to any vPLC of the two vPLCs. Since the first vPLC is a vPLC with a first interface, the first vPLC will also receive the third information sent by the network device. After receiving the third information, the first vPLC can obtain the necessary information for interface communication with the other vPLC based on the third information, thereby establishing the first interface with the other vPLC.

[0153] Among them, the vPLC identifier in the third information can be used to inform the vPLC receiving the third information which vPLC it supports direct interface communication with. Exemplarily, the vPLC identifier can be the MAC address of the vPLC or a unique serial number assigned by the control system.

[0154] Regarding setting the correlation, in one embodiment, the setting correlation indicates that periodic calls are made between two vPLCs, and the calling frequency in each period exceeds a set threshold.

[0155] In actual applications, the relationship between two vPLCs exists in the following three situations:

[0156] Case 1: The control logic between the two vPLCs does not have any correlation, or the correlation is weak. Then, the relationship between the two vPLCs can be understood as weak correlation. For example, if vPLC1 controls robot A to move forward, and vPLC2 controls robot B to move forward, the forward actions of robots A and B are never performed at the same time, or are occasionally performed at the same time. There is no specific correlation rule between the forward actions of the two robots. Therefore, there is no specific correlation rule for the data interaction between vPLC1 and vPLC2. Then, the relationship between vPLC1 and vPLC2 is weakly correlated.

[0157] Case 2: The control logic between the two vPLCs is related, but they only interact in certain emergencies. In this case, the relationship between the two vPLCs can be understood as a strong non-periodic correlation. For example, if vPLC1 controls device A to issue an alarm, and vPLC2 controls device A to collect alarm data, the alarm issued by device A must be accompanied by the collection of alarm data by device A. During the alarm period, data interaction between vPLC1 and vPLC2 is required to synchronize the status. However, since the alarm is an emergency, it may take a long time for device A to issue an alarm and collect alarm data. Therefore, the interaction between vPLC1 and vPLC2 only occurs occasionally, and the relationship between vPLC1 and vPLC2 is a strong non-periodic correlation.

[0158] Case 3: The control logic between the two vPLCs is related and interacts periodically, so the relationship between the two vPLCs can be understood as a strong periodic correlation. For example, if vPLC1 controls device A to add materials, and vPLC2 controls device B to transmit the materials added by device A, in the production process, adding materials and transmitting materials will be performed periodically, and data interaction and synchronization between vPLC1 and vPLC2 are required. Therefore, the relationship between vPLC1 and vPLC2 is a strong periodic correlation.

[0159] Based on the above three situations, it can be seen that only when the relationship between vPLC1 and vPLC2 is the periodic strong correlation in situation 3, vPLC1 and vPLC2 need to interact frequently. At this time, it is necessary to establish a first interface between vPLC1 and vPLC2 to improve the collaborative efficiency. Therefore, in the embodiment of the present application, for the above situation 3, a set correlation is set to represent the relationship of periodic strong correlation. Specifically, the set correlation is set to represent the periodic call between the two vPLCs, and the call frequency in each cycle exceeds the set threshold; thereby, the two vPLCs with strong periodic correlation can be identified as having the set correlation, and then the first interface is established to improve the collaborative efficiency. In addition, since the meaning of the set correlation representation is not determined arbitrarily, but is determined by the network device according to the interactive relationship between the two vPLCs, the conditions for establishing the first interface between the vPLCs are also limited. It is only established in the scenario where it is necessary to establish the first interface, avoiding the occurrence of signaling storms, ensuring the rational use of computing resources, and improving the efficiency of computing resources.

[0160] Regarding the method for determining the set correlation, the network device may determine whether the two vPLCs have the set correlation based on the reported information; and / or the network device may sense the calling frequency between the two vPLCs and determine whether the two vPLCs have the set correlation based on the calling frequency.

[0161] The reported information may come from the information reported when the vPLC initiates a registration request to the network device. Therefore, in one embodiment, the vPLC capability included in the fourth information sent by the vPLC requesting registration may also include: relationship information between the vPLC and other vPLCs. The reported information may also come from information reported by a third-party system as a downstream data source. For example, the third-party system records relationship information between multiple vPLCs, which is used to provide services to the network device and provide the relationship information recorded by the third-party system itself to the network device.

[0162] In the embodiment of the present application, the fourth information sent by the vPLC requesting registration can be used not only to establish the first interface, but also to establish the second interface, and the second interface is used for the collaborative control unit to control the vPLC. For example, the collaborative control unit can control the collaboration between two vPLCs that have not established the first interface based on the second interface.

[0163] In one embodiment, after sending the fourth information, the method further includes: establishing a second interface with the network device.

[0164] In this way, the information sent by the vPLC requesting registration can be fully utilized, the number of communications required to establish the second interface can be reduced, and the efficiency of computing resource utilization can be improved.

[0165] The embodiment of the present application further provides a control system, a network device and a plurality of vPLCs, wherein the plurality of vPLCs include a plurality of first vPLCs, wherein:

[0166] The network device is used to execute the method provided by one or more technical solutions on the network device side in the above method embodiment;

[0167] The first vPLC is used to execute the method provided by one or more technical solutions on the first vPLC side in the above method embodiment.

[0168] In actual applications, the network device controls the collaborative logic of the vPLC, so it can also be expressed as a collaborative control unit. The network device supports co-location with the base station, that is, the network device can be deployed on the base station, and the network device also supports separation from the base station, that is, the network device and the base station can be deployed separately.

[0169] In the embodiment of the present application, the network device in the control system generates a control instruction combination, and then sends the control instruction combination to one or more vPLCs in the multiple vPLCs based on the establishment of the first interface between the vPLCs in the multiple vPLCs. After receiving the control instruction, the vPLC executes or issues the control instruction, and then performs collaborative operations, wherein the first interface between two vPLCs is established when there is a set correlation between the two vPLCs. Based on the correlation between the vPLCs, the network device controls the sending of the control instruction to coordinate the interaction between the vPLCs. Compared with the related technology, the conditions for the interaction between the vPLCs are limited, thereby reducing the number of interactions between containers and improving the efficiency of the use of computing resources.

[0170] The present application is further described in detail below in conjunction with application examples.

[0171] The present application embodiment provides a control system, such as Figure 5 As shown, the control system mainly includes: a collaborative control unit and multiple vPLCs; wherein the collaborative control unit is equivalent to the network device in the embodiment of the present application.

[0172] For the collaborative control unit, its functions include:

[0173] (1) Record or sense the capabilities of all vPLCs in the production line. For example, register with the collaborative control unit through the vPLC to record the capabilities of the vPLC, or establish a vPLC logic library by sensing the frequency of vPLC interface calls.

[0174] (2) Based on business needs, all vPLCs are orchestrated on demand, the most reasonable vPLC combination is planned for the actions that the production equipment needs to perform, and control instruction combinations are generated to achieve flexible production.

[0175] For vPLC, it is deployed in a container or a virtual machine and is mainly used to execute control instructions.

[0176] The interaction between the collaborative control unit and the vPLC follows the following principles:

[0177] (1) If the business demand only requires a specific vPLC to complete, the vPLC only interacts with the collaborative control unit through the CPn interface.

[0178] (2) If the relationship between the vPLCs required by the business needs is weakly correlated, the vPLC interacts with the collaborative control unit through the CPn interface.

[0179] (3) If the relationship between the vPLCs required by the business needs is a non-periodic strong correlation, the vPLC interacts with the collaborative control unit through the CPn interface.

[0180] The interaction between vPLCs follows the following principles:

[0181] (1) If the relationship between the vPLCs required by the business needs is strongly periodic, the vPLCs interact through the PPxy interface;

[0182] Under normal working conditions, the vPLC does not need to interact with the collaborative control unit; if an abnormal situation occurs, the abnormal vPLC interacts with the collaborative control unit to report the abnormality.

[0183] (2) If the relationship between the vPLCs required by the business needs is not strongly periodically correlated, the vPLCs need to interact with the collaborative control unit.

[0184] When the control system performs collaborative control, it mainly includes the following steps:

[0185] Step 1: After deployment, each vPLC initiates a registration request to the collaborative control unit.

[0186] The vPLC informs the collaborative control unit of its capabilities through a registration request.

[0187] Step 2: The collaborative control unit establishes a CPn interface.

[0188] Here, the CPn interface is equivalent to the second interface in the embodiment of the present application.

[0189] Step 3: Collaborative control unit establishes PP interface.

[0190] Here, the PPxy interface is equivalent to the first interface in the embodiment of the present application. The collaborative control unit can establish the PPxy interface based on the following two methods:

[0191] Method 1: The collaborative control unit determines whether the two vPLCs are strongly periodically correlated based on the reported information; if the two vPLCs are strongly periodically correlated, a PPxy interface is established between the two vPLCs; wherein the reported information may come from the information reported by the vPLC in the registration request in step 1, or from the information reported by a third-party service.

[0192] Method 2: The collaborative control unit senses the calling frequency between the two vPLCs and uses the periodic strong correlation judgment principle to judge the relationship between the vPLCs; if the judgment result indicates that the two vPLCs are periodically strongly correlated, a PPxy interface is established between the two cPLCs.

[0193] The judgment principle of strong periodic correlation is: if the call frequency between two vPLCs in time period T is sensed every time period T, and if the sensed result each time indicates that the call frequency between the two vPLCs is greater than N, then it is determined that the two vPLCs are strongly periodically correlated. Here, time period T is equivalent to the set duration in the embodiment of the present application, and N is equivalent to the set threshold in the embodiment of the present application.

[0194] It should be noted that the above two methods of establishing the PPxy interface can also be used in combination.

[0195] Step 4: The collaborative control unit generates a control instruction combination based on business requirements and vPLC capabilities.

[0196] For example, if the business requirement is: device A rotates 30 degrees and moves forward 3 steps with a step size of X, PLC1 supports control instructions related to controlling the rotation of device A, and PLC1 supports control instructions related to controlling the movement of device A. The network device can generate a control instruction combination according to business requirement 2, and the control instruction combination includes control instruction 1 and control instruction 2. Control instruction 1 is used to instruct PLC1 to control device A to rotate 30 degrees, and control instruction 2 is used to instruct PLC2 to control device A to move forward 3 steps with a step size of X.

[0197] Step 5: The collaborative control unit sends a control instruction combination to the vPLC based on the establishment of the PPxy interface between the vPLCs.

[0198] Step 6: The vPLC executes the control instruction corresponding to itself in the control instruction combination.

[0199] For step 5 and step 6, referring to the example given in step 4, if rotation and advancement are periodically strongly correlated actions, that is, if a PP12 interface is established between PLC1 and PLC2, then the collaborative control unit sends control instruction 1 and control instruction 2 to vPLC1 through the CP1 interface, vPLC1 executes its own control instruction 1, and sends control instruction 2 to vPLC2 through the PP12 interface, and vPLC2 executes control instruction 2 after receiving it, thereby realizing business needs.

[0200] If rotation and advancement are not strongly periodically related actions, that is, if the PP12 interface is not established between PLC1 and PLC2, then the collaborative control unit sends control instruction 1 to PLC1 through the CP1 interface and sends control instruction 2 to PLC2 through the CP2 interface. After receiving the control instructions, vPLC1 and vPLC2 execute them respectively, thereby realizing business needs.

[0201] In this application embodiment, the collaborative control unit generates a control instruction combination, which includes multiple control instructions to be executed in sequence by multiple vPLCs respectively, and then sends the control instruction combination to one or more vPLCs in the multiple vPLCs based on the establishment of the first interface between the vPLCs in the multiple vPLCs. After receiving the control instruction, the vPLC executes or issues the control instruction, and then performs collaborative operations, wherein the first interface between two vPLCs is established when there is a set correlation between the two vPLCs. The network device controls the sending of control instructions based on the correlation between the vPLCs to coordinate the interaction between the vPLCs. Compared with related technologies, the collaborative control unit controls the interaction between the vPLCs based on the correlation between the vPLCs, limits the conditions for the interaction between the vPLCs, thereby reducing the number of interactions between containers and improving the efficiency of computing resources.

[0202] Based on the above embodiments, the present application also provides a control device, which is applied to a network device, such as Figure 6 As shown, the control device includes:

[0203] A generating unit 61 is used to generate a control instruction combination; the control instruction combination includes a plurality of control instructions to be executed in sequence by a plurality of virtual programmable logic controllers vPLC respectively;

[0204] The first sending unit 62 is used to send the control instruction combination to one or more vPLCs in the multiple vPLCs based on the establishment of the first interface between the vPLCs in the multiple vPLCs; wherein,

[0205] The first interface between two vPLCs is established with a set correlation between the two vPLCs.

[0206] In one embodiment, the first sending unit 62 sends the control instruction combination to one or more vPLCs among the multiple vPLCs based on the establishment of the first interface between the vPLCs among the multiple vPLCs, including:

[0207] Sending all or part of the control instructions in the control instruction combination to a first vPLC among the multiple vPLCs; the first vPLC represents one of the multiple vPLCs with the first interface established between each other; all or part of the control instructions are respectively executed by the multiple vPLCs with the first interface established between each other; and / or,

[0208] A control instruction in the control instruction combination is sent to a second vPLC among the multiple vPLCs; the second vPLC represents a vPLC that does not have a first interface established; and the one control instruction is executed by the second vPLC.

[0209] In one embodiment, the first sending unit 62 is further configured to:

[0210] When the set correlation exists between the two vPLCs, third information is sent to any one of the two vPLCs; the third information is used to indicate the establishment of the first interface between the two vPLCs, and the third information includes an identifier of each of the two vPLCs.

[0211] In one embodiment, the set correlation indicates that periodic calls are made between the two vPLCs, and the call frequency in each period exceeds a set threshold; the control device further includes a determination unit, and the determination unit is used to:

[0212] Determine whether the two vPLCs have the set correlation based on the reported information; and / or,

[0213] The calling frequency between the two vPLCs is sensed, and based on the calling frequency, it is determined whether the two vPLCs have the set correlation.

[0214] In one embodiment, the determining unit senses the calling frequency between the two vPLCs, and determines whether the two vPLCs have the set correlation based on the calling frequency, including:

[0215] At every set time, sense the calling frequency between the two vPLCs within the set time, and obtain one or more sensing results;

[0216] When the one or more perception results indicate that the calling frequency between the two vPLCs exceeds a set threshold within each set time period, it is determined that there is a set correlation between the two vPLCs.

[0217] In one embodiment, the control device further includes a registration unit, and the registration unit is used to:

[0218] Receive the fourth information sent by the vPLC; wherein,

[0219] The fourth information is used to request registration of the vPLC; the fourth information includes capabilities of the vPLC for which registration is requested; and the capabilities include control instructions that the vPLC supports for execution.

[0220] In one embodiment, the control device further includes a first establishing unit, and the first establishing unit is used to: establish a second interface with the vPLC requesting registration after the registration unit receives the fourth information sent by the vPLC.

[0221] In actual application, the generating unit 61, the first sending unit 62, the determining unit, the registering unit and the first establishing unit may all be implemented by a processor in the control device.

[0222] It should be noted that: when the control device provided in the above embodiment performs control, only the division of the above program modules is used as an example. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the control device and the control method embodiment provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0223] The present application also provides a control device, which is applied to a first vPLC, wherein the first vPLC represents a vPLC with a first interface established; wherein the first interface is established when there is a set correlation between two vPLCs, such as Figure 7 As shown, the control device includes:

[0224] Receiving unit 71: used for receiving control instructions.

[0225] The second sending unit 72 is configured to send other control instructions other than one control instruction among the multiple control instructions through one or more first interfaces based on the received multiple control instructions;

[0226] The execution unit 73 is configured to execute one of the multiple control instructions based on the received multiple control instructions; and / or receive a control instruction through the first interface and execute the control instruction.

[0227] In one embodiment, the receiving unit 71 is further used to receive third information; the third information is used to indicate that the first interface is established between two vPLCs, and the third information includes an identifier of the first vPLC and an identifier of a third vPLC;

[0228] The control device further comprises an establishing unit, wherein the establishing unit is used for:

[0229] Based on the third information, the first interface is established with the third vPLC.

[0230] In one embodiment, the set correlation indicates that periodic calls are made between the two vPLCs, and the call frequency in each period exceeds a set threshold.

[0231] In one embodiment, the second sending unit 72 is further configured to:

[0232] Send fourth information to the network device, where the fourth information is used to request registration of a vPLC, and the fourth information includes capabilities of the vPLC for which registration is requested, where the capabilities include control instructions that the vPLC supports for execution.

[0233] In one embodiment, the control device further includes a second establishing unit, wherein the second establishing unit is configured to:

[0234] After the second sending unit 71 sends the fourth information, a second interface is established with the network device.

[0235] In actual application, the receiving unit 71, the second sending unit 72, the executing unit 73, and the second establishing unit can all be implemented by a processor in the control device.

[0236] It should be noted that: when the control device provided in the above embodiment performs control, only the division of the above program modules is used as an example. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the control device and the control method embodiment provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0237] Based on the hardware implementation of the above program modules, and in order to implement the method of the embodiment of the present application, the present application also provides a network device, such as Figure 8 As shown, the network device includes:

[0238] The first communication interface 801 is capable of exchanging information with other devices;

[0239] The first processor 802 is connected to the first communication interface 801 to implement information exchange with other devices and is used to execute the method provided by one or more of the above technical solutions when running a computer program. The computer program is stored in the first memory 803.

[0240] Specifically, the first processor 802 is used to generate a control instruction combination; the control instruction combination includes a plurality of control instructions to be executed in sequence by a plurality of virtual programmable logic controllers vPLC respectively;

[0241] The first communication interface 801 is used to send the control instruction combination to one or more vPLCs in the multiple vPLCs based on the establishment of the first interface between the vPLCs in the multiple vPLCs; wherein,

[0242] The first interface between two vPLCs is established with a set correlation between the two vPLCs.

[0243] In one embodiment, the first communication interface 801 sends the control instruction combination to one or more vPLCs among the multiple vPLCs based on the establishment of the first interface between the vPLCs among the multiple vPLCs, including:

[0244] Sending all or part of the control instructions in the control instruction combination to a first vPLC among the multiple vPLCs; the first vPLC represents one of the multiple vPLCs with the first interface established between each other; all or part of the control instructions are respectively executed by the multiple vPLCs with the first interface established between each other; and / or,

[0245] A control instruction in the control instruction combination is sent to a second vPLC among the multiple vPLCs; the second vPLC represents a vPLC that does not have a first interface established; and the one control instruction is executed by the second vPLC.

[0246] In one embodiment, the first communication interface 801 is further used for:

[0247] When the set correlation exists between the two vPLCs, third information is sent to any one of the two vPLCs; the third information is used to indicate the establishment of the first interface between the two vPLCs, and the third information includes an identifier of each of the two vPLCs.

[0248] In one embodiment, the set correlation indicates that periodic calls are made between the two vPLCs, and the call frequency in each period exceeds a set threshold; the first processor 802 is further configured to:

[0249] Determine whether the two vPLCs have the set correlation based on the reported information; and / or,

[0250] The calling frequency between the two vPLCs is sensed, and based on the calling frequency, it is determined whether the two vPLCs have the set correlation.

[0251] In one embodiment, the first processor 802 senses the calling frequency between the two vPLCs, and determines whether the two vPLCs have the set correlation based on the calling frequency, including:

[0252] At every set time, sense the calling frequency between the two vPLCs within the set time, and obtain one or more sensing results;

[0253] When the one or more perception results indicate that the calling frequency between the two vPLCs exceeds a set threshold within each set time period, it is determined that there is a set correlation between the two vPLCs.

[0254] In one embodiment, the first communication interface 801 is further used for:

[0255] Receive the fourth information sent by the vPLC; wherein,

[0256] The fourth information is used to request registration of the vPLC; the fourth information includes capabilities of the vPLC for which registration is requested; and the capabilities include control instructions that the vPLC supports for execution.

[0257] In one embodiment, after receiving the fourth information sent by the vPLC, the first communication interface 801 is further used to:

[0258] A second interface is established with the vPLC requesting registration.

[0259] Of course, in actual application, the various components in the network device are coupled together through the bus system 804. It can be understood that the bus system 804 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 804 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Figure 8 Various buses are labeled as bus system 804 .

[0260] The first memory 803 in the embodiment of the present application is used to store various types of data to support operations in the network device. Examples of such data include: any computer program used to operate on the network device.

[0261] The method disclosed in the above embodiment of the present application can be applied to the first processor 802, or implemented by the first processor 802. The first processor 802 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware or software instructions in the first processor 802. The above-mentioned first processor 802 may be a general-purpose processor, a DSP, or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The first processor 802 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, which is located in the first memory 803. The first processor 802 reads the information in the first memory 803 and completes the steps of the above method in combination with its hardware.

[0262] In an exemplary embodiment, the network device may be implemented by one or more ASICs, DSPs, PLDs, CPLDs, FPGAs, general purpose processors, controllers, MCUs, Microprocessors, or other electronic components to perform the aforementioned methods.

[0263] The present application also provides an electronic device, such as Fig. 9 As shown, the electronic device includes:

[0264] The second communication interface 901 is capable of exchanging information with other devices;

[0265] The second processor 902 is connected to the second communication interface 901 to implement information exchange with other devices and is used to execute the method provided by one or more of the above technical solutions when running a computer program. The computer program is stored in the second memory 903.

[0266] Specifically, a first vPLC is deployed on the electronic device, wherein the first vPLC represents a vPLC having a first interface, and the first interface is established when a set correlation exists between two vPLCs; the second communication interface 901 is used to send other control instructions except one control instruction among the multiple control instructions through one or more first interfaces based on the received multiple control instructions; and / or, receive a control instruction through the first interface;

[0267] The second processor 902 executes a control instruction among the multiple control instructions based on the received multiple control instructions; and / or executes a control instruction received through the first interface.

[0268] In one embodiment, the second communication interface 901 is further used to: receive third information; the third information is used to indicate that the first interface is established between two vPLCs, and the third information includes an identifier of the first vPLC and an identifier of a third vPLC;

[0269] Based on the third information, the first interface is established with the third vPLC.

[0270] In one embodiment, the set correlation indicates that periodic calls are made between the two vPLCs, and the call frequency in each period exceeds a set threshold.

[0271] In one embodiment, the second communication interface 901 is further used for:

[0272] Send fourth information to the network device, where the fourth information is used to request registration of a vPLC, and the fourth information includes capabilities of the vPLC for which registration is requested, where the capabilities include control instructions that the vPLC supports for execution.

[0273] In one embodiment, after sending the fourth information, the second communication interface 901 is further used to:

[0274] A second interface is established with the network device.

[0275] Of course, in actual application, the various components in the electronic device are coupled together through the bus system 904. It can be understood that the bus system 904 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 904 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Fig. 9 Various buses are labeled as bus system 904.

[0276] The second memory 903 in the embodiment of the present application is used to store various types of data to support operations in the electronic device. Examples of such data include: any computer program used to operate on the electronic device.

[0277] The method disclosed in the above embodiment of the present application can be applied to the second processor 902, or implemented by the second processor 902. The second processor 902 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of the hardware in the second processor 902 or an instruction in the form of software. The above-mentioned second processor 902 may be a general-purpose processor, a DSP, or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The second processor 902 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, which is located in the second memory 903, and the second processor 902 reads the information in the second memory 903 and completes the steps of the above method in combination with its hardware.

[0278] In an exemplary embodiment, the electronic device may be implemented by one or more ASICs, DSPs, PLDs, CPLDs, FPGAs, general purpose processors, controllers, MCUs, Microprocessors, or other electronic components to perform the aforementioned methods.

[0279] It can be understood that the memory (first memory 803, second memory 903) of the embodiment of the present application can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory 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 ferromagnetic random access memory, a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM).The memories described in the embodiments of the present application are intended to include, but are not limited to, these and any other suitable types of memories.

[0280] In an exemplary embodiment, the embodiment of the present application further provides a storage medium, namely a computer storage medium, specifically a computer-readable storage medium, for example, including a first memory 803 storing a computer program, and the computer program can be executed by a first processor 802 of a network device to complete the steps of the aforementioned network device side method. For another example, including a second memory 903 storing a computer program, the computer program can be executed by a second processor 902 of a network device to complete the steps of the aforementioned vPLC side method.

[0281] The computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface storage, optical disk, or CD-ROM.

[0282] In an exemplary embodiment, the embodiment of the present application further provides a computer program product, including a computer program, which can be executed by the first processor 802 of the network device to complete the steps of the aforementioned network device side method. For another example, the computer program can be executed by the second processor 902 of the electronic device to complete the steps of the aforementioned vPLC side method.

[0283] It should be noted that: "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0284] The term "and / or" herein is only a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent the three situations that A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "one or more" herein represents any combination of at least two of any one or more of a plurality. For example, including at least one of A, B, and C can represent including any one or more elements selected from the set consisting of A, B, and C.

[0285] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.

[0286] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.

Claims

1. A control method, characterized in that: Applied to a network device, the method comprises: Generate a control instruction combination; the control instruction combination includes a plurality of control instructions to be executed in sequence by a plurality of virtual programmable logic controllers vPLC respectively; Based on the establishment of the first interface between the vPLCs in the multiple vPLCs, the control instruction combination is sent to one or more vPLCs in the multiple vPLCs; wherein, The first interface between two vPLCs is established with a set correlation between the two vPLCs.

2. The method according to claim 1, characterized in that The sending the control instruction combination to one or more vPLCs among the multiple vPLCs based on the establishment of the first interface between the vPLCs among the multiple vPLCs includes: Sending all or part of the control instructions in the control instruction combination to a first vPLC among the multiple vPLCs; the first vPLC represents one of the multiple vPLCs with the first interface established between each other; all or part of the control instructions are respectively executed by the multiple vPLCs with the first interface established between each other; and / or, A control instruction in the control instruction combination is sent to a second vPLC among the multiple vPLCs; the second vPLC represents a vPLC that does not have a first interface established; and the one control instruction is executed by the second vPLC.

3. The method according to claim 1, characterized in that The method further comprises: When the set correlation exists between the two vPLCs, third information is sent to any one of the two vPLCs; the third information is used to indicate the establishment of the first interface between the two vPLCs, and the third information includes an identifier of each of the two vPLCs.

4. The method according to claim 3, characterized in that The setting correlation indicates that periodic calls are made between the two vPLCs, and the calling frequency in each cycle exceeds a set threshold; the method further includes: Determine whether the two vPLCs have the set correlation based on the reported information; and / or, The calling frequency between the two vPLCs is sensed, and based on the calling frequency, it is determined whether the two vPLCs have the set correlation.

5. The method according to claim 4, characterized in that The sensing of the calling frequency between the two vPLCs and determining whether the two vPLCs have the set correlation based on the calling frequency includes: At every set time, sense the calling frequency between the two vPLCs within the set time, and obtain one or more sensing results; When the one or more perception results indicate that the calling frequency between the two vPLCs exceeds a set threshold within each set time period, it is determined that there is a set correlation between the two vPLCs.

6. The method according to claim 1, characterized in that: The method further comprises: Receive the fourth information sent by the vPLC; wherein, The fourth information is used to request registration of the vPLC; the fourth information includes capabilities of the vPLC for which registration is requested; and the capabilities include control instructions that the vPLC supports for execution.

7. The method according to claim 6, characterized in that After receiving the fourth information sent by the vPLC, the method further includes: A second interface is established with the vPLC requesting registration.

8. A control method, characterized in that: Applied to a first vPLC, the first vPLC represents a vPLC having a first interface established; wherein the first interface is established when there is a set correlation between two vPLCs; the method comprises: Based on the received multiple control instructions, execute one of the multiple control instructions, and send other control instructions of the multiple control instructions except the one control instruction through one or more first interfaces; and / or, A control instruction is received through the first interface, and the control instruction is executed.

9. The method according to claim 8, characterized in that The method further comprises: Receive third information; the third information is used to indicate that the first interface is established between two vPLCs, and the third information includes an identifier of the first vPLC and an identifier of a third vPLC; Based on the third information, the first interface is established with the third vPLC.

10. The method according to claim 8, characterized in that The set correlation indicates that periodic calls are made between the two vPLCs, and the calling frequency in each period exceeds a set threshold.

11. The method according to claim 8, characterized in that The method further comprises: Send fourth information to the network device, where the fourth information is used to request registration of a vPLC, and the fourth information includes capabilities of the vPLC for which registration is requested, where the capabilities include control instructions that the vPLC supports for execution.

12. The method according to claim 11, characterized in that After sending the fourth information, the method further includes: A second interface is established with the network device.

13. A control system comprising: A network device and a plurality of vPLCs, wherein the plurality of vPLCs include a plurality of first vPLCs, wherein: The network device is used to perform the steps of the method according to any one of claims 1 to 7; The first vPLC is used to perform the steps of the method according to any one of claims 8 to 12.

14. A control device, characterized in that: Applied to network equipment, including: A generating unit, configured to generate a control instruction combination; the control instruction combination includes a plurality of control instructions to be executed in sequence by a plurality of virtual programmable logic controllers vPLC respectively; A first sending unit is configured to send the control instruction combination to one or more vPLCs among the multiple vPLCs based on the establishment of the first interface between the vPLCs among the multiple vPLCs; wherein, The first interface between two vPLCs is established with a set correlation between the two vPLCs.

15. A control device, characterized in that: Applied to a first vPLC, the first vPLC represents a vPLC having a first interface established; wherein the first interface is established when there is a set correlation between two vPLCs, including: A receiving unit, used for receiving a control instruction; A second sending unit, configured to send out other control instructions other than one control instruction among the multiple control instructions through one or more first interfaces based on the received multiple control instructions; The execution unit is used to execute one control instruction among the multiple control instructions received based on the multiple control instructions; and / or receive a control instruction through the first interface and execute the one control instruction.

16. A network device, characterized in that: include: A first processor and a first communication interface; wherein, The first processor is used to generate a control instruction combination; the control instruction combination includes a plurality of control instructions to be executed in sequence by a plurality of virtual programmable logic controllers vPLC respectively; The first communication interface is used to send the control instruction combination to one or more vPLCs in the multiple vPLCs based on the establishment of the first interface between the vPLCs in the multiple vPLCs; wherein, The first interface between two vPLCs is established with a set correlation between the two vPLCs.

17. An electronic device, characterized in that: include: A second processor and a second communication interface; a first vPLC is deployed on the electronic device, wherein, The first vPLC represents a vPLC having a first interface established therein, wherein the first interface is established when a set correlation exists between two vPLCs; The second communication interface is used to send out other control instructions except one control instruction among the multiple control instructions through one or more first interfaces based on the received multiple control instructions; and / or, receive a control instruction through the first interface; The second processor executes a control instruction among the multiple control instructions based on the received multiple control instructions; and / or executes a control instruction received through the first interface.

18. A network device, characterized in that: include: a first processor and a first memory for storing a computer program executable on the processor, Wherein, when the first processor is used to run the computer program, the steps of the method described in any one of claims 1 to 7 are executed.

19. An electronic device, characterized in that: include: a second processor and a second memory for storing a computer program that can be run on the processor, wherein the first vPLC is deployed on the electronic device, Wherein, when the second processor is used to run the computer program, the steps of the method described in any one of claims 8 to 12 are executed.

20. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the computer program implements the steps of the method according to any one of claims 1 to 7, or implements the steps of the method according to any one of claims 8 to 12.

21. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the steps of the method according to any one of claims 1 to 7, or implements the steps of the method according to any one of claims 8 to 12.

Citation Information

Cited By

  • Servo control system based on software definition

    CN120085595A