<?xml version="1.0" encoding="UTF-8"?>
<SimBase.Document
        Type="AceXML"
        version="1,0"
        id="AB_startup">
    <Descr>AceXML Document</Descr>
    <Filename>AB_startup.xml</Filename>
    <SimGauge.Gauge id="Gauge">
        <FloatPosition>0.000,0.000</FloatPosition>
        <Update_When_Hidden>True</Update_When_Hidden>
        <Update id="AB_startup">
		<Frequency>4</Frequency>
<Script>

(L:Load, bool) 0 ==
if{
	<!-- Electrical -->
	1 (&gt; L:AB_OVH_ELECBAT1, number)
	1 (&gt; L:AB_OVH_ELECBAT2, number)
	1 (&gt; L:AB_OVH_ELECGENL, number)
	1 (&gt; L:AB_OVH_ELECGENR, number)
	0 (&gt; L:AB_OVH_IDG1, number)
	0 (&gt; L:AB_OVH_IDG2, number)
	1 (&gt; L:AB_OVH_ELECGENAPU, number)
	0 (&gt; L:AB_OVH_ELECEXT, number)
	1 (&gt; L:AB_OVH_ELECBT, number)
	0 (&gt; L:AB_OVH_AC_ESS_FEED, number)
	0 (&gt; L:AB_OVH_APU_MASTER, number)
	0 (&gt; L:AB_OVH_APU_START, number)
	(&gt; K:LANDING_LIGHTS_OFF)
	
	<!-- Hydraulical -->	
	1 (&gt; L:AB_OVH_HYDL, number)
	1 (&gt; L:AB_OVH_HYDR, number)
	1 (&gt; L:AB_OVH_HYDELEC1, number)
	1 (&gt; L:AB_OVH_HYDPTU, number)
	3000 (&gt; L:Green_Pressure, number)
	3000 (&gt; L:Yellow_Pressure, number)
	3000 (&gt; L:Blue_Pressure, number)
	36 (&gt; L:HYD_G_RSVR_PRESS, number)
	36 (&gt;L:HYD_Y_RSVR_PRESS, number)
	36 (&gt;L:HYD_B_RSVR_PRESS, number)

	<!-- Fuel -->
	1 (&gt; L:AB_OVH_FUELPL1, number)
	1 (&gt; L:AB_OVH_FUELPL2, number)
	1 (&gt; L:AB_OVH_FUELPCL, number)
	1 (&gt; L:AB_OVH_FUELPCR, number)
	1 (&gt; L:AB_OVH_FUELPR1, number)
	1 (&gt; L:AB_OVH_FUELPR2, number)
	0 (&gt; L:AB_OVH_FUELXF, number)
	1 (&gt; L:AB_OVH_FUELMODE, number)
	(&gt; K:FUEL_SELECTOR_LEFT)
	(&gt; K:FUEL_SELECTOR_2_RIGHT)
	
	<!-- Bleedair -->
	1 (&gt; L:AB_OVH_PNEUBLEEDL, number)
	1 (&gt; L:AB_OVH_PNEUBLEEDR, number)
	0 (&gt; L:AB_OVH_PNEUBLEEDAPU, number)
	1 (&gt; L:AB_OVH_PNEUXBLEED, number)
	1 (&gt; L:AB_OVH_PNEUPACKL, number)
	1 (&gt; L:AB_OVH_PNEUPACKR, number)
	1 (&gt; L:AB_OVH_PACKFLOWCTR, number)
	
	172.25 (&gt; L:PackturboutL_Temp, number)
	172.25 (&gt; L:PackturboutR_Temp, number)
	22.8 (&gt; L:PackfinalL_Temp, number)
	22.8 (&gt; L:PackfinalR_Temp, number)

	1 (&gt; L:AB_OVH_HOTAIR, number) 
	25 (&gt; L:AB_OVH_ZONETEMP1, number)
	25 (&gt; L:AB_OVH_ZONETEMP2, number)
	25 (&gt; L:AB_OVH_ZONETEMP3, number)
	25 (&gt; L:AB_OVH_ZONETEMP1_disp, number)
	25 (&gt; L:AB_OVH_ZONETEMP2_disp, number)
	25 (&gt; L:AB_OVH_ZONETEMP3_disp, number)
	100 (&gt; L:Landing_alt, number)
	
	<!-- Engines -->
	1 (&gt; L:AB_PDS_ignition, number)
	1 (&gt; L:AB_PDS_Eng1Master, number)
	1 (&gt; L:AB_PDS_Eng2Master, number)
	16 (&gt; L:EngL_Oil_qty_target, number)
	16 (&gt; L:EngR_Oil_qty_target, number)
	104.3 (&gt; L:Max_rated_N1_L, number)
	104.3 (&gt; L:Max_rated_N1_R, number)
	32768 (&gt; L:AS_FADEC_0, number)
	32768 (&gt; L:AS_FADEC_1, number)
	10 (&gt; L:Spoiler_lv_Anim, number)

	<!-- Wheels and FCTL -->
	1 (&gt; L:Autobrake_position, number)

	(A:ANTISKID BRAKES ACTIVE, bool) 0 ==
	if{
		(&gt; K:ANTISKID_BRAKES_TOGGLE)
	}
	
	1 (> L:FBW_SEC_3, number)
	1 (> L:FBW_SEC_2, number)
	1 (> L:FBW_SEC_1, number)
	1 (> L:FBW_FAC_1, number)
	1 (> L:FBW_FAC_2, number)

	<!-- GPWS  -->
	1 (&gt; L:AB_OVH_GPWS_TERR, bool)
	1 (&gt; L:AB_OVH_GPWS_SYS, bool)
	1 (&gt; L:AB_OVH_GPWS_GSMODE, bool)
	1 (&gt; L:AB_OVH_GPWS_FLAPMODE, bool)

	<!-- Autopilot etc -->
	1 (&gt; L:AB_MPL_FD, number)
	1 (&gt; L:AB_AP_HDGmode, number)
	1 (&gt; L:AB_AP_SPDmode, number)
	1 (&gt; L:AB_AP_ALTmode, number)
	1 (&gt; L:AB_AP_SPDmode_set, number)
	1 (&gt; L:AB_AP_HDGmode_set, number)
	1 (&gt; L:AB_AP_ALTmode_set, number)
	1 (&gt; L:FCU_Takoff_set_HDG, bool)
	1 (&gt; L:FCU_Takoff_set_ALT, bool)
	0.78 (&gt; L:AB_AP_Mach_Select, number)
	0.78 (&gt; L:AB_AP_Mach_Select_hist, number)
	250 (&gt; L:AB_AP_SPEED_Select, number)
	250 (&gt; L:AB_AP_SPEED_Select_hist, number)
	(A:PLANE HEADING DEGREES MAGNETIC, degrees) (&gt; L:AB_AP_HDG_Select, number)
	(A:PLANE HEADING DEGREES MAGNETIC, degrees) (&gt; L:AB_AP_HDG_Select_hist, number)
	1013.25 (&gt; L:Kohlsman_mem, number)
	100 (&gt; L:AB_AP_ALT_Select, number)
	32000 (&gt; L:MCDU_Cruisealt, number)
	18000 (&gt; L:MCDU_Trans_alt, number)
	250 (&gt; L:MCDU_Speed_set, number)
	80 (&gt; L:MCDU_Ci, Number)
	1 (&gt; L:FBW_ELAC_1, bool)
	1 (&gt; L:FBW_ELAC_2, bool)

	<!-- Misc -->
	5 (&gt; L:Mod_Xponder_mode, number)
	1 (&gt; L:AB_OVH_EMER_Button, bool)
	2 (&gt; L:Flightmode, number)
	1 (&gt; L:TO_firststartbypass, bool)
	1 (&gt; L:Mod_Com_Both1, number)
	(&gt; K:COM1_TRANSMIT_SELECT)
	1 (&gt; L:ECAM_ALL_Cycle, number)
	15 (&gt; L:AB_MPL_ND_Bright, number)
	15 (&gt; L:AB_MPL_PFD_Power, number)
	15 (&gt; L:AB_MPL_ECAML_Power, number)
	15 (&gt; L:AB_MPL_ECAMU_Power, number)
	1 (&gt; L:AB_PDS_RADIO_POWER, bool)
	1 (&gt; L:ASC_Altalert_hasbeenplayed, bool)
	1 (&gt; L:AB_WX_SYS, number)
	0 (&gt; L:XE_SPOILERS_SET)
	1 (&gt; L:Sim_on_gnd_hist, bool)
	0 (&gt; L:Spoiler_autodeploygnd, bool)
	0 (&gt; L:Spoiler_autodeployrev, bool)
	1 (&gt; L:ASC_AUTO_LOADSAVE, number)
	0 (&gt; L:ASC_AUTO_SET, number)
	1 (&gt; L:Load_seq, number)
	1 (&gt; L:Load, bool)
}

<!-- Load MCDU2 Settings -->
(L:Load_seq, number) 1 ==
if{
	(L:Load_Init_Timer, number) 1 + (&gt; L:Load_Init_Timer, number)
	(L:Load_Init_Timer, number) 15 &gt;
	(L:ASC_LOAD_TRIGGER, number) 0 == &amp;&amp;
	if{
		5 (&gt; L:ASC_LOAD, number)
		1 (&gt; L:ASC_SET, number)
	}

	(L:ASC_LOAD_TRIGGER, number) 1 ==
	if{
		0 (&gt;L:ASC_LOAD_TRIGGER, number)
		2 (&gt;L:Load_seq, number)
	}
}

<!-- Load Default ACFT State -->
(L:Load_seq, number) 2 ==
if{
	(L:Load_Init_Timer2, number) 1 + (&gt; L:Load_Init_Timer2, number)
	(L:Load_Init_Timer2, number) 15 &gt;
	if{
		(L:AB_ACFTState_Default,number) 0 !=
		(L:ASC_LOAD_TRIGGER, number) 0 == &amp;&amp;
		(L:ASC_AUTOLOAD_TRIGGER, number) 0 == &amp;&amp;
		if{
			(L:AB_ACFTState_Default,number) (&gt; L:ASC_LOAD, number)
		}

		(L:ASC_AUTOLOAD_TRIGGER, number) 1 ==
		(L:AB_ACFTState_Default,number) 0 == ||
		(L:AB_ACFTState_Default,number) 0 !=
		(L:ASC_LOAD_TRIGGER, number) 1 == &amp;&amp; ||
		if{
			1 (&gt;L:Load2, bool)
			3 (&gt;L:Load_seq, number)
		}
	}
}

<!--  Pause detect  -->		
(P:Local time, seconds) (L:Sim_paused_time, number) ==
(A:IS SLEW ACTIVE, bool) 1 == ||
if{
	1 (&gt; L:Pause_code, bool)
}
(P:Local time, seconds) (L:Sim_paused_time, number) !=
(A:IS SLEW ACTIVE, bool) 0 == &amp;&amp;
if{
	0 (&gt; L:Pause_code, bool)
}
(L:Pause_timer, number) 1 + (&gt; L:Pause_timer, number)
(L:Pause_timer, number) 4 ==
if{
	(P:Local time, seconds) (&gt; L:Sim_paused_time, number) 
	0 (&gt; L:Pause_timer, number)
}

<!-- Lock baro STD -->
(L:AB_MPL_Baro_STD, number) 1 ==
(A:KOHLSMAN SETTING MB, millibars) 16 * int 16212 != &amp;&amp;
if{
	16212 (&gt; K:KOHLSMAN_SET)
}

<!-- Pitot heat -->	
(A:PITOT HEAT, bool) 0 ==
if{
	(&gt; K:PITOT_HEAT_TOGGLE)
}
<!-- Avionics master -->
(A:AVIONICS MASTER SWITCH, bool) 0 ==
if{
	(&gt; K:TOGGLE_AVIONICS_MASTER)
}

(L:Pause_code, bool) 0 ==
if{
	<!-- Fuel Temperature set on load -->
	(L:Startup_counter) 20 &lt;
	if{ 
		(A:AMBIENT TEMPERATURE, celsius) (A:AIRSPEED MACH, mach) 35.8 * + (&gt; L:Fuel_temperature, number)
	}
	(L:Startup_counter) 25 &lt;
	if{
		(L:Startup_counter) 1 + (&gt; L:Startup_counter)
	}

	<!-- Engine start script -->
	(L:AB_PDS_ignition, number) 2 ==
	(L:AB_PDS_Eng1Master, number) 1 == &amp;&amp;

	(L:APU_Bleedair, number) 1 == 
	(L:AB_OVH_PNEUBLEEDR, number) 1 == 
	(L:BleedR_Pressure, number) 34 &gt;= &amp;&amp;
	(L:XBleed_Valve, number) 1 == &amp;&amp; || &amp;&amp;

	(A:GENERAL ENG COMBUSTION:1, bool) 0 == &amp;&amp;
	if{
		(A:GENERAL ENG STARTER ACTIVE:1, bool) 0 ==
		if{
			(>K:TOGGLE_STARTER1)
		}
		
		(L:AB_TypeIdent, number) 12 ==
		(L:AB_TypeIdent, number) 22 == ||
		(L:AB_TypeIdent, number) 32 == ||
		(L:AB_TypeIdent, number) 42 == || 
		if{
			(A:GENERAL ENG FUEL VALVE:1, bool) 0 ==
			if{
				(&gt; K:TOGGLE_FUEL_VALVE_ENG1)
			}

			(A:TURB ENG IGNITION SWITCH:1, bool) 0 == 
			if{
				1 (&gt; K:TURBINE_IGNITION_SWITCH_TOGGLE)
			}

				(&gt;K:MIXTURE1_RICH)
		}
		els{
			(L:IAEL_CRANK30, number) 120 &gt;=
			if{
				(A:GENERAL ENG FUEL VALVE:1, bool) 0 ==
				if{
					(&gt; K:TOGGLE_FUEL_VALVE_ENG1)
				}
				(A:TURB ENG IGNITION SWITCH:1, bool) 0 == 
				if{
					1 (&gt; K:TURBINE_IGNITION_SWITCH_TOGGLE)
				}

				(&gt;K:MIXTURE1_RICH)
			}
		}
		
		(L:IAEL_CRANK30, number) 1 (P:SIMULATION RATE, number) * + 121 min (&gt; L:IAEL_CRANK30, number)
		1 (&gt; L:AB_STARTER_IGN1,number)
	}
	els{		
	
		0 (&gt; L:IAEL_CRANK30, number)	
		
		(L:AB_PDS_Eng1Master, number) 0 ==
		(A:TURB ENG CORRECTED N2:1, percent) 40 &gt; ||
		if{	
		0 (&gt; L:AB_STARTER_IGN1,number) }
	}
	

	(L:AB_PDS_Eng1Master, number) 0 ==
	if{
		(A:GENERAL ENG FUEL VALVE:1, bool) 1 ==
		if{
			(&gt; K:TOGGLE_FUEL_VALVE_ENG1)
		}
	
		(A:GENERAL ENG STARTER ACTIVE:1, bool) 1 ==
		if{
			(>K:TOGGLE_STARTER1)
		}
		
		(A:TURB ENG IGNITION SWITCH:1, bool) 1 == 
		if{
			1 (&gt; K:TURBINE_IGNITION_SWITCH_TOGGLE)
		}
		(&gt;K:MIXTURE1_LEAN)
		
		0 (&gt; L:AB_STARTER_IGN1,number)
	}

	(L:AB_PDS_ignition, number) 2 ==
	(L:AB_PDS_Eng2Master, number) 1 == &amp;&amp;

	(L:APU_Bleedair, number) 1 == 
	(L:XBleed_Valve, number) 1 == &amp;&amp;

	(L:AB_OVH_PNEUBLEEDL, number) 1 == 
	(L:BleedL_Pressure, number) 34 &gt;= &amp;&amp;
	(L:XBleed_Valve, number) 1 == &amp;&amp; || &amp;&amp;

	(A:GENERAL ENG COMBUSTION:2, bool) 0 == &amp;&amp;
	if{
		(A:GENERAL ENG STARTER ACTIVE:2, bool) 0 ==
		if{
			(>K:TOGGLE_STARTER2)
		}
		
		(L:AB_TypeIdent, number) 12 ==
		(L:AB_TypeIdent, number) 22 == ||
		(L:AB_TypeIdent, number) 32 == ||
		(L:AB_TypeIdent, number) 42 == || 
		if{
			(A:GENERAL ENG FUEL VALVE:2, bool) 0 ==
			if{
				(&gt; K:TOGGLE_FUEL_VALVE_ENG2)
			}
			(A:TURB ENG IGNITION SWITCH:2, bool) 0 == 
			if{
				2 (&gt; K:TURBINE_IGNITION_SWITCH_TOGGLE)
			}

			(&gt;K:MIXTURE2_RICH)
		}
		els{
			(L:IAER_CRANK30, number) 120 &gt;=
			if{
				(A:GENERAL ENG FUEL VALVE:2, bool) 0 ==
				if{
					(&gt; K:TOGGLE_FUEL_VALVE_ENG2)
				}
				(A:TURB ENG IGNITION SWITCH:2, bool) 0 == 
				if{
					2 (&gt; K:TURBINE_IGNITION_SWITCH_TOGGLE)
				}
				
				(&gt;K:MIXTURE2_RICH)
			}
			
		}
		
		(L:IAER_CRANK30, number) 1 (P:SIMULATION RATE, number) * + 121 min (&gt; L:IAER_CRANK30, number)
		1 (&gt; L:AB_STARTER_IGN2,number)
	}
	els{
	
		0 (&gt; L:IAER_CRANK30, number) 
		
		(L:AB_PDS_Eng2Master, number) 0 ==
		(A:TURB ENG CORRECTED N2:2, percent) 40 &gt; ||
		if{
		0 (&gt; L:AB_STARTER_IGN2,number) }
	}

	(L:AB_PDS_Eng2Master, number) 0 ==
	if{
		(A:GENERAL ENG FUEL VALVE:2, bool) 1 ==
		if{
			(&gt; K:TOGGLE_FUEL_VALVE_ENG2)
		}				
		
		(A:GENERAL ENG STARTER ACTIVE:2, bool)  1 ==
		if{
			(>K:TOGGLE_STARTER2)
		}	
		
		(&gt;K:MIXTURE2_LEAN)

		0 (&gt; L:AB_STARTER_IGN2,number)
	}

	<!-- Strobe light -->	
	(A:SIM ON GROUND,bool) 0 == 
	(L:Strobe_light, number) 1 == &amp;&amp;
	
	(L:Strobe_light, number) 2 == ||
	
	(A:LIGHT STROBE,bool) 0 ==  &amp;&amp;
	if{		
		(&gt; K:STROBES_ON)
	}
	
	(A:SIM ON GROUND,bool) 1 == 
	(L:Strobe_light, number) 1 == &amp;&amp;
	
	(L:Strobe_light, number) 0 == ||
	
	(A:LIGHT STROBE,bool) 1 == &amp;&amp;
	if{
		(&gt; K:STROBES_OFF)
	}

	<!-- Wheel Temperature -->
	(A:GROUND VELOCITY, knots) 0.26 * 40 / (A:TOTAL WEIGHT, pounds) 0.453592 * 1000 / * 0.625 * (&gt; L:ABRK_MJ_L, number)

	0.04 (A:TOTAL WEIGHT, pounds) 0.453592 * 1000 / * 0.6 - 6.75 * 1 (A:BRAKE LEFT POSITION, percent) 95 min 95 / - * (&gt; L:ABRK_MJ_CORR_L, number)

	(L:ABRK_MJ_L, number) (L:ABRK_MJ_CORR_L, number) - 0 max 0.34944444444 * 12 / (A:BRAKE LEFT POSITION, percent) 95 min 95 / * (&gt; L:ABRK_MJ_L, number)
	
	(L:ABRK_MJ_COLLECTOR_L, number) (L:ABRK_MJ_L, number) (A:SIM ON GROUND, bool) * + (&gt; L:ABRK_MJ_COLLECTOR_L, number)
	
	(L:ABRK_MJ_COLLECTOR_L, number) 0.0524074 (P:SIMULATION RATE, number) * &gt;
	if{
	(L:ABRK_MJ_COLLECTOR_L, number) 0.0524074 (P:SIMULATION RATE, number) * - 0 max (&gt; L:ABRK_MJ_COLLECTOR_L, number)
	(L:ABRK_MJ_ACCULUMATOR_L, number) 0.0524074 (P:SIMULATION RATE, number) * + (&gt; L:ABRK_MJ_ACCULUMATOR_L, number) }	
	
	(L:ABRK_MJ_ACCULUMATOR_L, number) 3695 * 77.1 / 0.8 pow (&gt; L:ABRK_TEMP1, number)

	(L:ABRK_MJ_ACCULUMATOR_L, number) (L:ABRK_MJ_ACCULUMATOR_L, number) 0.013 * 0.3689 + 60 / 4 / (L:AB_BRK_FAN, bool) 1 + * (A:Airspeed indicated, knots) 40 / 1 max * (P:SIMULATION RATE, number) * - 0 max (&gt; L:ABRK_MJ_ACCULUMATOR_L, number)

	(L:ABRK_TEMP1, number) 3 - (A:AMBIENT TEMPERATURE, celsius) 2 / + 15 + (&gt; L:Left1_wheel_temp, number)
	(L:ABRK_TEMP1, number) 2 + (A:AMBIENT TEMPERATURE, celsius) 2 / + 15 + (&gt; L:Left2_wheel_temp, number)
	
	(A:GROUND VELOCITY, knots) 0.26 * 40 / (A:TOTAL WEIGHT, pounds) 0.453592 * 1000 / * 0.625 * (&gt; L:ABRK_MJ_R, number)

	0.04 (A:TOTAL WEIGHT, pounds) 0.453592 * 1000 / * 0.6 - 6.75 * 1 (A:BRAKE LEFT POSITION, percent) 95 min 95 / - * (&gt; L:ABRK_MJ_CORR_R, number)

	(L:ABRK_MJ_R, number) (L:ABRK_MJ_CORR_R, number) - 0 max 0.34944444444 * 12 / (A:BRAKE RIGHT POSITION, percent) 95 min 95 / * (&gt; L:ABRK_MJ_R, number)
	
	(L:ABRK_MJ_COLLECTOR_R, number) (L:ABRK_MJ_R, number) (A:SIM ON GROUND, bool) * + (&gt; L:ABRK_MJ_COLLECTOR_R, number)

	(L:ABRK_MJ_COLLECTOR_R, number) 0.0524074 (P:SIMULATION RATE, number) * &gt;
	if{
	(L:ABRK_MJ_COLLECTOR_R, number) 0.0524074 (P:SIMULATION RATE, number) * - 0 max (&gt; L:ABRK_MJ_COLLECTOR_R, number)
	(L:ABRK_MJ_ACCULUMATOR_R, number) 0.0524074 (P:SIMULATION RATE, number) * + (&gt; L:ABRK_MJ_ACCULUMATOR_R, number) }	
		
	(L:ABRK_MJ_ACCULUMATOR_R, number) 3695 * 77.1 / 0.8 pow (&gt; L:ABRK_TEMP2, number)
	
	(L:ABRK_MJ_ACCULUMATOR_R, number) (L:ABRK_MJ_ACCULUMATOR_R, number) 0.013 * 0.3689 + 60 / 4 / (L:AB_BRK_FAN, bool) 1 + * (A:Airspeed indicated, knots) 40 / 1 max * (P:SIMULATION RATE, number) * - 0 max (&gt; L:ABRK_MJ_ACCULUMATOR_R, number)
	
	(L:ABRK_TEMP2, number) 3 + (A:AMBIENT TEMPERATURE, celsius) 2 / + 15 + (&gt; L:Right3_wheel_temp, number)
	(L:ABRK_TEMP2, number) 2 - (A:AMBIENT TEMPERATURE, celsius) 2 / + 15 + (&gt; L:Right4_wheel_temp, number)

	<!-- Wheel Antiskid -->
	(A:SIM ON GROUND, bool) 0 ==
	(L:Gearpos_hist, number) (A:GEAR RIGHT POSITION, percent) &lt; &amp;&amp;

	(A:SIM ON GROUND, bool) 1 ==

	(A:LEFT WHEEL RPM, rpm) 50 &gt; 
	(A:BRAKE LEFT POSITION, percent) 10 &gt; &amp;&amp;

	(A:RIGHT WHEEL RPM, rpm) 50 &gt;
	(A:BRAKE RIGHT POSITION, percent) 10 &gt; &amp;&amp; || &amp;&amp;
	(A:ANTISKID BRAKES ACTIVE, bool) 1 == &amp;&amp; ||
	if{
		1 (&gt; L:Antiskid_Active, bool)
	}
	els{
		0 (&gt; L:Antiskid_Active, bool)
	}
	(A:GEAR RIGHT POSITION, percent) (&gt; L:Gearpos_hist, number) 

	<!-- Wheel Decel -->	
	(A:LEFT WHEEL RPM, rpm) (L:Left_wheel_RPM_hist, number) - (A:RIGHT WHEEL RPM, rpm) (L:Right_wheel_RPM_hist, number) - + 2 / (&gt; L:Wheel_decel, number)
	(A:LEFT WHEEL RPM, rpm) (&gt; L:Left_wheel_RPM_hist, number)
	(A:RIGHT WHEEL RPM, rpm) (&gt; L:Right_wheel_RPM_hist, number)
	
	<!-- Flightmode -->
	(A:ELECTRICAL MASTER BATTERY, bool) 0 ==
	(A:GENERAL ENG COMBUSTION:1, bool) 0 == &amp;&amp;
	(A:GENERAL ENG COMBUSTION:2, bool) 0 == &amp;&amp;
	(L:Flightmode, number) 10 != &amp;&amp;
	(L:Flightmode, number) 9 != &amp;&amp;
	if{
		0 (&gt; L:Flightmode, number)
	}
	(A:ELECTRICAL MASTER BATTERY, bool) 1 == 
	(A:GENERAL ENG COMBUSTION:1, bool) 0 == &amp;&amp;
	(A:GENERAL ENG COMBUSTION:2, bool) 0 == &amp;&amp;
	(L:Flightmode, number) 10 != &amp;&amp;
	(L:Flightmode, number) 9 != &amp;&amp;
	if{
		1 (&gt; L:Flightmode, number)
	}
	(L:Flightmode, number) 1 ==
	(L:Flightmode, number) 3 == ||
	(A:GENERAL ENG COMBUSTION:1, bool) 1 == 
	(A:GENERAL ENG COMBUSTION:2, bool) 1 == || &amp;&amp;
	if{
		2 (&gt; L:Flightmode, number)
	}
	(L:Flightmode, number) 2 == 
	(L:FADEC_L, number) 54 &gt;
	(L:FADEC_R, number) 54 &gt; ||
	(L:FADEC_L, number) 42 &gt;
	(L:FADEC_R, number) 42 &gt; || 
	(L:MCDU_TOFLX_ENT, bool) 1 == &amp;&amp; || &amp;&amp;
	if{
		3 (&gt; L:Flightmode, number)
	}
	(A:SIM ON GROUND, bool) 1 ==
	(A:GROUND VELOCITY, knots) 80 &gt; &amp;&amp;
	(L:Flightmode, number) 3 == &amp;&amp;
	if{
		4 (&gt; L:Flightmode, number)
		0 (&gt; L:AB_ECAM_TOconf, number) 
	}
	(A:SIM ON GROUND, bool) 0 ==
	(L:Flightmode, number) 4 == &amp;&amp;
	if{
		5 (&gt; L:Flightmode, number)
		1 (&gt; L:Autobrake_position, number)
	}

	(L:Flightmode, number) 5 ==
	(L:Flightmode_5to6_starttimer_start, bool) 0 == &amp;&amp;
	if{
		1 (&gt; L:Flightmode_5to6_starttimer_start, bool)
	}

	(L:Flightmode_5to6_starttimer_start, bool) 1 ==
	(L:Flightmode_5to6_2min, bool) 0 == &amp;&amp;
	if{
		(L:Flightmode_5to6_starttimer_val, number) 1 + 481 min (&gt; L:Flightmode_5to6_starttimer_val, number)
	}
	<!-- 480 based on 4 Hz Freq -->
	(L:Flightmode_5to6_starttimer_val, number) 480 &gt;
	if{
		1 (&gt; L:Flightmode_5to6_2min, bool)
		0 (&gt; L:Flightmode_5to6_starttimer_start, bool)
		0 (&gt; L:Flightmode_5to6_starttimer_val, number)
	}
	
	(A:PLANE ALT ABOVE GROUND, feet) 1514 &gt;
	(L:Flightmode_5to6_2min, bool) 1 == ||
	if{
		6 (&gt; L:Flightmode, number)
		0 (&gt; L:Flightmode_5to6_2min, bool)
		0 (&gt; L:Retard_hasbeenplayed, bool)
		0 (&gt; L:Reverse_hasbeenon, bool)
	}
	(A:PLANE ALTITUDE, feet) (L:AB_AP_MCDU_RWYALT, number) - 814 &lt;
	(L:Flightmode, number) 6 == &amp;&amp;
	if{
		7 (&gt; L:Flightmode, number)
	}	
	
	(A:SIM ON GROUND, bool) 1 ==
	(L:Flightmode, number) 6 == 
	(L:Flightmode, number) 7 == || &amp;&amp;
	(A:GROUND VELOCITY, knots) 80 &gt; &amp;&amp;
	if{
		8 (&gt; L:Flightmode, number)
	}	
	(A:SIM ON GROUND, bool) 1 ==
	(L:Flightmode, number) 8 == &amp;&amp;
	(A:GROUND VELOCITY, knots) 80 &lt;= &amp;&amp;
	if{
		9 (&gt; L:Flightmode, number)
	}
	
	(A:SIM ON GROUND, bool) 1 ==
	(L:Flightmode, number) 8 &gt;= &amp;&amp;
	if{
		(L:Reset_MCDU_CNT, number) 1 + 121 min (&gt; L:Reset_MCDU_CNT, number)
	}
	els{
		0 (&gt; L:Reset_MCDU_CNT, number)
	}
	
	(L:Reset_MCDU_CNT, number) 120 ==
	if{
		1 (&gt; L:Reset_MCDU, bool)
	}
	els{
		0 (&gt; L:Reset_MCDU, bool)
	}
	
	(A:SIM ON GROUND, bool) 1 ==
	(L:Flightmode, number) 9 == &amp;&amp;
	(A:GENERAL ENG COMBUSTION:1, bool) 0 == 
	(A:GENERAL ENG COMBUSTION:2, bool) 0 == || &amp;&amp;
	if{
		10 (&gt; L:Flightmode, number)
	}
	(L:Flightmode, number) 10 ==
	(A:GENERAL ENG COMBUSTION:1, bool) 0 == &amp;&amp;
	(A:GENERAL ENG COMBUSTION:2, bool) 0 == &amp;&amp;
	(L:Flightmode10_inhibit, bool) 0 == &amp;&amp;
	if{
		(P:Local time, seconds) (&gt; L:Flightmode10_timer_set, number)
		1 (&gt; L:Flightmode10_inhibit, bool)
	}
	(L:Flightmode10_inhibit, bool) 1 ==
	if{
		(P:Local time, seconds) (L:Flightmode10_timer_set, number) - (&gt; L:Flightmode10_timer_val, number)
	}
	(L:Flightmode10_timer_val, number) 300 &gt;
	if{
		1 (&gt; L:Flightmode_reset, bool)
	}
	(L:Flightmode10_timer_val, number) 305 &gt;
	if{
		0 (&gt; L:Flightmode10_inhibit, bool)
		0 (&gt; L:Flightmode10_timer_set, number)
		0 (&gt; L:Flightmode10_timer_val, number)
		0 (&gt; L:Flightmode, number)
		0 (&gt; L:Flightmode_reset, bool)
		0 (&gt; L:AB_ECAM_TOconf, number) 
	}
	
	(L:Flightmode, number) 3 ==
	(L:Flightmode, number) 4 == ||
	(A:GENERAL ENG THROTTLE LEVER POSITION:1, percent) 2 &lt;=
	(A:GENERAL ENG THROTTLE LEVER POSITION:2, percent) 2 &lt;= &amp;&amp; &amp;&amp; 
	if{
		1 (&gt; L:Flightmode, number)
	}	

	<!-- Flightmode 2 -->
	(L:FMA_Vertmode_act, number) 2 ==
	(L:FMA_Vertmode_act, number) 2.5 == ||
	(L:FMA_Vertmode_act, number) 4 ==
	(L:AB_AP_VS_Select2, number) 0 &gt; &amp;&amp;
	(A:Vertical speed,feet per minute) 100 &gt; &amp;&amp; ||
	(A:INDICATED ALTITUDE, feet) (L:AB_AP_ALT_Selected, number) &lt; &amp;&amp;
	(A:SIM ON GROUND,bool) 0 == &amp;&amp;
	if{
		1 (&gt;L:Flightmode2,number)
	}

	(L:FMA_Vertmode_act, number) 5 ==
	(L:FMA_Vertmode_act, number) 6 == ||
	(A:SIM ON GROUND,bool) 0 == &amp;&amp;
	if{
		2 (&gt;L:Flightmode2,number)
	}

	(L:FMA_Vertmode_act, number) 3 ==
	(L:FMA_Vertmode_act, number) 3.5 == ||
	(L:FMA_Vertmode_act, number) 4 ==
	(L:AB_AP_VS_Select2, number) 0 &lt; &amp;&amp;
	(A:Vertical speed,feet per minute) -100 &lt; &amp;&amp; ||
	(A:INDICATED ALTITUDE, feet) (L:AB_AP_ALT_Selected, number) &gt; &amp;&amp;
	(A:SIM ON GROUND,bool) 0 == &amp;&amp;
	if{
		3 (&gt;L:Flightmode2,number)
	}

	<!-- Blink code -->
	(L:Blink_count, number) 3 + (&gt; L:Blink_count, number)
	(L:Blink_count, number) 10 &gt;=
	if{
		0 (&gt; L:Blink_count, number)
	}
	(L:Blink_count, number) 5 &lt;=
	if{
		1 (&gt; L:Blink_state, bool)
	}
	(L:Blink_count, number) 5 &gt;
	if{
		0 (&gt; L:Blink_state, bool)
	}

	<!-- exits -->
	(L:Exits_conf, bool) 1 ==
	if{
		(L:ASC_Exit_0, number) (A:EXIT OPEN:0, percent) !=
		(L:Exit_conf0_set, bool) 0 == &amp;&amp;
		if{
			(&gt; K:TOGGLE_AIRCRAFT_EXIT)
			1 (&gt; L:Exit_conf0_set, bool)
		}
		(L:ASC_Exit_1, number) (A:EXIT OPEN:1, percent) !=
		(L:ASC_Exit_0, number) (A:EXIT OPEN:0, percent) == &amp;&amp;
		(L:Exit_conf1_set, bool) 0 == &amp;&amp;
		if{
			2 (&gt; K:TOGGLE_AIRCRAFT_EXIT)
			(&gt; K:SELECT_2)
			1 (&gt; L:Exit_conf1_set, bool)
		}
		(L:ASC_Exit_2, number) (A:EXIT OPEN:2, percent) !=
		(L:ASC_Exit_0, number) (A:EXIT OPEN:0, percent) == &amp;&amp;
		(L:ASC_Exit_1, number) (A:EXIT OPEN:1, percent) == &amp;&amp;
		(L:Exit_conf2_set, bool) 0 == &amp;&amp;
		if{
			3 (&gt; K:TOGGLE_AIRCRAFT_EXIT)
			(&gt; K:SELECT_3)
			1 (&gt; L:Exit_conf2_set, bool)
		}
		(L:ASC_Exit_3, number) (A:EXIT OPEN:3, percent) !=
		(L:ASC_Exit_0, number) (A:EXIT OPEN:0, percent) == &amp;&amp;
		(L:ASC_Exit_1, number) (A:EXIT OPEN:1, percent) == &amp;&amp;
		(L:ASC_Exit_2, number) (A:EXIT OPEN:2, percent) == &amp;&amp;
		(L:Exit_conf3_set, bool) 0 == &amp;&amp;
		if{
			4 (&gt; K:TOGGLE_AIRCRAFT_EXIT)
			(&gt; K:SELECT_4)
			1 (&gt; L:Exit_conf3_set, bool)
		}

		(L:ASC_Exit_0, number) (A:EXIT OPEN:0, percent) ==
		(L:ASC_Exit_1, number) (A:EXIT OPEN:1, percent) == &amp;&amp;
		(L:ASC_Exit_2, number) (A:EXIT OPEN:2, percent) == &amp;&amp;
		(L:ASC_Exit_3, number) (A:EXIT OPEN:3, percent) == &amp;&amp;
		if{
			0 (&gt; L:Exits_conf, bool)
			0 (&gt; L:Exit_conf0_set, bool)
			0 (&gt; L:Exit_conf1_set, bool)
			0 (&gt; L:Exit_conf2_set, bool)
			0 (&gt; L:Exit_conf3_set, bool)
		}
	}

}		
</Script>
    </Update>
    </SimGauge.Gauge>
</SimBase.Document>
