[== Indéfini ==]
// *****************************************************************************
// * Config_SIOC ver 5.1 - By Manuel Velez - www.opencockpits.com
// *****************************************************************************
// * FileName : sioc.txt
// * Date : 7/24/2018
Var 0100, name D_COURSE1, Link IOCARD_DISPLAY, Digit 0, Numbers 3
Var 0102, name D_IAS, Link IOCARD_DISPLAY, Digit 3, Numbers 3
Var 0104, name D_HDG, Link IOCARD_DISPLAY, Digit 6, Numbers 3
Var 0106, name D_ALT, Link IOCARD_DISPLAY, Digit 9, Numbers 5
Var 0108, name D_VS, Link IOCARD_DISPLAY, Digit 14, Numbers 5
Var 0110, name D_COURSE2, Link IOCARD_DISPLAY, Digit 19, Numbers 3
Var 0112, name VS_Trigger
Var 0200, name DECIMAL, Link IOCARD_OUT, Output 20
Var 0202, name O_N1, Link IOCARD_OUT, Output 21
Var 0204, name O_AT, Link IOCARD_OUT, Output 22
Var 0206, name O_SPEED, Link IOCARD_OUT, Output 23
Var 0208, name O_LVLCHG, Link IOCARD_OUT, Output 24
Var 0210, name O_VNAV, Link IOCARD_OUT, Output 25
Var 0212, name O_HDGSEL, Link IOCARD_OUT, Output 26
Var 0214, name O_APP, Link IOCARD_OUT, Output 27
Var 0216, name O_VORLOC, Link IOCARD_OUT, Output 28
Var 0218, name O_LNAV, Link IOCARD_OUT, Output 29
Var 0220, name O_ALTHLD, Link IOCARD_OUT, Output 30
Var 0222, name O_VS, Link IOCARD_OUT, Output 31
Var 0224, name O_CWSA, Link IOCARD_OUT, Output 32
Var 0226, name O_CMDA, Link IOCARD_OUT, Output 33
Var 0228, name O_CWSB, Link IOCARD_OUT, Output 34
Var 0230, name O_CMDB, Link IOCARD_OUT, Output 35
Var 0232, name O_FD1 // Not available on OC MCP
Var 0234, name O_FD2 // Not available on OC MCP
Var 0300, name E_IAS, Link IOCARD_ENCODER, Input 0, Aceleration 4, Type 2
{
IF &Inhibit_IAS = 0
{
L0 = -1 * &E_IAS
IF &DECIMAL = 1
{
&D_IAS = LIMIT 50 ,90 ,L0
}
ELSE
{
&D_IAS = LIMIT 110 ,400 ,L0
}
}
}
Var 0302, name E_ALT, Link IOCARD_ENCODER, Input 2, Aceleration 4, Type 2
{
IF &Inhibit_Alt = 0
{
L0 = -100 * &E_ALT
&D_ALT = LIMIT 0 ,50000 ,L0
}
}
Var 0304, name E_COURSE1, Link IOCARD_ENCODER, Input 4, Aceleration 4, Type 2
{
IF &Inhibit_OBS1 = 0
{
L0 = &E_COURSE1 * -1
&D_COURSE1 = ROTATE 0 ,359 ,L0
}
}
Var 0306, name E_HDG, Link IOCARD_ENCODER, Input 6, Aceleration 4, Type 2
{
IF &Inhibit_HDG = 0
{
L0 = &E_HDG * -1
&D_HDG = ROTATE 0 ,359 ,L0
}
}
Var 0308, name E_COURSE2, Link IOCARD_ENCODER, Input 9, Aceleration 4, Type 2
{
IF &Inhibit_OBS2 = 0
{
L0 = &E_COURSE2 * -1
&D_COURSE2 = ROTATE 0 ,359 ,L0
}
}
Var 0310, name E_VS, Link IOCARD_ENCODER, Input 11, Aceleration 4, Type 2
{
IF &Inhibit_VS = 0
{
L0 = &E_VS * -50
&D_VS = LIMIT -7000 ,7000 ,L0
}
ELSE
{
&VS_Trigger = 1
}
}
Var 0320, name Inhibit_IAS
{
IF &Inhibit_IAS = 1
{
&D_IAS = -999999
}
}
Var 0322, name Inhibit_Alt
{
IF &Inhibit_Alt = 1
{
&D_ALT = -999999
}
}
Var 0324, name Inhibit_OBS1
{
IF &Inhibit_OBS1 = 1
{
&D_COURSE1 = -999999
}
}
Var 0326, name Inhibit_HDG
{
IF &Inhibit_HDG = 1
{
&D_HDG = -999999
}
}
Var 0328, name Inhibit_OBS2
{
IF &Inhibit_OBS2 = 1
{
&D_COURSE2 = -999999
}
}
Var 0330, name Inhibit_VS
{
IF &Inhibit_VS = 1
{
&D_VS = -999999
}
}
Var 0400, name I_CO, Link IOCARD_SW, Input 13
Var 0402, name I_FD2, Link IOCARD_SW, Input 14
Var 0404, name I_DISENGAGE, Link IOCARD_SW, Input 15
Var 0406, name I_FD1, Link IOCARD_SW, Input 16
Var 0408, name I_CWSB, Link IOCARD_SW, Input 18
Var 0410, name I_CMDB, Link IOCARD_SW, Input 19
Var 0412, name I_CWSA, Link IOCARD_SW, Input 20
Var 0414, name I_CMDA, Link IOCARD_SW, Input 21
Var 0416, name I_VS, Link IOCARD_SW, Input 22
Var 0418, name I_ALTHLD, Link IOCARD_SW, Input 23
Var 0420, name I_APP, Link IOCARD_SW, Input 24
Var 0422, name I_VORLOC, Link IOCARD_SW, Input 25
Var 0424, name I_LNAV, Link IOCARD_SW, Input 27
Var 0426, name I_HDGSEL, Link IOCARD_SW, Input 28
Var 0428, name I_LVLCHG, Link IOCARD_SW, Input 29
Var 0430, name I_VNAV, Link IOCARD_SW, Input 30
Var 0432, name I_SPEED, Link IOCARD_SW, Input 31
Var 0434, name I_N1, Link IOCARD_SW, Input 32
Var 0436, name I_AT, Link IOCARD_SW, Input 33
Var 0438, name I_SPD_INTER // Speed intervention, not available on OC
Var 0440, name I_ALT_INTER // Alt intervention, not available on OC MC
Var 0442, name I_BANK_LIMIT // Bank limit, not available on MCP, values
Var 0500, name I_E1_DISPMODE
Var 0501, name I_E1_ZOOM
Var 0502, name I_E1_NAV1
Var 0503, name I_E1_NAV2
Var 0504, name I_E1_STA, Link IOCARD_SW, Device 1, Input 27
Var 0505, name I_E1_WPT, Link IOCARD_SW, Device 1, Input 28
Var 0506, name I_E1_CTR, Link IOCARD_SW, Device 1, Input 29
Var 0507, name I_E1_ARPT, Link IOCARD_SW, Device 1, Input 30
Var 0508, name I_E1_TFC, Link IOCARD_SW, Device 1, Input 31
Var 0509, name I_E1_DATA, Link IOCARD_SW, Device 1, Input 32
Var 0510, name I_E1_POS, Link IOCARD_SW, Device 1, Input 33
Var 0511, name I_E1_FPV, Link IOCARD_SW, Device 1, Input 34
Var 0512, name I_E1_MTR, Link IOCARD_SW, Device 1, Input 38
Var 0513, name I_E1_MINRST
Var 0514, name I_E1_QNHSTD
Var 0515, name I_E1_MINRADIO
Var 0516, name I_E1_MINBARO
Var 0517, name I_E1_CHANGEMIN
Var 0518, name I_E1_BAROHPA
Var 0519, name I_E1_BAROINCH
Var 0520, name I_E1_CHGBARO
Var 0521, Link IOCARD_SW, Device 1, Input 9 // APP mode
{
IF V0521 = 1
{
&I_E1_DISPMODE = 1
}
}
Var 0522, Link IOCARD_SW, Device 1, Input 10 // VOR mode
{
IF V0522 = 1
{
&I_E1_DISPMODE = 2
}
}
Var 0523, Link IOCARD_SW, Device 1, Input 11 // MAP mode
{
IF V0523 = 1
{
&I_E1_DISPMODE = 3
}
}
Var 0524, Link IOCARD_SW, Device 1, Input 12 // PLAN mode
{
IF V0524 = 1
{
&I_E1_DISPMODE = 4
}
}
Var 0525, Link IOCARD_SW, Device 1, Input 0 // Range 5
{
IF V0525 = 1
{
&I_E1_ZOOM = 1
}
}
Var 0526, Link IOCARD_SW, Device 1, Input 1 // Range 10
{
IF V0526 = 1
{
&I_E1_ZOOM = 2
}
}
Var 0527, Link IOCARD_SW, Device 1, Input 2 // Range 20
{
IF V0527 = 1
{
&I_E1_ZOOM = 3
}
}
Var 0528, Link IOCARD_SW, Device 1, Input 3 // Range 40
{
IF V0528 = 1
{
&I_E1_ZOOM = 4
}
}
Var 0529, Link IOCARD_SW, Device 1, Input 4 // Range 80
{
IF V0529 = 1
{
&I_E1_ZOOM = 5
}
}
Var 0530, Link IOCARD_SW, Device 1, Input 5 // Range 160
{
IF V0530 = 1
{
&I_E1_ZOOM = 6
}
}
Var 0531, Link IOCARD_SW, Device 1, Input 6 // Range 320
{
IF V0531 = 1
{
&I_E1_ZOOM = 7
}
}
Var 0532, Link IOCARD_SW, Device 1, Input 7 // Range 640
{
IF V0532 = 1
{
&I_E1_ZOOM = 8
}
}
Var 0535, Link IOCARD_SW, Device 1, Input 36 // NAV 1 VOR
{
CALL &E1NAV1
}
Var 0536, Link IOCARD_SW, Device 1, Input 37 // NAV 1 ADF
{
CALL &E1NAV1
}
Var 0537, name E1NAV1, Link SUBRUTINE
{
IF V0535 = 1
{
&I_E1_NAV1 = 1
}
ELSE
{
IF V0536 = 1
{
&I_E1_NAV1 = 2
}
ELSE
{
&I_E1_NAV1 = 0
}
}
}
Var 0538, Link IOCARD_SW, Device 1, Input 18 // NAV 2 VOR
{
CALL &E1NAV2
}
Var 0539, Link IOCARD_SW, Device 1, Input 19 // NAV 2 ADF
{
CALL &E1NAV2
}
Var 0540, name E1NAV2, Link SUBRUTINE
{
IF V0538 = 1
{
&I_E1_NAV2 = 1
}
ELSE
{
IF V0539 = 1
{
&I_E1_NAV2 = 2
}
ELSE
{
&I_E1_NAV2 = 0
}
}
}
Var 0550, name Min1Moved
Var 0551, name Bar1Moved
Var 0552, Link IOCARD_SW, Device 1, Input 25
{
IF V0552 = 1
{
&Min1Moved = 0
}
ELSE
{
IF &Min1Moved = 0
{
&I_E1_MINRST = TOGGLE 0
}
}
}
Var 0553, Link IOCARD_SW, Device 1, Input 22
{
IF V0553 = 1
{
&Bar1Moved = 0
}
ELSE
{
IF &Bar1Moved = 0
{
&I_E1_QNHSTD = TOGGLE 0
}
}
}
Var 0554, Link IOCARD_ENCODER, Device 1, Input 23, Aceleration 4, Type 2
{
&Min1Moved = 1
IF V0552 = 1
{
IF V0554 > 0
{
&I_E1_MINRADIO = TOGGLE 0
}
ELSE
{
&I_E1_MINBARO = TOGGLE 0
}
}
ELSE
{
&I_E1_CHANGEMIN = V0554 * -1
&I_E1_CHANGEMIN = 0
}
}
Var 0555, Link IOCARD_ENCODER, Device 1, Input 20, Aceleration 4, Type 2
{
&Bar1Moved = 1
IF V0553 = 1
{
IF V0555 > 0
{
&I_E1_BAROINCH = TOGGLE 0
}
ELSE
{
&I_E1_BAROHPA = TOGGLE 0
}
}
ELSE
{
&I_E1_CHGBARO = V0555 * -1
&I_E1_CHGBARO = 0
}
}
Var 0600, name I_E2_DISPMODE
Var 0601, name I_E2_ZOOM
Var 0602, name I_E2_NAV1
Var 0603, name I_E2_NAV2
Var 0604, name I_E2_STA, Link IOCARD_SW, Device 2, Input 27
Var 0605, name I_E2_WPT, Link IOCARD_SW, Device 2, Input 28
Var 0606, name I_E2_CTR, Link IOCARD_SW, Device 2, Input 29
Var 0607, name I_E2_ARPT, Link IOCARD_SW, Device 2, Input 30
Var 0608, name I_E2_TFC, Link IOCARD_SW, Device 2, Input 31
Var 0609, name I_E2_DATA, Link IOCARD_SW, Device 2, Input 32
Var 0610, name I_E2_POS, Link IOCARD_SW, Device 2, Input 33
Var 0611, name I_E2_FPV, Link IOCARD_SW, Device 2, Input 34
Var 0612, name I_E2_MTR, Link IOCARD_SW, Device 2, Input 38
Var 0613, name I_E2_MINRST
Var 0614, name I_E2_QNHSTD
Var 0615, name I_E2_MINRADIO
Var 0616, name I_E2_MINBARO
Var 0617, name I_E2_CHANGEMIN
Var 0618, name I_E2_BAROHPA
Var 0619, name I_E2_BAROINCH
Var 0620, name I_E2_CHGBARO
Var 0621, Link IOCARD_SW, Device 2, Input 9 // APP mode
{
IF V0621 = 1
{
&I_E2_DISPMODE = 1
}
}
Var 0622, Link IOCARD_SW, Device 2, Input 10 // VOR mode
{
IF V0622 = 1
{
&I_E2_DISPMODE = 2
}
}
Var 0623, Link IOCARD_SW, Device 2, Input 11 // MAP mode
{
IF V0623 = 1
{
&I_E2_DISPMODE = 3
}
}
Var 0624, Link IOCARD_SW, Device 2, Input 12 // PLAN mode
{
IF V0624 = 1
{
&I_E2_DISPMODE = 4
}
}
Var 0625, Link IOCARD_SW, Device 2, Input 0 // Range 5
{
IF V0625 = 1
{
&I_E2_ZOOM = 1
}
}
Var 0626, Link IOCARD_SW, Device 2, Input 1 // Range 10
{
IF V0626 = 1
{
&I_E2_ZOOM = 2
}
}
Var 0627, Link IOCARD_SW, Device 2, Input 2 // Range 20
{
IF V0627 = 1
{
&I_E2_ZOOM = 3
}
}
Var 0628, Link IOCARD_SW, Device 2, Input 3 // Range 40
{
IF V0628 = 1
{
&I_E2_ZOOM = 4
}
}
Var 0629, Link IOCARD_SW, Device 2, Input 4 // Range 80
{
IF V0629 = 1
{
&I_E2_ZOOM = 5
}
}
Var 0630, Link IOCARD_SW, Device 2, Input 5 // Range 160
{
IF V0630 = 1
{
&I_E2_ZOOM = 6
}
}
Var 0631, Link IOCARD_SW, Device 2, Input 6 // Range 320
{
IF V0631 = 1
{
&I_E2_ZOOM = 7
}
}
Var 0632, Link IOCARD_SW, Device 2, Input 7 // Range 640
{
IF V0632 = 1
{
&I_E2_ZOOM = 8
}
}
Var 0635, Link IOCARD_SW, Device 2, Input 36 // NAV 1 VOR
{
CALL &E2NAV1
}
Var 0636, Link IOCARD_SW, Device 2, Input 37 // NAV 1 ADF
{
CALL &E2NAV1
}
Var 0637, name E2NAV1, Link SUBRUTINE
{
IF V0635 = 1
{
&I_E2_NAV1 = 1
}
ELSE
{
IF V0636 = 1
{
&I_E2_NAV1 = 2
}
ELSE
{
&I_E2_NAV1 = 0
}
}
}
Var 0638, Link IOCARD_SW, Device 2, Input 18 // NAV 2 VOR
{
CALL &E2NAV2
}
Var 0639, Link IOCARD_SW, Device 2, Input 19 // NAV 2 ADF
{
CALL &E2NAV2
}
Var 0640, name E2NAV2, Link SUBRUTINE
{
IF V0638 = 1
{
&I_E2_NAV2 = 1
}
ELSE
{
IF V0639 = 1
{
&I_E2_NAV2 = 2
}
ELSE
{
&I_E2_NAV2 = 0
}
}
}
Var 0650, name Min2Moved
Var 0651, name Bar2Moved
Var 0652, Link IOCARD_SW, Device 2, Input 25
{
IF V0652 = 1
{
&Min2Moved = 0
}
ELSE
{
IF &Min2Moved = 0
{
&I_E2_MINRST = TOGGLE 0
}
}
}
Var 0653, Link IOCARD_SW, Device 2, Input 22
{
IF V0653 = 1
{
&Bar2Moved = 0
}
ELSE
{
IF &Bar2Moved = 0
{
&I_E2_QNHSTD = TOGGLE 0
}
}
}
Var 0654, Link IOCARD_ENCODER, Device 2, Input 23, Aceleration 4, Type 2
{
&Min2Moved = 1
IF V0652 = 1
{
IF V0654 > 0
{
&I_E2_MINRADIO = TOGGLE 0
}
ELSE
{
&I_E2_MINBARO = TOGGLE 0
}
}
ELSE
{
&I_E2_CHANGEMIN = V0654 * -1
&I_E2_CHANGEMIN = 0
}
}
Var 0655, Link IOCARD_ENCODER, Device 2, Input 20, Aceleration 4, Type 2
{
&Bar2Moved = 1
IF V0653 = 1
{
IF V0655 > 0
{
&I_E2_BAROINCH = TOGGLE 0
}
ELSE
{
&I_E2_BAROHPA = TOGGLE 0
}
}
ELSE
{
&I_E2_CHGBARO = V0655 * -1
&I_E2_CHGBARO = 0
}
}
Var 0050, name CDUKey, Link USB_KEYS
Var 0051, name CDUExec
Var 0052, name CDUFail
Var 0053, name CDUMSG