CN114460892B - Task control method based on cloud programmable logic controller - Google Patents

Task control method based on cloud programmable logic controller Download PDF

Info

Publication number
CN114460892B
CN114460892B CN202111566875.4A CN202111566875A CN114460892B CN 114460892 B CN114460892 B CN 114460892B CN 202111566875 A CN202111566875 A CN 202111566875A CN 114460892 B CN114460892 B CN 114460892B
Authority
CN
China
Prior art keywords
plc
cloud
processing unit
local processing
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111566875.4A
Other languages
Chinese (zh)
Other versions
CN114460892A (en
Inventor
王健全
马彰超
徐浩
向成峰
孙雷
李卫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
University of Science and Technology Beijing USTB
Original Assignee
University of Science and Technology Beijing USTB
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by University of Science and Technology Beijing USTB filed Critical University of Science and Technology Beijing USTB
Priority to CN202111566875.4A priority Critical patent/CN114460892B/en
Publication of CN114460892A publication Critical patent/CN114460892A/en
Application granted granted Critical
Publication of CN114460892B publication Critical patent/CN114460892B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/12Plc mp multi processor system
    • G05B2219/1208Communication, exchange of control, I-O data between different plc
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The invention relates to the field of industrial network control, and discloses a task control method and device based on a cloud Programmable Logic Controller (PLC) and a computer readable storage medium. The method comprises the following steps: setting a local processing unit, wherein the local processing unit executes the functions of the PLC and is connected with a cloud PLC network of a cloud end; the network quality is detected, the network QoS index communicated with the cloud PLC is obtained, the tasks are distributed to the local processing unit and the cloud PLC according to the network QoS index, and the reliability of the system is improved by arranging the local PLC control unit and the QoS switching mechanism at the local end.

Description

Task control method based on cloud programmable logic controller
Technical Field
The embodiment of the disclosure relates to the field of industrial control, and more particularly, to a task control method based on a cloud programmable logic controller.
Background
There are two major sets of solutions in industrial production that are adopted by most plants. One is a traditional hard PLC programmable logic controller, the control unit and the I/O port of the traditional hard PLC programmable logic controller are in the same position, the communication can be directly carried out, the stability is strong, the traditional hard PLC programmable logic controller can work in a severe environment and is not interfered by network delay; the other is the latest product soft PLC in industrial production, which is a control system based on a development structure of a general-purpose computing platform such as a PC, an ARM embedded device, etc., and converts a standard industrial PC into a full-function PLC process controller by using a software technology, and usually, a certain terminal such as a conventional PLC hardware or a network I/O device supporting a certain bus protocol) is connected with the PC, and the former is connected with a sensor and an actuator.
The traditional PLC has hard real-time performance, so that the traditional PLC can provide quick and definite response, but the traditional PLC is close to a field environment and has poor replacement and expansion capabilities, and meanwhile, the traditional PLC is often closed and is not open, and the equipment of different manufacturers is difficult to interconnect and intercommunicate. Meanwhile, the characteristics of the hard PLC also determine that the PLC is difficult to cooperate in industrial production, which brings inconvenience to production, and the operation and maintenance cost of the field PLC is increased due to the characteristics of high temperature, vibration, temperature difference, dust environment and the like of an industrial field. The controller and the I/O port of the soft PLC are not on the same side, and the software PLC provides the same functionality as the hard PLC, while providing various advantages of the PC environment. However, the method is susceptible to interference or has a problem of large time delay when performing remote communication, and the production efficiency is affected if normal communication cannot be guaranteed under severe production conditions.
Disclosure of Invention
In order to solve one of the above problems, the present invention provides a task control method based on a cloud programmable logic controller PLC, where the method includes: a local processing unit is arranged, and the control unit executes the functions of the local PLC and is connected with a cloud PLC execution network of the cloud end; and detecting the network quality, acquiring a network QoS index communicated with the cloud PLC, and distributing the tasks to the local processing unit and the cloud PLC according to the network QoS index.
Further, the allocating tasks to local processing units and the clouding PLC according to the network QoS index includes: and comparing the acquired network QoS index with a set threshold value, and distributing the task to a local processing unit and a cloud PLC according to the comparison result.
Further, the network QoS metrics include at least: availability, throughput, latency variation, and packet loss rate.
Further, the detecting the network quality comprises: the local processing unit sends the heartbeat packet to the cloud PLC and records the sending time t1The cloud PLC receives the heartbeat packet and then immediately forwards the heartbeat packet, and the local processing unit records the moment t of receiving the heartbeat packet2And repeating the sending to measure the QoS index.
Further, the local processing unit sends the heartbeat packet to the cloud PLC and records the sending time t1When the cloud PLC receives the heartbeat packet from the local processing unit, the heartbeat packet is immediately replied to the sender; and the local processing unit waits for the time of receiving the data returned by the server, records the receiving time t2 and calculates the time difference delta t as a time delay value.
Further, comparing the obtained network QoS index with a set threshold, and allocating the task to the local processing unit and the clouded PLC according to the comparison result includes: when the comparison result shows that the network quality is good and can meet the requirements of all service communication time delay/bandwidth, the PLC work task is executed in the cloud PLC; and when the comparison result shows that the network is deteriorated, switching the corresponding task between the local processing unit and the cloud PLC according to the switching rule of the task.
Further, the acquired network QoS index is compared with a set threshold, and according to the comparison result, the task is allocated to a local processing unit and the cloud PLC, wherein the step of judging whether the QoS index of the current system can meet the QoS requirement of the cloud PLC comprises the steps that when the current QoS index is lower than a threshold delay threshold value1 and a packet loss rate threshold value1 set by the system, the network quality is good and all service communication delay/bandwidth requirements can be met, and the PLC task is executed in the cloud PLC; when at least one of the delay value and the packet loss rate of the current QoS is higher than the set threshold value delay threshold value1 and the set packet loss rate threshold value1, network deterioration is indicated, and the corresponding task is switched between the local processing unit and the cloud PLC according to the switching rule of the task.
Further, the switching the corresponding task between the local processing unit and the cloud PLC according to the switching rule of the task comprises: whether the task is executed in the local processing unit or processed in the cloud PLC is judged according to the sensitivity of the task to time.
Further, comparing the obtained network QoS index with a set threshold value, and allocating a corresponding task to a local processing unit or a cloud PLC for processing; the method comprises the following steps: judging whether the QoS index of the current system can meet the QoS requirement of the cloud PLC, and when the current QoS index is lower than a set threshold value1, indicating that the network quality is good and the requirements of all service communication time delays/bandwidth can be met, and executing the PLC work task in the cloud PLC; when the current QoS index is higher than a threshold value1 set by the system but lower than a threshold value2, the time-sensitive tasks are placed to be executed locally, other tasks are still executed in the cloud, and when at least one of a time delay value and a packet loss rate is higher than the threshold value2 set by the system, all tasks are completely transferred to a local processing unit for processing.
There is provided an electronic device comprising a memory having stored thereon a computer program, and a processor implementing the method steps as described above when executing the program.
A computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the method steps as described above.
According to the invention, a local processing unit is introduced on the basis of the cloud PLC, a network QoS detection device is additionally arranged, the service quality of a communication link between the cloud PLC and an industrial field local processing unit is detected in real time, the network quality is evaluated, and when the service quality is abnormal, an industrial control task in charge of the cloud PLC is converted into the local processing unit to be executed, so that the normal operation of a production process is ensured, and the production efficiency and reliability are improved.
It should be understood that the statements herein reciting aspects are not intended to limit the critical or essential features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. In the drawings, like or similar reference characters designate like or similar elements, and wherein:
FIG. 1 shows a schematic diagram of a system architecture to which the present invention is applied;
FIG. 2 shows a schematic flow diagram of the inventive method;
fig. 3 shows a flow chart of a QoS detection task switching according to the invention;
fig. 4 shows a flow chart of QoS detection task switching in the multi-clouded deployment in the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present disclosure more apparent, the technical solutions in the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are some, but not all embodiments of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
In addition, the term "and/or" herein is only one kind of association relationship describing an associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
Example 1
An I/O port of a server of an existing cloud PLC is already separated, information is transmitted through a network, such as a 5G network, and delay and packet loss are easily caused in an environment with poor network quality, which may interfere with industrial production. While the local processing unit, i.e. the local PLC, is not affected by this. In some industrial production, particularly after a virtualized industrial controller is introduced, a centralized industrial controller is easily interfered when communicating with a remote I/O port, and the working reliability cannot be guaranteed, thereby affecting the production efficiency.
The local processing unit of the scheme is provided with the network quality detection device, the PLC function execution position is adjusted according to the real-time detection result, the flexible control of the industrial control system is realized, the compromise optimization of the industrial control system among the operation efficiency, the survivability and the robustness is ensured, and the efficiency of industrial production is improved.
As shown in fig. 1, which is a system block diagram of the embodiment of the present disclosure, in order to improve reliability of the entire system, a network Quality detection device is disposed on a local processing unit, and when different Quality of Service (QoS) is studied, a centralized deployed cloud industrial control unit (cloud PLC) or an industrial control unit (local processing unit, that is, a local PLC) on an industrial field machine device side is selected to execute a function of the PLC, so as to meet real-time and deterministic Service requirements.
The key indexes of the QoS mainly include: availability, throughput, latency variation (including jitter and wander), and loss.
The time delay index of the QoS is used as the basis for switching the cloud PLC and the local processing unit. The embodiment of the disclosure aims to provide a method for switching a local processing unit and a cloud PLC based on different QoS, meet the requirements of industrial production by using different network conditions, and solve the problem of poor reliability of the cloud PLC in the prior art during operation.
The method 200 of an embodiment of the present disclosure as described in fig. 2, comprising:
at block 202, a local processing unit is provided, which performs PLC functions and is connected to a cloud PLC execution network at the cloud end;
in some embodiments, a local processing unit is provided, optionally comprising a signal detection and task processing module.
At block 204, network quality is detected, and a network QoS index for communicating with the clouded PLC is obtained;
at block 206, tasks are allocated to the local processing units and the clouded PLC according to the network QoS metrics.
In some embodiments, a QoS index of a current network is obtained, whether the QoS index of the current system can meet the QoS requirement of the cloud PLC is judged, and when the current QoS indexes are all lower than a threshold 1 set by the system, the network quality is good and all service communication delay/bandwidth requirements can be met, and a PLC work task is executed in the cloud PLC; when at least one of the time delay value and the packet loss rate of the current QoS is higher than a threshold value1 set by a system but lower than a threshold value2, indicating that the network is deteriorated, placing the time-sensitive task into a local processing unit for execution, and executing the rest tasks by the cloud PLC; when at least one of the time delay value and the packet loss rate is higher than a threshold value2 set by the system, the network is deteriorated to be incapable of providing the service, and all tasks are completely switched to the local processing unit for processing.
The specific operation of detecting QoS quality is as follows: the local processing unit sends the heartbeat packet to the cloud PLC and records the sending time t1The cloud PLC immediately forwards the heartbeat packet after receiving the heartbeat packet, the forwarding time delay is negligible, and the local processing unit records the moment t when the heartbeat packet is received2The transmission is repeated, and the maximum allowable amount is transmitted in each cycle.
The known PLC performs the following processes:
process 1: input processing stage
At this stage, the PLC sequentially samples and stores the input states of all the input terminals in the input map register in a scan mode.
And (2) a process: execution phase
At this stage, the PLC scans in sequence, that is, scans each instruction from top to bottom and from left to right, and obtains the required data from the input mapping register and the output mapping register respectively for operation and processing, and then writes the result of program execution into the output mapping register for storing the result of program execution.
(3) Output processing stage
After all the user programs are executed, the PLC sends the content in the output mapping register into the output latch, and the content is output in a certain mode to drive an external load.
For each specific task, the PLC program execution time is determined, namely the sum of the three processes is determined, and the required time is recorded as tExThen the total time required for each task to upload data, execute the task and receive instructions is t = tin+tEx+toutWherein t isinTime for uploading data to PLC input end, toutAnd giving an instruction to the PLC about the time of reaching the equipment.
Defining parameters: delta t is the average time of receiving and transmitting 5 heartbeat packets before the moment; delta loss, the number of lost packets of the heartbeat packet 100 times before the moment is multiplied by 100 percent. The two parameters determine that the task is executed in the local processing unit/the cloud PLC, and the specific flow is as follows:
the QoS threshold is determined by the above requirements: Δ t1, Δ loss1, Δ t2, Δ loss2. The local processing unit continuously receives and transmits the heartbeat packet in each scanning period, the cloud PLC is provided with a specific heartbeat packet receiving program, and when the heartbeat packet from the local processing unit is received, the heartbeat packet is immediately replied to the sender. The local processing unit waits for receiving the time of the data returned by the server where the cloud PLC is located and records the receiving time t2And calculating the time difference delta t as a time delay value.
Judging whether the QoS index of the current system can meet the QoS requirement of the cloud PLC:
(1) when the current QoS indexes are lower than threshold values (delta T and delta Loss) set by a system, the network quality is good, the communication delay/bandwidth requirements of all services can be met, and the PLC work task is executed in a cloud PLC;
(2) at least one of the delay value and the packet Loss rate of the current QoS is higher than the threshold value (delta T, delta Loss) set by the system
And when the network is degraded, whether to switch the local operation is realized according to the requirement of a specific task.
Because each task has different time sensitivity degrees, the task is guaranteed to be within the required time (marked as R)x) Task x, tolerable channel delay atx<Rx-tEx. Respectively measuring the tolerable channel delay delta t of a task A (within 10ms of response time), a task B (within 100ms of response time) and a task C (within 50ms of response time)a,Δtb,ΔtcComparing with the real-time channel measurement result, adopting different task execution switching strategies, and still being capable of corresponding required time R under the channel qualityxAnd the tasks finished in the system are continuously executed at the cloud end, and other tasks are immediately switched to the local processing unit for execution.
The detection device can also be used for measuring the time delay jitter condition, and the specific mode is as follows: and measuring a plurality of groups of time differences, such as dt1, dt2, dt3 and the like, and calculating the variance of the time differences, wherein the variance is marked as time delay jitter.
In the actual production process, the change of the QoS value may be affected by the movement of the device and the interference of the environment, and the software may detect the change of the QoS index in the current environment at regular time, so as to perform the device switching based on the change. Therefore, the normal operation of the production process can be ensured, and the production efficiency and reliability are improved. In the design, when switching is performed each time, prompt information is sent to the user at the first time, and the user can observe the running state on the operation interface. Meanwhile, the system can also enable the user to decide whether to finish the operation of the equipment, provides a selection opportunity for the user and is beneficial to improving the user experience.
Of course, the content of QoS may be other parameters, such as throughput, besides the delay index and the delay jitter, and is not limited in the embodiment of the present application.
In some embodiments, the signal detection module of the local processing unit is set up separately, and the task processing module is optionally enabled to perform the functions of the local PLC. One signal detection module can correspond to a plurality of task processing modules, so that the cost is reduced.
In some embodiments, the variation trend of the QoS index of the current network is obtained according to the historical QoS index of the current network, if it is judged that at least one of the delay value and the packet loss rate of the QoS is higher than a threshold value1 set by a system but lower than a threshold value2 after a preset time, the network is continuously deteriorated, a local processing unit is started, a time-sensitive task is placed in the local processing unit to be executed, and other tasks are still executed by a cloud PLC; and if at least one of the time delay value and the packet loss rate is judged to be higher than a threshold value2 set by the system after the preset time, the network is indicated to be deteriorated to the point that the service cannot be provided, the local processing unit is started, and all tasks are completely transferred to the local processing unit for processing. The preset time is the starting and switching time of the local processing unit. Through the operation, the power consumption can be reduced, and the task processing module of the local processing unit is started only under the condition of need to realize the local PLC function.
Fig. 3 is a case flow chart based on detecting a delay value and a packet loss rate of the QoS of the current network as a basis for switching the clouded PLC and the local processing unit according to the embodiment of the present disclosure. The QoS threshold is determined by the above requirements: Δ t1, Δ loss1, Δ t2, Δ loss2. The local processing unit continuously receives and transmits the heartbeat packet in each scanning period, the cloud PLC is provided with a specific heartbeat packet receiving program, and when the heartbeat packet from the local processing unit is received, the heartbeat packet is immediately replied to a sender, namely the local processing unit. The local processing unit waits for the time of receiving the data returned by the server and records the receiving time t2And calculating the time difference delta t as a time delay value. Judging whether the QoS index of the current system can meet the QoS requirement of the cloud PLC,
step one, when the equipment is started, detecting a time delay value and a packet loss rate of QoS of a network under the current environment, and obtaining the current network condition as a basis for a PLC work task to run on a local PLC or a cloud PLC.
And step two, judging the obtained QoS time delay value and a preset threshold value of the system, judging whether the QoS of the current system can meet the QoS requirement of the cloud PLC, and indicating that the network is deteriorated if at least one of the current QoS time delay value and the packet Loss rate is higher than the threshold value (delta T, delta Loss) set by the system, and switching local operation according to the requirement of a specific task.
Because each task has different time sensitivity degrees, the task is guaranteed within the required time (marked as R)x) Task x, tolerable channel delay atx<Rx-tEx. For example, for task a (within 10ms of response time), task B (within 100ms of response time), and task C (within 50ms of response time), their tolerable channel delays Δ t are calculated respectivelya,Δtb,ΔtcComparing with the real-time channel measurement result, adopting different task execution switching strategies, and still being capable of corresponding required time R under the channel qualityxThe tasks completed in the system are continuously executed at the cloud end, namely a cloud PLC; other tasks are immediately switched to the local processing unit, namely the local PLC, and executed. Even if the task is executed in the local processing unit, the local processing unit continuously sends the heartbeat packet, and when the detected QoS index meets the operation condition of the cloud PLC, the operation is switched to the cloud end again for execution.
And step three, continuously repeating the operation in the production process of a factory, displaying switching information on a human-computer interaction interface of the local processing unit by the system each time the PLC work task is switched, simultaneously enabling a user to check the switching information on the human-computer interaction interface in real time, and executing the PLC work task where the PLC work task is executed in the current production process.
Example 2
As shown in fig. 4, the present solution may be deployed in a multi-clouded PLC.
The method comprises the following steps: the deployment of a plurality of cloud PLCs is adopted, the local processing unit continuously sends heartbeat packet detection QoS values to all cloud PLCs in a scanning period, and the specific basis of PLC work tasks executed in a cloud end/local PLC is the time delay value and the packet loss rate.
And step two, recording the time delay values and the packet Loss rates of the three positions as delta T1, delta Loss1, delta T2 and delta Loss2, and judging with the set threshold value1 (delta T1 and delta Loss 1). If Max (delta T1, delta T2) < = delta T1 and Max (delta Loss1, delta Loss 2) < = delta Loss1 indicate that the network quality of the two cloud PLCs can meet the requirements of all service communication time delays/bandwidth, the PLC work tasks are executed in the cloud PLCs 1 and 2; if the delta T1< = Max (delta T1, delta T2) < = delta T2 and the delta Loss1< = Max (delta Loss1, delta Loss 2) < = delta Loss2 indicate that the network is deteriorated, at this time, whether the clouded PLC1 or the clouded PLC2 meets the condition lower than the threshold value1 is judged, if yes, the PLC work task is executed at the clouded PLC meeting the condition lower than the threshold value1, and if not, the PLC work task is put to a local PLC for execution.
When a task is executed in the local PLC, the heartbeat packet is still sent continuously, and when the QoS index meets the operation condition of the cloud PLC, the QoS index is switched to the cloud PLC with the QoS index meeting the operation condition of the cloud PLC for execution again.
And step three, continuously repeating the operation in the production process of a factory, displaying switching information on a human-computer interaction interface of the local processing unit by the system each time the PLC work task is switched, and simultaneously, enabling a user to check where the PLC work task is executed in the current production in real time on the human-computer interaction interface.
According to the embodiment of the disclosure, the following technical effects are achieved: on the premise of ensuring the combined use of the traditional PLC of a factory and the virtual PLC of a new technology, the time delay index of the QoS is used as the basis of the operating environment of the PLC working task, the transmission of time delay sensitive services is practically ensured, and the efficiency and the flexibility of industrial production are ensured. Compared with the traditional production mode which only uses a hard PLC, the production process is more flexible, the data visualization degree is high, and the data processing is more convenient; compared with the method only using soft PLC, the task switching mechanism in the scheme improves the reliability of the system, overcomes the problem of easy interference from the external environment, greatly enhances the reliability of the whole system, and ensures that the production process can be smoothly executed.
It is noted that while for simplicity of explanation, the foregoing method embodiments have been described as a series of acts or combination of acts, it will be appreciated by those skilled in the art that the present disclosure is not limited by the order of acts, as some steps may, in accordance with the present disclosure, occur in other orders and concurrently. Further, those skilled in the art should also appreciate that the embodiments described in the specification are exemplary embodiments and that acts and modules referred to are not necessarily required by the disclosure.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a load programmable logic device (CPLD), and the like.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
Further, while operations are depicted in a particular order, this should be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single implementation. Conversely, various features that are described in the context of a single implementation can also be implemented in multiple implementations separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (4)

1. A task control method based on a cloud Programmable Logic Controller (PLC) is characterized by comprising the following steps: the method comprises the following steps:
setting a local processing unit, wherein the local processing unit executes the functions of a local PLC and is connected with a cloud PLC network of a cloud end;
detecting the network quality, and acquiring a network QoS index communicated with the cloud PLC; the network QoS metrics include at least: availability, throughput, time delay variation and packet loss rate; wherein the detecting network quality comprises: the local processing unit sends the heartbeat packet to the cloud PLC and records the sending time
Figure DEST_PATH_IMAGE001A
When the cloud PLC receives the heartbeat packet from the local processing unit, the heartbeat packet is immediately replied to the sender; the local processing unit waits for the time of receiving the data returned by the server, records the receiving time t2, and calculates the time difference t as a time delay value;
comparing the acquired network QoS index with a set threshold value, and distributing tasks to a local processing unit and a cloud PLC according to a comparison result; judging whether the QoS index of the current system can meet the QoS requirement of the cloud PLC, and when the current QoS index is lower than a threshold value delay threshold value1 and a packet loss rate threshold value1 set by the system, indicating that the network quality is good and the requirements of all service communication delay/bandwidth can be met, and executing a PLC work task in the cloud PLC; when at least one of the current QoS time delay value and the current packet loss rate is higher than a set threshold value1, indicating that the network is deteriorated, and switching the corresponding task between the local processing unit and the cloud PLC according to the switching rule of the task.
2. The method of claim 1, wherein: the switching of the corresponding task between the local processing unit and the cloud PLC according to the switching rule of the task comprises the following steps: and judging whether the task is executed in the local processing unit or processed in the cloud PLC according to the sensitivity of the task to time.
3. A task control method based on a cloud Programmable Logic Controller (PLC) is characterized in that: the method comprises the following steps:
setting a local processing unit, wherein the local processing unit executes the function of a local PLC and is connected with a cloud PLC network of a cloud end;
detecting the network quality, and acquiring a network QoS index communicated with the cloud PLC; the network QoS metrics include at least: availability, throughput, time delay variation and packet loss rate; wherein the detecting network quality comprises: the local processing unit sends the heartbeat packet to the cloud PLC and records the sending time
Figure DEST_PATH_IMAGE001AA
When the cloud PLC receives the heartbeat packet from the local processing unit, the heartbeat packet is immediately replied to the sender; the local processing unit waits for the time of receiving the data returned by the server, records the receiving time t2, and calculates the time difference t as a time delay value;
comparing the obtained network QoS index with a set threshold value, and distributing corresponding tasks to a local processing unit or a cloud PLC for processing, wherein the method comprises the following steps: judging whether the QoS index of the current system can meet the QoS requirement of the cloud PLC, and when the current QoS index is lower than a set threshold value1, indicating that the network quality is good and can meet the communication delay/bandwidth requirements of all services, and executing the PLC work task in the cloud PLC; when the current QoS index is higher than a threshold value1 set by the system but lower than a threshold value2, the time-sensitive tasks are placed in a local processing unit to be executed, other tasks are still executed in a cloud PLC of the cloud, and when at least one of a time delay value and a packet loss rate is higher than the threshold value2 set by the system, all the tasks are completely transferred to the local processing unit to be processed.
4. An electronic device comprising a memory and a processor, the memory having a computer program stored thereon, wherein the processor when executing the program implements the method according to any of claims 1 to 3.
CN202111566875.4A 2021-12-20 2021-12-20 Task control method based on cloud programmable logic controller Active CN114460892B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111566875.4A CN114460892B (en) 2021-12-20 2021-12-20 Task control method based on cloud programmable logic controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111566875.4A CN114460892B (en) 2021-12-20 2021-12-20 Task control method based on cloud programmable logic controller

Publications (2)

Publication Number Publication Date
CN114460892A CN114460892A (en) 2022-05-10
CN114460892B true CN114460892B (en) 2022-11-01

Family

ID=81405005

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111566875.4A Active CN114460892B (en) 2021-12-20 2021-12-20 Task control method based on cloud programmable logic controller

Country Status (1)

Country Link
CN (1) CN114460892B (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103728974B (en) * 2014-01-20 2016-11-23 北京航空航天大学 The dynamic network scheduling evaluated based on QoS and control method, system and device
WO2017064554A1 (en) * 2015-10-13 2017-04-20 Schneider Electric Industries Sas Method for arranging workloads in a software defined automation system
EP3467600A1 (en) * 2017-10-04 2019-04-10 Siemens Aktiengesellschaft Cloud central module for a programmable logic controller
CN108594747A (en) * 2018-04-13 2018-09-28 陕西科技大学 The long-range Monitoring and control system of calender based on cloud platform
CN111431822A (en) * 2020-04-19 2020-07-17 汪勤思 Deterministic time delay service intelligent scheduling and control implementation method
CN113037877B (en) * 2021-05-26 2021-08-24 深圳大学 Optimization method for time-space data and resource scheduling under cloud edge architecture
CN113419484B (en) * 2021-08-06 2024-04-26 戴云 Operation method of cloud programmable controller
CN113515351B (en) * 2021-09-07 2022-03-29 华南理工大学 Resource scheduling implementation method based on energy consumption and QoS (quality of service) cooperative optimization

Also Published As

Publication number Publication date
CN114460892A (en) 2022-05-10

Similar Documents

Publication Publication Date Title
KR102488923B1 (en) Abnormal data collecting method, apparatus, storage medium and computer program for automatic
US11201834B2 (en) Communication control device, communication control method, and communication system
CN106249703B (en) For controlling and/or the system and method for the process of analytical industry
EP3324256B1 (en) Control system and control device
US20170187585A1 (en) Technologies for validating operations of devices
CN114338447A (en) Full link pressure measurement method and device in Radius environment, computer equipment and storage medium
CN114460892B (en) Task control method based on cloud programmable logic controller
CN113933694A (en) Method and device for detecting running state of optical coupling relay
CN111427739A (en) Real-time robot monitoring method, medium, terminal and device
CN111587561B (en) Distributed control system and communication control method thereof
EP4325377A1 (en) Data processing device, data analyzing device, data processing system and method for processing data
CN105024859B (en) A kind of unit failure estimation method and device based on network control system
CN115598445A (en) Electrical fault detection method and device based on hardware-in-the-loop
CN106371419B (en) The diagnostic device and diagnostic method of operation for monitoring control loop
US11092945B2 (en) Control device, control method, and non-transitory storage medium storing control program
US10088812B2 (en) Function unit, analog input unit, and programmable controller system
CN115348147A (en) Fault analysis method, apparatus, device, storage medium and program product
US20210392062A1 (en) Information processing device and control method for information processing device
US10680849B2 (en) Built-in apparatus, communication method, and computer readable medium
CN104486779A (en) Slow clock test method for mobile communication terminal and test system thereof
CN116880357B (en) Equipment debugging method, device, equipment and storage medium
JP2019008471A (en) Management device, simulation system and simulation method
CN109669422B (en) Real-time data acquisition system
CN116319261B (en) TSN network scheduling strategy optimization method and device, electronic equipment and storage medium
US11699111B2 (en) Control device and monitoring system of manufacturing device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant