CN114460892A - 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
CN114460892A
CN114460892A CN202111566875.4A CN202111566875A CN114460892A CN 114460892 A CN114460892 A CN 114460892A CN 202111566875 A CN202111566875 A CN 202111566875A CN 114460892 A CN114460892 A CN 114460892A
Authority
CN
China
Prior art keywords
plc
cloud
processing unit
local processing
task
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.)
Granted
Application number
CN202111566875.4A
Other languages
Chinese (zh)
Other versions
CN114460892B (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, a control unit and an I/O port of the traditional hard PLC programmable logic controller are in the same position, can directly carry out communication, has strong stability, 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, and can provide quick and definite response just like this, but is close to the field environment, and the replacement, extension ability are poor, and traditional PLC often seals not open source, makes difficult to make the equipment interconnection of different manufacturers. 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: setting a local processing unit, wherein the control unit executes the functions of a local PLC and is connected with a cloud PLC execution network of a 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 clouded PLCs according to network QoS metrics 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: local processing sheetSending a heartbeat packet to the cloud PLC by the element, and recording 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; 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 the 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 value1 and the set threshold value1, the network is indicated to be deteriorated, 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 includes: 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 distributing corresponding tasks 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 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 to be executed locally, the rest of the tasks are still executed in the cloud, and when at least one of the delay value and the packet loss rate is higher than a value2 set by the system, all the tasks are completely transferred to the 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 added, 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 which is responsible for the cloud PLC is converted into the execution of the local processing unit, so that the normal operation of the 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 clear, the technical solutions of 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, for example, a 5G network, and time delay and packet loss are easily generated 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 susceptible to interference 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 researching different Quality of Service (QoS), a centralized deployed cloud industrial control unit (cloud PLC) or an industrial control unit (local processing unit, i.e., local PLC) on the industrial field machine device side is selected to execute functions 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.
According to the embodiment of the disclosure, the time delay index of 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 requirement 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;
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 receives the heartbeat packet and then immediately forwards the heartbeat packet, the forwarding time delay can be ignored, and the local processing unit records the moment t of receiving the heartbeat packet2The 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, obtains the required data from the input mapping register and the output mapping register respectively for operation and processing, and writes the result of program execution into the output mapping register for storing the result of program execution.
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 tExThe total time required for uploading data, executing the task and receiving the instruction is t ═ t for each taskin+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 for receiving and transmitting the heartbeat packets 5 times 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, Δ loss 2. 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:
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 time delay/bandwidth requirements of all services can be met, and the PLC work task is executed in a cloud PLC;
② at least one item of time delay value or 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 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 recorded as the 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, Δ loss 2. 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 cloud PLC immediately replies the heartbeat packet 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 the QoS of the network under the current environment to obtain the current network condition as a basis for the PLC working task to run on a local PLC or a cloud PLC.
And step two, judging the obtained QoS 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, indicating that the network is deteriorated when at least one of the current QoS 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 to realize 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. 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 in the cloud, namely a cloud PLC; other tasks are immediately switched to the local processing unit, namely the local PLC, and executed. Even if there is a task to be executed in the local processing unit, the local processing unitThe local processing unit still continuously sends the heartbeat packet, and when the detected QoS index meets the operation condition of the cloud PLC, the cloud end is switched to execute 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, 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 obtained at 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 (Δ T1, Δ T2) <Δt1 and Max (Δ Loss1, Δ Loss2) <Δloss1 indicate that the network quality of the two cloud PLCs can meet all service communication delay/bandwidth requirements, the PLC work tasks are executed in the cloud PLCs 1 and 2; if Δ T1< ═ Max (Δ T1, Δ T2) < ═ Δ T2 and Δ Loss1< ═ Max (Δ Loss1, Δ Loss2) < ═ Δ Loss2 indicate that the network is degraded, at this time, it is determined whether there is a clouded PLC1 or a clouded PLC2 that satisfies a condition lower than the threshold 1, if so, a PLC work task is executed at the clouded PLC that satisfies the condition lower than the threshold 1, and if not, the PLC work task is released to the local PLC for execution.
When a task is executed in the local PLC, the heartbeat packet is still sent continuously, and when the detected QoS index meets the operating condition of the cloud PLC, the cloud PLC with the QoS index meeting the operating condition of the cloud PLC is switched to execute 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 code 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 code, when executed by the processor or controller, causes the functions/acts 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 portable 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 (10)

1. 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;
and distributing the tasks to the local processing units and the cloud PLC according to the network QoS index.
2. The method of claim 1, wherein: the allocating tasks to local processing units and clouded PLCs according to network QoS metrics 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.
3. The method of claim 2, wherein: the network QoS metrics include at least: availability, throughput, latency variation, and packet loss rate.
4. The method of claim 3, wherein: 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.
5. The method of claim 4, wherein: the testing the time delay in the QoS indicator comprises: 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; local processing unit waiting for reception of serviceThe time of the data returned by the device is recorded as the receiving time t2, and the time difference deltat is calculated as a time delay value.
6. The method of claim 5, wherein: comparing the obtained 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
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.
7. The method of claim 5, wherein: 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 the threshold value delay 1 and the packet loss rate threshold value1 set by the system, indicating that the network quality is good and can meet the requirements of all service communication delay/bandwidth, and executing a PLC working task 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, namely the delay threshold value1 and the packet loss rate threshold value1, the network is indicated to be deteriorated, and the corresponding task is switched between the local processing unit and the cloud PLC according to the switching rule of the task.
8. The method of claim 7, 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: 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.
9. The method of claim 5, wherein: comparing the acquired network QoS index with a set threshold value, and distributing corresponding tasks 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 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 for execution, the rest tasks are still executed by a cloud PLC in the cloud, and when at least one of a time delay value and a packet loss rate is higher than a value2 set by the system, all the tasks are completely transferred to the local processing unit for processing.
10. An electronic device comprising a memory and a processor, the memory having stored thereon a computer program, wherein the processor, when executing the program, implements the method of any of claims 1-9.
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 true CN114460892A (en) 2022-05-10
CN114460892B 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)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103728974A (en) * 2014-01-20 2014-04-16 北京航空航天大学 Quality of Service (QoS) evaluation based dynamic network scheduling and control method, system and device
CN108594747A (en) * 2018-04-13 2018-09-28 陕西科技大学 The long-range Monitoring and control system of calender based on cloud platform
CN108885560A (en) * 2015-10-13 2018-11-23 施耐德电器工业公司 Method for the load that shares out the work in software definition automated system
EP3467600A1 (en) * 2017-10-04 2019-04-10 Siemens Aktiengesellschaft Cloud central module for a programmable logic controller
CN111431822A (en) * 2020-04-19 2020-07-17 汪勤思 Deterministic time delay service intelligent scheduling and control implementation method
CN113037877A (en) * 2021-05-26 2021-06-25 深圳大学 Optimization method for time-space data and resource scheduling under cloud edge architecture
CN113419484A (en) * 2021-08-06 2021-09-21 戴云 Cloud programmable controller and operation method
CN113515351A (en) * 2021-09-07 2021-10-19 华南理工大学 Resource scheduling implementation method based on energy consumption and QoS (quality of service) cooperative optimization

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103728974A (en) * 2014-01-20 2014-04-16 北京航空航天大学 Quality of Service (QoS) evaluation based dynamic network scheduling and control method, system and device
CN108885560A (en) * 2015-10-13 2018-11-23 施耐德电器工业公司 Method for the load that shares out the work in software definition automated 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
CN113037877A (en) * 2021-05-26 2021-06-25 深圳大学 Optimization method for time-space data and resource scheduling under cloud edge architecture
CN113419484A (en) * 2021-08-06 2021-09-21 戴云 Cloud programmable controller and operation method
CN113515351A (en) * 2021-09-07 2021-10-19 华南理工大学 Resource scheduling implementation method based on energy consumption and QoS (quality of service) cooperative optimization

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
贾子翔 等: "5G云化工业自动化监控系统的设计与实现", 《信息通信技术》 *

Also Published As

Publication number Publication date
CN114460892B (en) 2022-11-01

Similar Documents

Publication Publication Date Title
CA2940788A1 (en) Power over ethernet method and device
EP2942680B1 (en) Process control system and process control method
KR102488923B1 (en) Abnormal data collecting method, apparatus, storage medium and computer program for automatic
US20170187585A1 (en) Technologies for validating operations of devices
CN114460892B (en) Task control method based on cloud programmable logic controller
CN110557080A (en) Servo motor control method and device and computer readable medium
CN111427739A (en) Real-time robot monitoring method, medium, terminal and device
CN108696375B (en) Industrial network information acquisition device, method, monitoring system and storage medium
CN111587561B (en) Distributed control system and communication control method thereof
US10007258B2 (en) Communications device with adaptive scanner for process control
EP4325377A1 (en) Data processing device, data analyzing device, data processing system and method for processing data
US11092945B2 (en) Control device, control method, and non-transitory storage medium storing control program
CN113933694A (en) Method and device for detecting running state of optical coupling relay
CN105024859B (en) A kind of unit failure estimation method and device based on network control system
CN211296735U (en) Controller internal delay testing device
US20210392062A1 (en) Information processing device and control method for information processing device
CN116880357B (en) Equipment debugging method, device, equipment and storage medium
CN104486779A (en) Slow clock test method for mobile communication terminal and test system thereof
CN210867555U (en) Control equipment and control system of servo motor
US20220268858A1 (en) Determining Diagnostics Information Based On Non-Real-Time Data
CN109669422B (en) Real-time data acquisition system
US20180270080A1 (en) Built-in apparatus, communication method, and computer readable medium
US11699111B2 (en) Control device and monitoring system of manufacturing device
CN117560593A (en) Signal transmission method, device, equipment and medium in self-adaptive IO module
CN114047727A (en) Control method, programmable logic controller and computer readable storage medium

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