CN114687865A - State machine following method of FADEC control software - Google Patents

State machine following method of FADEC control software Download PDF

Info

Publication number
CN114687865A
CN114687865A CN202210180681.9A CN202210180681A CN114687865A CN 114687865 A CN114687865 A CN 114687865A CN 202210180681 A CN202210180681 A CN 202210180681A CN 114687865 A CN114687865 A CN 114687865A
Authority
CN
China
Prior art keywords
state
state machine
running
executing
channel
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
CN202210180681.9A
Other languages
Chinese (zh)
Other versions
CN114687865B (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.)
AECC Aero Engine Control System Institute
Original Assignee
AECC Aero Engine Control System Institute
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 AECC Aero Engine Control System Institute filed Critical AECC Aero Engine Control System Institute
Priority to CN202210180681.9A priority Critical patent/CN114687865B/en
Publication of CN114687865A publication Critical patent/CN114687865A/en
Application granted granted Critical
Publication of CN114687865B publication Critical patent/CN114687865B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F02COMBUSTION ENGINES; HOT-GAS OR COMBUSTION-PRODUCT ENGINE PLANTS
    • F02CGAS-TURBINE PLANTS; AIR INTAKES FOR JET-PROPULSION PLANTS; CONTROLLING FUEL SUPPLY IN AIR-BREATHING JET-PROPULSION PLANTS
    • F02C9/00Controlling gas-turbine plants; Controlling fuel supply in air- breathing jet-propulsion plants
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F02COMBUSTION ENGINES; HOT-GAS OR COMBUSTION-PRODUCT ENGINE PLANTS
    • F02CGAS-TURBINE PLANTS; AIR INTAKES FOR JET-PROPULSION PLANTS; CONTROLLING FUEL SUPPLY IN AIR-BREATHING JET-PROPULSION PLANTS
    • F02C7/00Features, components parts, details or accessories, not provided for in, or of interest apart form groups F02C1/00 - F02C6/00; Air intakes for jet-propulsion plants
    • F02C7/26Starting; Ignition

Landscapes

  • Engineering & Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Mechanical Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Hardware Redundancy (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The invention discloses a state machine following method of FADEC control software, which comprises the following steps: registering engine state machine information; setting an initial running state of a state machine and starting running; running the state machine, inquiring the state transition event table, and updating the running state of the current state machine according to the inquiry result; the backup channel resets the running state of the current state machine by using the state information of the main control channel; executing state scheduling, comparing with the previous cycle running state, if the state changes, executing exit processing of the previous cycle running state, then executing entry processing of the current state, and finally executing running processing of the current state; and if the state is not changed, only executing the running processing of the current state. The invention can keep the control state of the dual-channel engine consistent all the time, when the main channel and the standby channel are switched, the original backup channel can take over the main control right correctly and quickly, and the continuous and reliable control of the engine operation is ensured; the invention has high software operation efficiency and does not destroy the operation scheduling mechanism of the state machine.

Description

State machine following method of FADEC control software
Technical Field
The invention relates to a software development technology, in particular to a state machine following method of FADEC control software.
Background
Aircraft engine state control is an important function of FADEC system control. Finite state machines are commonly used in FADEC systems to control engine start, stop, and run and switch between different operating states. The state of the aircraft engine is multiple, the migration path is complex, and in order to ensure safe and reliable control, the FADEC system generally realizes the scheduling of the engine state by inquiring a state transition event table.
The dual-channel main/standby control is a common design architecture of a FADEC system, a main control channel outputs a control signal, when the main control channel is reset, manually switched or the active control right is abandoned under the condition specified by requirements, an original backup channel is converted into the main control channel, and when the main/standby channels are switched, the continuous and stable control of the engine function is ensured. However, the signal sampling of the two channels may be different, or a certain channel may fail, and the engine control states of the two channels are inconsistent, so that the control output signal may be greatly disturbed after the channels are switched between the main channel and the standby channel, and the stable operation of the engine cannot be guaranteed.
Disclosure of Invention
The purpose of the invention is as follows: the invention aims to provide a state machine following method of FADEC control software, so that the running of a state machine of a backup channel can follow the state of a main control channel, and the continuous and stable engine state is ensured when the main channel and the backup channel are switched.
The technical scheme is as follows: the principle of the state machine following method of the FADEC control software is as follows: the main control channel can carry out event query, state transition and state operation control according to a normal scheduling mechanism of the finite state machine; the backup channel acquires the state information of the main control channel through the communication between the channels, and inserts the state information of the main control channel into the running of the finite state machine under the condition of not changing the normal scheduling mode of the finite state machine to realize the state consistency of the backup channel and the main control channel, and the specific steps are as follows:
(1) registering engine state machine information, including state definition, state scheduling function and state transition event table, wherein the state machines of the main control channel and the backup channel must be identical;
(2) setting an initial running state of a state machine and starting running;
(3) the running state machine inquires the state transition event table and updates the running state of the current state machine according to the inquiry result;
(4) the backup channel resets the running state of the current state machine by using the state information of the main control channel; the main control channel does not need to execute the step;
(5) executing state scheduling, comparing with the previous cycle running state, if the state changes, executing exit processing of the previous cycle running state, then executing entry processing of the current state, and finally executing running processing of the current state; and if the state is not changed, only executing the running processing of the current state.
A computer storage medium having stored thereon a computer program which, when executed by a processor, implements a state machine following method of FADEC control software of the above-described steps.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing a state machine following method of FADEC control software for the above steps when executing the computer program.
Has the advantages that: compared with the prior art, the invention has the following advantages:
1. the control states of the dual-channel engine can be always kept consistent, and when the main channel and the standby channel are switched, the original backup channel can correctly and quickly take over the main control right, so that the engine can be continuously and reliably controlled to operate;
2. the method is simple and effective, is relatively independent of the engine control function, has high software operation efficiency, and does not damage the operation scheduling mechanism of the state machine.
Drawings
Fig. 1 is a schematic diagram illustrating the operation of the software state machine of the active/standby channel according to the present invention.
Detailed Description
The technical scheme of the invention is further explained by combining the attached drawings.
The finite state machine operates as a packaged general processing module, and executes migration and control processing of states by calling three interface functions:
registering an engine State table function FDC _ STATUS Lib _ State _ Register (State _ table, State _ INFO _ pState);
the State machine initializes an interface function FDC _ STATUS Lib _ State _ SetInit (FDC _ INT32SstateID, State _ INFO × pState);
state machine scheduling interface functions FDC _ STATUS Lib _ State _ Run (State _ INFO _ pState, FDC _ INT32S plcucrchasesteid, FDC _ BOOL bstatesflg, FDC _ INT32 ssetsted);
step 1, registering engine State machine information through a Lib _ State _ Register interface function, wherein the information comprises three parts: the state definition, the state scheduling function and the state transition event table are designed as follows:
Figure BDA0003520697320000031
1) the state definition ID is an index of the state machine, and each state definition unique ID number;
2) the STATE scheduling function stateRun comprises STATE entering processing, STATE running processing and STATE exiting processing, and is driven to execute according to a scheduling command (STATE _ ENTER, STATE _ RUN and STATE _ EXIT) of a STATE machine;
3) the state migration event table pEvTable defines the path and condition for migration between states, and the state migration path in the event table is designed according to the priority level;
and step 2, setting the initial running State of the State machine through the interface initializing function Lib _ State _ SetInit of the State machine, executing an entry processing function in a State scheduling function stateRun, and starting the State machine to run.
Step 3, inquiring a state transition event table based on the previous cycle running state, judging whether a state event occurs, and if the state event occurs, updating the running state of the current state machine according to a transition path; if no event occurs, the running state of the current state machine is kept to be the running state of the previous period; if a plurality of events occur simultaneously, the system transitions to a state with a high priority.
Step 4, acquiring state information of another channel through communication, deciding whether to execute a state following strategy, and transmitting the two information to a state machine for operation through SetStateID and bStateSetFlg; if the state following strategy bStateSetFlg is true, inquiring a state table, and updating the information of the running state of the current state machine into the state information of SetStateID; if bstatesflg is false, step 5 is directly executed.
The execution state following needs to have three conditions:
a) the channel is a backup channel: the main control channel does not need to execute a state following strategy;
b) the last cycle was not in maintenance: in the maintenance state, functions such as adjustable parameters, historical data maintenance or maintainability detection and the like can be executed, the data is in an uncertain state, and the data is not allowed to exit to any other state, so that the maintenance state does not allow the execution of a state following strategy;
c) the communication between the channels is normal: when the communication between the channels fails, the real-time state of the opposite channel cannot be acquired,
the state following policy cannot be executed.
Step 5, executing state scheduling, comparing with the previous cycle running state, if the state changes, executing exit processing of the previous cycle running state, then executing entry processing of the current state, and finally executing running processing of the current state; and if the state is not changed, only executing the running processing of the current state.
Figure BDA0003520697320000041

Claims (5)

1. A state machine following method of FADEC control software is characterized by comprising the following steps:
(1) registering engine state machine information, including state definition, state scheduling function and state transition event table, wherein the state machines of the main control channel and the backup channel must be identical;
(2) setting an initial running state of a state machine and starting running;
(3) the running state machine inquires the state transition event table and updates the running state of the current state machine according to the inquiry result;
(4) the backup channel resets the running state of the current state machine by using the state information of the main control channel; the main control channel does not need to execute the step;
(5) executing state scheduling, comparing with the previous cycle running state, if the state changes, executing exit processing of the previous cycle running state, then executing entry processing of the current state, and finally executing running processing of the current state; and if the state is not changed, only executing the running processing of the current state.
2. The FADEC control software state machine following method as claimed in claim 1, wherein the engine state machine in step (1) includes a main control channel state machine and a backup channel state machine, and the main control channel state machine and the backup channel state machine must be identical.
3. The method as set forth in claim 1, wherein the engine state machine information in step (1) comprises a state definition, a state scheduling function and a state transition event table.
4. A computer storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements a state machine follow method of a FADEC control software according to any of claims 1-5.
5. Computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements a state machine following method of a FADEC control software according to any of claims 1-5 when executing the computer program.
CN202210180681.9A 2022-02-25 2022-02-25 State machine following method of FADEC control software Active CN114687865B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210180681.9A CN114687865B (en) 2022-02-25 2022-02-25 State machine following method of FADEC control software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210180681.9A CN114687865B (en) 2022-02-25 2022-02-25 State machine following method of FADEC control software

Publications (2)

Publication Number Publication Date
CN114687865A true CN114687865A (en) 2022-07-01
CN114687865B CN114687865B (en) 2023-10-31

Family

ID=82137931

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210180681.9A Active CN114687865B (en) 2022-02-25 2022-02-25 State machine following method of FADEC control software

Country Status (1)

Country Link
CN (1) CN114687865B (en)

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0668552A1 (en) * 1994-02-18 1995-08-23 Lucas Industries Public Limited Company Control apparatus
WO2001014980A1 (en) * 1999-08-19 2001-03-01 Fujitsu Limited Method for controlling operation of operating system of computer system, and recorded medium on which program therefor is recorded
GB0113946D0 (en) * 2001-06-08 2001-11-14 Secr Defence Automatic Development of Software Codes
US6628660B1 (en) * 1999-06-11 2003-09-30 Lattice Semiconductor Corporation Finite state machine with associated memory
US20060224251A1 (en) * 2005-03-31 2006-10-05 Yokogawa Electric Corporation Duplex system and method of switching control right in duplex system
US20060235547A1 (en) * 2005-04-08 2006-10-19 Palo Alto Research Center Incorporated On-the-fly state synchronization in a distributed system
CN101309254A (en) * 2007-05-17 2008-11-19 上海宇梦通信科技有限公司 Device and method for controlling multiple function of communication apparatus by related parallel state machine
US20130261853A1 (en) * 2004-11-08 2013-10-03 Bell Helicopter Textron Inc. Vehicle management system using finite state machines
CN103407576A (en) * 2013-05-31 2013-11-27 中国商用飞机有限责任公司 Method for triggering engine backup control mode and engine backup control system
WO2017134419A1 (en) * 2016-02-01 2017-08-10 Star-Dundee Limited Multi-lane communication
CN107703914A (en) * 2017-09-30 2018-02-16 中国民用航空飞行学院 A kind of aero-engine FADEC security of system appraisal procedures
CN108603444A (en) * 2016-01-29 2018-09-28 赛峰动力设备公司 The electronic control system of partial redundance
CN108683698A (en) * 2018-03-29 2018-10-19 北京空间飞行器总体设计部 A kind of multi tate multichannel downlink telemetry data combining branch process system and method
CN111553070A (en) * 2020-04-24 2020-08-18 国电南瑞科技股份有限公司 Finite state machine modeling method and device for stabilizing action logic of control device and storage medium
CN112709641A (en) * 2020-12-15 2021-04-27 中国航发控制系统研究所 Reverse insertion method of two-dimensional flow meter
US20210215104A1 (en) * 2020-01-15 2021-07-15 Pratt & Whitney Canada Corp. Method and system for controlling operation of an engine using an engine controller
CN113569309A (en) * 2021-07-20 2021-10-29 华中科技大学 Method and system for generating double-channel mirror image processing program based on finite-state machine

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0668552A1 (en) * 1994-02-18 1995-08-23 Lucas Industries Public Limited Company Control apparatus
US6628660B1 (en) * 1999-06-11 2003-09-30 Lattice Semiconductor Corporation Finite state machine with associated memory
WO2001014980A1 (en) * 1999-08-19 2001-03-01 Fujitsu Limited Method for controlling operation of operating system of computer system, and recorded medium on which program therefor is recorded
GB0113946D0 (en) * 2001-06-08 2001-11-14 Secr Defence Automatic Development of Software Codes
US20130261853A1 (en) * 2004-11-08 2013-10-03 Bell Helicopter Textron Inc. Vehicle management system using finite state machines
US20060224251A1 (en) * 2005-03-31 2006-10-05 Yokogawa Electric Corporation Duplex system and method of switching control right in duplex system
US20060235547A1 (en) * 2005-04-08 2006-10-19 Palo Alto Research Center Incorporated On-the-fly state synchronization in a distributed system
CN101309254A (en) * 2007-05-17 2008-11-19 上海宇梦通信科技有限公司 Device and method for controlling multiple function of communication apparatus by related parallel state machine
CN103407576A (en) * 2013-05-31 2013-11-27 中国商用飞机有限责任公司 Method for triggering engine backup control mode and engine backup control system
CN108603444A (en) * 2016-01-29 2018-09-28 赛峰动力设备公司 The electronic control system of partial redundance
WO2017134419A1 (en) * 2016-02-01 2017-08-10 Star-Dundee Limited Multi-lane communication
CN107703914A (en) * 2017-09-30 2018-02-16 中国民用航空飞行学院 A kind of aero-engine FADEC security of system appraisal procedures
CN108683698A (en) * 2018-03-29 2018-10-19 北京空间飞行器总体设计部 A kind of multi tate multichannel downlink telemetry data combining branch process system and method
US20210215104A1 (en) * 2020-01-15 2021-07-15 Pratt & Whitney Canada Corp. Method and system for controlling operation of an engine using an engine controller
CN111553070A (en) * 2020-04-24 2020-08-18 国电南瑞科技股份有限公司 Finite state machine modeling method and device for stabilizing action logic of control device and storage medium
CN112709641A (en) * 2020-12-15 2021-04-27 中国航发控制系统研究所 Reverse insertion method of two-dimensional flow meter
CN113569309A (en) * 2021-07-20 2021-10-29 华中科技大学 Method and system for generating double-channel mirror image processing program based on finite-state machine

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
席伟;李伟刚;李鹏杰;: "32位定点运算数学库IQmath在航空发动机FADEC系统中的应用", 航空发动机, no. 05, pages 21 - 25 *
李睿超: "航空发动机分布式控制系统关键技术研究", 中国优秀博士论文全文数据库工程科技Ⅱ辑, pages 1 - 153 *
杜伟;刘传会;张红安;戴瑾;: "基于顺序图的FADEC软件需求状态图模型验证", 测控技术, no. 04 *
汪栋等: "一种基于有限状态机模型的局部转向避碰路径规划算法", 《海洋科学》 *
顾鸣祺;张炜;高征;: "某型发动机控制软件全数字仿真研究与实施", 航空计算技术, no. 05 *

Also Published As

Publication number Publication date
CN114687865B (en) 2023-10-31

Similar Documents

Publication Publication Date Title
AU739970B2 (en) Architecture for a hybrid real-time control system and method of operation thereof
US9489213B2 (en) Shutdown method, startup method, and communication terminal
EP0709777A2 (en) Method of and apparatus for debugging multitask programs
US20070128895A1 (en) Redundant automation system for controlling a techinical device, and method for operating such an automation system
CN111488181B (en) Task scheduling method, device, storage medium and server
EP0446077B1 (en) A control system for multi-processor system
EP2256635B1 (en) System and method for storing data from an industrial controller
CN107729217A (en) A kind of database abnormality eliminating method and terminal
CN116339836A (en) Resource access method, device, readable storage medium and BMC chip
US8060778B2 (en) Processor controller, processor control method, storage medium, and external controller
CN114687865A (en) State machine following method of FADEC control software
CN116501343A (en) Program upgrading method, power supply and computing device
CN109582379A (en) Programmable logic controller system, control method based on Mach
CN105791345A (en) Communication system of server and industrial personal computer in semiconductor technological device
CN113641139B (en) System, controller, control system and storage medium capable of realizing asynchronous programming
CN116339958B (en) Task execution method, device and equipment
CN118502916A (en) Method, system, equipment and medium for automatically detecting task state and start and stop
JP2000066906A (en) System for microcomputer built-in control
CN113656225A (en) Terminal processor core processing method, terminal equipment and computer storage medium
JPH07104837B2 (en) Processor control method
CN114527706A (en) Equipment control method and device, terminal equipment and storage medium
CN118227334A (en) Task processing method, device, processor, storage medium and program product
CN115408472A (en) Method and system for realizing writing of multiple data sources
CN116594695A (en) Serial port instruction processing method, electronic device and computer readable storage medium
CN114114998A (en) Redundancy control system and method

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