reworked SIOC script for LEDs (Overhead, CDU & MIP)

During the weekend I have completely reworked my script for the Overhead LED status and the CDU as well as the MIP LEDs.

You can find the script in the download area.

Nearly all LEDs are now configured via the TESTBIT Option of SIOC. With this option it’s possible to connect to one Byte 8 LEDs, each LED to a Bit.

Only the Window Heat and the Gear status didn’t worked, so I need to take one Byte for each LED.  Some LEDs (Smoke and Call) are triggered from other functions (SELCAL from Squawkbox and boarding completed)

You cannot just copy and paste those script, you have to adopt it to your device and output configuration. The script here is only for sharing some knowledge how I am going to programm the Cockpit with SimAvionics.

If you have questions or suggestions, feel free to contact me.

You will find an example of the script in the full post.

Var 1000, name _YawDumper, Link IOCARD_OUT, Device 1, Output 50    // Yaw Dumper – yellow LED
Var 1001, name _FLTA_LP, Link IOCARD_OUT, Device 1, Output 49    // Flight Control A Low Pressure – yellow LED
Var 1002, name _FLTB_LP, Link IOCARD_OUT, Device 1, Output 51    // Flight Control B Low Pressure – yellow LED
Var 1003, name _FeelDiffP, Link IOCARD_OUT, Device 1, Output 53    // Feel Diff Press – yellow LED
Var 1004, name _StdbyHLQ, Link IOCARD_OUT, Device 1, Output 54    // Standby Hyd – Low Quantity – yellow LED
Var 1005, name _StdbyHLP, Link IOCARD_OUT, Device 1, Output 52    // Standby Hyd – Low Preassure – yellow LED
Var 1006, name _StdbyHRud, Link IOCARD_OUT, Device 1, Output 56    // Standby Hyd – Standby Rudder On – yellow LED !
Var 1007, name _SpdTrimF, Link IOCARD_OUT, Device 1, Output 58    // Speed Trim Fail – yellow LED

Var 1010, name OH_LED_Group1, LINK FSUIPC_IN, Offset $5340, Length 1 // SA Bit Offset for LED Group 1
{
&_YawDumper = TESTBIT &OH_LED_Group1 ,0
&_FLTA_LP = TESTBIT &OH_LED_Group1 ,1
&_FLTB_LP = TESTBIT &OH_LED_Group1 ,2
&_FeelDiffP = TESTBIT &OH_LED_Group1 ,3
&_StdbyHLQ = TESTBIT &OH_LED_Group1 ,4
&_StdbyHLP = TESTBIT &OH_LED_Group1 ,5
&_StdbyHRud = TESTBIT &OH_LED_Group1 ,6
&_SpdTrimF = TESTBIT &OH_LED_Group1 ,7

}

Building a 737-800 Homecockpit [OE-LNJ]