Multitask control method and multitask control device of PLC (programmable logic controller)

A control method and technology for a control device, which are applied in multi-programming devices, program startup/switching, resource allocation, etc., can solve the problems of poor system real-time performance, inconvenient programming, and low system efficiency, and achieve improved development efficiency and clear function division. The effect of simplicity and improved programming convenience

Inactive Publication Date: 2013-11-20
SHENZHEN HUICHUAN CONTROL TECH +2
View PDF5 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present invention provides a PLC multi-task control for the defects that traditional PLC executes user program instructions and external I / O state collection and refresh in a single-task manner, resulting in poor system real-time performance, low system efficiency, and inconvenient programming. The method and device introduce a real-time operating system (RTOS) into the PLC control system to realize multi-task calling, support user multi-task programming, thereby solving the above-mentioned shortcomings of traditional PLC

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
  • Multitask control method and multitask control device of PLC (programmable logic controller)
  • Multitask control method and multitask control device of PLC (programmable logic controller)
  • Multitask control method and multitask control device of PLC (programmable logic controller)

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] The present invention will be further explained below in conjunction with the accompanying drawings and embodiments.

[0038] figure 1 It is the flow chart of the first embodiment of the multi-task control method of PLC of the present invention, as figure 1 As shown, in this embodiment, the method includes the following steps:

[0039] S1, dividing the control task of the PLC into multiple types of subtasks;

[0040] S2, assigning priorities to various types of subtasks;

[0041] S3. Under the scheduling of the real-time operating system, the subtask with the highest priority among all currently ready subtasks is run, and the subtasks with the same priority run in turn according to the time slice.

[0042] In this embodiment, the architecture of the RTOS-based PLC control system is as follows figure 2 Shown, through the introduction of RTOS operating platform, PLC control system can support multi-task scheduling and control. Specifically, in step S1, according to ...

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 multitask control method and a multitask control system of a PLC (programmable logic controller). The system comprises a classifying unit, a priority distribution unit and an execution unit. The method includes S1, dividing a control task of the PLC into various types of sub-tasks, S2, distributing priorities to the various types of sub-tasks, S3, under scheduling of a real-time operating system, operating the sub-tasks with the highest priorities in all current ready sub-tasks, and operating the sub-tasks with the same priorities in a rotation manner according to time slices. The control task of a PLC control system is divided into multiple sub-tasks which operate under the scheduling of an RTOS (real-time operating system) in a coordinated manner, so that time-sharing multitask control is realized, and real-time performance, system efficiency, convenience in programming and the like are greatly improved as compared with those of conventional single-task PLCs.

Description

technical field [0001] The present invention relates to a programmable logic controller (Programmable Logic Controller, PLC), and more specifically, to a PLC multi-task control method and device. Background technique [0002] Based on microprocessor technology, PLC integrates computer technology, automation technology and communication technology. The International Electrotechnical Commission IEC defines it as: "Programmable controller is an electronic system for digital operation, designed for use in industrial environments. Designed for applications, it uses a class of programmable memory for storing programs inside, executing user-oriented instructions such as logic operations, sequence control, timing, counting, and arithmetic operations, and through digital and analog Input and output control the production process of various types of machinery. PLC and its related peripheral equipment are designed according to the principle of being easy to integrate with the industria...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/50G06F9/48
Inventor 罗德福
Owner SHENZHEN HUICHUAN CONTROL TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products