• 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.

FS2004 Engine start abort variable

euroastar350

Resource contributor
Messages
863
Country
us-delaware
Hi guys,

Was wondering, is there a default variable that cancels an engine start? My helicopter has a start abort switch and I need an XML code to simulate this for both engines. Any help would be appreciated.
 
Hi guys,

Was wondering, is there a default variable that cancels an engine start? My helicopter has a start abort switch and I need an XML code to simulate this for both engines. Any help would be appreciated.

I know of no such item. In fact, I've found that the FSX starters once triggered can run for a given duration no matter what condition you set them to. So if you triggered the starter on and then immediately off, it could still 'run' for a default amount of time.
 
If you use "TOGGLE_STARTER1", first click makes the starter run, second click turns it off immediately (in FSXA for sure). Your abort switch could have the same code, but only use it to turn off the starter.

After the engine has combustion you would need to also shut off fuel using "TOGGLE_FUEL_VALVE_ENG1".

Roy
 
If you use "TOGGLE_STARTER1", first click makes the starter run, second click turns it off immediately (in FSXA for sure). Your abort switch could have the same code, but only use it to turn off the starter.

After the engine has combustion you would need to also shut off fuel using "TOGGLE_FUEL_VALVE_ENG1".

Roy

Yes, it turns the starter off... but the audio for the engine start can continue to play. Hence, it doesn't cancel the 'start'.
 
When you engage a starter using TOGGLE_STARTER_ whatever, the engine RPM or N1 or whatever you use to see engine reaction to the start, begins to increase until combustion is initated. At that point you can turn off the starter, "TOGGLE_STARTER" again because it has done its bit. If you want to cancel or abort the start, toggle the starter before combustion and the RPM will decrease, the tooltip will show starter off so the starter bool is now zero, hence it is off.

Audio is a separate issue. If the audio continues to play after the starter bool is zero, that is a problem concerning the audio and I have no evidence that audio controls anything. What you see counts, what you hear is a function of how the audio works. If the audio continues after the engine RPM is zero, it is pretty obvious that audio means little unless it accurately follows what the sim is doing. Fix the audio. Not messed with Audio, but now inspired to try to sort it out. The audio file I use does sound as if it follows N1, increases in pitch as the starter begins to do its thing and then decreases in pitch when the start is cancelled, but I have no idea how it works at the moment, not my field.

The starter is working when its bool says it is. When the starter bool is zero it is not working and the "start" is inactive, cancelled, done, finished. Continued audio means absolutely nothing so far as what is happening to the start process.

Since the original post concerned FS9, I checked to see if TOGGLE_STARTER was a new event for FSX/FSXA and it is not.

I did this because the SeaKing I'm working on is based on the excellent EH-101 FSXA config and air files set-up and I wanted to be sure what I said also applied to FS9.

Roy
 
Roy, the sound engine in FS has always been a point of contention for those us who've been around the block for the past many years... It has some serious limitations, among which is the propensity to be "stubborn."

Once it starts a sound, it damn well won't stop until it's reached the end of the .wav file. ;)
 
So how would go about adding the XML for the start abort? My Bell 222 has a twin engine setup, but only one start abort switch for both engines. The coding is for FS2004 and FSX, so I wouldn't need an FSX specific XML code for this helicopter as I am using all FS2004 code in it.
 
So how would go about adding the XML for the start abort? My Bell 222 has a twin engine setup, but only one start abort switch for both engines. The coding is for FS2004 and FSX, so I wouldn't need an FSX specific XML code for this helicopter as I am using all FS2004 code in it.
Code:
(A:GENERAL ENG STARTER ACTIVE:1,bool)
if{ (>K:TOGGLE_STARTER1) }

(A:GENERAL ENG STARTER ACTIVE:2,bool)
if{ (>K:TOGGLE_STARTER2) }
 
Roy, the sound engine in FS has always been a point of contention for those us who've been around the block for the past many years... It has some serious limitations, among which is the propensity to be "stubborn."

Once it starts a sound, it damn well won't stop until it's reached the end of the .wav file. ;)
One way around this issue is to use a sound in an effect file this will cut the sound as soon as the effect is stopped...the biggest issue with the sound in fs is ppl not taking the time to expand on the basic's :) the fsx sound config is quite powerful in what you can and cant do(Aircraft wise heli's are a bit more of a pain in da butt) ppl just dont take the time to expand on whats there and with Your and Doug's sound gauge's dump in some sounds in effects to fill the gaps and its well Vunderbar..... or to quote Neil Diamond a beautiful noise :)
 
Code:
(A:GENERAL ENG STARTER ACTIVE:1,bool)
if{ (>K:TOGGLE_STARTER1) }

(A:GENERAL ENG STARTER ACTIVE:2,bool)
if{ (>K:TOGGLE_STARTER2) }


Bill,

Do I start with a new XML with associated bitmaps or add to an existing XML? Here is the code I am working with. The abort start switch is in the middle between both start switches.
Code:
<Gauge Name="Engine Start Panel" Version="1.0">
   <Size X="1112" Y="242"/>
   <Image Name="Engine_Start.bmp"/>

   <!-- ======================= Engine 1 Starter =================== -->
   <Element>
      <Visible>(L:Eng2StarterSwitch, bool)</Visible>
      <Position X="145" Y="35"/>
      <Select>
         <Case Value="0">
            <Image Name="ENG1_START_ON.bmp" ImageSizes="169,169"/>
         </Case>
      </Select>
   </Element>
   <Element>
      <Select>
         <Value>(A:Turb eng2 N1, percent) 60 &gt; if{ (&gt;K:MIXTURE1_LEAN) }els{ (&gt;K:MIXTURE1_RICH) }</Value>
      </Select>
   </Element>

   <!-- ======================= Engine 2 Starter =================== -->
   <Element>
      <Visible>(L:Eng3StarterSwitch, bool)</Visible>
      <Position X="803" Y="35"/>
      <Select>
         <Case Value="0">
            <Image Name="ENG2_START_ON.bmp" ImageSizes="169,169"/>
         </Case>
      </Select>
   </Element>
   <Element>
      <Select>
         <Value>(A:Turb eng3 N1, percent) 60 &gt; if{ (&gt;K:MIXTURE1_LEAN) }els{ (&gt;K:MIXTURE1_RICH) }</Value>
      </Select>
   </Element>

   <Mouse>
      <Area Left="0" Right="204" Width="300" Height="170">
         <Tooltip ID="">Engine 1 Starter</Tooltip>
         <Cursor Type="Hand"/>
         <Click Kind="LeftSingle+Leave">(M:Event) 'LeftSingle' scmp 0 == (L:Eng2StarterSwitch, bool) 0 == and if{ 1 (&gt;L:Eng2StarterSwitch, bool) }  		(M:Event) 'Leave' scmp 0 == (L:Eng2StarterSwitch, bool) 1 == and if{ 0 (&gt;L:Eng2StarterSwitch, bool) }            (>K:TOGGLE_STARTER3)</Click>
      </Area>
      <Area Left="700" Right="204" Width="300" Height="170">
         <Tooltip ID="">Engine 2 Starter</Tooltip>
         <Cursor Type="Hand"/>
         <Click Kind="LeftSingle+Leave">(M:Event) 'LeftSingle' scmp 0 == (L:Eng3StarterSwitch, bool) 0 == and if{ 1 (&gt;L:Eng3StarterSwitch, bool) }  		(M:Event) 'Leave' scmp 0 == (L:Eng3StarterSwitch, bool) 1 == and if{ 0 (&gt;L:Eng3StarterSwitch, bool) }            (>K:TOGGLE_STARTER3)</Click>
      </Area>
   </Mouse>
</Gauge>
 
The limitations with the sound engine especially to do with starters is one reason why I wrote my own DirectSound engine in the DodoSim 206 FSX. I can have the starter spool up and immediately spool down from the sound's current position if the starter is released. Was a major headache to implement though..

Si
 
***Bump***

Still figuring out the way to implement the start abort switch. Any pointers are welcomed.
 
Try something simple like this:

Code:
<?xml version="1.0" encoding="UTF-8"?>

<Gauge Name="Starters">
	<Image Name="Engine Starter.bmp"/>
	<!-- ==== Engine 1 Starter====== -->
	<Element>
		<Position X="114" Y="21"/>
		<Select>
			<Value> (A:General eng1 starter, bool)</Value>
			<Case Value="1">
				<Image Name="switch_starter_left.bmp"/>
			</Case>
		</Select>
	</Element>
	<!-- ===== Engine 2 Starter========== -->
	<Element>
		<Position X="114" Y="21"/>
		<Select>
			<Value> (A:General eng2 starter, bool)</Value>
			<Case Value="1">
				<Image Name="switch_starter_right.bmp"/>
			</Case>
		</Select>
	</Element>
	<Mouse>
		<!-- ===== Starters========= -->
		<Area Left="107" Top="23" Width="20" Height="25">
			<Tooltip>Starter 1(%((A:General eng1 starter, bool))%{if}on%{else}off%{end})</Tooltip>
			<Cursor Type="Hand"/>
			<Click Event="TOGGLE_STARTER1"/>
		</Area>
		<Area Left="134" Top="23" Width="20" Height="25">
			<Tooltip>Starter 2 (%((A:General eng2 starter, bool))%{if}on%{else}off%{end})</Tooltip>
			<Cursor Type="Hand"/>
			<Click Event="TOGGLE_STARTER2"/>
		</Area>
		<!-- ==== Abort Switch, Bill's Code====== -->
		<Area Left="134" Top="50" Width="20" Height="25">
			<Tooltip>Abort Start</Tooltip>
			<Cursor Type="Hand"/>
			<Click> (A:GENERAL ENG STARTER ACTIVE:1,bool)
if{ (>K:TOGGLE_STARTER1) }

(A:GENERAL ENG STARTER ACTIVE:2,bool)
if{ (>K:TOGGLE_STARTER2) }</Click>
		</Area>
	</Mouse>
</Gauge>

I am using one switch for both starters, if I click to the left the switch appears moved left and engine 1 starts. If I click again to the left it turns off the starter. The tooltip will indicate Starter 1 "on" or "off" depending on the state. For the right engine I do the same except click to the right

If you place your abort switch image and set up the abort start mouse area, Bills code will switch off both starters if active.

Hope this helps

Roy
 
Roy,

I want to add a separate switch/bitmap for the start abort, can I accomplish this with the code I have posted? The real Bell 222 has this and thats what I am trying to accomplish with my model.
 
You could, though the code I gave you is a lot more simple. However, could you tell me exactly what the abort switch does in the Bell 222. What the thread has addressed is just how to turn off the starters. However if you use the abort start after an engine is lit, it will continue to run because, once lit, the starter has no more affect on the engine.

If the abort start is intended to kill both engines the code also has to shut off the fuel to them.

Let me know what the complete function is and I'll see if I can offer more help.

BTW, that is one big gauge you have for a starter!

Roy
 
Roy,

The start abort on the Bell 222 is used for un-successful restarts of either engine, either in the air or ground..

I do have the code implemented and will kill the starter, even if either engine has started.
 
I have done a little research on start abort switches. In the UH-60 it is used when the engine has started normally, but the starter has failed to disengage between 52% and 65% N1. If the starter remained engaged at higher N1 it would be damaged, so there is a procedure to disengage it using the start abort switch and if that fails the engine has to be shut down and the starter fixed before next flight.

In FS the starter will stay "on" without damage, but should be turned off once the engine is lit.

So it seems to me that your start abort switch should turn off the starters and shut down the engines to simulate an aborted start.

Looking through your code I see some things that confuse me. First, you have references to "Turb Eng2" under Engine 1 starter and "Turb Eng3" under Engine 2 starter. These should be "Turb Eng1" and "Turb Eng2". Also both your Mouse starter routines end in (>K:TOGGLE_STARTER3). This would toggle the starter of engine 3, but you only have engine 1 and engine 2.

In your Engine 1 Starter code you have:
<
Code:
Select>
         <Case Value="0">
            <Image Name="ENG1_START_ON.bmp" ImageSizes="169,169"/>
         </Case>
      </Select>

This has no associated Value like <Value> (A:General eng1 starter, bool)</Value>
so it really does not tell you if the starter is on or off.

Below that you have:
Code:
<Select>
         <Value>(A:Turb eng2 N1, percent) 60 &gt; if{ (&gt;K:MIXTURE1_LEAN) }els{ (&gt;K:MIXTURE1_RICH) }</Value>
      </Select>

First this refers to engine 2 under the engine 1 starter heading. Second there is no test for when you should do this other than the engine N1, so it would happen all the time, not just during start. What the code is doing is looking at engine 2 and adjusting the mixture for engine 1.

Similarly, under the engine 2 starter heading you are looking at the N1 for engine 3 which does not exist and therefore would be zero and using that to adjust the mixture for engine 2.

There are several other minor coding errors but they are less important.

Perhaps the plan should be to have your start abort switch turn off both starters and kill both engines. That should only happen when you activate the switch so the code has to be in the Mouse section, not in the general code where it happens every cycle. The mouse code should also give you a L:var to allow you to have the switch bmp indicate that the abort switch was active.

I gave you a mouse routine that toggles each starter off if it is active and that needs to be expanded to shut down both engines and toggle the L:var for the switch. Here is an amended mouse routine:

Code:
<!-- ==== Abort Switch, Bill's Code====== -->
		<Area Left="134" Top="50" Width="20" Height="25">
			<Tooltip>Abort Start</Tooltip>
			<Cursor Type="Hand"/>
			<Click> (A:GENERAL ENG STARTER ACTIVE:1,bool)
if{ (>K:TOGGLE_STARTER1) }

(A:GENERAL ENG STARTER ACTIVE:2,bool)
if{ (>K:TOGGLE_STARTER2) }

(A:Turb eng1 N1, percent) 0 &gt; if{ (&gt;K:MIXTURE1_LEAN) }
(A:Turb eng2 N1, percent) 0 &gt; if{ (&gt;K:MIXTURE2_LEAN) }
(L:Starter_abort,bool) ! (&gt;L:Starter_abort, bool) 
</Click>
		</Area>

The position for the mouse area is up to you, the numbers I give are place fillers.

You will be able to have your switch bmp appear by checking if L:starter_abort,bool is active.

Up to you how to proceed, but I would recommend using the code I gave you but with the amended mouse routine and then adding a small section to the main code to make the switch appear

Roy
 
Roy,

Only engines 2 and 3 will work for the twin engine setup for FS2004 and FSX. Mixture2 and mixture3 won't work as I won't have any controls on the throttles, thats why they are set to mixture1. The start abort code works perfectly. The only issue I am having now is the engines try to start back up after the fuel has been cut and engines have been shutdown.
 
Looking at your EngineStart code, You are leaning MIXTURE1, but you are using engines 2 and 3 only so they are not being affected by the code.

However if you did substitute MIXTURE2 for instance, the code only works when eng2 N1 is greater than 60%, as soon as leaning it causes it to go below 60% your code then puts it RICH. What the code it doing is sort of controlling N1 around 60%. Since the code is continuously active, unless there is something else doing something else, you would never get much above 60% N1. The abort start code should be in the Mouse section so it only happens when you click abort start. Your Mouse code does toggle the starters, but does not shut off the fuel. Nor does it give you a L:var to trigger an abort switch ON event.

I suggest you have some indication of combustion so you can see if the engines are actually not lit.

As coded the abort sequence does turn off the starters but has no effect once the engines are lit other than controlling them around 60%. Remember you need to toggle starters off once the engines are running under non-abort situations.



Roy
 
Back
Top