[go: up one dir, main page]

CN102147595B - Software protection method for preventing digital feedback control system from being out of control - Google Patents

Software protection method for preventing digital feedback control system from being out of control Download PDF

Info

Publication number
CN102147595B
CN102147595B CN 201010599014 CN201010599014A CN102147595B CN 102147595 B CN102147595 B CN 102147595B CN 201010599014 CN201010599014 CN 201010599014 CN 201010599014 A CN201010599014 A CN 201010599014A CN 102147595 B CN102147595 B CN 102147595B
Authority
CN
China
Prior art keywords
feedback signal
deviation
adjacent twice
counter
executable operations
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.)
Expired - Fee Related
Application number
CN 201010599014
Other languages
Chinese (zh)
Other versions
CN102147595A (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.)
No206 Institute Of China North Industries Group Corp
Original Assignee
No206 Institute Of China North Industries Group Corp
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 No206 Institute Of China North Industries Group Corp filed Critical No206 Institute Of China North Industries Group Corp
Priority to CN 201010599014 priority Critical patent/CN102147595B/en
Publication of CN102147595A publication Critical patent/CN102147595A/en
Application granted granted Critical
Publication of CN102147595B publication Critical patent/CN102147595B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Retry When Errors Occur (AREA)
  • Safety Devices In Control Systems (AREA)

Abstract

The invention provides a software protection method for preventing a digital feedback control system from being out of control, belongs to the technical field of computer control, relates to receiving and processing of a digital feedback signal and discloses a system protection method for a control system based on the digital feedback signal. The method comprises the following steps of: firstly, judging whether the digital feedback signal can be received normally within a control software cycle period; and secondly, judging the correctness of the received signal, outputting a control signal from a system, and closing system output in real time if the feedback signal is abnormal so as to ensure the safety of the system. The system protection method employed in the invention is simple, small in software code quantity, strong in real-time property and high in reliability.

Description

Prevent the method for protecting software of digital feedback control system from being out of control
Technical field
The invention belongs to the Computer Control Technology field, relate to reception and the processing of digital feedback signal, propose to prevent the method for protecting software of digital feedback control system from being out of control.
Background technology
Along with the develop rapidly of large scale integrated circuit, microcontroller, microprocessor and sensor technology, the digitizing of control system feedback element has also obtained significant progress.
In the control system that adopts digital feedback signal, if because the communication loop failure and other reasons of feedback element power down, feedback element fault, feedback signal causes that feedback signal is unusual, control system will occur out of control.System's meeting out of control brings threat to system and personal safety, therefore under any circumstance, is necessary to take appropriate measures to prevent that the digital signal feedback control system is out of control.
The method of anti-locking system employing out of control can adopt the method that judges whether to receive feedback signal in cycle period in the digital control system.The method can effectively prevent because of the feedback that communication function causes unusually lose so that the system that causes out of control.But often occur system communication function signal normal, that receive in the practical application and meet the situation that communication protocol, this feedback are the invalid signals that cause of the fault because of sensing element.Said method just can't prevent effectively that digital feedback control system system in the case is out of control.
Summary of the invention
The object of the invention is to the unusual easy problem that causes that control system is out of control for digital feedback signal in the digital feedback control system; a kind of method for protecting software that prevents digital feedback control system from being out of control has been proposed; realization is guaranteed system safety operation to the real-time reliably protecting of system.
Realize that technical scheme of the present invention comprises the setting that permission is not received the number of times of significant figure feedback signal continuously, the setting of adjacent twice digital feedback signal deviation thresholding, allow adjacent twice digital feedback signal deviation under the closed loop state to equal the setting of 0 number of times, the setting that allows adjacent twice digital feedback signal deviation to exceed the number of times of selected thresholding, whether received the judgement of effective Feedback signal, do not receive continuously the counter add-one operation of effective Feedback signal, the counter clear 0 that does not receive the effective Feedback signal resets, whether receive for the first time the judgement of effective Feedback signal, the calculating of adjacent twice digital feedback signal deviation, whether the deviation of adjacent twice feedback signal is greater than the judgement of threshold value, the deviation of adjacent twice feedback signal is greater than the counter add-one operation of threshold value, the deviation of adjacent twice feedback signal resets greater than the counter clear 0 of threshold value, whether the deviation of adjacent twice feedback signal equals 0 judgement under the closed loop state, the counter add-one operation that the deviation of adjacent twice feedback signal equals 0 under the closed loop state, the deviation of adjacent twice feedback signal equals 0 counter clear 0 and resets under the closed loop state, do not receive continuously the whether judgement of super permissible value of value of the counter of effective Feedback signal, the deviation of adjacent twice feedback signal equals the whether judgement of super permissible value of value of 0 counter under the closed loop state, the deviation of adjacent twice feedback signal is greater than the whether judgement of super permissible value of the value of the counter of threshold value, output control signal, shutdown system output.Whether the inventive method at first can normally be received within the sampling period digital feedback signal is judged; Secondly to the received signal correctness is judged, if feedback signal is unusual, security of system is guaranteed in the real-time shutdown system output of system's output control signal.
Whether whether characteristics of the present invention are: can be judged by normally receiving continuously in the cycle and the correctness of the signal that receives is continuously judged in the control software cycles digital feedback signal, a plurality of adjacent cycle periods are not received that the fault of significant figure feedback signal and the fault that adjacent twice digital feedback signal deviation continuous several times exceeds selected thresholding count, but the fault that occurs is not once in a while added up.When the accumulative total number of stoppages exceeds in the situation that allows the number of stoppages, export the real-time shutdown system output of control signal, guarantee that security of system is reliable.System protection method of the present invention is simple, little, the real-time row of software code amount is strong, reliability is high.
Description of drawings
Fig. 1 is the software flow pattern of the embodiment of the invention.
Specific implementation method
Whether the present invention at first can normally be received in the cycle period of control software digital feedback signal is judged; Secondly to the received signal correctness is judged, if feedback signal is unusual, security of system is guaranteed in the real-time shutdown system output of system's output control signal.
The establishment of the anti-software routines out of control among the present invention can be implemented according to software flow pattern shown in Figure 1.
The implementation flow process is as follows:
1, according to the requirement of real-time of the length of system controlling software cycle period and system protection to the deviation thresholding that allows not receive continuously the number of times of significant figure feedback signal, adjacent twice digital feedback signal, allow that adjacent twice digital feedback signal deviation equals 0 number of times under the closed loop state, the number of times that allows adjacent twice digital feedback signal deviation to exceed selected thresholding arranges.
2. judge and in this cycle period, whether received the effective Feedback signal.If judge and in this cycle period, received the effective Feedback signal, then the counter that does not receive continuously the effective Feedback signal is carried out clearly 0 rear the 3rd step of execution.Otherwise, after not receiving the counter add-one operation of effective Feedback signal continuously, directly carried out for the 6th step.
3. judge whether to receive for the first time the effective Feedback signal.If judge and in this cycle period, receive for the first time the effective Feedback signal, then directly carried out for the 6th step.Otherwise after calculating the digital feedback signal deviation of this and last time, carried out for the 4th step.
4. judge that whether the deviation of adjacent twice feedback signal is greater than threshold value.If judge the deviation of adjacent twice feedback signal greater than threshold value, then the deviation of adjacent twice feedback signal is added 1 greater than the counter of threshold value after, carried out for the 6th step.Otherwise, after the deviation of adjacent twice feedback signal resetted greater than the counter clear 0 of threshold value, carried out for the 5th step.
5. whether the deviation of judging adjacent twice feedback signal under the closed loop state equals 0.Equal 0 if judge the deviation of adjacent twice feedback signal under the closed loop state, then the deviation of adjacent twice feedback signal equals 0 counter and adds 1 under the closed loop state.Otherwise the deviation of adjacent twice feedback signal equals 0 counter clear 0 and resets under the closed loop state.
6. whether judge by super corresponding permissible value greater than the value of three counters of counter of threshold value for the deviation that the deviation of adjacent twice feedback signal under the counter that do not receive continuously the effective Feedback signal, the closed loop state is equaled 0 counter, adjacent twice feedback signal.If there is one to exceed permissible value, then software output control signal, shutdown system output.
It is pointed out that the related personnel all belongs to protection scope of the present invention to any change that does not relate to determination methods, protected mode that the present invention makes.

Claims (7)

1. whether a method for protecting software that prevents digital feedback control system from being out of control is characterized in that: at first can normally be received in the cycle period of control software digital feedback signal and judge; Secondly to the received signal correctness is judged, if feedback signal is unusual, security of system is guaranteed in the real-time shutdown system output of system's output control signal, and described method for protecting software is concrete carries out following operation:
(1) allows continuous setting of not receiving the number of times of significant figure feedback signal;
(2) setting of adjacent twice digital feedback signal deviation thresholding;
(3) allow adjacent twice digital feedback signal deviation under the closed loop state to equal the setting of 0 number of times;
(4) setting that allows adjacent twice digital feedback signal deviation to exceed the number of times of selected thresholding;
(5) whether received the judgement of effective Feedback signal;
(6) the continuous counter add-one operation that does not receive the effective Feedback signal;
(7) counter clear 0 that does not receive the effective Feedback signal resets;
(8) whether receive for the first time the judgement of effective Feedback signal;
(9) calculating of adjacent twice digital feedback signal deviation;
(10) whether the deviation of adjacent twice feedback signal is greater than the judgement of threshold value;
(11) deviation of adjacent twice feedback signal is greater than the counter add-one operation of threshold value;
(12) deviation of adjacent twice feedback signal resets greater than the counter clear 0 of threshold value;
(13) whether the deviation of adjacent twice feedback signal equals 0 judgement under the closed loop state;
(14) the counter add-one operation that the deviation of adjacent twice feedback signal equals 0 under the closed loop state;
(15) deviation of adjacent twice feedback signal equals 0 counter clear 0 and resets under the closed loop state;
(16) do not receive continuously the whether judgement of super permissible value of value of the counter of effective Feedback signal;
(17) deviation of adjacent twice feedback signal equals the whether judgement of super permissible value of value of 0 counter under the closed loop state;
(18) deviation of adjacent twice feedback signal is greater than the whether judgement of super permissible value of the value of the counter of threshold value;
(19) output control signal, shutdown system output;
Logical relation between the aforesaid operations step is: operation (5) judges whether received the effective Feedback signal in this cycle period, if judge and in this cycle period, do not receive the effective Feedback signal, executable operations (6) then, and directly executable operations (16) to (19), otherwise executable operations (7); Then executable operations (8) judges whether this effective Feedback signal receives for the first time, if receive for the first time, then directly executable operations (16) to (19), otherwise executable operations (9); Then whether the deviation of adjacent twice feedback signal of executable operations (10) is greater than the judgement of threshold value, if judge the deviation of adjacent twice feedback signal greater than threshold value, executable operations (11) then, and directly executable operations (16) to (19), otherwise executable operations (12); Then whether the deviation of adjacent twice feedback signal equals 0 judgement under executable operations (13) the closed loop state, equal 0 if judge the deviation of adjacent twice feedback signal under the closed loop state, executable operations (14) then, and directly executable operations (16) to (19), otherwise executable operations (15); Then executable operations (16) does not receive the whether judgement of super permissible value of value of the counter of effective Feedback signal continuously, if judge the super permissible value of value that does not receive continuously the counter of effective Feedback signal, direct executable operations (19) then, otherwise the deviation of adjacent twice feedback signal equals the whether judgement of super permissible value of value of 0 counter under executable operations (17) the closed loop state, if judge the super permissible value of value that the deviation of adjacent twice feedback signal under the closed loop state equals 0 counter, direct executable operations (19) then, otherwise the deviation of adjacent twice feedback signal of executable operations (18) is greater than the whether judgement of super permissible value of the value of the counter of threshold value, if judge the deviation of adjacent twice feedback signal greater than the super permissible value of value of the counter of threshold value, then directly executable operations (19) is exported control signal, shutdown system output, then subroutine is returned; Otherwise directly execution subroutine returns.
2. the method for protecting software that prevents digital feedback control system from being out of control according to claim 1 is characterized in that: the setting that described operation (1) permission is not received the number of times of significant figure feedback signal continuously; the setting of operation (2) adjacent twice digital feedback signal deviation thresholding; operation (3) allows adjacent twice digital feedback signal deviation under the closed loop state to equal the real-time that the setting of 0 number of times and setting that operation (4) allows adjacent twice digital feedback signal deviation to exceed the number of times of selected thresholding refer to that length and system according to the system controlling software cycle period need protection to arrange.
3. the method for protecting software that prevents digital feedback control system from being out of control according to claim 1 is characterized in that: the judgement whether described operation (5) has received the effective Feedback signal refers to judge whether receiving effective digital feedback signal in the cycle in software cycles.
4. the method for protecting software that prevents digital feedback control system from being out of control according to claim 1 is characterized in that: it is to be clear 0 after receiving the effective Feedback signal that the counter clear 0 that described operation (7) does not receive the effective Feedback signal resets at every turn.
5. the method for protecting software that prevents digital feedback control system from being out of control according to claim 1; it is characterized in that: the calculating of the adjacent twice digital feedback signal deviation of described operation (9) refers to ask for the deviation of the twice adjacent digital feedback signal that receives, and namely asks for the adjacent poor absolute value of twice digital feedback signal.
6. the method for protecting software that prevents digital feedback control system from being out of control according to claim 1; it is characterized in that: the deviation of adjacent twice feedback signal of described operation (12) resets greater than the counter clear 0 of threshold value and refers to after the deviation of at every turn judging adjacent twice feedback signal is not more than threshold value, and this counter clear 0 is resetted.
7. the method for protecting software that prevents digital feedback control system from being out of control according to claim 1; it is characterized in that: the deviation of adjacent twice feedback signal equals 0 counter clear 0 and resets and refer to after the deviation of at every turn judging adjacent twice feedback signal under the closed loop state equals 0 under described operation (15) the closed loop state, and this counter clear 0 is resetted.
CN 201010599014 2010-12-16 2010-12-16 Software protection method for preventing digital feedback control system from being out of control Expired - Fee Related CN102147595B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010599014 CN102147595B (en) 2010-12-16 2010-12-16 Software protection method for preventing digital feedback control system from being out of control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010599014 CN102147595B (en) 2010-12-16 2010-12-16 Software protection method for preventing digital feedback control system from being out of control

Publications (2)

Publication Number Publication Date
CN102147595A CN102147595A (en) 2011-08-10
CN102147595B true CN102147595B (en) 2013-03-06

Family

ID=44421914

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010599014 Expired - Fee Related CN102147595B (en) 2010-12-16 2010-12-16 Software protection method for preventing digital feedback control system from being out of control

Country Status (1)

Country Link
CN (1) CN102147595B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104657226A (en) * 2013-11-20 2015-05-27 英业达科技有限公司 Computer system and operation method of computer system
CN109143973A (en) * 2018-07-26 2019-01-04 厦门科华恒盛股份有限公司 A kind of equipment protection method, apparatus and storage medium based on digitial controller

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6211803B1 (en) * 1998-11-12 2001-04-03 Logicvision, Inc. Test circuit and method for measuring switching point voltages and integral non-linearity (INL) of analog to digital converters
KR100546327B1 (en) * 2003-06-03 2006-01-26 삼성전자주식회사 Feedback control system and method
US7640412B2 (en) * 2007-01-04 2009-12-29 Hitachi Global Storage Technologies Netherlands, B.V. Techniques for improving the reliability of file systems
CN101848007B (en) * 2009-03-27 2013-06-05 台湾积体电路制造股份有限公司 Apparatus and methods for digital adaptive equalizer in serial receiver

Also Published As

Publication number Publication date
CN102147595A (en) 2011-08-10

Similar Documents

Publication Publication Date Title
EP2472408B1 (en) Bus monitor for improving system safety of system on chip (soc) and realizing method thereof
CN102681907B (en) Multifunctional watchdog circuit
CN102372222B (en) Reverse, over-speed and stall protection safety circuit of escalator and moving walkway
CN103140814A (en) Systems, methods, and apparatus for detecting shifts in redundant sensor signals
CN103077352B (en) The active defense method that a kind of program behavior based on cloud platform is analyzed
CN103413106B (en) A kind of chip top-layer covers completeness protection method and device
CN102147595B (en) Software protection method for preventing digital feedback control system from being out of control
CN101839790A (en) Intelligent on-line calibration system
CN110165632A (en) Power-out reset system applied to electronic equipment
CN103680655B (en) Nuclear plant digital I&C system default value method to set up and system
US9256223B2 (en) Safety interlock device for a plant
CN106647697A (en) Verification method for switching quantity input signals
CN201956676U (en) Dual-CPU control exit circuit used in relay protection device
Alsabbagh et al. Patch now and attack later-exploiting s7 plcs by time-of-day block
CN103279404A (en) Multi-computer system synchronization and reliability detection method based on heartbeat status words
CN113944880A (en) Hydraulic engineering pipeline protection system and method
CN102117669A (en) Method and system for controlling seawater reservoir water level pump trip of nuclear power plant
CN119668946A (en) A data security protection method and device based on multi-core low-voltage distribution network chip
CN105929811A (en) Protection circuit for program deadlock
CN204143541U (en) ATM service keyboard
CN202309678U (en) Circuit for preventing pulse data counting omission and used for power-load management terminal
CN105700915A (en) Method and device integrating watchdog function and monitoring software programming function
Li et al. Hardware-assisted malware detection for embedded systems in smart grid
CN103941700B (en) A kind of automation process safety monitoring system based on Modbus agreement
CN210041307U (en) Power supply system power failure protection system based on PLC control

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130306

Termination date: 20141216

EXPY Termination of patent right or utility model