• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FSX Auto Start and Auto Shutdown for specific engine

Messages
92
Country
poland
Hi!

I know that there are Event IDs: ENGINE_AUTO_START and ENGINE_AUTO_SHUTDOWN, to automatically start and shutdown all engines, but are there any Event IDs, which can do that only for specific engine (like add index ":1", or ":2").

If there are not, then would somebody be so kind and tell me list of Events leading to Start and Shutdown of a specific engine (so I could create a custom script for that)?

Thanks for any tips!
 
Messages
92
Country
poland
So for start that would be (for only first engine):
-TOGGLE_ELECT_FUEL_PUMP1 (if GENERAL ENG FUEL PUMP SWITCH:1 == 1)
-KEY_MIXTURE1_RICH
-KEY_TOGGLE_STARTER1
is that right?

How about shutdown sequence?
 

Heretic

Resource contributor
Messages
6,828
Country
germany
First of all, EventIDs used by gauges take the name from the SimConnect column.

Check fuel valve status:
Code:
(A:GENERAL ENG FUEL VALVE:1,bool) !
if{ (>K:TOGGLE_FUEL_VALVE_ENG1) }

Check the mixture status:
Code:
(A:GENERAL ENG MIXTURE LEVER POSITION:1, percent) 25 <
if{ 50 163.83 * (>K:MIXTURE_SET) }

Note that mixture is treated like an axis and thus requires conversion of the input percentage into the required format.

Check the status again and engage starter:
Code:
(A:GENERAL ENG FUEL VALVE:1,bool)
(A:GENERAL ENG MIXTURE LEVER POSITION:1, percent) 25 > and
(A:GENERAL ENG STARTER:1, bool) ! and
if{ (>K:TOGGLE_STARTER1) }

Disengage starter when engine is running:
Code:
(A:GENERAL ENG COMBUSTION:1, bool)
(A:GENERAL ENG STARTER:1, bool) and
if{ (>K:TOGGLE_STARTER1) }


Shutdown:
Code:
(A:GENERAL ENG COMBUSTION:1, bool)
if{ 0 (>K:MIXTURE_SET) }

or
Code:
(A:GENERAL ENG COMBUSTION:1, bool)
(A:GENERAL ENG FUEL VALVE:1,bool) and
if{ (>K:TOGGLE_FUEL_VALVE_ENG1) }


Note that the "1" in the EventID and SimVar name indicates the engine for which the variable is used.


Bookmark the EventID list above and the SimVar list here for easy access:
https://msdn.microsoft.com/en-us/library/cc526981.aspx
 

Roy Holmes

Resource contributor
Messages
1,795
Country
us-virginia
Two other points.
You do not need the fuel pumps on to get the engine to run, likewise it continues to run if you switch them OFF.
It is best to have the Record 1506 power scalar above 7% between 20% CN1 and Idle CN1. That scalar controls the fuel flow during start and too low a value can give hung starts.

I think of the GENERAL ENG FUEL VALVE as a Low Pressure fuel cock which supplies fuel to the high pressure part of the engine fuel control system, and the Mixture as a High Pressure Fuel Cock which supplies high pressure fuel for combustion. When shutting down the engine you use the HP cock (mixture) first. If you shut it down with the low pressure cock you would fubar the fuel system.
Roy
 
Top