If you are to start building some hardware to connect switches, rotaries and Leds to you cockpit I recommend you to start with
a combination of an EXPANSION and MASTER card. With these two cards you have a total of 72 inputs and 45 outputs + an easy way of expanding
with 3 more MASTER cards ( a total of 3x72 extra inputs and 3x45 extra outputs) + DISPLAY CARDS.
Let say you want to make some OVH inputs and Outputs from this hardware. What do you do then?
1. Start SIOC.exe from SIOC folder
2. Click Edit_Script in the SIOC main window
3. Go to Files/Open, find OCP4NGX_3.x.ssi script file ( x depends on version you have)
4. Export to text and rename to OCP4NGX_3.x.txt.
5. If you want to make the Fuel Pump switches and Fuel pump annunciators.
you must first find the SIOC Event and Variable numbers for these in the Event List and Variable List that should be in your SIOC folder
They should be:
2646 EVT_OH_FUEL_PUMP_1_AFT
2647 EVT_OH_FUEL_PUMP_1_FORWARD
2648 EVT_OH_FUEL_PUMP_2_AFT
2649 EVT_OH_FUEL_PUMP_2_FORWARD
2650 EVT_OH_FUEL_PUMP_L_CENTER
2651 EVT_OH_FUEL_PUMP_R_CENTER
Events are inputs and Variables are outputs.
1076 = FUEL_annunLOWPRESS_Aft[0]);
1077 = FUEL_annunLOWPRESS_Aft[1]);
1078 = FUEL_annunLOWPRESS_Ctr[0]);
1079 = FUEL_annunLOWPRESS_Ctr[1]);
1074 = FUEL_annunLOWPRESS_Fwd[0]);
1075 = FUEL_annunLOWPRESS_Fwd[1]);
The numbers on the left are the SIOC variable number you must link to your hardware.
6. Open the OCP4NGX_3.x.txt script code and search for these numbers
I have one input here:
Var 2650, name FUEL_P_L_C, static, Value 0
Var 0040, name Fuel_PC_L_SW, Link IOCARD_SW, Device 30, Input 31 // Fuel Pump Ctr L Sw
{
&FUEL_P_L_C = CHANGEBITN 0 ,&FUEL_P_L_C
}
To find the output first search for the output number , i.e. 1076 and then the led variable
Var 1076, name LOWPR_Aft_L, static
{
V0076 = &LOWPR_Aft_L
}
Var 0076, static, Link IOCARD_OUT, Device 30, Output 24 // FP 1 Aft LED
7. Connect your switch to input 31 and your LED( via a resistor) to output 24 of the MASTER card
8. Start OC4BAConfig and link you EXPANSION/MASTER card that will be under Detected HW to the OVH under Operation
You should also read the
http://www.lekseecon.nl/howto.html to get a good knowledge of SIOC coding
Hope this helps you a little bit on the way to build more functions to your cockpit.
In order to be successful you must invest in learning SIOC and try and test, and try and test..... It is a very powerful and easy once you understand it.