Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Controller task switching method, device and equipment and readable storage medium

A task switching and controller technology is applied in the fields of equipment and computer-readable storage media, devices, and controller task switching methods, and can solve problems such as waste of manpower and material resources.

Inactive Publication Date: 2019-12-20
HANGZHOU HOLLYSYS AUTOMATION +1
View PDF3 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of this, the object of the present invention is to provide a controller task switching method, device, equipment and computer-readable storage medium, which solves the problem that the existing air-conditioning inspection method wastes a lot of manpower and material resources

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Controller task switching method, device and equipment and readable storage medium
  • Controller task switching method, device and equipment and readable storage medium
  • Controller task switching method, device and equipment and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is only some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0046] Please refer to figure 1 , figure 1 It is a flow chart of a controller task switching method provided by an embodiment of the present invention. The method includes:

[0047] S101: After receiving the switching instruction, obtain the context data of the current task, and save the context data to the task stack memory and the data b...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a controller task switching method, which comprises the following steps of: after receiving a switching instruction, obtaining context data of a current task, and storing the context data into a task stack memory and a data backup area; after a signal for re-executing the current task is received, judging whether the context data in the task stack memory is changed or not;if not, reading the context data in the task stack memory and executing the current task; and if yes, performing fault recording and alarming, obtaining context data from the data backup area, and executing a current task. According to the method, when context data of a current task in a task stack memory is changed, the context data is read from a data backup area and the current task is executed, so that the context data of the current task before and after task switching is ensured to be unchanged, and the running safety of a controller is further ensured. In addition, the invention furtherprovides a controller task switching device, controller task switching equipment and a computer readable storage medium, which also have the above beneficial effects.

Description

technical field [0001] The present invention relates to the field of controllers, in particular to a controller task switching method, device, equipment and computer-readable storage medium. Background technique [0002] Industrial control system (Industrial Control System, ICS) is used in many industries such as metallurgy, chemical industry, building materials, electric power, etc. Since the equipment it controls are all important industrial equipment, it has a high demand for security. The controller is the core equipment of the industrial control system, and the operation safety of the controller plays an important role in the whole control system. [0003] In the controller, each task has its own independent stack memory space, and the controller performs task switching according to the priority of each task, and most controller failures are caused by task switching. For example, in the process of task switching, the context data of current task A should be saved in th...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/46G06F9/48G06F11/14
CPCG06F9/461G06F9/485G06F11/1469
Inventor 王欣黄玲李蒙
Owner HANGZHOU HOLLYSYS AUTOMATION
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products