# Electrics {{< callout context="caution" title="IMPORTANT!" icon="outline/alert-triangle" >}} Token Variables - along with the [Gauge API](../../gauge-api/) - have been deprecated in Microsoft Flight Simulator 2024 in favour of the new [Vars API](../../../vars-api/vars-api/) and [Event API](../../../event-api/event-api/), which work with the more extensive and supported [Simulation Variables](../../../../simvars/simulation-variables/) and [Key Events](../../../../key-events/key-events-index/). {{< /callout >}} This page lists the available **electrical** [Token Variables](../token-variables/) for use when creating gauges using {{< glossterm >}}wasm{{< /glossterm >}} / C++. ### Alternator {{< table-wrapper >}} | Parameters | Universal Var Member | Description | |---|---|---| | `ALTERNATOR_BREAKER_PULLED` | `b` (BOOL) | Whether the alternator breaker has been pulled (TRUE, 1) or not (FALSE, 0). | | `ALTERNATOR_CONNECTION_ON` | `b` (BOOL) | Whether the alternator connection is on (TRUE, 1) or not (FALSE, 0). | | `GENERATOR_ALTERNATOR_1_BUS_AMPS``GENERATOR_ALTERNATOR_2_BUS_AMPS``GENERATOR_ALTERNATOR_3_BUS_AMPS``GENERATOR_ALTERNATOR_4_BUS_AMPS` | `n` (FLOAT64) | The engine 1/2/3/4 generator alternator bus amperage. | | `GENERATOR_ALTERNATOR_1_BUS_VOLTAGE``GENERATOR_ALTERNATOR_2_BUS_VOLTAGE``GENERATOR_ALTERNATOR_3_BUS_VOLTAGE``GENERATOR_ALTERNATOR_4_BUS_VOLTAGE` | `n` (FLOAT64) | The engine 1/2/3/4 generator alternator bus voltage. | | `MASTER_ALTERNATOR` | `b` (BOOL) | Whether the generator alternator is switched on (TRUE, 1) or not (FALSE, 0). | {{< /table-wrapper >}} ### APU {{< table-wrapper >}} | Parameters | Universal Var Member | Description | |---|---|---| | `APU_BLEED_PRESSURE_RECEIVED_BY_ENGINE` | `n` (FLOAT64) | The amount of pressure received by the engine form the {{< glossterm >}}apu{{< /glossterm >}}, in {{< glossterm >}}psi{{< /glossterm >}}. | | `APU_GENERATOR_SWITCH` | `b` (BOOL) | Whether the {{< glossterm >}}apu{{< /glossterm >}} is switched on (TRUE, 1) or not (FALSE, 0). | | `APU_GENERATOR_ACTIVE` | `b` (BOOL) | Whether the {{< glossterm >}}apu{{< /glossterm >}} generator is switched on (TRUE, 1) or not (FALSE, 0). | | `APU_ON_FIRE_DETECTED` | `b` (BOOL) | Whether the {{< glossterm >}}apu{{< /glossterm >}} is on fire (TRUE, 1) or not (FALSE, 0). | | `APU_PCT_RPM` | `n` (FLOAT64) | The {{< glossterm >}}apu{{< /glossterm >}} {{< glossterm >}}rpm{{< /glossterm >}} expressed as a {{< glossterm >}}percent_over_100{{< /glossterm >}}. | | `APU_PCT_STARTER` | `n` (FLOAT64) | The auxiliary power unit starter, expressed as a {{< glossterm >}}percent_over_100{{< /glossterm >}}. | | `APU_SWITCH` | `b` (BOOL) | Whether the {{< glossterm >}}apu{{< /glossterm >}} is switched on (TRUE, 1) or not (FALSE, 0). | | `APU_VOLTS` | `n` (FLOAT64) | The {{< glossterm >}}apu{{< /glossterm >}} voltage. | {{< /table-wrapper >}} ### Batteries {{< table-wrapper >}} | Parameters | Universal Var Member | Description | |---|---|---| | `BATTERY_BREAKER_PULLED` | `b` (BOOL) | Whether the battery breaker has been pulled (TRUE, 1) or not (False, 0). | | `BATTERY_CONNECTION_ON` | `b` (BOOL) | Whether the battery connection is on (TRUE, 1) or not (False, 0). | | `BATTERY_ESTIMATED_CAPACITY_PCT` | `n` (FLOAT64) | The battery capacity expressed as a {{< glossterm >}}percent_over_100{{< /glossterm >}}. | | `BATTERY_LOAD` | `n` (FLOAT64) | The battery load in amps. | | `BATTERY_VOLTAGE` | `n` (FLOAT64) | The battery voltage, in volts. | | `MASTER_BATTERY` | `b` (BOOL) | The master battery switch position where TRUE (1) is on and FALSE (0) is off. | {{< /table-wrapper >}} ### Breakers {{< table-wrapper >}} | Parameters | Universal Var Member | Description | |---|---|---| | `BREAKER_ADF` | `b` (BOOL) | Whether the ADF breaker is pulled (TRUE, 1) or not (FALSE, 0). | | `BREAKER_ALTFLD` | `b` (BOOL) | Whether the Alt field breaker is pulled (TRUE, 1) or not (FALSE, 0). | | `BREAKER_AUTOPILOT` | `b` (BOOL) | Whether the autopilot breaker is pulled (TRUE, 1) or not (FALSE, 0). | | `BREAKER_AVNBUS1``BREAKER_AVNBUS2` | `b` (BOOL) | Whether the aviation bus 1/2 breaker is pulled (TRUE, 1) or not (FALSE, 0). | | `BREAKER_AVNFAN` | `b` (BOOL) | Whether the aviation fan breaker is pulled (TRUE, 1) or not (FALSE, 0). | | `BREAKER_FLAP` | `b` (BOOL) | Whether the flap breaker is pulled (TRUE, 1) or not (FALSE, 0). | | `BREAKER_GPS` | `b` (BOOL) | Whether the GPS breaker is pulled (TRUE, 1) or not (FALSE, 0). | | `BREAKER_INST` | `b` (BOOL) | Whether the INST breaker is pulled (TRUE, 1) or not (FALSE, 0). | | `BREAKER_INSTLTS` | `b` (BOOL) | Whether the INST LTS breaker is pulled (TRUE, 1) or not (FALSE, 0). | | `BREAKER_LTS_PWR` | `b` (BOOL) | Whether the LTS power breaker is pulled (TRUE, 1) or not (FALSE, 0). | | `BREAKER_NAVCOM1``BREAKER_NAVCOM2``BREAKER_NAVCOM3``BREAKER_NAVCOM4` | `b` (BOOL) | Whether the COM 1/2/3/4 breaker is pulled (TRUE, 1) or not (FALSE, 0). | | `BREAKER_TURNCOORD` | `b` (BOOL) | Whether the turn coordinate breaker is pulled (TRUE, 1) or not (FALSE, 0). | | `BREAKER_WARN` | `b` (BOOL) | Whether the warning breaker is pulled (TRUE, 1) or not (FALSE, 0). | | `BREAKER_XPNDR` | `b` (BOOL) | Whether the transponder breaker is pulled (TRUE, 1) or not (FALSE, 0). | {{< /table-wrapper >}} ### Buses {{< table-wrapper >}} | Parameters | Universal Var Member | Description | |---|---|---| | `AVIONICS_BUS_AMPS` | `n` (FLOAT64) | The avionics bus current, in amps. | | `AVIONICS_BUS_VOLTAGE` | `n` (FLOAT64) | The avionics bus voltage, in volts. | | `BATTERY_BUS_AMPS` | `n` (FLOAT64) | The battery bus current, in amps. | | `BATTERY_BUS_VOLTAGE` | `n` (FLOAT64) | The battery bus voltage, in volts. | | `BUS_BREAKER_PULLED` | `b` (BOOL) | Whether the bus breaker is pulled (TRUE, 1) or not (FALSE, 0). | | `BUS_CONNECTION_ON` | `b` (BOOL) | Whether the bus connection is on (TRUE, 1) or not (False, 0). | | `BUS_LOOKUP_INDEX` | `n` (FLOAT64) | The bus lookup index value. | | `HOT_BATTERY_BUS_AMPS` | `n` (FLOAT64) | The hot battery bus current, in amps. | | `HOT_BATTERY_BUS_VOLTAGE` | `n` (FLOAT64) | The hot battery bus voltage, in volts. | | `MAIN_BUS_AMPS` | `n` (FLOAT64) | The main bus current, in amps. | | `MAIN_BUS_VOLTAGE` | `n` (FLOAT64) | The main bus voltage, in volts. | {{< /table-wrapper >}} ### Circuits {{< table-wrapper >}} | Parameters | Universal Var Member | Description | |---|---|---| | `AUTO_BRAKES_CIRCUIT_ON` | `b` (BOOL) | Whether the auto brake circuit is on (TRUE, 1) or off (FALSE, 0). | | `AUTO_FEATHER_CIRCUIT_ON` | `b` (BOOL) | Whether the auto feather circuit is on (TRUE, 1) or off (FALSE, 0). | | `AUTOPILOT_CIRCUIT_ON` | `b` (BOOL) | Whether the autopilot circuit is on (TRUE, 1) or off (FALSE, 0). | | `AVIONICS_CIRCUIT_ON` | `b` (BOOL) | Whether the avionics circuit is on (TRUE, 1) or off (FALSE, 0). | | `CIRCUIT_BREAKER_PULLED` | `b` (BOOL) | Whether the circuit breaker has been pulled (TRUE, 1) or not (FALSE, 0). | | `CIRCUIT_COM_ON` | `b` (BOOL) | Whether the COM circuit is on (TRUE, 1) or off (FALSE, 0). | | `CIRCUIT_CONNECTION_ON` | `b` (BOOL) | Whether there is a circuit connection (TRUE, 1) or not (FALSE, 0). | | `CIRCUIT_NAV_ON` | `b` (BOOL) | Whether the NAV circuit is on (TRUE, 1) or off (FALSE, 0). | | `CIRCUIT_NAVCOM1_ON``CIRCUIT_NAVCOM2_ON``CIRCUIT_NAVCOM3_ON``CIRCUIT_NAVCOM4_ON` | `b` (BOOL) | Whether the COM 1/2/3/4 circuits are on (TRUE, 1) or off (FALSE, 0). | | `CIRCUIT_ON` | `b` (BOOL) | Whether the circuit is on (TRUE, 1) or off (FALSE, 0). | | `CIRCUIT_SWITCH_ON` | `b` (BOOL) | Whether the circuit switch is on (TRUE, 1) or off (FALSE, 0). | | `FLAP_MOTOR_CIRCUIT_ON` | `b` (BOOL) | Whether the flaps motor circuit is on (TRUE, 1) or off (FALSE, 0). | | `GEAR_MOTOR_CIRCUIT_ON` | `b` (BOOL) | Whether the gear motor circuit is on (TRUE, 1) or off (FALSE, 0). | | `GEAR_WARNING_CIRCUIT_ON` | `b` (BOOL) | Whether the gear warning circuit is on (TRUE, 1) or off (FALSE, 0). | | `GENERAL_PANEL_CIRCUIT_ON` | `b` (BOOL) | Whether the general panel circuit is on (TRUE, 1) or off (FALSE, 0). | | `HYDRAULIC_PUMP_CIRCUIT_ON` | `b` (BOOL) | Whether the hydraulic pump circuit is on (TRUE, 1) or off (FALSE, 0). | | `MARKER_BEACON_CIRCUIT_ON` | `b` (BOOL) | Whether the marker beacon circuit is on (TRUE, 1) or off (FALSE, 0). | | `PITOT_HEAT_CIRCUIT_ON` | `b` (BOOL) | Whether the pitot heat circuit is on (TRUE, 1) or off (FALSE, 0). | | `PROP_SYNC_CIRCUIT_ON` | `b` (BOOL) | Whether the prop-sync circuit is on (TRUE, 1) or off (FALSE, 0). | | `STANDBY_VACUUM_CIRCUIT_ON` | `b` (BOOL) | Whether the standby vacuum circuit is on (TRUE, 1) or off (FALSE, 0). | {{< /table-wrapper >}} ### External Power {{< table-wrapper >}} | Parameters | Universal Var Member | Description | |---|---|---| | `EXTERNAL_POWER_AVAILABLE` | `b` (BOOL) | Whether external power is available (TRUE, 1) or not (FALSE, 0). | | `EXTERNAL_POWER_BREAKER_PULLED` | `b` (BOOL) | Whether external power breaker is pulled (TRUE, 1) or not (FALSE, 0). | | `EXTERNAL_POWER_CONNECTION_ON` | `b` (BOOL) | Whether external power is connected (TRUE, 1) or not (FALSE, 0). | | `EXTERNAL_POWER_ON` | `b` (BOOL) | Whether external power is on (TRUE, 1) or not (FALSE, 0). | {{< /table-wrapper >}} ### Lights {{< table-wrapper >}} | Parameters | Universal Var Member | Description | |---|---|---| | `BEACON_LIGHTS` | `n` (FLOAT64) | Whether beacon lights are on (TRUE, 1) or not (FALSE, 0). | | `IS_ANY_INTERIOR_LIGHT_ON` | `b` (BOOL) | Whether any interior lights are on (TRUE, 1) or not (FALSE, 0). | | `LANDING_LIGHTS` | `n` (FLOAT64) | Whether the landing lights are on (TRUE, 1) or not (FALSE, 0). | | `LIGHT_BACKLIGHT_INTENSITY` | `n` (FLOAT64) | The aircraft backlight intensity, where 0 is off and 1 is full intensity. | | `LIGHT_BEACON_ON` | `b` (BOOL) | Whether the beacon lights are on (TRUE, 1) or not (FALSE, 0). | | `LIGHT_CABIN_ON` | `b` (BOOL) | Whether the cabin lights are on (TRUE, 1) or not (FALSE, 0). | | `LIGHT_GLARESHIELD` | `n` (FLOAT64) | Whether the glareshield light is enabled (TRUE, 1) or not (FALSE, 0). | | `LIGHT_GYROLIGHT_INTENSITY` | `n` (FLOAT64) | The aircraft gyrolight intensity, where 0 is off and 1 is full intensity. | | `LIGHT_HEADLIGHT_INTENSITY` | `n` (FLOAT64) | The aircraft headlight intensity, where 0 is off and 1 is full intensity. | | `LIGHT_LANDING_ON` | `b` (BOOL) | Whether the landing lights are on (TRUE, 1) or not (FALSE, 0). | | `LIGHT_LOGO_ON` | `b` (BOOL) | Whether the logo lights are on (TRUE, 1) or not (FALSE, 0). | | `LIGHT_NAV_ON` | `b` (BOOL) | Whether the NAV lights are on (TRUE, 1) or not (FALSE, 0). | | `LIGHT_PANEL_ON` | `b` (BOOL) | Whether the panel lights are on (TRUE, 1) or not (FALSE, 0). | | `LIGHT_PEDESTRAL` | `n` (FLOAT64) | Whether the pedestral switch is enabled (TRUE, 1) or not (FALSE, 0). | | `LIGHT_POTENTIOMETER` | `n` (FLOAT64) | The light potentiometer position, expressed as a {{< glossterm >}}percent_over_100{{< /glossterm >}}. | | `LIGHT_STROBE_ON` | `b` (BOOL) | Whether the strobe lights are on (TRUE, 1) or not (FALSE, 0). | | `LIGHT_RECOGNITION_ON` | `b` (BOOL) | Whether the recognition lights are on (TRUE, 1) or not (FALSE, 0). | | `LIGHT_TAXI_ON` | `b` (BOOL) | Whether the taxi lights are on (TRUE, 1) or not (FALSE, 0). | | `LIGHT_WING_ON` | `b` (BOOL) | Whether the wing lights are on (TRUE, 1) or not (FALSE, 0). | | `LOGO_LIGHTS` | `n` (FLOAT64) | Whether the logo switch is enabled (TRUE, 1) or not (FALSE, 0). | | `NAV_LIGHTS` | `n` (FLOAT64) | Whether the NAV switch is enabled (TRUE, 1) or not (FALSE, 0). | | `PANEL_LIGHTS` | `n` (FLOAT64) | Whether the panel switch is enabled (TRUE, 1) or not (FALSE, 0). | | `RECOGNITION_LIGHTS` | `n` (FLOAT64) | Whether the recognition lights switch is enabled (TRUE, 1) or not (FALSE, 0). | | `STROBE_FLASH` | `b` (BOOL) | Whether the strobe lights are flashing (TRUE, 1) or not (FALSE, 0). | | `STROBE_LIGHTS` | `n` (FLOAT64) | Whether the strobe light switch is enabled (TRUE, 1) or not (FALSE, 0). | | `TAXI_LIGHTS` | `n` (FLOAT64) | Whether the taxi light switch is enabled (TRUE, 1) or not (FALSE, 0). | | `WING_LIGHTS` | `n` (FLOAT64) | Whether the wing light switch is enabled (TRUE, 1) or not (FALSE, 0). | {{< /table-wrapper >}} ### General {{< table-wrapper >}} | Parameters | Universal Var Member | Description | |---|---|---| | `CHARGING_AMPS` | `n` (FLOAT64) | Charging system amps, where 1 amp = 65535. ***This is a legacy parameter and has been deprecated.*** | | `TOTAL_LOAD_AMPS` | `n` (FLOAT64) | The total load amperage, in amps. | {{< /table-wrapper >}}