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

Method for amending logic algorithm routine of control system in online mode

A technology of algorithm program and control system, which is applied in general control system, control/regulation system, program control, etc., and can solve problems such as algorithm disturbance, system failure to return, real-time impact, etc.

Active Publication Date: 2014-01-22
BEIJING SIFANG JIBAO AUTOMATION +1
View PDF4 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The first way is that the storage area of ​​the controller adopts a code area and a data area. Each sub-algorithm program in the algorithm program is stored in a designated area, and the newly added subroutine is stored in a new area. The subroutine can be replaced after the execution of the task is stopped, or it can be replaced during the execution process, but the replaced subroutine cannot be executed. This method has a great impact on the real-time performance of the control;
[0005] The second method is that two code areas are used in the storage area of ​​the controller, and the two code areas share one data area. This method can configure the other code area without affecting the running program to meet the control requirements. Real-time requirements, but its disadvantage is that the memory space of the original variables may be required to be initialized after the program is modified. If an exception occurs after this stage is executed, the system cannot return to the original algorithm program running state, and there is a risk of algorithm disturbance. The same problem exists in one way

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
  • Method for amending logic algorithm routine of control system in online mode
  • Method for amending logic algorithm routine of control system in online mode
  • Method for amending logic algorithm routine of control system in online mode

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0064] Specific operations in the data generation phase include:

[0065] (11) The configuration software generates modified algorithm program data and new data area layout information according to the locally modified project;

[0066] (12) The configuration software reads the data area layout information of the currently running algorithm program from the controller;

[0067] (13) Compare the layout information of the two data areas to generate a backup data area configuration command: 1) Obtain the usage size of the active data area according to the old data area layout information, and generate and copy the memory value of the active data area usage area to the backup data 2) Judging by the variable name: if the variable is a new variable in the layout file of the new data area, it means that the variable is a newly added variable in the modified algorithm program, and then generate a command to initialize its memory ; If the variable exists in both the new and old data a...

Embodiment 2

[0070] In the data generation phase, the specific steps of this phase are as follows:

[0071] (101) The configuration software generates modified algorithm program data and data area arrangement information according to the locally modified project;

[0072] (102) judge whether the process of generating data is successful, if so, carry out (103); if not, carry out (107);

[0073] (103) The configuration software reads the data area layout information of the current running algorithm program;

[0074] (104) Judging whether the read is successful, if so, proceed to (105); if not, proceed to (107);

[0075] (105) Comparing the two data area arrangement information to generate the data area configuration command, the specific rules for generating the operation data area configuration command are described as follows: 1) Obtain the usage size of the active data area according to the old data area arrangement information, and generate the active data area The command to copy the ...

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 method for amending the logic algorithm routine of a control system in an online mode. The control system comprises two major parts of configuration software and a controller; the configuration software is in charge of generating an algorithm routine, and the controller is in charge of executing the routine to finish the industrial control. The method comprises four stages of (1), a data generating stage: the configuration software generates the necessary data information for the online amending in an offline mode; (2) a data downloading stage: the configuration software downloads the generated data and the controller preserves the data into a corresponding storing area; (3) a routine configuration stage: the controller finishes the routine configuration in the idle time of executing the algorithm routine; (4) a routine switching stage: the old algorithm routine is stopped and a new algorithm routine is executed. The control system can still correctly execute the algorithm routine before the amending even if any stage has a fault. The algorithm routine can be amended in the online mode without influencing the on-going routine, and the original control routine can still be executed under the condition of failure amending.

Description

technical field [0001] The invention belongs to the technical field of industrial automation control systems, and more specifically relates to a method for online modification of a logic algorithm program of a control system. Background technique [0002] In industrial automation control, the control system composed of configuration software and controller (also known as upper computer and lower computer) is widely used in various control fields: such as distributed control system (DCS), programmable logic controller (PLC) ), safety instrumented control system (SIS), etc. Usually, the configuration software (upper computer) completes the configuration of the control algorithm, the generation of the algorithm program, the download of the algorithm program to the controller, and the online monitoring of the algorithm execution; the controller (the lower computer) completes the algorithm task scheduling, control Algorithm execution, on-site data acquisition and other work are ...

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): G05B19/048
Inventor 师嘉王鼎刘刚黄磊焦邵华
Owner BEIJING SIFANG JIBAO 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