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

State machine following method of FADEC control software Download PDF

Info

Publication number
CN114687865B
CN114687865B CN202210180681.9A CN202210180681A CN114687865B CN 114687865 B CN114687865 B CN 114687865B CN 202210180681 A CN202210180681 A CN 202210180681A CN 114687865 B CN114687865 B CN 114687865B
Authority
CN
China
Prior art keywords
state
running
state machine
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.)
Active
Application number
CN202210180681.9A
Other languages
Chinese (zh)
Other versions
CN114687865A (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

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 a state migration event table, and updating the running state of the current state machine according to the inquiring result; the backup channel uses the state information of the main control channel to reset the running state of the current state machine; executing state scheduling, comparing with the previous period running state, if the state is changed, executing the exiting processing of the previous period running state, executing the entering processing of the current state, and finally executing the running processing of the current state; if the state is unchanged, only the running process of the current state is executed. The invention can ensure that the control states of the two-channel engine can be always consistent, and when the main channel and the standby channel are switched, the original standby channel can correctly and quickly take over the main control right, thereby ensuring that the engine operation is controlled continuously and reliably; 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
Aeroengine state control is an important function of FADEC system control. Finite state machines are commonly employed in FADEC systems to control engine start, stop, and operation and switching under various operating conditions. In order to ensure safe and reliable control, the FADEC system generally adopts a mode of inquiring a state transition event table to realize the scheduling of the engine state.
The dual-channel main-standby control is a common design framework of a FADEC system, a main control channel outputs control signals, when the main control channel is reset, manually switched or the active control right is abandoned under the condition specified by the requirement, the original standby channel is converted into the main control channel, and when the main and standby channels are switched, the continuous function and the stable control of the engine can be 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 have a great disturbance after the channels are switched between the main channel and the standby channel, and the stable operation of the engine may not be ensured.
Disclosure of Invention
The invention aims to: the invention aims to provide a state machine following method of FADEC control software, so that the state machine operation of a backup channel can follow the state of an upper main control channel, and the state of an engine is ensured to be continuous and stable when the main and backup channels are switched.
The technical scheme is as follows: the state machine following method of the FADEC control software comprises the following steps: the main control channel can perform event inquiry, state migration and state operation control according to a normal scheduling mechanism of the finite state machine; the backup channel obtains the state information of the main control channel through communication among channels, and inserts the state information of the main control channel into the operation of the finite state machine under the condition of not changing the normal scheduling mode of the finite state machine, so that the state of the backup channel is consistent with that of the main control channel, and the method comprises the following specific steps:
(1) Registering engine state machine information, including state definition, state scheduling function and state transition event table, wherein the main control channel and the backup channel state machines must be identical;
(2) Setting an initial running state of a state machine and starting running;
(3) The running state machine queries a state migration event table and updates the running state of the current state machine according to the query result;
(4) The backup channel uses the state information of the main control channel to reset the running state of the current state machine; the main control channel does not need to execute the step;
(5) Executing state scheduling, comparing with the previous period running state, if the state is changed, executing the exiting processing of the previous period running state, executing the entering processing of the current state, and finally executing the running processing of the current state; if the state is unchanged, only the running process of the current state is executed.
A computer storage medium having stored thereon a computer program which when executed by a processor performs a state machine following method of FADEC control software of the above 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.
The beneficial effects are that: compared with the prior art, the invention has the following advantages:
1. the control state of the dual-channel engine can be always consistent, and when the main channel and the standby channel are switched, the original standby channel can correctly and quickly take over the master control right, so that the operation of the engine is continuously and reliably controlled;
2. the method is simple and effective, is relatively independent of the control function of the engine, has high software operation efficiency, and does not destroy the operation scheduling mechanism of the state machine.
Drawings
FIG. 1 is a schematic diagram of the operation of a host-backup channel software state machine according to the present invention.
Detailed Description
The technical scheme of the invention is further described below with reference to the accompanying drawings.
The finite state machine operates as a packaged general purpose processing module that performs state migration and control processing by calling three interface functions:
registering an engine State table function fdc_status lib_state_register (state_ptable, state_info_pstate);
the State machine initializes an interface function fdc_status lib_state_setinit (fdc_int32 SstateID, state_info pState);
the State machine schedule interface function fdc_status lib_state_run (state_info pState, fdc_int32s plCurChanStateID, FDC _bool bStateSetFlg, FDC _int32 SSetStateID);
step 1, registering engine State machine information through a lib_state_register interface function, wherein the engine State machine information comprises three parts: the state definition, the state scheduling function and the state transition event table are designed as follows:
1) The state definition ID is an index of the state machine, each state definition unique ID number;
2) The STATE scheduling function stateRun comprises STATE entry processing, STATE running processing and STATE EXIT processing, and is driven to execute according to scheduling commands (state_ENTER, state_RUN and state_EXIT) of a STATE machine;
3) The state transition event table pEvTable defines the path and condition of transition between states, and the state transition path in the event table is designed according to the priority level;
step 2, setting an initial running State of the State machine through a State machine initialization interface function Lib_State_SetInit, executing an entry processing function in a State scheduling function stateRun, and starting the State machine to start running.
Step 3, based on the previous period running state, inquiring a state migration event table, judging whether a state event occurs, if so, updating the running state of the current state machine according to a migration path; if no event occurs, the current state machine running state is kept to be the state of the previous period running; if a plurality of events occur simultaneously, the state is shifted 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 the state machine operation through a SetStateID and a 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 the SetStateID; if bStateSetFlg is false, then step 5 is performed directly.
The following of the execution state needs 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 is not in maintenance: some functions such as adjustable parameters, historical data maintenance or maintainability detection are executed in a maintenance state, the data is in an uncertain state, and the data is not allowed to exit to any other state at the moment, so that the maintenance state is not allowed to execute a state following strategy;
c) The communication between channels is normal: when the communication between channels fails, the real-time status of the other channel cannot be obtained,
the state following policy cannot be executed.
Step 5, executing state scheduling, comparing with the previous period running state, if the state is changed, executing the exiting processing of the previous period running state, executing the entering processing of the current state, and finally executing the running processing of the current state; if the state is unchanged, only the running process of the current state is executed.

Claims (3)

1. A state machine following method of FADEC control software, comprising the steps of:
(1) Registering engine state machine information, including state definition, state scheduling function and state transition event table, wherein the main control channel and the backup channel state machines must be identical;
(2) Setting an initial running state of a state machine and starting running;
(3) The running state machine queries a state migration event table and updates the running state of the current state machine according to the query result;
based on the previous period running state, inquiring a state migration event table, judging whether a state event occurs, and if so, updating the running state of the current state machine according to a migration path; if no event occurs, the current state machine running state is kept to be the state of the previous period running; if a plurality of events occur simultaneously, the method is shifted to a state with high priority;
(4) The backup channel uses the state information of the main control channel to reset the running state of the current state machine; the main control channel does not need to execute the step;
(5) Executing state scheduling, comparing with the previous period running state, if the state is changed, executing the exiting processing of the previous period running state, executing the entering processing of the current state, and finally executing the running processing of the current state; if the state is unchanged, only the running process of the current state is executed.
2. A computer storage medium having a computer program stored thereon, which when executed by a processor implements a state machine following method of FADEC control software according to claim 1.
3. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements a state machine following method for FADEC control software according to claim 1 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 CN114687865A (en) 2022-07-01
CN114687865B true 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 (13)

* 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
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
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
CN113569309A (en) * 2021-07-20 2021-10-29 华中科技大学 Method and system for generating double-channel mirror image processing program based on finite-state machine

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8948936B2 (en) * 2004-11-08 2015-02-03 Textron Innovations Inc. Vehicle management system using finite state machines
US7791741B2 (en) * 2005-04-08 2010-09-07 Palo Alto Research Center Incorporated On-the-fly state synchronization in a distributed system
JP2006285630A (en) * 2005-03-31 2006-10-19 Yokogawa Electric Corp Duplex system and control switching method of duplex system
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

Patent Citations (13)

* 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
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
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***中的应用;席伟;李伟刚;李鹏杰;;航空发动机(05);第21-25页 *
一种基于有限状态机模型的局部转向避碰路径规划算法;汪栋等;《海洋科学》;全文 *
基于顺序图的FADEC软件需求状态图模型验证;杜伟;刘传会;张红安;戴瑾;;测控技术(第04期);全文 *
某型发动机控制软件全数字仿真研究与实施;顾鸣祺;张炜;高征;;航空计算技术(第05期);全文 *
航空发动机分布式控制***关键技术研究;李睿超;中国优秀博士论文全文数据库工程科技Ⅱ辑;第1-153页 *

Also Published As

Publication number Publication date
CN114687865A (en) 2022-07-01

Similar Documents

Publication Publication Date Title
EP0709777B1 (en) Method of and apparatus for debugging multitask programs
US5953719A (en) Heterogeneous database system with dynamic commit procedure control
CN111949454B (en) Database system based on micro-service component and related method
EP0943996B1 (en) Processor having real-time execution control for debug functions without a debug monitor
CN112559407B (en) STP link layer state machine optimization method
US20070128895A1 (en) Redundant automation system for controlling a techinical device, and method for operating such an automation system
CN107729217A (en) A kind of database abnormality eliminating method and terminal
CN109484474A (en) EPS control module and its control system and control method
US9547296B2 (en) Method for operating an industrial controller and industrial controller
CN114687865B (en) State machine following method of FADEC control software
CN114296417A (en) General flow control system for efficient fusion of multi-source data
EP0239054A1 (en) Process control system and method
CN114415501B (en) Unit coordination control optimization system and method for thermal power unit
JP3770366B2 (en) Development environment device for control program, control device for executing control program, and recording medium for program for realizing the same
CN110781055B (en) Service component running state monitoring method of embedded partition real-time operating system
KR100949168B1 (en) Controller
JP2003106211A (en) Controllable for automobile internal combustion engine
US20240255922A1 (en) Control device and control method
CN1020311C (en) Data processing and storage system for computer groups
CN116494243A (en) Method for monitoring running state of embedded robot
CN116125783A (en) Redundant control double-machine switching method for speed regulating system
CN113656225A (en) Terminal processor core processing method, terminal equipment and computer storage medium
CN114880036A (en) Debugging method for debugging module for processing multi-core access in RISC-V system
CN114114998A (en) Redundancy control system and method
CN113805514A (en) Serial port control instruction processing method based on FPGA (field programmable Gate array), upper computer and lower computer

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