Bonjour Michel,
le site de Aerosoft n'est pas bavard sur le SDK du 320, peux-tu en dire un peu plus ? comment se passe l'interfaçage à un hard type OC ?
Cordialement, Michel
Exemple pour la programmation de 2 inter pour allumer les écrans de contrôle
Var 3118 switch le PFD & le ND
Var 3119 switch le ECAM1 & ECAM2
(je n'avais que 2 inter rotatif, mais avec 4, on peux controler les 4 écrans séparement comme dans la réalité)
Extrait SIOC
.................
................
...............
Var 1996 name Jostick67, Link FSUIPC_OUT Offset $334C Length 4
.................
................
...............
// ********************* ECRAN CONTROLE On/off ***********************
Var 3118, name PFD_ONOFF, Link IOCARD_SW, Input 34, Type I // On & Off PFD
{
&Jostick67 = TOGGLE 8
}
Var 3119, name ECAM_ONOFF, Link IOCARD_SW, Input 86, Type I // On & Off ECAM
{
&Jostick67 = TOGGLE 7
}
Extrait FSUIPC4.INI
[Buttons]
.............................
.............................
.............................
99=P66,30,CL25:R,171 ; ECAM ALL
102=P66,31,CL25:R,180 ; ECAM TO config
103=P67,0,CL25:R,210 ; PROBE ANTI ICE
104=P67,1,CL25:R,211 ; WING ANTI ICE
105=P67,2,CL25:R,212 ; ENG1&2 ANTI ICE
108=P67,3,CL25:R,55 ; VS push
109=P67,4,CL25:R,56 ; VS pull
110=P67,5,CL25:R,501 ;TEST ECAM
111=P67,6,CL25:R,301 ;Baro unit
112=P67,7,CL25:R,220 ;ECAM SWITCH
113=P67,8,CL25:R,221 ;PFD SWITCH
Extrait LUA
.............................
.............................
.............................
-- ECAM ON/OFF
if ipcPARAM == 220 then
if (ipc.readLvar("L:AB_MPL_ECAMU_Power") == 1) then
ipc.writeLvar("L:AB_MPL_ECAMU_Power", 0)
ipc.sleep(100)
ipc.writeLvar("L:AB_MPL_ECAML_Power", 0)
ipc.writeLvar("L:SmallOverheadPushButtons", 1)
else
ipc.writeLvar("L:AB_MPL_ECAMU_Power", 1)
ipc.sleep(100)
ipc.writeLvar("L:AB_MPL_ECAML_Power", 1)
ipc.writeLvar("L:SmallOverheadPushButtons", 1)
end
end
-- PFD ON/OFF
if ipcPARAM == 221 then
if (ipc.readLvar("L:AB_MPL_PFD_Power") == 1) then
ipc.writeLvar("L:AB_MPL_PFD_Power", 0)
ipc.sleep(500)
ipc.writeLvar("L:AB_MPL_ND_Power", 0)
ipc.writeLvar("L:SmallOverheadPushButtons", 1)
else
ipc.writeLvar("L:AB_MPL_PFD_Power", 1)
ipc.sleep(500)
ipc.writeLvar("L:AB_MPL_ND_Power", 1)
ipc.writeLvar("L:SmallOverheadPushButtons", 1)
end
end
.............................
.............................
.............................
REM
LVars du SDK
AB_MPL_PFD_Power
AB_MPL_ND_Power
AB_MPL_ECAMU_Power
AB_MPL_ECAML_Power
// *****************************************************************************
// * Config_SIOC ver 4.5 - By Manuel Velez - www.opencockpits.com
// *****************************************************************************
// * FileName : sioc.txt
// * Date : 06/03/2017
Var 0000, Value 0
{
&D_CHRBRIGHT = 120
&PARPADEO_U = 0
&PARPADEO_D = 1
&Time_Date_Year = 3
&Disp_Year = &Zulu_Year_Set
&Year_to_Modif = &Zulu_Year_Set // Pasamos el año a una vble interna
&Modif_Year = 0
&Estado_CHR = 1
&Estado_ET = 1
&CHR_ET_ToDisp = -1
&DECIMAL_C = 0
&Aguja_Segundos = 0
&0ENT_COM1 = 118
&SERVORUDDER = 535
&SERVO_YAW = 530
&0DEC_COM1 = 0
&0ACT_COM1 = 118000
&0ENC_COM1 = 1
&0ENT_COM2 = 118
&0DEC_COM2 = 0
&0ACT_COM2 = 118000
&0ENC_COM2 = 1
&0ENT_NAV1 = 108
&0DEC_NAV1 = 0
&0ACT_NAV1 = 10800
&0ENC_NAV1 = 1
&0ENT_NAV2 = 108
&0DEC_NAV2 = 0
&0ACT_NAV2 = 10800
&0ENC_NAV2 = 1
&0ENT_ADF1 = 10
&0DEC_ADF1 = 0
&0ACT_ADF1 = 1000
&0ENC_ADF1 = 1
&0DANTA_ADF1 = 1
&0DANTS_ADF1 = 1
&0DADFA_ADF1 = 0
&0DADFS_ADF1 = 0
&0ENT_ADF2 = 10
&0DEC_ADF2 = 0
&0ACT_ADF2 = 1000
&0ENC_ADF2 = 1
&0DANTA_ADF2 = 1
&0DANTS_ADF2 = 1
&0DADFA_ADF2 = 0
&0DADFS_ADF2 = 0
&0TIMERUP = 0
&0D_ACTIVE = 1200
&0LASTST = 0
&0DIG_POS_STATU = 5
&0DIS_ATC = 1
&0DIS_1 = 1
&0DIS_2 = 0
&0TIMERATC = 0
&0TIMERATC = TIMER 1 ,0 ,35
&D_CHRBRIGHT2 = 120
&PARPADEO_U2 = 0
&PARPADEO_D2 = 1
&Time_Date_Yea2 = 3
&Disp_Year2 = &Zulu_Year_Set2
&Year_to_Modif2 = &Zulu_Year_Set2 // Pasamos el año a una vble interna
&Modif_Year2 = 0
&Estado_CHR2 = 1
&Estado_ET2 = 1
&CHR_ET_ToDisp2 = -1
&DECIMAL_C2 = 0
&Aguja_Segundo2 = 0
&flaps = 1
&flaps = DELAY 0 ,300
}
Var 0001, name D_CRS1, Link IOCARD_DISPLAY, Digit 0, Numbers 3
Var 0002, name SIM_CRS1, Link FSUIPC_INOUT, Offset $9434, Length 2
{
IF &SIM_CRS1 = 65535
{
&D_CRS1 = -999999
}
ELSE
{
&D_CRS1 = &SIM_CRS1
}
}
Var 0003, name DECIMAL, Link IOCARD_OUT, Output 20
Var 0004, name D_SPD, Link IOCARD_DISPLAY, Digit 3, Numbers 3
Var 0005, name SIM_SPD, Link FSUIPC_INOUT, Offset $9436, Length 2
{
IF &SIM_SPD = 65535
{
&D_SPD = -999999
}
ELSE
{
IF &SIM_SPD < 100
{
&D_SPD = &SIM_SPD
&DECIMAL = 1
}
ELSE
{
&D_SPD = &SIM_SPD
&DECIMAL = 0
}
}
}
Var 0006, name D_HDG, Link IOCARD_DISPLAY, Digit 6, Numbers 3
Var 0007, name SIM_HDG, Link FSUIPC_INOUT, Offset $9438, Length 2
{
IF &SIM_HDG = 65535
{
&D_HDG = -999999
}
ELSE
{
&D_HDG = &SIM_HDG
}
}
Var 0008, name D_ALT, Link IOCARD_DISPLAY, Digit 9, Numbers 5
{
IF &SIM_ALT = 65535
{
&D_ALT = -999999
}
}
Var 0009, name SIM_ALT, Link FSUIPC_INOUT, Offset $943A, Length 2
{
IF &SIM_ALT = 23352
{
&D_ALT = 88888
}
ELSE
{
&D_ALT = &SIM_ALT
}
}
Var 0010, name D_VS, Link IOCARD_DISPLAY, Digit 14, Numbers 5
Var 0011, name VS_FLAG, Link FSUIPC_INOUT, Offset $948F, Length 1
Var 0012, name SIM_VS, Link FSUIPC_INOUT, Offset $943C, Length 2, Type 1
{
IF &SIM_VS = -1
{
&D_VS = -999999
}
ELSE
{
IF &VS_FLAG = 12
{
L0 = &SIM_VS
&D_VS = L0
}
ELSE
{
&D_VS = &SIM_VS
}
}
}
Var 0013, name D_CRS2, Link IOCARD_DISPLAY, Digit 19, Numbers 3
Var 0014, name SIM_CRS2, Link FSUIPC_INOUT, Offset $943E, Length 2
{
IF &SIM_CRS2 = 65535
{
&D_CRS2 = -999999
}
ELSE
{
&D_CRS2 = &SIM_CRS2
}
}
Var 0015, name IN_CRS1, Link FSUIPC_INOUT, Offset $94F1, Length 1
Var 0016, name E_CRS1, Link IOCARD_ENCODER, Input 4, Aceleration 1, Type 2
{
IF &E_CRS1 < 0
{
&command = 197
}
ELSE
{
&command = 198
}
}
Var 0017, name IN_SPD, Link FSUIPC_INOUT, Offset $94F3, Length 1
Var 0018, name E_SPD, Link IOCARD_ENCODER, Input 0, Aceleration 4, Type 2
{
IF &E_SPD < 0
{
&command = 207
}
ELSE
{
&command = 208
}
}
Var 0019, name IN_HDG, Link FSUIPC_INOUT, Offset $94F5, Length 1
Var 0020, name E_HDG, Link IOCARD_ENCODER, Input 6, Aceleration 4, Type 2
{
IF &E_HDG < 0
{
&command = 223
}
ELSE
{
&command = 224
}
}
Var 0021, name IN_ALT, Link FSUIPC_INOUT, Offset $94F0, Length 1
Var 0022, name E_ALT, Link IOCARD_ENCODER, Input 2, Aceleration 6, Type 2
{
IF &E_ALT < 0
{
&command = 214
}
ELSE
{
&command = 215
}
}
Var 0023, name IN_VS, Link FSUIPC_INOUT, Offset $94F4, Length 1
Var 0024, name E_VS, Link IOCARD_ENCODER, Input 11, Aceleration 2, Type 2
{
IF &E_VS < 0
{
&command = 218
}
ELSE
{
&command = 217
}
}
Var 0025, name IN_CRS2, Link FSUIPC_INOUT, Offset $94F2, Length 1
Var 0026, name E_CRS2, Link IOCARD_ENCODER, Input 9, Aceleration 4, Type 2
{
IF &E_CRS2 < 0
{
&command = 199
}
ELSE
{
&command = 200
}
}
Var 0027, name MCP1, Link FSUIPC_INOUT, Offset $9409, Length 1
{
&L_AT = TESTBIT &MCP1 ,0
&L_VNAV = TESTBIT &MCP1 ,1
&L_LNAV = TESTBIT &MCP1 ,2
&L_CMDA = TESTBIT &MCP1 ,3
&L_CMDB = TESTBIT &MCP1 ,4
&L_VOR = TESTBIT &MCP1 ,6
&testCMDA = TESTBIT &MCP1 ,3
}
Var 0028, name MCP2, Link FSUIPC_INOUT, Offset $940A, Length 1
{
&L_CWSA = TESTBIT &MCP2 ,0
&L_CWSB = TESTBIT &MCP2 ,1
&L_N1 = TESTBIT &MCP2 ,3
&L_SPD = TESTBIT &MCP2 ,4
&L_LVL = TESTBIT &MCP2 ,5
&L_HDG = TESTBIT &MCP2 ,6
&L_APP = TESTBIT &MCP2 ,7
}
Var 0029, name MCP3, Link FSUIPC_INOUT, Offset $940B, Length 1
{
&L_ALT = TESTBIT &MCP3 ,0
&L_VS = TESTBIT &MCP3 ,1
}
Var 0030, name L_N1, Link IOCARD_OUT, Output 21
Var 0031, name L_AT, Link IOCARD_OUT, Output 22
Var 0032, name L_SPD, Link IOCARD_OUT, Output 23
Var 0033, name L_LVL, Link IOCARD_OUT, Output 24
Var 0034, name L_VNAV, Link IOCARD_OUT, Output 25
Var 0035, name L_HDG, Link IOCARD_OUT, Output 26
Var 0036, name L_APP, Link IOCARD_OUT, Output 27
Var 0037, name L_VOR, Link IOCARD_OUT, Output 28
Var 0038, name L_LNAV, Link IOCARD_OUT, Output 29
Var 0039, name L_ALT, Link IOCARD_OUT, Output 30
Var 0040, name L_VS, Link IOCARD_OUT, Output 31
Var 0041, name L_CWSA, Link IOCARD_OUT, Output 32
Var 0042, name L_CMDA, Link IOCARD_OUT, Output 33
Var 0043, name L_CWSB, Link IOCARD_OUT, Output 34
Var 0044, name L_CMDB, Link IOCARD_OUT, Output 35
Var 0045, name L_FD1, Link IOCARD_OUT, Output 37
Var 0046, name L_FD2, Link IOCARD_OUT, Output 36
Var 0047, name S_FD1, Link IOCARD_SW, Input 16
{
IF &S_FD1 = 1
{
&command = 189
&L_FD1 = 1
}
ELSE
{
&command = 190
&L_FD1 = 0
}
}
Var 0048, name S_AT, Link IOCARD_SW, Input 33
{
IF &S_AT = 1
{
&command = 202
}
ELSE
{
&command = 203
}
}
Var 0049, name S_N1, Link IOCARD_SW, Input 32
{
IF &S_N1 = 1
{
&command = 205
}
}
Var 0050, name S_CO, Link IOCARD_SW, Input 13
{
IF &S_CO = 1
{
&command = 204
}
}
Var 0051, name S_SPD, Link IOCARD_SW, Input 31
{
IF &S_SPD = 1
{
&command = 206
}
}
Var 0052, name S_VNAV, Link IOCARD_SW, Input 30
{
IF &S_VNAV = 1
{
&command = 210
}
}
Var 0053, name S_LVL, Link IOCARD_SW, Input 29
{
IF &S_LVL = 1
{
&command = 211
}
}
Var 0054, name S_HDG, Link IOCARD_SW, Input 28
{
IF &S_HDG = 1
{
&command = 222
}
}
Var 0055, name S_LNAV, Link IOCARD_SW, Input 27
{
IF &S_LNAV = 1
{
&command = 220
}
}
Var 0056, name S_VOR, Link IOCARD_SW, Input 25
{
IF &S_VOR = 1
{
&command = 221
}
}
Var 0057, name S_APP, Link IOCARD_SW, Input 24
{
IF &S_APP = 1
{
&command = 212
}
}
Var 0058, name S_ALT, Link IOCARD_SW, Input 23
{
IF &S_ALT = 1
{
&command = 213
}
}
Var 0059, name S_VS, Link IOCARD_SW, Input 22
{
IF &S_VS = 1
{
&command = 216
}
}
Var 0060, name S_CMDA, Link IOCARD_SW, Input 21
{
IF &S_CMDA = 1
{
&command = 184
}
}
Var 0061, name S_CWSA, Link IOCARD_SW, Input 20
{
IF &S_CWSA = 1
{
&command = 186
}
}
Var 0062, name S_CMDB, Link IOCARD_SW, Input 19
{
IF &S_CMDB = 1
{
&command = 185
}
}
Var 0063, name S_CWSB, Link IOCARD_SW, Input 18
{
IF &S_CWSB = 1
{
&command = 187
}
}
Var 0064, name S_APDIS, Link IOCARD_SW, Input 15
{
IF &S_APDIS = 1
{
&command = 196
}
ELSE
{
&command = 195
}
}
Var 0065, name S_FD2, Link IOCARD_SW, Input 14
{
IF &S_FD2 = 1
{
&command = 192
&L_FD2 = 1
}
ELSE
{
&command = 193
&L_FD2 = 0
}
}
Var 0066, name S_BARO, Link IOCARD_SW, Device 1, Input 22
{
IF &S_BARO = 0
{
IF &BARO_SW_S = 0
{
&command = 629
}
}
ELSE
{
&BARO_SW_S = 0
}
}
Var 0067, name S_MIN, Link IOCARD_SW, Device 1, Input 25
{
IF &S_MIN = 0
{
IF &MIN_SW_S = 0
{
&command = 623
}
}
ELSE
{
&MIN_SW_S = 0
}
}
Var 0068, name BARO_SW_S, Value 0
Var 0069, name E_BARO, Link IOCARD_ENCODER, Device 1, Input 20, Aceleration 1, Type 2
{
IF &S_BARO = 0
{
IF &E_BARO > 0
{
&command = 627 // BARO DEC
&BARO_SW_S = 1
}
ELSE
{
&command = 628 // BARO INC
&BARO_SW_S = 1
}
}
ELSE
{
IF &E_BARO > 0
{
&command = 625 // INHG
&BARO_SW_S = 1
}
ELSE
{
&command = 626 // HP
&BARO_SW_S = 1
}
}
}
Var 0070, name MIN_SW_S, Value 0
Var 0071, name E_MIN, Link IOCARD_ENCODER, Device 1, Input 23, Aceleration 6, Type 2
{
IF &S_MIN = 0
{
IF &E_MIN > 0
{
&command = 621 // MIN DEC
&MIN_SW_S = 1
}
ELSE
{
&command = 622 // MIN INC
&MIN_SW_S = 1
}
}
ELSE
{
IF &E_MIN > 0
{
&command = 619 // RADIO
&MIN_SW_S = 1
}
ELSE
{
&command = 620 // BARO
&MIN_SW_S = 1
}
}
}
Var 0072, name S_5, Link IOCARD_SW, Device 1, Input 0
{
IF &S_5 = 1
{
&command = 650
}
}
Var 0073, name S_10, Link IOCARD_SW, Device 1, Input 1
{
IF &S_10 = 1
{
&command = 651
}
}
Var 0074, name S_20, Link IOCARD_SW, Device 1, Input 2
{
IF &S_20 = 1
{
&command = 652
}
}
Var 0075, name S_40, Link IOCARD_SW, Device 1, Input 3
{
IF &S_40 = 1
{
&command = 653
}
}
Var 0076, name S_80, Link IOCARD_SW, Device 1, Input 4
{
IF &S_80 = 1
{
&command = 654
}
}
Var 0077, name S_160, Link IOCARD_SW, Device 1, Input 5
{
IF &S_160 = 1
{
&command = 655
}
}
Var 0078, name S_320, Link IOCARD_SW, Device 1, Input 6
{
IF &S_320 = 1
{
&command = 656
}
}
Var 0079, name S_640, Link IOCARD_SW, Device 1, Input 7
{
IF &S_640 = 1
{
&command = 657
}
}
Var 0080, name S_APPR, Link IOCARD_SW, Device 1, Input 9
{
IF &S_APPR = 1
{
&command = 643
}
}
Var 0081, name S_EVOR, Link IOCARD_SW, Device 1, Input 10
{
IF &S_EVOR = 1
{
&command = 644
}
}
Var 0082, name S_MAP, Link IOCARD_SW, Device 1, Input 11
{
IF &S_MAP = 1
{
&command = 645
}
}
Var 0083, name S_PLN, Link IOCARD_SW, Device 1, Input 12
{
IF &S_PLN = 1
{
&command = 646
}
}
Var 0084, name S_WXR, Link IOCARD_SW, Device 1, Input 27
{
IF &S_WXR = 1
{
&command = 659 // WXR
}
}
Var 0085, name S_STA, Link IOCARD_SW, Device 1, Input 28
{
IF &S_STA = 1
{
&command = 660 // STA
}
}
Var 0086, name S_WPT, Link IOCARD_SW, Device 1, Input 29
{
IF &S_WPT = 1
{
&command = 661 // WPT
}
}
Var 0087, name S_APT, Link IOCARD_SW, Device 1, Input 30
{
IF &S_APT = 1
{
&command = 662 // APT
}
}
Var 0088, name S_DATA, Link IOCARD_SW, Device 1, Input 31
{
IF &S_DATA = 1
{
&command = 663 // DATA
}
}
Var 0089, name S_POS, Link IOCARD_SW, Device 1, Input 32
{
IF &S_POS = 1
{
&command = 664 // POS
}
}
Var 0090, name S_TERR, Link IOCARD_SW, Device 1, Input 33
{
IF &S_TERR = 1
{
&command = 1245 // TERR
}
}
Var 0091, name S_FPV, Link IOCARD_SW, Device 1, Input 34
{
IF &S_FPV = 1
{
&command = 630 // FPV
}
}
Var 0092, name S_MTRS, Link IOCARD_SW, Device 1, Input 38
{
IF &S_MTRS = 1
{
&command = 624 // MTRS
}
}
Var 0093, name S_V1, Link IOCARD_SW, Device 1, Input 36
{
IF &S_V1 = 1
{
&command = 633 // VOR_ADF = VOR
}
ELSE
{
IF &S_A1 = 0
{
&command = 634 // VOR_ADF = OFF
}
}
}
Var 0094, name S_A1, Link IOCARD_SW, Device 1, Input 37
{
IF &S_A1 = 1
{
&command = 635 // VOR_ADF = ADF
}
ELSE
{
IF &S_V1 = 0
{
&command = 634 // VOR_ADF = OFF
}
}
}
Var 0095, name S_V2, Link IOCARD_SW, Device 1, Input 18
{
IF &S_V2 = 1
{
&command = 638 // VOR_ADF2 = VOR
}
ELSE
{
IF &S_A2 = 0
{
&command = 639 // VOR_ADF2 = OFF
}
}
}
Var 0096, name S_A2, Link IOCARD_SW, Device 1, Input 19
{
IF &S_A2 = 1
{
&command = 640 // VOR_ADF2 = ADF
}
ELSE
{
IF &S_V2 = 0
{
&command = 639 // VOR_ADF2 = OFF
}
}
}
Var 0097, name command, Link FSUIPC_INOUT, Offset $9400, Length 2
Var 0098, name inputs, Link IOCP, Offset 1000 // This offset manages all inputs
Var 0099, Link IOCARD_SW, Device 5, Input 47 // Flt Cont A Stby Rud SW
{
IF V0099 = 1
{
&inputs = 567
}
ELSE
{
IF V0100 = 0
{
&inputs = 568
}
}
}
Var 0100, Link IOCARD_SW, Device 5, Input 48 // Flt Cont A On Sw
{
IF V0100 = 1
{
&inputs = 569
}
ELSE
{
IF V0099 = 0
{
&inputs = 568
}
}
}
Var 0101, Link IOCARD_SW, Device 5, Input 49 // Flt Cont B Stby Rud SW
{
IF V0101 = 1
{
&inputs = 572
}
ELSE
{
IF V0102 = 0
{
&inputs = 573
}
}
}
Var 0102, Link IOCARD_SW, Device 5, Input 50 // Flt Cont B On Sw
{
IF V0102 = 1
{
&inputs = 574
}
ELSE
{
IF V0101 = 0
{
&inputs = 573
}
}
}
Var 0103, name stbylowq, Link IOCP, Offset 462 // Standby Low Quantity Indicator
{
V0104 = &stbylowq
}
Var 0104, Link IOCARD_OUT, Device 5, Output 35 // Low Qty Led
Var 0105, name lowpressure, Link IOCP, Offset 463 // Low Pressure Backup Indicator
{
V0106 = &lowpressure
}
Var 0106, Link IOCARD_OUT, Device 5, Output 36 // Low Press Led
Var 0107, name stbyrudon, Link IOCP, Offset 476 // Standby Rudder On Indicator
{
V0108 = &stbyrudon
}
Var 0108, Link IOCARD_OUT, Device 5, Output 37 // Stby Rud On Led
Var 0109, Link IOCARD_SW, Device 5, Input 51 // Alt Flaps Arm Sw
{
IF V0109 = 1
{
&inputs = 586
}
ELSE
{
&inputs = 585
}
}
Var 0110, Link IOCARD_SW, Device 5, Input 52 // Alt Flaps Up SW
{
IF V0110 = 1
{
&inputs = 589
}
ELSE
{
IF V0111 = 0
{
&inputs = 590
}
}
}
Var 0111, Link IOCARD_SW, Device 5, Input 53 // Alt Flaps Down Sw
{
IF V0111 = 1
{
&inputs = 591
}
ELSE
{
IF V0110 = 0
{
&inputs = 590
}
}
}
Var 0112, Link IOCARD_SW, Device 5, Input 45 // Spoiler A Sw
{
IF V0112 = 1
{
&inputs = 576
}
ELSE
{
&inputs = 577
}
}
Var 0113, Link IOCARD_SW, Device 5, Input 46 // Spoiler B Sw
{
IF V0113 = 1
{
&inputs = 579
}
ELSE
{
&inputs = 580
}
}
Var 0114, Link IOCARD_SW, Device 5, Input 43 // Yaw Damper Sw
{
IF V0114 = 1
{
&inputs = 583
}
ELSE
{
&inputs = 582
}
}
Var 0115, name spoilera, Link IOCP, Offset 464 // Spoiler A Low Pressure INDICATOR
{
V0116 = &spoilera
}
Var 0116, Link IOCARD_OUT, Device 5, Output 28 // Spoiler A Low Press LED
Var 0117, name spoilerb, Link IOCP, Offset 465 // Spoiler B Low Pressure INDICATOR
{
V0118 = &spoilerb
}
Var 0118, Link IOCARD_OUT, Device 5, Output 29 // Spoiler A Low Press LED
Var 0119, name feeldiffpres, Link IOCP, Offset 472 // Feel Diff Pressure INDICATOR
{
V0120 = &feeldiffpres
}
Var 0120, Link IOCARD_OUT, Device 5, Output 30 // Feel Diff Pressure LED
Var 0121, name spdtrimfail, Link IOCP, Offset 473 // Speed Trim Fail INDICATOR
{
V0122 = &spdtrimfail
}
Var 0122, Link IOCARD_OUT, Device 5, Output 31 // Speed Trim Fail LED
Var 0123, name machtrim, Link IOCP, Offset 474 // Mach Trim Fail INDICATOR
{
V0124 = &machtrim
}
Var 0124, Link IOCARD_OUT, Device 5, Output 32 // Mach Trim Fail LED
Var 0125, name autoslat, Link IOCP, Offset 475 // Auto Slat Fail INDICATOR
{
V0126 = &autoslat
}
Var 0126, Link IOCARD_OUT, Device 5, Output 33 // Auto Slat Fail LED
Var 0127, name yawdamper, Link IOCP, Offset 470 // Yaw Damper INDICATOR
{
V0128 = &yawdamper
}
Var 0128, Link IOCARD_OUT, Device 5, Output 34 // Yaw Damper LED
Var 0129, Link IOCARD_SW, Device 5, Input 40 // VHF Nav On 1 SW
{
IF V0129 = 1
{
&inputs = 949
}
ELSE
{
IF V0130 = 0
{
&inputs = 950
}
}
}
Var 0130, Link IOCARD_SW, Device 5, Input 39 // VHF Nav On 2 SW
{
IF V0130 = 1
{
&inputs = 951
}
ELSE
{
IF V0129 = 0
{
&inputs = 950
}
}
}
Var 0131, Link IOCARD_SW, Device 5, Input 42 // IRS On L SW
{
IF V0131 = 1
{
&inputs = 867
}
ELSE
{
IF V0132 = 0
{
&inputs = 868
}
}
}
Var 0132, Link IOCARD_SW, Device 5, Input 41 // IRS On R SW
{
IF V0132 = 1
{
&inputs = 869
}
ELSE
{
IF V0131 = 0
{
&inputs = 868
}
}
}
Var 0133, Link IOCARD_SW, Device 5, Input 36 // Source On 1 ROT
{
IF V0133 = 1
{
&inputs = 713
}
}
Var 0134, Link IOCARD_SW, Device 5, Input 37 // Source Auto ROT
{
IF V0134 = 1
{
&inputs = 714
}
}
Var 0135, Link IOCARD_SW, Device 5, Input 38 // Source on 2 ROT
{
IF V0135 = 1
{
&inputs = 715
}
}
Var 0136, Link IOCARD_SW, Device 5, Input 71 // Cont Pnl On 1 SW
{
IF V0136 = 1
{
&inputs = 718
}
ELSE
{
IF V0137 = 0
{
&inputs = 719
}
}
}
Var 0137, Link IOCARD_SW, Device 5, Input 70 // Cont Pnl On 2 SW
{
IF V0137 = 1
{
&inputs = 720
}
ELSE
{
IF V0136 = 0
{
&inputs = 719
}
}
}
Var 0138, Link IOCP, Offset 738 // Engine Valve Closed 1 Left INDICATOR
{
IF V0138 = 1
{
V0139 = 2
}
ELSE
{
IF V0138 = 2
{
V0139 = 1
}
ELSE
{
V0139 = 0
}
}
}
Var 0139, Link IOCARD_DISPLAY, Device 5, Digit 34, Numbers 1 // Engine Valve Closed 1 Left LED
Var 0140, Link IOCP, Offset 741 // Engine Valve Closed 2 Right INDICATOR
{
IF V0140 = 1
{
V0141 = 2
}
ELSE
{
IF V0140 = 2
{
V0141 = 1
}
ELSE
{
V0141 = 0
}
}
}
Var 0141, Link IOCARD_DISPLAY, Device 5, Digit 32, Numbers 1 // Engine Valve Closed 2 Right LED
Var 0142, Link IOCP, Offset 739 // Spar Valve Closed 1 Left INDICATOR
{
IF V0142 = 1
{
V0143 = 2
}
ELSE
{
IF V0142 = 2
{
V0143 = 1
}
ELSE
{
V0143 = 0
}
}
}
Var 0143, Link IOCARD_DISPLAY, Device 5, Digit 33, Numbers 1 // Spar Valve Closed 1 Left LED
Var 0144, Link IOCP, Offset 742 // Spar Valve Closed 2 Right INDICATOR
{
IF V0144 = 1
{
V0145 = 2
}
ELSE
{
IF V0144 = 2
{
V0145 = 1
}
ELSE
{
V0145 = 0
}
}
}
Var 0145, Link IOCARD_DISPLAY, Device 5, Digit 35, Numbers 1 // Spar Valve Closed 2 Right LED
Var 0146, name filterbyp1, Link IOCP, Offset 743 // Filter Bypass 1 Left INDICATOR
{
V0147 = &filterbyp1
}
Var 0147, Link IOCARD_OUT, Device 5, Output 20 // Filter Bypass 1 Left LED
Var 0148, name filterbyp2, Link IOCP, Offset 745 // Filter Bypass 2 Right INDICATOR
{
V0149 = &filterbyp2
}
Var 0149, Link IOCARD_OUT, Device 5, Output 21 // Filter Bypass 2 Right LED
Var 0150, Link IOCARD_SW, Device 5, Input 33 // Cross Feed Sw
{
IF V0150 = 1
{
&inputs = 1119
}
ELSE
{
&inputs = 1118
}
}
Var 0151, name crossfeedi, Link IOCP, Offset 744 // Cross Feed Valve Open INDICATOR
{
IF &crossfeedi = 1
{
V0152 = 2
}
ELSE
{
IF &crossfeedi = 2
{
V0152 = 1
}
ELSE
{
V0152 = 0
}
}
}
Var 0152, Link IOCARD_DISPLAY, Device 5, Digit 36, Numbers 1 // Cross Feed Valve Open LED
Var 0153, Link IOCARD_SW, Device 5, Input 31 // Fuel Pump Ctr L Sw
{
IF V0153 = 1
{
&inputs = 1120
}
ELSE
{
&inputs = 1121
}
}
Var 0154, Link IOCARD_SW, Device 5, Input 32 // Fuel Pump Ctr R Sw
{
IF V0154 = 1
{
&inputs = 1125
}
ELSE
{
&inputs = 1124
}
}
Var 0155, Link IOCARD_SW, Device 5, Input 27 // Fuel Pump 1 Aft Sw
{
IF V0155 = 1
{
&inputs = 1128
}
ELSE
{
&inputs = 1127
}
}
Var 0156, Link IOCARD_SW, Device 5, Input 28 // Fuel Pump 1 Fwd Sw
{
IF V0156 = 1
{
&inputs = 1131
}
ELSE
{
&inputs = 1130
}
}
Var 0157, Link IOCARD_SW, Device 5, Input 29 // Fuel Pump 2 Fwd Sw
{
IF V0157 = 1
{
&inputs = 1137
}
ELSE
{
&inputs = 1136
}
}
Var 0158, Link IOCARD_SW, Device 5, Input 30 // Fuel Pump 2 Aft Sw
{
IF V0158 = 1
{
&inputs = 1134
}
ELSE
{
&inputs = 1133
}
}
Var 0159, name ctrl, Link IOCP, Offset 747 // Fuel Pump Center Left Low Pressure INDIC
{
V0160 = &ctrl
}
Var 0160, Link IOCARD_OUT, Device 5, Output 22 // Fuel Pump Center Left Low Pressure LED
Var 0161, name ctrr, Link IOCP, Offset 748 // Fuel Pump Center Right Low Pressure INDI
{
V0162 = &ctrr
}
Var 0162, Link IOCARD_OUT, Device 5, Output 23 // Fuel Pump Center Right Low Pressure LED
Var 0163, name fpaft1, Link IOCP, Offset 751 // Fuel Pump Aft 1 Low Pressure INDICATOR
{
V0164 = &fpaft1
}
Var 0164, Link IOCARD_OUT, Device 5, Output 24 // Fuel Pump Aft 1 Low Pressure LED
Var 0165, name fpfwd1, Link IOCP, Offset 752 // Fuel Pump Fwd 1 Low Pressure INDICATOR
{
V0166 = &fpfwd1
}
Var 0166, Link IOCARD_OUT, Device 5, Output 25 // Fuel Pump Fwd 1 Low Pressure LED
Var 0167, name fpfwd2, Link IOCP, Offset 753 // Fuel Pump Fwd 2 Low Pressure INDICATOR
{
V0168 = &fpfwd2
}
Var 0168, Link IOCARD_OUT, Device 5, Output 26 // Fuel Pump Fwd 2 Low Pressure LED
Var 0169, name fpaft2, Link IOCP, Offset 754 // Fuel Pump Aft 2 Low Pressure INDICATOR
{
V0170 = &fpaft2
}
Var 0170, Link IOCARD_OUT, Device 5, Output 27 // Fuel Pump Aft 2 Low Pressure LED
Var 0171, Link IOCARD_DISPLAY, Device 5, Digit 10, Numbers 2 // DC Amps Digits
Var 0172, name etatdcamps, Link FSUIPC_INOUT, Offset $9448, Length 2
{
IF &etatdcamps = 0
{
V0171 = -999999
}
IF &etatdcamps = 65535
{
V0171 = -999999
}
ELSE
{
V0171 = &etatdcamps
}
}
Var 0173, Link IOCARD_DISPLAY, Device 5, Digit 7, Numbers 3 // CPS Freq Digits
Var 0174, name etatcpsfreq, Link FSUIPC_INOUT, Offset $944A, Length 2
{
IF &etatcpsfreq = 0
{
V0173 = -999999
}
IF &etatcpsfreq = 65535
{
V0173 = -999999
}
ELSE
{
V0173 = &etatcpsfreq
}
}
Var 0175, Link IOCARD_DISPLAY, Device 5, Digit 5, Numbers 2 // DC Volts Digits
Var 0176, name etatdcvolts, Link FSUIPC_INOUT, Offset $944C, Length 2
{
IF &etatdcvolts = 0
{
V0175 = -999999
}
IF &etatdcvolts = 65535
{
V0175 = -999999
}
ELSE
{
V0175 = &etatdcvolts
}
}
Var 0177, Link IOCARD_DISPLAY, Device 5, Digit 3, Numbers 2 // AC Amps Units
Var 0178, name etatacamps, Link FSUIPC_INOUT, Offset $944E, Length 2
{
IF &etatacamps = 0
{
V0177 = -999999
}
IF &etatacamps = 65535
{
V0177 = -999999
}
ELSE
{
V0177 = &etatacamps
}
}
Var 0179, Link IOCP, Offset 377 // AC Volts UNITS
{
IF V0179 < 10
{
V0180 = V0179
}
ELSE
{
V0180 = -999999
}
}
Var 0180, Link IOCARD_DISPLAY, Device 5, Digit 0, Numbers 1 // AC Volts Units Display
Var 0181, Link IOCP, Offset 376 // AC Volts Tens
{
IF V0181 < 10
{
V0182 = V0181
}
ELSE
{
V0182 = -999999
}
}
Var 0182, Link IOCARD_DISPLAY, Device 5, Digit 1, Numbers 1 // AC Volts Tens Display
Var 0183, Link IOCP, Offset 375 // AC Volts Hundreds
{
IF V0183 < 10
{
V0184 = V0183
}
ELSE
{
V0184 = -999999
}
}
Var 0184, Link IOCARD_DISPLAY, Device 5, Digit 2, Numbers 1 // AC Volts Hundreds Display
Var 0185
{
IF V0193 = 0 // Batt Switch Variable
{
}
ELSE
{
}
}
Var 0186, name batdisch, Link IOCP, Offset 378 // Bat Discharge INDICATOR
{
V0187 = &batdisch
}
Var 0187, Link IOCARD_OUT, Device 5, Output 38 // Bat Discharge LED
Var 0188, name trunit, Link IOCP, Offset 379 // Tr Unit INDICATOR
{
V0189 = &trunit
}
Var 0189, Link IOCARD_OUT, Device 5, Output 39 // Tr Unit LED
Var 0190, name elec, Link IOCP, Offset 380 // Elec Fault INDICATOR
{
V0191 = &elec
}
Var 0191, Link IOCARD_OUT, Device 5, Output 40 // Elec Fault LED
Var 0192, name maint_sw, Link IOCARD_SW, Device 5, Input 89, Type P // Electrical Maint momentary switch
{
IF &maint_sw = 1
{
&inputs = 473
}
}
Var 0193, Link IOCP, Offset 428 // Bat
{
CALL V0185
}
Var 0194, Link IOCP, Offset 406 // Bat switch state on 2/off 1
Var 0195, Link IOCARD_SW, Device 5, Input 72 // Batt Sw
{
IF V0195 = 1 // Batt Switch Variable
{
&0ENC_ADF1 = 0
&0ENC_ADF2 = 0
&0ENC_COM1 = 0
&0ENC_COM2 = 0
&0ENC_NAV1 = 0
&0ENC_NAV2 = 0
&inputs = 429
&0TIMERUP = 0
&0LASTST = 0
&0AU1VH1MI = 0
&0AU1VH2MI = 0
&0IO_PT_ADF1 = 0
&0IO_PT_ADF2 = 0
&0IO_PT_COM1 = 0
&0IO_PT_NAV1 = 0
&0IO_PT_NAV2 = 0
&0IO_PT_COM2 = 0
&0AU2VH1VO = 0
&0AU2VH2VO = 0
&0AU2VH1MI = 0
&0AU2VH2MI = 0
&0AU1VH1VO = 0
&0AU1VH2VO = 0
&0D_ATC1 = -999999
&0D_ATC2 = -999999
&0D_ATC3 = -999999
&0D_ATC4 = -999999
&0DADFA_ADF1 = -999999
&0DADFA_ADF2 = -999999
&0DADFS_ADF1 = -999999
&0DADFS_ADF2 = -999999
&0DANTA_ADF1 = -999999
&0DANTA_ADF2 = -999999
&0DANTS_ADF1 = -999999
&0DANTS_ADF2 = -999999
&0DIS_1 = 0
&0DIS_2 = 0
&0DIS_ATC = 0
&0D_ACTIVE = -999999
&0D_FAIL = -999999
&ENG_ON_L_O = 0
&ENG_ON_R_O = 0
&LedPARK = 0
}
ELSE
{
&inputs = 430
&0ENC_ADF1 = 1
&0ENC_ADF2 = 1
&0ENC_COM1 = 1
&0ENC_COM2 = 1
&0ENC_NAV1 = 1
&0ENC_NAV2 = 1
&0TIMERUP = 1
&0LASTST = 1
&0AU1VH1MI = 1
&0AU1VH2MI = 1
&0IO_PT_ADF1 = 1
&0IO_PT_ADF2 = 1
&0IO_PT_COM1 = 1
&0IO_PT_COM2 = 1
&0IO_PT_NAV1 = 1
&0IO_PT_NAV2 = 1
&ENG_ON_L_O = 1
&ENG_ON_R_O = 1
}
}
Var 0196, Link IOCARD_SW, Device 5, Input 73 // DC Stby Pwr ROT
{
IF V0196 = 1
{
&inputs = 420
}
}
Var 0197, Link IOCARD_SW, Device 5, Input 74 // DC Bat Bus ROT
{
IF V0197 = 1
{
&inputs = 421
}
}
Var 0198, Link IOCARD_SW, Device 5, Input 75 // DC Bat ROT
{
IF V0198 = 1
{
&inputs = 422
}
}
Var 0199, Link IOCARD_SW, Device 5, Input 76 // DC Aux Bat ROT
{
IF V0199 = 1
{
&inputs = 423
}
}
Var 0200, Link IOCARD_SW, Device 5, Input 77 // DC TR1 ROT
{
IF V0200 = 1
{
&inputs = 424
}
}
Var 0201, Link IOCARD_SW, Device 5, Input 78 // DC TR2 ROT
{
IF V0201 = 1
{
&inputs = 425
}
}
Var 0202, Link IOCARD_SW, Device 5, Input 79 // DC TR3 ROT
{
IF V0202 = 1
{
&inputs = 426
}
}
Var 0203, Link IOCARD_SW, Device 5, Input 80 // DC Test ROT
{
IF V0203 = 1
{
&inputs = 427
}
}
Var 0204, Link IOCARD_SW, Device 5, Input 82 // AC Stby Pwr ROT
{
IF V0204 = 1
{
&inputs = 433
}
}
Var 0205, Link IOCARD_SW, Device 5, Input 83 // AC Grd Pwr ROT
{
IF V0205 = 1
{
&inputs = 434
}
}
Var 0206, Link IOCARD_SW, Device 5, Input 84 // AC Gen1 ROT
{
IF V0206 = 1
{
&inputs = 435
}
}
Var 0207, Link IOCARD_SW, Device 5, Input 85 // AC APU Gen ROT
{
IF V0207 = 1
{
&inputs = 436
}
}
Var 0208, Link IOCARD_SW, Device 5, Input 86 // AC Gen2 ROT
{
IF V0208 = 1
{
&inputs = 437
}
}
Var 0209, Link IOCARD_SW, Device 5, Input 87 // AC Inv ROT
{
IF V0209 = 1
{
&inputs = 438
}
}
Var 0210, Link IOCARD_SW, Device 5, Input 88 // AC Test ROT
{
IF V0210 = 1
{
&inputs = 439
}
}
Var 0211, Link IOCARD_SW, Device 5, Input 81 // Cab/Util SW
{
IF V0211 = 1
{
&inputs = 442
}
ELSE
{
&inputs = 441
}
}
Var 0212, name stbypoff, Link IOCP, Offset 385 // Standby Power Off INDICATOR
{
V0213 = &stbypoff
}
Var 0213, Link IOCARD_OUT, Device 5, Output 42 // Standby Power Off LED
Var 0214, name drive1, Link IOCP, Offset 386 // Drive 1 INDICATOR
{
V0215 = &drive1
}
Var 0215, Link IOCARD_OUT, Device 5, Output 41 // Drive 1 LED
Var 0216, name drive2, Link IOCP, Offset 387 // Drive 2 INDICATOR
{
V0217 = &drive2
}
Var 0217, Link IOCARD_OUT, Device 5, Output 43 // Drive 2 LED
Var 0218, Link IOCARD_SW, Device 5, Input 69 // Stby Pwr BAT SW
{
IF V0218 = 1
{
&inputs = 457
}
ELSE
{
IF V0219 = 0
{
&inputs = 458
}
}
}
Var 0219, Link IOCARD_SW, Device 5, Input 68 // Stby Pwr AUTO SW
{
IF V0219 = 1
{
&inputs = 459
}
ELSE
{
IF V0218 = 0
{
&inputs = 458
}
}
}
Var 0220, Link IOCARD_SW, Device 5, Input 66 // Disc Drive L Sw
{
IF V0220 = 1
{
&inputs = 451
}
ELSE
{
&inputs = 450
}
}
Var 0221, Link IOCARD_SW, Device 5, Input 67 // Disc Drive R Sw
{
IF V0221 = 1
{
&inputs = 454
}
ELSE
{
&inputs = 453
}
}
Var 0222, name grdpwra, Link IOCP, Offset 391 // Grd Power Available INDICATOR
{
V0223 = &grdpwra
}
Var 0223, Link IOCARD_DISPLAY, Device 5, Digit 37, Numbers 1 // Grd Power Available LED
Var 0224, Link IOCARD_SW, Device 5, Input 64 // Grd Pwr Off SW
{
IF V0224 = 1
{
&inputs = 460
}
}
Var 0225, Link IOCARD_SW, Device 5, Input 65 // Grd Pwr On SW
{
IF V0225 = 1
{
&inputs = 461
}
}
Var 0226, Link IOCARD_SW, Device 5, Input 63 // Bus Trans SW
{
IF V0226 = 1
{
&inputs = 467
}
ELSE
{
&inputs = 468
}
}
Var 0227, name bustrans1, Link IOCP, Offset 394 // Bus Transfer Off 1 INDICATOR
{
V0228 = &bustrans1
}
Var 0228, Link IOCARD_OUT, Device 5, Output 11 // Bus Transfer Off 1 LED
Var 0229, name bustrans2, Link IOCP, Offset 395 // Bus Transfer Off 2 INDICATOR
{
V0230 = &bustrans2
}
Var 0230, Link IOCARD_OUT, Device 5, Output 13 // Bus Transfer Off 2 LED
Var 0231, name sourceoff1, Link IOCP, Offset 396 // Source Off 1 INDICATOR
{
V0232 = &sourceoff1
}
Var 0232, Link IOCARD_OUT, Device 5, Output 12 // Source Off 1 LED
Var 0233, name sourceoff2, Link IOCP, Offset 397 // Source Off 2 INDICATOR
{
V0234 = &sourceoff2
}
Var 0234, Link IOCARD_OUT, Device 5, Output 14 // Source Off 2 LED
Var 0235, name genoff1, Link IOCP, Offset 398 // Gen Off Bus 1 INDICATOR
{
V0236 = &genoff1
}
Var 0236, Link IOCARD_DISPLAY, Device 5, Digit 38, Numbers 1 // Gen Off Bus 1 LED
Var 0237, name genoff2, Link IOCP, Offset 399 // Gen Off Bus 2 INDICATOR
{
V0238 = &genoff2
}
Var 0238, Link IOCARD_DISPLAY, Device 5, Digit 40, Numbers 1 // Gen Off Bus 2 LED
Var 0239, name apugenoff, Link IOCP, Offset 400 // APU Gen Off Bus INDICATOR
{
V0240 = &apugenoff
}
Var 0240, Link IOCARD_DISPLAY, Device 5, Digit 39, Numbers 1 // APU Gen Off Bus LED
Var 0241, Link IOCARD_SW, Device 5, Input 55 // Gen 1 Off SW
{
IF V0241 = 1
{
&inputs = 462
}
}
Var 0242, Link IOCARD_SW, Device 5, Input 56 // Gen 1 On SW
{
IF V0242 = 1
{
&inputs = 463
}
}
Var 0243, Link IOCARD_SW, Device 5, Input 61 // Gen 2 Off SW
{
IF V0243 = 1
{
&inputs = 464
}
}
Var 0244, Link IOCARD_SW, Device 5, Input 62 // Gen 2 On SW
{
IF V0244 = 1
{
&inputs = 465
}
}
Var 0245, Link IOCARD_SW, Device 5, Input 57 // APU Gen L Off SW
{
IF V0245 = 1
{
&inputs = 469
}
}
Var 0246, Link IOCARD_SW, Device 5, Input 58 // APU Gen L On SW
{
IF V0246 = 1
{
&inputs = 470
}
}
Var 0247, Link IOCARD_SW, Device 5, Input 59 // APU Gen R Off SW
{
IF V0247 = 1
{
&inputs = 471
}
}
Var 0248, Link IOCARD_SW, Device 5, Input 60 // APU Gen R On SW
{
IF V0248 = 1
{
&inputs = 472
}
}
Var 0249, name apumain, Link IOCP, Offset 428 // APU Maint INDICATOR
{
V0250 = &apumain
}
Var 0250, Link IOCARD_DISPLAY, Device 5, Digit 41, Numbers 1 // APU Maint LED
Var 0251, name apulowoil, Link IOCP, Offset 429 // APU Low Oil Pressure INDICATOR
{
V0252 = &apulowoil
}
Var 0252, Link IOCARD_DISPLAY, Device 5, Digit 42, Numbers 1 // APU Low Oil Pressure LED
Var 0253, name apufault, Link IOCP, Offset 430 // APU Fault INDICATOR
{
V0254 = &apufault
}
Var 0254, Link IOCARD_DISPLAY, Device 5, Digit 43, Numbers 1 // APU Fault LED
Var 0255, name apuovers, Link IOCP, Offset 431 // APU Overspeed INDICATOR
{
V0256 = &apuovers
}
Var 0256, Link IOCARD_DISPLAY, Device 5, Digit 44, Numbers 1 // APU OverSpeed LED
Var 0257, Link IOCARD_SW, Device 5, Input 54 // L Wiper Park ROT
{
IF V0257 = 1
{
&inputs = 174
}
ELSE
{
&inputs = 175
}
}
Var 0258, Link IOCARD_SW, Device 5, Input 90 // R Wiper Park ROT
{
IF V0258 = 1
{
&inputs = 180
}
ELSE
{
&inputs = 181
}
}
Var 0259, Link IOCARD_SW, Device 5, Input 97 // Equip Cool Supply SW
{
IF V0259 = 1
{
&inputs = 121
}
ELSE
{
&inputs = 120
}
}
Var 0260, Link IOCARD_SW, Device 5, Input 98 // Equip Cool Exhaust SW
{
IF V0260 = 1
{
&inputs = 124
}
ELSE
{
&inputs = 123
}
}
Var 0261, name cooloff1, Link IOCP, Offset 117 // Equip Cool Off 1 INDICATOR
{
V0262 = &cooloff1
}
Var 0262, Link IOCARD_OUT, Device 5, Output 16 // Equip Cool Off 1 LED
Var 0263, name cooloff2, Link IOCP, Offset 118 // Equip Cool Off 2 INDICATOR
{
V0264 = &cooloff2
}
Var 0264, Link IOCARD_OUT, Device 5, Output 17 // Equip Cool Off 2 LED
Var 0265, Link IOCARD_SW, Device 5, Input 95 // Emerg Exit Off SW
{
IF V0265 = 1
{
&inputs = 28
}
ELSE
{
IF V0266 = 0
{
&inputs = 29
}
}
}
Var 0266, Link IOCARD_SW, Device 5, Input 96 // Emerg Exit On SW
{
IF V0266 = 1
{
&inputs = 30
}
ELSE
{
IF V0265 = 0
{
&inputs = 29
}
}
}
Var 0267, name notarmed, Link IOCP, Offset 828 // Not Armed INDICATOR
{
V0268 = ¬armed
}
Var 0268, Link IOCARD_OUT, Device 5, Output 15 // Not Armed LED
Var 0269, Link IOCARD_SW, Device 5, Input 91 // No Smoking Off SW
{
IF V0269 = 1
{
&inputs = 33
}
ELSE
{
IF V0270 = 0
{
&inputs = 34
}
}
}
Var 0270, Link IOCARD_SW, Device 5, Input 92 // No Smoking On SW
{
IF V0270 = 1
{
&inputs = 35
}
ELSE
{
IF V0269 = 0
{
&inputs = 34
}
}
}
Var 0271, Link IOCARD_SW, Device 5, Input 93 // Fasten Seatbelt Off SW
{
IF V0271 = 1
{
&inputs = 38
}
ELSE
{
IF V0272 = 0
{
&inputs = 39
}
}
}
Var 0272, Link IOCARD_SW, Device 5, Input 94 // Fasten Seatbelt On SW
{
IF V0272 = 1
{
&inputs = 40
}
ELSE
{
IF V0271 = 0
{
&inputs = 39
}
}
}
Var 0273, Link IOCARD_SW, Device 5, Input 99, Type P // Attend SW
{
IF V0273 = 1
{
&inputs = 938
}
}
Var 0274, Link IOCARD_SW, Device 5, Input 100, Type P // Gnd Call SW
{
IF V0274 = 1
{
&inputs = 939
}
}
Var 0275, name oheat1s, Link IOCP, Offset 124 // Window Overheat 1 Side INDICATOR
{
V0276 = &oheat1s
}
Var 0276, Link IOCARD_OUT, Device 5, Output 75 // Wind Oheat 1 Side LED
Var 0277, name oheat1f, Link IOCP, Offset 125 // Window Overheat 1 Fwd INDICATOR
{
V0278 = &oheat1f
}
Var 0278, Link IOCARD_OUT, Device 5, Output 76 // Window Overheat 1 Fwd LED
Var 0279, name oheat2f, Link IOCP, Offset 126 // Window Overheat 2 Fwd INDICATOR
{
V0280 = &oheat2f
}
Var 0280, Link IOCARD_OUT, Device 5, Output 77 // Window Overheat 2 Fwd LED
Var 0281, name oheat2s, Link IOCP, Offset 127 // Window Overheat 2 Side INDICATOR
{
V0282 = &oheat2s
}
Var 0282, Link IOCARD_OUT, Device 5, Output 84 // Window Overheat 2 Side LED
Var 0283, name wheat1s, Link IOCP, Offset 128 // Window Heat On 1 Side INDICATOR
{
V0284 = &wheat1s
}
Var 0284, Link IOCARD_OUT, Device 5, Output 78 // Wind Heat On 1 Side LED
Var 0285, name wheat1f, Link IOCP, Offset 129 // Window Heat On 1 Fwd INDICATOR
{
V0286 = &wheat1f
}
Var 0286, Link IOCARD_OUT, Device 5, Output 79 // Window Heat On 1 Fwd LED
Var 0287, name wheat2f, Link IOCP, Offset 130 // Window Heat On 2 Fwd INDICATOR
{
V0288 = &wheat2f
}
Var 0288, Link IOCARD_OUT, Device 5, Output 80 // Window Heat On 2 Fwd LED
Var 0289, name wheat2s, Link IOCP, Offset 131 // Window Heat On 2 Side INDICATOR
{
V0290 = &wheat2s
}
Var 0290, Link IOCARD_OUT, Device 5, Output 85 // Window Heat 2 Side LED
Var 0291, Link IOCARD_SW, Device 5, Input 120 // Wind Heat L Side Sw
{
IF V0291 = 1
{
&inputs = 145
}
ELSE
{
&inputs = 144
}
}
Var 0292, Link IOCARD_SW, Device 5, Input 121 // Wind Heat L Fwd Sw
{
IF V0292 = 1
{
&inputs = 148
}
ELSE
{
&inputs = 147
}
}
Var 0293, Link IOCARD_SW, Device 5, Input 124 // Wind Heat R Fwd Sw
{
IF V0293 = 1
{
&inputs = 151
}
ELSE
{
&inputs = 150
}
}
Var 0294, Link IOCARD_SW, Device 5, Input 125 // Wind Heat R Side Sw
{
IF V0294 = 1
{
&inputs = 154
}
ELSE
{
&inputs = 153
}
}
Var 0295, Link IOCARD_SW, Device 5, Input 122 // Wind Heat Ovht SW
{
IF V0295 = 1
{
&inputs = 155
}
}
Var 0296, Link IOCARD_SW, Device 5, Input 123 // Wind Heat Pwr Test SW
{
IF V0296 = 1
{
&inputs = 156
}
}
Var 0297, Link IOCARD_SW, Device 5, Input 118 // Probe Heat A Fwd Sw
{
IF V0297 = 1
{
&inputs = 159
}
ELSE
{
&inputs = 158
}
}
Var 0298, Link IOCARD_SW, Device 5, Input 119 // Probe Heat B Side Sw
{
IF V0298 = 1
{
&inputs = 162
}
ELSE
{
&inputs = 161
}
}
Var 0299, name captpitot, Link IOCP, Offset 137 // Captain Pitot INDICATOR
{
V0300 = &captpitot
}
Var 0300, Link IOCARD_OUT, Device 5, Output 81 // Captain Pitot LED
Var 0301, name lelevpitot, Link IOCP, Offset 138 // L Elev. Pitot INDICATOR
{
V0302 = &lelevpitot
}
Var 0302, Link IOCARD_OUT, Device 5, Output 82 // L Elev. Pitot LED
Var 0303, name lalpha, Link IOCP, Offset 139 // L Alpha Pitot INDICATOR
{
V0304 = &lalpha
}
Var 0304, Link IOCARD_OUT, Device 5, Output 83 // L Alpha Pitot LED
Var 0305, name temppro, Link IOCP, Offset 140 // Temp Probe INDICATOR
{
V0306 = &temppro
}
Var 0306, Link IOCARD_DISPLAY, Device 5, Digit 55, Numbers 1 // Temp Probe LED
Var 0307, name fopitot, Link IOCP, Offset 141 // First Officer Pitot INDICATOR
{
V0308 = &fopitot
}
Var 0308, Link IOCARD_OUT, Device 5, Output 86 // First Officer Pitot LED
Var 0309, name relevpitot, Link IOCP, Offset 142 // R Elev. Pitot INDICATOR
{
V0310 = &relevpitot
}
Var 0310, Link IOCARD_OUT, Device 5, Output 87 // R Elev. Pitot LED
Var 0311, name ralpha, Link IOCP, Offset 143 // R Alpha Pitot INDICATOR
{
V0312 = &ralpha
}
Var 0312, Link IOCARD_OUT, Device 5, Output 88 // R Alpha Pitot LED
Var 0313, name auxpitot, Link IOCP, Offset 144 // Aux. Pitot INDICATOR
{
V0314 = &auxpitot
}
Var 0314, Link IOCARD_OUT, Device 5, Output 89 // Aux Pitot LED
Var 0315, name lvalveo, Link IOCP, Offset 147 // L Ice Valve Open INDICATOR
{
IF &lvalveo = 1
{
V0316 = 2
}
ELSE
{
IF &lvalveo = 2
{
V0316 = 1
}
ELSE
{
V0316 = 0
}
}
}
Var 0316, Link IOCARD_DISPLAY, Device 5, Digit 58, Numbers 1 // L Ice Valve Open LED
Var 0317, name rvalveo, Link IOCP, Offset 149 // R Ice Valve Open INDICATOR
{
IF &rvalveo = 1
{
V0318 = 2
}
ELSE
{
IF &rvalveo = 2
{
V0318 = 1
}
ELSE
{
V0318 = 0
}
}
}
Var 0318, Link IOCARD_DISPLAY, Device 5, Digit 59, Numbers 1 // R Ice Valve Open LED
Var 0319, name cowlice1, Link IOCP, Offset 150 // Cowl Anti-Ice 1 INDICATOR
{
V0320 = &cowlice1
}
Var 0320, Link IOCARD_DISPLAY, Device 5, Digit 56, Numbers 1 // Cowl Anti-Ice 1 LED
Var 0321, name cowlice2, Link IOCP, Offset 152 // Cowl Anti-Ice 2 INDICATOR
{
V0322 = &cowlice2
}
Var 0322, Link IOCARD_DISPLAY, Device 5, Digit 57, Numbers 1 // Cowl Anti-Ice 2 LED
Var 0323, name cowlval1, Link IOCP, Offset 151 // Cowl Valve Open 1 INDICATOR
{
IF &cowlval1 = 1
{
V0324 = 2
}
ELSE
{
IF &cowlval1 = 2
{
V0324 = 1
}
ELSE
{
V0324 = 0
}
}
}
Var 0324, Link IOCARD_DISPLAY, Device 5, Digit 60, Numbers 1 // Cowl Valve Open 1 LED
Var 0325, name cowlval2, Link IOCP, Offset 153 // Cowl Valve Open 2 INDICATOR
{
IF &cowlval2 = 1
{
V0326 = 2
}
ELSE
{
IF &cowlval2 = 2
{
V0326 = 1
}
ELSE
{
V0326 = 0
}
}
}
Var 0326, Link IOCARD_DISPLAY, Device 5, Digit 61, Numbers 1 // Cowl Valve Open 2 LED
Var 0327, Link IOCARD_SW, Device 5, Input 114 // Wing Anti-Ice SW
{
IF V0327 = 1
{
&inputs = 171
}
ELSE
{
&inputs = 170
}
}
Var 0328, Link IOCARD_SW, Device 5, Input 115 // Eng Anti-Ice 1 SW
{
IF V0328 = 1
{
&inputs = 165
}
ELSE
{
&inputs = 164
}
}
Var 0329, Link IOCARD_SW, Device 5, Input 116 // Eng Anti-Ice 2 SW
{
IF V0329 = 1
{
&inputs = 168
}
ELSE
{
&inputs = 167
}
}
Var 0330, name eng1lp, Link IOCP, Offset 780 // Engine 1 A Low Pressure INDICATOR
{
V0331 = &eng1lp
}
Var 0331, Link IOCARD_OUT, Device 5, Output 102 // Engine 1 A Low Pressure LED
Var 0332, name elec2lp, Link IOCP, Offset 781 // Electric 2 A Low Pressure INDICATOR
{
V0333 = &elec2lp
}
Var 0333, Link IOCARD_OUT, Device 5, Output 103 // Electric 2 A Low Pressure LED
Var 0334, name elec1lp, Link IOCP, Offset 782 // Electric 1 B Low Pressure INDICATOR
{
V0335 = &elec1lp
}
Var 0335, Link IOCARD_OUT, Device 5, Output 104 // Electric 1 B Low Pressure LED
Var 0336, name eng2lp, Link IOCP, Offset 783 // Engine 2 B Low Pressure INDICATOR
{
V0337 = &eng2lp
}
Var 0337, Link IOCARD_OUT, Device 5, Output 105 // Engine 2 B Low Pressure LED
Var 0338, name elec2oh, Link IOCP, Offset 778 // Electric 2 A Overheat INDICATOR
{
V0339 = &elec2oh
}
Var 0339, Link IOCARD_DISPLAY, Device 5, Digit 62, Numbers 1 // Electric 2 A Overheat LED
Var 0340, name elec1oh, Link IOCP, Offset 779 // Electric 1 B Overheat INDICATOR
{
V0341 = &elec1oh
}
Var 0341, Link IOCARD_DISPLAY, Device 5, Digit 63, Numbers 1 // Electric 1 B Overheat LED
Var 0342, Link IOCARD_SW, Device 5, Input 108 // Eng 1 A SW
{
IF V0342 = 1
{
&inputs = 1167
}
ELSE
{
&inputs = 1166
}
}
Var 0343, Link IOCARD_SW, Device 5, Input 109 // Elec 2 A SW
{
IF V0343 = 1
{
&inputs = 1164
}
ELSE
{
&inputs = 1163
}
}
Var 0344, Link IOCARD_SW, Device 5, Input 110 // Elec 1 B SW
{
IF V0344 = 1
{
&inputs = 1161
}
ELSE
{
&inputs = 1160
}
}
Var 0345, Link IOCARD_SW, Device 5, Input 111 // Eng 2 B SW
{
IF V0345 = 1
{
&inputs = 1170
}
ELSE
{
&inputs = 1169
}
}
Var 0346, name equip, Link IOCP, Offset 844 // Equip INDICATOR
{
V0347 = &equip
}
Var 0347, Link IOCARD_OUT, Device 5, Output 19 // Equip LED
Var 0348, name fwdentry, Link IOCP, Offset 845 // Fwd Entry INDICATOR
{
V0349 = &fwdentry
}
Var 0349, Link IOCARD_OUT, Device 5, Output 106 // Fwd Entry LED
Var 0350, name leftfwdo, Link IOCP, Offset 853 // Left Fwd Overwing INDICATOR
{
V0351 = &leftfwdo
}
Var 0351, Link IOCARD_OUT, Device 5, Output 107 // Left Fwd Overwing LED
Var 0352, name leftafto, Link IOCP, Offset 854 // Left Aft Overwing INDICATOR
{
V0353 = &leftafto
}
Var 0353, Link IOCARD_OUT, Device 5, Output 108 // Left Aft Overwing LED
Var 0354, name aftentry, Link IOCP, Offset 847 // Aft Entry INDICATOR
{
V0355 = &aftentry
}
Var 0355, Link IOCARD_OUT, Device 5, Output 109 // Aft Entry LED
Var 0356, name fwdserv, Link IOCP, Offset 848 // Fwd Service INDICATOR
{
V0357 = &fwdserv
}
Var 0357, Link IOCARD_OUT, Device 5, Output 93 // Fwd Service LED
Var 0358, name rightfwdo, Link IOCP, Offset 855 // Right Fwd Overwing INDICATOR
{
V0359 = &rightfwdo
}
Var 0359, Link IOCARD_OUT, Device 5, Output 94 // Right Fwd Overwing LED
Var 0360, name rightafto, Link IOCP, Offset 856 // Right Aft Overwing INDICATOR
{
V0361 = &rightafto
}
Var 0361, Link IOCARD_OUT, Device 5, Output 95 // Right Aft Overwing LED
Var 0362, name fwdcargo, Link IOCP, Offset 851 // Fwd Cargo INDICATOR
{
V0363 = &fwdcargo
}
Var 0363, Link IOCARD_OUT, Device 5, Output 96 // Fwd Cargo LED
Var 0364, name aftcargo, Link IOCP, Offset 852 // Aft Cargo INDICATOR
{
V0365 = &aftcargo
}
Var 0365, Link IOCARD_OUT, Device 5, Output 97 // Aft Cargo LED
Var 0366, Link IOCARD_SW, Device 5, Input 144 // Supply Duct Cont Cab
{
IF V0366 = 1
{
&inputs = 63
}
}
Var 0367, Link IOCARD_SW, Device 5, Input 145 // Supply Duct Fwd
{
IF V0367 = 1
{
&inputs = 64
}
}
Var 0368, Link IOCARD_SW, Device 5, Input 146 // Supply Duct Aft
{
IF V0368 = 1
{
&inputs = 65
}
}
Var 0369, Link IOCARD_SW, Device 5, Input 147 // Pass Cab Fwd
{
IF V0369 = 1
{
&inputs = 66
}
}
Var 0370, Link IOCARD_SW, Device 5, Input 148 // Pass Cab Aft
{
IF V0369 = 1
{
&inputs = 67
}
}
Var 0371, Link IOCARD_SW, Device 5, Input 149 // Pack R
{
IF V0371 = 1
{
&inputs = 68
}
}
Var 0372, Link IOCARD_SW, Device 5, Input 150 // Pack L
{
IF V0372 = 1
{
&inputs = 69
}
}
Var 0373, Link IOCARD_SW, Device 5, Input 143 // Trim Air Sw
{
IF V0373 = 1
{
&inputs = 118
}
ELSE
{
&inputs = 117
}
}
Var 0374, name contcab, Link IOCP, Offset 108 // Cont Cab INDICATOR
{
V0375 = &contcab
}
Var 0375, Link IOCARD_OUT, Device 5, Output 90 // Cont Cab LED
Var 0376, name fwdcab, Link IOCP, Offset 109 // Fwd Cab INDICATOR
{
V0377 = &fwdcab
}
Var 0377, Link IOCARD_OUT, Device 5, Output 91 // Fwd Cab LED
Var 0378, name aftcab, Link IOCP, Offset 110 // Aft Cab INDICATOR
{
V0379 = &aftcab
}
Var 0379, Link IOCARD_OUT, Device 5, Output 92 // Aft Cab LED
Var 0380, name dualbleed, Link IOCP, Offset 69 // Dual Bleed INDICATOR
{
V0381 = &dualbleed
}
Var 0381, Link IOCARD_DISPLAY, Device 5, Digit 46, Numbers 1 // Dual Bleed LED
Var 0382, name lramdoor, Link IOCP, Offset 70 // Ram Door Full Open 1 INDICATOR
{
IF &lramdoor = 1
{
V0383 = 2
}
ELSE
{
IF &lramdoor = 2
{
V0383 = 1
}
ELSE
{
V0383 = 0
}
}
}
Var 0383, Link IOCARD_DISPLAY, Device 5, Digit 47, Numbers 1 // Ram Door Full Open 1 LED
Var 0384, name rramdoor, Link IOCP, Offset 71 // Ram Door Full Open 2 INDICATOR
{
IF &rramdoor = 1
{
V0385 = 2
}
ELSE
{
IF &rramdoor = 2
{
V0385 = 1
}
ELSE
{
V0385 = 0
}
}
}
Var 0385, Link IOCARD_DISPLAY, Device 5, Digit 48, Numbers 1 // Ram Door Full Open 2 LED
Var 0386, Link IOCARD_SW, Device 5, Input 142 // L Recirc Fan Sw
{
IF V0386 = 1
{
&inputs = 112
}
ELSE
{
&inputs = 111
}
}
Var 0387, Link IOCARD_SW, Device 5, Input 141 // R Recirc Fan Sw
{
IF V0387 = 1
{
&inputs = 115
}
ELSE
{
&inputs = 114
}
}
Var 0388, Link IOCARD_SW, Device 5, Input 140, Type P // OVHT TEST PUSH BUTTON
{
IF V0388 = 1
{
&inputs = 58
}
}
Var 0389, Link IOCARD_SW, Device 5, Input 112 // L Pack Off SW
{
IF V0389 = 1
{
&inputs = 102
}
ELSE
{
IF V0390 = 0
{
&inputs = 103
}
}
}
Var 0390, Link IOCARD_SW, Device 5, Input 113 // L Pack High SW
{
IF V0390 = 1
{
&inputs = 104
}
ELSE
{
IF V0389 = 0
{
&inputs = 103
}
}
}
Var 0391, Link IOCARD_SW, Device 5, Input 136 // Iso Valve Close SW
{
IF V0391 = 1
{
&inputs = 46
}
ELSE
{
IF V0392 = 0
{
&inputs = 47
}
}
}
Var 0392, Link IOCARD_SW, Device 5, Input 137 // Iso Valve Open SW
{
IF V0392 = 1
{
&inputs = 48
}
ELSE
{
IF V0391 = 0
{
&inputs = 47
}
}
}
Var 0393, Link IOCARD_SW, Device 5, Input 138 // R Pack Off SW
{
IF V0393 = 1
{
&inputs = 107
}
ELSE
{
IF V0394 = 0
{
&inputs = 108
}
}
}
Var 0394, Link IOCARD_SW, Device 5, Input 139 // R Pack High SW
{
IF V0394 = 1
{
&inputs = 109
}
ELSE
{
IF V0393 = 0
{
&inputs = 108
}
}
}
Var 0395, Link IOCARD_SW, Device 5, Input 135, Type P // TRIP RESET SWITCH
{
IF V0395 = 1
{
&inputs = 59
}
}
Var 0396, name lpack, Link IOCP, Offset 79 // Left Pack Trip Off 1 INDICATOR
{
V0397 = &lpack
}
Var 0397, Link IOCARD_DISPLAY, Device 5, Digit 49, Numbers 1 // Left Pack Trip Off 1 LED
Var 0398, name lwingbo, Link IOCP, Offset 81 // Left Wing Body Overheat 1 INDICATOR
{
V0399 = &lwingbo
}
Var 0399, Link IOCARD_DISPLAY, Device 5, Digit 51, Numbers 1 // Left Wing Body Overheat 1 LED
Var 0400, name lbleedto, Link IOCP, Offset 83 // Left Bleed Trip Off 1 INDICATOR
{
V0401 = &lbleedto
}
Var 0401, Link IOCARD_DISPLAY, Device 5, Digit 53, Numbers 1 // Left Bleed Trip Off 1 LED
Var 0402, name rpack, Link IOCP, Offset 80 // Right Pack Trip Off 2 INDICATOR
{
V0403 = &rpack
}
Var 0403, Link IOCARD_DISPLAY, Device 5, Digit 50, Numbers 1 // Right Pack Trip Off 2 LED
Var 0404, name rwingbo, Link IOCP, Offset 82 // Right Wing Body Overheat 2 INDICATOR
{
V0405 = &rwingbo
}
Var 0405, Link IOCARD_DISPLAY, Device 5, Digit 52, Numbers 1 // Right Wing Body Overheat 2 LED
Var 0406, name rbleedto, Link IOCP, Offset 84 // Right Bleed Trip Off 2 INDICATOR
{
V0407 = &rbleedto
}
Var 0407, Link IOCARD_DISPLAY, Device 5, Digit 54, Numbers 1 // Right Bleed Trip Off 2 LED
Var 0408, Link IOCARD_SW, Device 5, Input 105 // Bleed 1 Sw
{
IF V0408 = 1
{
&inputs = 51
}
ELSE
{
&inputs = 50
}
}
Var 0409, Link IOCARD_SW, Device 5, Input 106 // Bleed APU Sw
{
IF V0409 = 0
{
&inputs = 56
}
ELSE
{
&inputs = 57
}
}
Var 0410, Link IOCARD_SW, Device 5, Input 107 // Bleed 2 Sw
{
IF V0410 = 0
{
&inputs = 53
}
ELSE
{
&inputs = 54
}
}
Var 0411, name autofail, Link IOCP, Offset 88 // Auto Fail INDICATOR
{
V0412 = &autofail
}
Var 0412, Link IOCARD_OUT, Device 5, Output 98 // Auto Fail LED
Var 0413, name offsched, Link IOCP, Offset 89 // Off Sched. Descent INDICATOR
{
V0414 = &offsched
}
Var 0414, Link IOCARD_OUT, Device 5, Output 99 // Off Sched. Descent LED
Var 0415, name altn, Link IOCP, Offset 90 // Altn INDICATOR
{
V0416 = &altn
}
Var 0416, Link IOCARD_OUT, Device 5, Output 100 // Altn LED
Var 0417, name manual, Link IOCP, Offset 91 // Manual INDICATOR
{
V0418 = &manual
}
Var 0418, Link IOCARD_OUT, Device 5, Output 101 // Manual LED
Var 0419, Link IOCARD_DISPLAY, Device 5, Digit 64, Numbers 5 // Flight Alt Display TENS OF THOUSANDS
Var 0420, name etatflightalt, Link FSUIPC_INOUT, Offset $9430, Length 2
{
IF &etatflightalt = 65535
{
V0419 = -999999
}
ELSE
{
V0419 = &etatflightalt
}
}
Var 0421, Link IOCARD_ENCODER, Device 5, Input 126, Aceleration 4, Type 2 // Flt Alt Encoder
{
CALL V0422
}
Var 0422, Link SUBRUTINE
{
IF V0421 < 0
{
&inputs = 129
&inputs = -1
}
ELSE
{
IF V0421 > 0
{
&inputs = 130
&inputs = -1
}
}
}
Var 0423, name etatlandingalt, Link FSUIPC_INOUT, Offset $9432, Length 2
{
IF &etatlandingalt = 65535
{
V0424 = -999999
}
ELSE
{
V0424 = &etatlandingalt
}
}
Var 0424, Link IOCARD_DISPLAY, Device 5, Digit 69, Numbers 5 // Land Alt Display TENS OF THOUSANDS
Var 0425, Link IOCARD_ENCODER, Device 5, Input 128, Aceleration 4, Type 2 // Land Alt Encoder
{
CALL V0426
}
Var 0426, Link SUBRUTINE // Land Alt Encoder Subrutine
{
IF V0425 < 0
{
&inputs = 131
&inputs = -1
}
ELSE
{
IF V0425 > 0
{
&inputs = 132
&inputs = -1
}
}
}
Var 0427, Link IOCARD_SW, Device 5, Input 134 // Close Outflow Valve Sw
{
IF V0427 = 1
{
&inputs = 135
}
ELSE
{
IF V0428 = 0
{
&inputs = 136
}
}
}
Var 0428, Link IOCARD_SW, Device 5, Input 133 // Open Outflow Valve Sw
{
IF V0428 = 1
{
&inputs = 137
}
ELSE
{
IF V0427 = 0
{
&inputs = 136
}
}
}
Var 0429, Link IOCARD_SW, Device 5, Input 130 // Comp Mode Auto
{
IF V0429 = 1
{
&inputs = 140
}
}
Var 0430, Link IOCARD_SW, Device 5, Input 131 // Comp Mode Altn
{
IF V0430 = 1
{
&inputs = 141
}
}
Var 0431, Link IOCARD_SW, Device 5, Input 132 // Comp Mode Man
{
IF V0431 = 1
{
&inputs = 142
}
}
Var 0432, Link FSUIPC_OUT, Offset $5642, Length 1 // Lights Offsets
Var 0433, Link IOCARD_SW, Device 5, Input 0 // Retract L Sw
{
IF V0433 = 1
{
&inputs = 1
}
ELSE
{
&inputs = 2
}
}
Var 0434, Link IOCARD_SW, Device 5, Input 1 // Retract R Sw
{
IF V0434 = 1
{
&inputs = 1
}
ELSE
{
&inputs = 2
}
}
Var 0435, Link IOCARD_SW, Device 5, Input 2 // Fixed L Sw
{
IF V0435 = 1
{
&inputs = 1
}
ELSE
{
&inputs = 2
}
}
Var 0436, Link IOCARD_SW, Device 5, Input 3 // Fixed R Sw
{
IF V0436 = 1
{
&inputs = 1
}
ELSE
{
&inputs = 2
}
}
Var 0437, Link IOCARD_SW, Device 5, Input 4 // Runway Turnoff L Sw
{
IF V0437 = 1
{
&inputs = 4
}
ELSE
{
&inputs = 5
}
}
Var 0438, Link IOCARD_SW, Device 5, Input 5 // Runway Turn off R Sw
{
IF V0438 = 1
{
&inputs = 4
}
ELSE
{
&inputs = 5
}
}
Var 0439, Link IOCARD_SW, Device 5, Input 6 // Taxi Light Sw
{
IF V0439 = 1
{
&inputs = 7
}
ELSE
{
&inputs = 8
}
}
Var 0440, Link FSUIPC_OUT, Offset $5643, Length 1 // Taxi/Exterior Light SW
Var 0441, Link IOCARD_SW, Device 5, Input 7 // APU Start Off SW
{
IF V0441 = 1
{
&inputs = 517
}
ELSE
{
IF V0442 = 0
{
&inputs = 518
}
}
}
Var 0442, Link IOCARD_SW, Device 5, Input 8 // APU Start Start SW
{
IF V0442 = 1
{
&inputs = 519
}
ELSE
{
IF V0441 = 0
{
&inputs = 518
}
}
}
Var 0443, Link IOCARD_SW, Device 5, Input 9 // Eng Start 1 Grd ROT
{
IF V0443 = 1
{
&inputs = 486
&servo1 = DELAY 328 ,2500 // Auto off phase I
&servo1 = 390 // Auto off phase II
}
}
Var 0444, name servo1, Link USB_SERVOS, Device 4, Output 6, PosL 0, PosC 512, PosR 1023
Var 0445, Link IOCARD_SW, Device 5, Input 10 // Eng Start 1 Off ROT
{
IF V0445 = 1
{
&inputs = 487
&servo1 = 950 // Auto off phase I
&servo1 = DELAY 512 ,50 // Auto off phase II
}
}
Var 0446, Link IOCARD_SW, Device 5, Input 11 // Eng Start 1 Cont ROT
{
IF V0446 = 1
{
&inputs = 488
}
}
Var 0447, Link IOCARD_SW, Device 5, Input 12 // Eng Start 1 Flt ROT
{
IF V0447 = 1
{
&inputs = 489
}
}
Var 0448, Link IOCARD_SW, Device 5, Input 25 // Ign L SW
{
IF V0448 = 1
{
&inputs = 498
}
ELSE
{
IF V0449 = 0
{
&inputs = 499
}
}
}
Var 0449, Link IOCARD_SW, Device 5, Input 24 // Ign R SW
{
IF V0449 = 1
{
&inputs = 500
}
ELSE
{
IF V0448 = 0
{
&inputs = 499
}
}
}
Var 0450, Link IOCARD_SW, Device 5, Input 13 // Eng Start 2 Grd ROT
{
IF V0450 = 1
{
&inputs = 492
&servo2 = DELAY 310 ,2500 // Auto off phase I
&servo2 = 390 // Auto off phase II
}
}
Var 0451, name servo2, Link USB_SERVOS, Device 4, Output 5, PosL 0, PosC 512, PosR 1023
Var 0452, Link IOCARD_SW, Device 5, Input 14 // Eng Start 2 Off ROT
{
IF V0452 = 1
{
&inputs = 493
&servo2 = 950 // Auto off phase I
&servo2 = DELAY 512 ,50 // Auto off phase II
}
}
Var 0453, Link IOCARD_SW, Device 5, Input 15 // Eng Start 2 Cont ROT
{
IF V0453 = 1
{
&inputs = 494
}
}
Var 0454, Link IOCARD_SW, Device 5, Input 16 // Eng Start 2 Flt ROT
{
IF V0454 = 1
{
&inputs = 495
}
}
Var 0455, Link IOCARD_SW, Device 5, Input 18 // Logo Light Sw
{
IF V0455 = 1
{
&inputs = 10
}
ELSE
{
&inputs = 11
}
}
Var 0456, Link FSUIPC_OUT, Offset $5645, Length 1 // Position Light SW
Var 0457, Link IOCARD_SW, Device 5, Input 19 // Position Strobe & Steady Light Sw
{
IF V0457 = 1
{
&inputs = 14
}
ELSE
{
&inputs = 15
}
}
Var 0458, Link IOCARD_SW, Device 5, Input 20 // Position Steady Light Sw
{
IF V0458 = 1
{
&inputs = 16
}
ELSE
{
&inputs = 15
}
}
Var 0459, Link IOCARD_SW, Device 5, Input 21 // Anti Collision Light SW
{
IF V0459 = 1
{
&inputs = 24
}
ELSE
{
&inputs = 25
}
}
Var 0460, Link IOCARD_SW, Device 5, Input 22 // Wing Light SW
{
IF V0460 = 1
{
&inputs = 21
}
ELSE
{
&inputs = 22
}
}
Var 0461, Link IOCARD_SW, Device 5, Input 23 // General Panel Light SW
{
IF V0461 = 1
{
&inputs = 18
}
ELSE
{
&inputs = 19
}
}
Var 0462, name SERVO_FuelTemp, Link USB_SERVOS, Device 3, Output 1, PosL 0, PosC 512, PosR 1023, Type 1
Var 0463, name SERVO_APU, Link USB_SERVOS, Device 3, Output 2, PosL 230, PosC 550, PosR 981, Type 1
{
IF &SERVO_APU < 230
{
&SERVO_APU = 230
}
}
Var 0464, name SERVO_PresDiff, Link USB_SERVOS, Device 3, Output 3, PosL 0, PosC 512, PosR 1023, Type 1
Var 0465, name SERVO_CabAlt, Link USB_SERVOS, Device 3, Output 4, PosL 0, PosC 512, PosR 1023, Type 1
Var 0466, name SERVO_CabVSI, Link USB_SERVOS, Device 3, Output 5, PosL 0, PosC 512, PosR 1023, Type 1
Var 0467, name SERVO_CabTemp, Link USB_SERVOS, Device 4, Output 1, PosL 0, PosC 512, PosR 1023, Type 1
Var 0468, name SERVO_PressL, Link USB_SERVOS, Device 4, Output 3, PosL 0, PosC 512, PosR 1023, Type 1
Var 0469, name SERVO_PressR, Link USB_SERVOS, Device 4, Output 2, PosL 0, PosC 512, PosR 1023, Type 1
Var 0470, name SERVO_OUTFLOW, Link USB_SERVOS, Device 4, Output 4, PosL 0, PosC 512, PosR 1023, Type 1
Var 0471, name Time_Date_Year // Indice para digitos Time-Date-Year
Var 0472, name Modif_Year // Activamos control modificacion año. 0=De
Var 0473, name Modif_DDMM // Activamos control modificacion Dia.Mes -
Var 0474, name Modif_HHMM // Activamos control modificacion Hora.Minu
Var 0475, name Year_to_Modif // Guarda el año para modificar
Var 0476, name DD_to_Modif // Guarda el Dia para modificar
Var 0477, name MM_to_Modif // Guarda el Mes para modificar
Var 0478, name CHR_ET_ToDisp // Controla si vemos el CHR o el ET en el d
Var 0479, name CHR_Min // Acumula los Minutos del cronometro
Var 0480, name CHR_Sec // Acumula los Segundos del cronometro
Var 0481, name Estado_CHR // COntrola el estado del Botón CHR. 0 -> P
Var 0482, name ET_Hr // Acumula las Horas del ET Elapsed Time
Var 0483, name ET_Min // Acumula los Minutos del ET Elapsed Time
Var 0484, name ET_Sec // Acumula los Segundos del ET Elapsed Tim
Var 0485, name Estado_ET // COntrola el estado del Botón ET. 0 -> Po
Var 0486, name Limit_DD_Mes // Almacena el total de días que tiene el m
Var 0487, name DayofYear // Almacena el día del año
Var 0488, name M_MOTOR, Link IOCARD_MOTOR, Device 16, Output 1, Aceleration 200
Var 0489, name Aguja_Segundos
{
L0 = &Aguja_Segundos + 35
L1 = L0 * 67.75
L2 = ROTATE 0 ,4065 ,L1
&M_MOTOR = ROUND L2
}
Var 0490, name PARPADEO_U, Link SUBRUTINE
{
&BLINK = 0
}
Var 0491, name PARPADEO_D, Link SUBRUTINE
{
&BLINK2 = 0
}
Var 0492, name HH_to_Modif // Guarda la hora para modificar
Var 0493, name MI_to_Modif // Guarda los minutos para modificar
Var 0494, name Clock_Seconds, Link FSUIPC_INOUT, Offset $023A, Length 1 // Segundos del Reloj del FS
{
IF &Time_Date_Year = 1 // Visualizo el año
{
IF &Modif_Year = 1 // Si estamos en activacion del control del
{
&Disp_Year = &Year_to_Modif
&Disp_Year = DELAY -999999 ,50
}
}
IF &Time_Date_Year = 2 // Visualizo el dia y mes
{
IF &Modif_DDMM = 1 // Si estamos en activacion del control mod
{
&Disp_Month_Min = &MM_to_Modif
&Disp_Month_Min = DELAY -999999 ,50
&Disp_Day_Hour = &DD_to_Modif
}
IF &Modif_DDMM = 2 // Si estamos en activacion del control mod
{
&Disp_Day_Hour = &DD_to_Modif
&Disp_Day_Hour = DELAY -999999 ,50
&Disp_Month_Min = &MM_to_Modif
}
}
IF &Time_Date_Year = 3 // Visualizo la hora Zulu
{
CALL &Show_Display
IF &Modif_HHMM = 1 // Si estamos en activacion del control mod
{
&Disp_Month_Min = &MI_to_Modif
&Disp_Month_Min = DELAY -999999 ,50
&Disp_Day_Hour = &HH_to_Modif
}
IF &Modif_HHMM = 2 // Si estamos en activacion del control mod
{
&Disp_Day_Hour = &HH_to_Modif
&Disp_Day_Hour = DELAY -999999 ,50
&Disp_Month_Min = &MI_to_Modif
}
}
IF &Time_Date_Year = 4 // Visualizo Minutos y Segundos
{
CALL &Show_Display
}
IF &Estado_CHR = 2 // 2 -> Inicia CHR o continúa
{
IF &CHR_ET_ToDisp = 0
{
&PARPADEO_D = 1
}
&CHR_Sec = &CHR_Sec + 1
IF &CHR_Sec > 59
{
&CHR_Sec = 0
&CHR_Min = &CHR_Min + 1
IF &CHR_Min > 59 // Cuando llegamos a 1 hora se pone a cero
{
&CHR_Min = 0
}
}
&Aguja_Segundos = &CHR_Sec // Movemos la aguja de los segundos si el C
}
IF &Estado_ET = 2 // 2 -> Inicia ET o continúa
{
IF &CHR_ET_ToDisp = 1
{
&PARPADEO_D = 1
}
&ET_Sec = &ET_Sec + 1
IF &ET_Sec > 59
{
&ET_Sec = 0
&ET_Min = &ET_Min + 1
IF &ET_Min > 59
{
&ET_Min = 0
&ET_Hr = &ET_Hr + 1
}
}
}
IF &CHR_ET_ToDisp = 0 // Mostramos el CHR en los displays inferio
{
CALL &Ver_CHR
}
ELSE // Mostramos el ET en los displays inferior
{
IF &CHR_ET_ToDisp = 1
{
CALL &Ver_ET
}
}
}
Var 0495, name Zulu_Hour, Link FSUIPC_INOUT, Offset $023B, Length 1 // Hora Zulu. Lectura y escritura
{
CALL &Show_Display
}
Var 0496, name Zulu_Minute, Link FSUIPC_INOUT, Offset $023C, Length 1 // Minutos Zulu. Lectura y escritura
{
CALL &Show_Display
}
Var 0497, name Day_of_Year, Link FSUIPC_INOUT, Offset $023E, Length 2 // Numero del día del año. Lectura y escrit
Var 0498, name Day_of_Month, Link FSUIPC_IN, Offset $023D, Length 1 // Día del mes correspondiente. Sólo lectur
{
CALL &Show_Display
}
Var 0499, name Current_Month, Link FSUIPC_IN, Offset $0242, Length 1 // Numero del mes. Sólo lectura
{
CALL &Show_Display
}
Var 0500, name Zulu_Year_Set, Link FSUIPC_INOUT, Offset $0240, Length 2 // Año. Lectura y escritura
{
&Year_to_Modif = &Zulu_Year_Set
CALL &Chk_Bisiesto // Comprobamos si es bisiesto
}
Var 0501, name Disp_Year, Link IOCARD_DISPLAY, Device 16, Digit 0, Numbers 4 // UP Displays Year
Var 0502, name Disp_Day_Hour, Link IOCARD_DISPLAY, Device 16, Digit 2, Numbers 2 // UP Displays Day or Hour
Var 0503, name Disp_Month_Min, Link IOCARD_DISPLAY, Device 16, Digit 0, Numbers 2 // UP Displays Month or Minutes
Var 0504, name Disp_DWN_Min, Link IOCARD_DISPLAY, Device 16, Digit 6, Numbers 2 // Down Displays CHR - ET -> Min
Var 0505, name Disp_DWN_Sec, Link IOCARD_DISPLAY, Device 16, Digit 4, Numbers 2 // Down Displays CHR - ET -> Sec
Var 0506, name D_CHRBRIGHT, Link IOCARD_DISPLAY, Device 16, Digit 16, Numbers 3
Var 0507, name DECIMAL_U, Link IOCARD_OUT, Device 16, Output 20
Var 0508, name DECIMAL_D, Link IOCARD_OUT, Device 16, Output 21
Var 0509, name DECIMAL_C, Link IOCARD_OUT, Device 16, Output 22
Var 0510, name SW_Time_Date, Link IOCARD_SW, Device 16, Input 1, Type P // ----------------------------------> Botó
{
IF &Modif_Year = 0 // Si NO estamos en activacion del control
{
&Time_Date_Year = &Time_Date_Year + 1
IF &Modif_DDMM > 0 // Si estoy modificando dia del mes o el me
{
&Modif_DDMM = 0
}
IF &Modif_HHMM > 0 // Si estoy modificando dia hora o minutos
{
&Modif_HHMM = 0
}
}
IF &Time_Date_Year > 4 // Comprobamos si nos salimos de margenes
{
&Time_Date_Year = 1 // Ponemos a 1
}
CALL &Show_Display // Mostramos en displays el dato correspond
IF &Estado_CHR = 3 // Si el CHR esta parado
{
}
}
Var 0511, name SW_SET, Link IOCARD_SW, Device 16, Input 2, Type P // ----------------------------------> Botó
{
IF &Time_Date_Year = 1 // Si estoy visualizando el año
{
IF &Modif_Year = 0 // Si NO estoy modificando el año
{
&Modif_Year = 1 // Activamos control modificacion año
&Year_to_Modif = &Zulu_Year_Set // Pasamos el año a una vble para modificar
}
ELSE
{
CALL &Chk_Bisiesto // Comprobamos si es bisiesto
CALL &Calc_DayofYear
&Day_of_Year = &DayofYear // Devolvemos el día al FS para que lo modi
&Modif_Year = 0 // Desactivamos control modificacion año
&Zulu_Year_Set = &Year_to_Modif // Devolvemos el año al FS para que lo modi
CALL &Show_Display // Mostramos el año
}
}
IF &Time_Date_Year = 2 // Si estoy visualizando el dia del mes y e
{
IF &Modif_DDMM = 0 // Si NO estoy modificando dia del mes y el
{
&Modif_DDMM = 1 // Activamos control modificacion Mes
&MM_to_Modif = &Current_Month // Pasamos el mes a una vble para modificar
&DD_to_Modif = &Day_of_Month
&PARPADEO_U = 0
}
ELSE
{
IF &Modif_DDMM = 1 // Si estamos modificando el mes pasamos a
{
CALL &Chk_DiasDelMes // Calculamos cuantos dias tiene el mes que
&Modif_DDMM = 2 // Activamos control modificacion Día
&DD_to_Modif = &Day_of_Month // Pasamos el día a una vble para modificar
&Disp_Month_Min = DELAY &MM_to_Modif ,50
}
ELSE // Terminamos de modificar así que mandamos
{
CALL &Calc_DayofYear
&Day_of_Year = &DayofYear // Devolvemos el día al FS para que lo modi
&PARPADEO_U = 2
&Modif_DDMM = 0
CALL &Show_Display
&Show_Display = DELAY 1 ,50
}
}
}
IF &Time_Date_Year = 3 // Si estoy visualizando el dia del Hora y
{
IF &Modif_HHMM = 0 // Si NO estoy modificando Nada
{
&Modif_HHMM = 1 // Activamos control modificacion Minutos
&MI_to_Modif = &Zulu_Minute // Pasamos minutos
&HH_to_Modif = &Zulu_Hour // Pasamos Horas
&PARPADEO_U = 0
}
ELSE
{
IF &Modif_HHMM = 1 // Si estamos modificando Minutos pasamos a
{
&Modif_HHMM = 2 // Activamos control modificacion Día
&HH_to_Modif = &Zulu_Hour // Pasamos el día a una vble para modificar
&Disp_Month_Min = DELAY &MI_to_Modif ,50
}
ELSE // Terminamos de modificar así que mandamos
{
&Zulu_Hour = &HH_to_Modif
&Zulu_Minute = &MI_to_Modif
&PARPADEO_U = 2
&Modif_HHMM = 0
CALL &Show_Display
&Show_Display = DELAY 1 ,50
}
}
}
}
Var 0512, name SW_CHR, Link IOCARD_SW, Device 16, Input 0 // ----------------------------------> Botó
{
IF &SW_CHR = 1
{
IF &CHR_ET_ToDisp = -1
{
&CHR_ET_ToDisp = 0
&Aguja_Segundos = 0
&DECIMAL_C = 1
&DECIMAL_D = 1
}
ELSE
{
&DECIMAL_C = 1
CALL &Ver_CHR
IF &CHR_ET_ToDisp = 1 // Venimos de la Función ET
{
&CHR_ET_ToDisp = 0 // Acivamos control sobre el display para C
}
ELSE // Ya estabamos en la función CHR
{
&Estado_CHR = &Estado_CHR + 1 // Cambiamos el estado de CHR
}
IF &Estado_CHR > 3 // Comprobamos limite del estado del CHR
{
&Estado_CHR = 2 // 2 -> Inicia CHR o continúa 3 -> STOP Cro
}
IF &Estado_CHR <> 2
{
&PARPADEO_D = 2
}
}
}
}
Var 0513, name SW_ET, Link IOCARD_SW, Device 16, Input 6, Type P // ----------------------------------> Botó
{
IF &CHR_ET_ToDisp = -1
{
&CHR_ET_ToDisp = 0
&Aguja_Segundos = 0
&DECIMAL_C = 1
&DECIMAL_D = 1
}
ELSE
{
&DECIMAL_C = 0
CALL &Ver_ET
IF &CHR_ET_ToDisp = 0 // Venimos de la Función CHR
{
&CHR_ET_ToDisp = 1 // Acivamos control sobre el display para E
}
ELSE // Ya estabamos en la función ET
{
&Estado_ET = &Estado_ET + 1 // Cambiamos el estado de ET
}
IF &Estado_ET > 3 // Comprobamos limite del estado del ET
{
&Estado_ET = 2 // 2 -> Inicia ET o continúa 3 -> STOP ET
}
IF &Estado_ET <> 2
{
&PARPADEO_D = 2
}
}
}
Var 0514, Link IOCARD_SW, Device 16, Input 5, Type P // ----------------------------------> Botó
{
IF &SW_CHR = 1
{
&CHR_ET_ToDisp = -1
&Estado_CHR = 1
&Estado_ET = 1
&DECIMAL_C = 1
&Aguja_Segundos = 45
&Disp_DWN_Min = -999999
&Disp_DWN_Sec = -999999
&DECIMAL_D = 0
&CHR_Min = 0
&CHR_Sec = 0
&ET_Hr = 0
&ET_Min = 0
&ET_Sec = 0
&DECIMAL_C = 0
}
ELSE
{
IF &CHR_ET_ToDisp = -1
{
&CHR_ET_ToDisp = 0
&Aguja_Segundos = 0
&DECIMAL_C = 1
&DECIMAL_D = 1
}
ELSE
{
IF &CHR_ET_ToDisp = 0
{
&CHR_Min = 0 // Ponemos a cero los minutos del CHR
&CHR_Sec = 0 // Ponemos a cero los segundos del CHR
&Aguja_Segundos = 0
CALL &Ver_CHR
}
ELSE
{
&ET_Hr = 0 // Ponemos a cero la hora del ET
&ET_Min = 0 // Ponemos a cero los minutos del ET
&ET_Sec = 0 // Ponemos a cero los segundos del ET
CALL &Ver_ET
}
}
}
}
Var 0515, Link IOCARD_SW, Device 16, Input 3, Type P // ----------------------------------> Botó
{
IF &Modif_Year = 1 // Si estamos en activacion del control del
{
&Year_to_Modif = &Year_to_Modif + 1
&Disp_Year = &Year_to_Modif
}
IF &Modif_DDMM = 1 // Si estamos en activacion del control del
{
&MM_to_Modif = &MM_to_Modif + 1
IF &MM_to_Modif > 12
{
&MM_to_Modif = 1
}
&Disp_Month_Min = &MM_to_Modif
}
IF &Modif_DDMM = 2 // Si estamos en activacion del control del
{
&DD_to_Modif = &DD_to_Modif + 1
IF &DD_to_Modif > &Limit_DD_Mes
{
&DD_to_Modif = 1
}
&Disp_Day_Hour = &DD_to_Modif
}
IF &Modif_HHMM = 1 // Si estamos en activacion del control de
{
&MI_to_Modif = &MI_to_Modif + 1
IF &MI_to_Modif > 59
{
&MI_to_Modif = 0
}
&Disp_Month_Min = &MI_to_Modif
}
IF &Modif_HHMM = 2 // Si estamos en activacion del control de
{
&HH_to_Modif = &HH_to_Modif + 1
IF &HH_to_Modif > 23
{
&HH_to_Modif = 0
}
&Disp_Day_Hour = &HH_to_Modif
}
}
Var 0516, Link IOCARD_SW, Device 16, Input 4, Type P // ----------------------------------> Botó
{
IF &Modif_Year = 1 // Si estamos en activacion del control del
{
&Year_to_Modif = &Year_to_Modif - 1
&Disp_Year = &Year_to_Modif
}
IF &Modif_DDMM = 1 // Si estamos en activacion del control del
{
&MM_to_Modif = &MM_to_Modif - 1
IF &MM_to_Modif < 1
{
&MM_to_Modif = 12
}
&Disp_Month_Min = &MM_to_Modif
}
IF &Modif_DDMM = 2 // Si estamos en activacion del control del
{
&DD_to_Modif = &DD_to_Modif - 1
IF &DD_to_Modif < 1
{
&DD_to_Modif = &Limit_DD_Mes
}
&Disp_Day_Hour = &DD_to_Modif
}
IF &Modif_HHMM = 1 // Si estamos en activacion del control de
{
&MI_to_Modif = &MI_to_Modif - 1
IF &MI_to_Modif < 0
{
&MI_to_Modif = 59
}
&Disp_Month_Min = &MI_to_Modif
}
IF &Modif_HHMM = 2 // Si estamos en activacion del control de
{
&HH_to_Modif = &HH_to_Modif - 1
IF &HH_to_Modif < 0
{
&HH_to_Modif = 23
}
&Disp_Day_Hour = &HH_to_Modif
}
}
Var 0517, name Show_Display, Link SUBRUTINE // Muestra el año
{
&PARPADEO_U = 0
IF &Time_Date_Year = 1 // Visualizo el año
{
&Disp_Year = -999999 // Apagamos el año
&Disp_Year = &Zulu_Year_Set
}
IF &Time_Date_Year = 2 // Visualizo el dia y mes
{
&Disp_Day_Hour = &Day_of_Month
&Disp_Month_Min = &Current_Month
&PARPADEO_U = 2
}
IF &Time_Date_Year = 3 // Visualizo la hora Zulu y Minutos
{
&Disp_Day_Hour = &Zulu_Hour
&Disp_Month_Min = &Zulu_Minute
&PARPADEO_U = 1
}
IF &Time_Date_Year = 4 // Visualizo Minutos y Segundos
{
&Disp_Day_Hour = &Zulu_Minute
&Disp_Month_Min = &Clock_Seconds
&PARPADEO_U = 1
}
}
Var 0518, name Ver_CHR, Link SUBRUTINE // Pasa CHR al display
{
&Disp_DWN_Min = &CHR_Min // Mostramos los minutos del CHR en Display
&Disp_DWN_Sec = &CHR_Sec // Mostramos los minutos del CHR en Display
}
Var 0519, name Ver_ET, Link SUBRUTINE // Pasa ET al display
{
IF &ET_Hr = 0 // Durante la primera hora mostramos MM:SS
{
&Disp_DWN_Min = &ET_Min // Mostramos los minutos del ET en Display
&Disp_DWN_Sec = &ET_Sec // Mostramos los segundos del ET en Display
}
ELSE // Despues mostramos HH:MM
{
&Disp_DWN_Min = &ET_Hr // Mostramos la hora del ET en Display Down
&Disp_DWN_Sec = &ET_Min // Mostramos los minutos del ET en Display
}
}
Var 0520, name Chk_Bisiesto, Link SUBRUTINE // Comprueba si el año es bisisesto
{
L0 = MOD &Zulu_Year_Set ,4 // L0 acumula el resto de la división
IF L0 = 0
{
&Chk_Bisiesto = 1 // No Bisiesto = 0 Bisiesto = 1
}
ELSE
{
L0 = MOD &Zulu_Year_Set ,400
IF L0 = 0
{
L0 = MOD &Zulu_Year_Set ,100
IF L0 = 0
{
&Chk_Bisiesto = 1 // No Bisiesto = 0 Bisiesto = 1
}
ELSE
{
&Chk_Bisiesto = 0 // No Bisiesto = 0 Bisiesto = 1
}
}
ELSE
{
&Chk_Bisiesto = 0 // No Bisiesto = 0 Bisiesto = 1
}
}
}
Var 0521, name Chk_DiasDelMes, Link SUBRUTINE // Calcula cuantos días tiene el mes
{
IF &MM_to_Modif = 1 // ENE
{
&Limit_DD_Mes = 31
}
IF &MM_to_Modif = 2 // FEB
{
IF &Chk_Bisiesto = 0 // Si no es bisiesto
{
&Limit_DD_Mes = 28
}
ELSE // Si es bisiesto
{
&Limit_DD_Mes = 29
}
}
IF &MM_to_Modif = 3 // MAR
{
&Limit_DD_Mes = 31
}
IF &MM_to_Modif = 4 // ABR
{
&Limit_DD_Mes = 30
}
IF &MM_to_Modif = 5 // MAY
{
&Limit_DD_Mes = 31
}
IF &MM_to_Modif = 6 // JUN
{
&Limit_DD_Mes = 30
}
IF &MM_to_Modif = 7 // JUL
{
&Limit_DD_Mes = 31
}
IF &MM_to_Modif = 8 // AGO
{
&Limit_DD_Mes = 31
}
IF &MM_to_Modif = 9 // SEP
{
&Limit_DD_Mes = 30
}
IF &MM_to_Modif = 10 // OCT
{
&Limit_DD_Mes = 31
}
IF &MM_to_Modif = 11 // NOV
{
&Limit_DD_Mes = 30
}
IF &MM_to_Modif = 12 // DIC
{
&Limit_DD_Mes = 31
}
}
Var 0522, name Calc_DayofYear, Link SUBRUTINE // Calcula el dia del mes en relacion al añ
{
IF &MM_to_Modif = 1 // ENE 31
{
&DayofYear = &DD_to_Modif // Paso a Calc_DayofYear el día del mes de
}
IF &MM_to_Modif = 2 // FEB 28
{
&DayofYear = &DD_to_Modif + 31 // Le sumo a los días del mes los del mes a
}
IF &MM_to_Modif = 3 // MAR 31
{
&DayofYear = &DD_to_Modif + 59 // Le sumo a los días del mes los de los me
}
IF &MM_to_Modif = 4 // ABR 30
{
&DayofYear = &DD_to_Modif + 90 // Le sumo a los días del mes los de los me
}
IF &MM_to_Modif = 5 // MAY 31
{
&DayofYear = &DD_to_Modif + 120 // Le sumo a los días del mes los de los me
}
IF &MM_to_Modif = 6 // JUN 30
{
&DayofYear = &DD_to_Modif + 151 // Le sumo a los días del mes los de los me
}
IF &MM_to_Modif = 7 // JUL 31
{
&DayofYear = &DD_to_Modif + 181 // Le sumo a los días del mes los de los me
}
IF &MM_to_Modif = 8 // AGO 31
{
&DayofYear = &DD_to_Modif + 212 // Le sumo a los días del mes los de los me
}
IF &MM_to_Modif = 9 // SEP 30
{
&DayofYear = &DD_to_Modif + 243 // Le sumo a los días del mes los de los me
}
IF &MM_to_Modif = 10 // OCT 31
{
&DayofYear = &DD_to_Modif + 273 // Le sumo a los días del mes los de los me
}
IF &MM_to_Modif = 11 // NOV 30
{
&DayofYear = &DD_to_Modif + 304 // Le sumo a los días del mes los de los me
}
IF &MM_to_Modif = 12 // DIC 31
{
&DayofYear = &DD_to_Modif + 334 // Le sumo a los días del mes los de los me
}
IF &MM_to_Modif > 1
{
IF &Chk_Bisiesto = 1 // Si es bisiesto
{
&DayofYear = &DayofYear + 1
}
}
&Current_Month = &MM_to_Modif
&Day_of_Month = &DD_to_Modif
}
Var 0523, name BLINK, Link SUBRUTINE
{
IF &BLINK = 0
{
IF &PARPADEO_U = 0 // No parpadea y queda apagado
{
&DECIMAL_U = 0
}
IF &PARPADEO_U = 1 // Parpadea
{
&DECIMAL_U = 1
&BLINK = DELAY 1 ,50
}
IF &PARPADEO_U = 2 // No parpadea y queda encendido
{
&DECIMAL_U = 1
}
}
ELSE
{
IF &PARPADEO_U = 0
{
&DECIMAL_U = 0
}
IF &PARPADEO_U = 1
{
&DECIMAL_U = 0
}
IF &PARPADEO_U = 2
{
&DECIMAL_U = 1
}
}
}
Var 0524, name BLINK2, Link SUBRUTINE
{
IF &BLINK2 = 0
{
IF &PARPADEO_D = 0 // No parpadea y queda apagado
{
&DECIMAL_D = 0
}
IF &PARPADEO_D = 1 // Parpadea
{
&DECIMAL_D = 1
&BLINK2 = DELAY 1 ,50
}
IF &PARPADEO_D = 2 // No parpadea y queda encendido
{
&DECIMAL_D = 1
}
}
ELSE
{
IF &PARPADEO_D = 0
{
&DECIMAL_D = 0
}
IF &PARPADEO_D = 1
{
&DECIMAL_D = 0
}
IF &PARPADEO_D = 2
{
&DECIMAL_D = 1
}
}
}
Var 0525, name OVHTDETB, Link IOCARD_SW, Device 40, Input 45
{
IF &OVHTDETB = 1
{
&command = 524
}
ELSE
{
&command = 523
}
}
Var 0526, name RUDDER, Link FSUIPC_INOUT, Offset $0C04, Length 2, Type 1
{
CALL &RUD
}
Var 0527, name SERVORUDDER, Link USB_SERVOS, Device 19, Output 1, PosL 0, PosC 512, PosR 1023
Var 0528, name ENCODEURRUDDER, Link IOCARD_ENCODER, Device 40, Input 67, Aceleration 1, Type 2
{
L0 = &ENCODEURRUDDER * -500
&RUDDER = LIMIT -16000 ,16000 ,L0
}
Var 0529, name RUD, Link SUBRUTINE
{
IF &RUDDER = 0
{
L0 = &CENTRESERVO
}
ELSE
{
IF &RUDDER < 0
{
L0 = &CENTRESERVO - &LEFTSERVO
}
ELSE
{
L0 = &RIGHTSERVO - &CENTRESERVO
}
}
L0 = L0 * &RUDDER
L0 = L0 / 16384
L0 = L0 + &CENTRESERVO
&SERVORUDDER = L0
}
Var 0530, name LEFTSERVO, Value 465
Var 0531, name CENTRESERVO, Value 535
Var 0532, name RIGHTSERVO, Value 599
Var 0533, name OVHTDETALEFT, Link IOCARD_SW, Device 40, Input 46
{
IF &OVHTDETALEFT = 1
{
&command = 522
}
ELSE
{
&command = 523
}
}
Var 0534, name LEDENG1OVER, Link IOCARD_OUT, Device 40, Output 23
Var 0535, name APUBOTTLEDISH, Link IOCARD_OUT, Device 40, Output 24
Var 0536, name APUDETINOP, Link IOCARD_OUT, Device 40, Output 25
Var 0537, name LEDFAULT, Link IOCARD_OUT, Device 40, Output 26
Var 0538, name LEDWEEL, Link IOCARD_OUT, Device 40, Output 27
Var 0539, name LEDLEDENG2OVER, Link IOCARD_OUT, Device 40, Output 28
Var 0540, name LEDLBOTTLEDISH, Link IOCARD_OUT, Device 40, Output 29
Var 0541, name LEDRBOTTLEDISH, Link IOCARD_OUT, Device 40, Output 30
Var 0542, name LEDFEU1, Link IOCARD_OUT, Device 40, Output 31
Var 0543, name LEDFEUAPU, Link IOCARD_OUT, Device 40, Output 32
Var 0544, name LEDFEU2, Link IOCARD_OUT, Device 40, Output 33
Var 0545, name LEDGREENLEFT, Link IOCARD_OUT, Device 40, Output 34
Var 0546, name LEDGREENRIGHT, Link IOCARD_OUT, Device 40, Output 36
Var 0547, name LEDGREENAPU, Link IOCARD_OUT, Device 40, Output 35
Var 0548, name TESTFAULTINOP, Link IOCARD_SW, Device 40, Input 47
{
IF &TESTFAULTINOP = 1
{
&command = 532
}
}
Var 0549, name TESTOVERFIRE, Link IOCARD_SW, Device 40, Input 48
{
IF &TESTOVERFIRE = 1
{
&command = 531
}
}
Var 0550, name 9411, Link FSUIPC_INOUT, Offset $9411, Length 1
{
&APUDETINOP = TESTBIT &9411 ,3
&LEDFAULT = TESTBIT &9411 ,2
&LEDENG1OVER = TESTBIT &9411 ,0
&LEDWEEL = TESTBIT &9411 ,1
&APUBOTTLEDISH = TESTBIT &9411 ,4
&LEDLEDENG2OVER = TESTBIT &9411 ,5
&LEDLBOTTLEDISH = TESTBIT &9411 ,6
&LEDRBOTTLEDISH = TESTBIT &9411 ,7
&LEDFEU1 = TESTBIT &9411 ,0
&LEDFEU2 = TESTBIT &9411 ,5
&LEDFEUAPU = TESTBIT &9411 ,1
}
Var 0551, name OVHDETAD, Link IOCARD_SW, Device 40, Input 51
{
IF &OVHDETAD = 1
{
&command = 527
}
ELSE
{
&command = 528
}
}
Var 0552, name OVHDETBD, Link IOCARD_SW, Device 40, Input 50
{
IF &OVHDETBD = 1
{
&command = 529
}
ELSE
{
&command = 528
}
}
Var 0553, name TESTEXT1, Link IOCARD_SW, Device 40, Input 53
{
IF &TESTEXT1 = 1
{
&command = 542
&LEDGREENAPU = 1
&LEDGREENLEFT = 1
&LEDGREENRIGHT = 1
}
ELSE
{
&LEDGREENAPU = 0
&LEDGREENRIGHT = 0
&LEDGREENLEFT = 0
}
}
Var 0554, name TESTEXT2, Link IOCARD_SW, Device 40, Input 52
{
IF &TESTEXT2 = 1
{
&command = 543
&LEDGREENAPU = 1
&LEDGREENLEFT = 1
&LEDGREENRIGHT = 1
}
ELSE
{
&LEDGREENAPU = 0
&LEDGREENLEFT = 0
&LEDGREENRIGHT = 0
}
}
Var 0555, name FIRE1PULL, Link IOCARD_SW, Device 40, Input 55
{
IF &FIRE1PULL = 0
{
&command = 536
}
}
Var 0556, name FIRE1G, Link IOCARD_SW, Device 40, Input 54
{
IF &FIRE1G = 1
{
&command = 537
}
}
Var 0557, name FIRE1D, Link IOCARD_SW, Device 40, Input 56
{
IF &FIRE1D = 1
{
&command = 538
}
}
Var 0558, name FIREAPUPULL, Link IOCARD_SW, Device 40, Input 58
{
IF &FIREAPUPULL = 0
{
&command = 533
}
}
Var 0559, name FIREAPUD, Link IOCARD_SW, Device 40, Input 59
{
IF &FIREAPUD = 1
{
&command = 535
}
}
Var 0560, name FIREAPUG, Link IOCARD_SW, Device 40, Input 57
{
IF &FIREAPUD = 1
{
&command = 534
}
}
Var 0561, name FIREENG2PULL, Link IOCARD_SW, Device 40, Input 61
{
IF &FIREENG2PULL = 0
{
&command = 539
}
}
Var 0562, name FIREENG2D, Link IOCARD_SW, Device 40, Input 62
{
IF &FIREENG2D = 1
{
&command = 541
}
}
Var 0563, name FIREENG2G, Link IOCARD_SW, Device 40, Input 60
{
IF &FIREENG2G = 1
{
&command = 540
}
}
Var 0564, name BELLCUT, Link IOCARD_SW, Device 40, Input 49
{
IF &BELLCUT = 1
{
&command = 530
}
}
Var 0565, name 0ENC_COM1
{
IF &0ENC_COM1 = 1
{
&0IO_PT_COM1 = 1
&0IO_PT2_COM1 = 1
CALL &0SUB_D_COM1
&0ID2_COM1 = &0ACT_COM1
}
ELSE
{
&0IO_PT_COM1 = 0
&0IO_PT2_COM1 = 0
&0ID_COM1 = -999999
&0ID2_COM1 = -999999
}
}
Var 0566, name 0ENT_COM1
Var 0567, name 0DEC_COM1
Var 0568, name 0IE_DEC_COM1, Link IOCARD_ENCODER, Device 40, Input 0, Aceleration 1, Type 2 // #SC#Script_MIP_OVHFWD
{
IF &0ENC_COM1 = 1
{
L0 = &0IE_DEC_COM1 * 25
L1 = &0DEC_COM1 + L0
IF L1 < 0
{
L1 = 975
}
IF L1 > 975
{
L1 = 0
}
&0DEC_COM1 = L1
CALL &0SUB_D_COM1
}
}
Var 0569, name 0IE_ENT_COM1, Link IOCARD_ENCODER, Device 40, Input 2, Aceleration 1, Type 2 // #SC#Script_MIP_OVHFWD
{
IF &0ENC_COM1 = 1
{
L0 = &0IE_ENT_COM1 * -1
&0ENT_COM1 = ROTATE 118 ,136 ,L0
CALL &0SUB_D_COM1
}
}
Var 0570, name 0ID_COM1, Link IOCARD_DISPLAY, Device 40, Digit 6, Numbers 6 // #SC#Script_MIP_OVHFWD_OVH#
Var 0571, name 0SUB_D_COM1, Link SUBRUTINE
{
L0 = &0ENT_COM1 * 1000
&0ID_COM1 = L0 + &0DEC_COM1
}
Var 0572, name 0IO_PT_COM1, Link IOCARD_OUT, Device 40, Output 11 // #SC#Script_MIP_OVHFWD_OVH#
Var 0573, name 0II_SW_COM1, Link IOCARD_SW, Device 40, Input 5 // #SC#Script_MIP_OVHFWD_OVH#
{
IF &0II_SW_COM1 = 1
{
IF &0ENC_COM1 = 1
{
L0 = &0ENT_COM1 * 1000
L0 = L0 + &0DEC_COM1
L1 = DIV &0ACT_COM1 ,1000
L2 = MOD &0ACT_COM1 ,1000
&0ACT_COM1 = L0
&0ENT_COM1 = L1
&0DEC_COM1 = L2
CALL &0SUB_D_COM1
&0ID2_COM1 = &0ACT_COM1
}
}
}
Var 0574, name 0ACT_COM1
Var 0575, name 0ID2_COM1, Link IOCARD_DISPLAY, Device 40, Digit 0, Numbers 6 // #SC#Script_MIP_OVHFWD_OVH#
{
IF &0ID2_COM1 > 0
{
&0XP_COM1 = DIV &0ID2_COM1 ,10
}
}
Var 0576, name 0IO_PT2_COM1, Link IOCARD_OUT, Device 40, Output 11 // #SC#Script_MIP_OVHFWD_OVH#
Var 0577, name 0XP_COM1, Value 11800
{
L0 = &0XP_COM1 - 10000
&0FCOM1 = TOBCD L0
}
Var 0578, name 0ENC_COM2
{
IF &0ENC_COM2 = 1
{
&0IO_PT_COM2 = 1
&0IO_PT2_COM2 = 1
CALL &0SUB_D_COM2
&0ID2_COM2 = &0ACT_COM2
}
ELSE
{
&0IO_PT_COM2 = 0
&0IO_PT2_COM2 = 0
&0ID_COM2 = -999999
&0ID2_COM2 = -999999
}
}
Var 0579, name 0ENT_COM2
Var 0580, name 0DEC_COM2
Var 0581, name 0IE_DEC_COM2, Link IOCARD_ENCODER, Device 40, Input 72, Aceleration 1, Type 2 // #SC#Script_MIP_OVHFW
{
IF &0ENC_COM2 = 1
{
L0 = &0IE_DEC_COM2 * 25
L1 = &0DEC_COM2 + L0
IF L1 < 0
{
L1 = 975
}
IF L1 > 975
{
L1 = 0
}
&0DEC_COM2 = L1
CALL &0SUB_D_COM2
}
}
Var 0582, name 0IE_ENT_COM2, Link IOCARD_ENCODER, Device 40, Input 74, Aceleration 1, Type 2 // #SC#Script_MIP_OVHFW
{
IF &0ENC_COM2 = 1
{
L0 = &0IE_ENT_COM2 * -1
&0ENT_COM2 = ROTATE 118 ,136 ,L0
CALL &0SUB_D_COM2
}
}
Var 0583, name 0ID_COM2, Link IOCARD_DISPLAY, Device 40, Digit 70, Numbers 6 // #SC#Script_MIP_OVHFWD_OVH#
Var 0584, name 0SUB_D_COM2, Link SUBRUTINE
{
L0 = &0ENT_COM2 * 1000
&0ID_COM2 = L0 + &0DEC_COM2
}
Var 0585, name 0IO_PT_COM2, Link IOCARD_OUT, Device 40, Output 75 // #SC#Script_MIP_OVHFWD_OVH#
Var 0586, name 0II_SW_COM2, Link IOCARD_SW, Device 40, Input 77 // #SC#Script_MIP_OVHFWD_OVH#
{
IF &0II_SW_COM2 = 1
{
IF &0ENC_COM2 = 1
{
L0 = &0ENT_COM2 * 1000
L0 = L0 + &0DEC_COM2
L1 = DIV &0ACT_COM2 ,1000
L2 = MOD &0ACT_COM2 ,1000
&0ACT_COM2 = L0
&0ENT_COM2 = L1
&0DEC_COM2 = L2
CALL &0SUB_D_COM2
&0ID2_COM2 = &0ACT_COM2
}
}
}
Var 0587, name 0ACT_COM2
Var 0588, name 0ID2_COM2, Link IOCARD_DISPLAY, Device 40, Digit 64, Numbers 6 // #SC#Script_MIP_OVHFWD_OVH#
{
IF &0ID2_COM2 > 0
{
&0XP_COM2 = DIV &0ID2_COM2 ,10
}
}
Var 0589, name 0IO_PT2_COM2, Link IOCARD_OUT, Device 40, Output 75 // #SC#Script_MIP_OVHFWD_OVH#
Var 0590, name 0XP_COM2, Value 11800
{
L0 = &0XP_COM2 - 10000
&0FCOM2 = TOBCD L0
}
Var 0591, name 0ENC_NAV1
{
IF &0ENC_NAV1 = 1
{
&0IO_PT_NAV1 = 1
&0IO_PT2_NAV1 = 1
CALL &0SUB_D_NAV1
&0ID2_NAV1 = &0ACT_NAV1
}
ELSE
{
&0IO_PT_NAV1 = 0
&0IO_PT2_NAV1 = 0
&0ID_NAV1 = -999999
&0ID2_NAV1 = -999999
}
}
Var 0592, name 0ENT_NAV1
Var 0593, name 0DEC_NAV1
Var 0594, name 0IE_DEC_NAV1, Link IOCARD_ENCODER, Device 40, Input 9, Aceleration 1, Type 2 // #SC#Script_MIP_OVHFWD
{
IF &0ENC_NAV1 = 1
{
L0 = &0IE_DEC_NAV1 * 25
L1 = &0DEC_NAV1 + L0
IF L1 < 0
{
L1 = 975
}
IF L1 > 975
{
L1 = 0
}
&0DEC_NAV1 = L1
CALL &0SUB_D_NAV1
}
}
Var 0595, name 0IE_ENT_NAV1, Link IOCARD_ENCODER, Device 40, Input 11, Aceleration 1, Type 2 // #SC#Script_MIP_OVHFW
{
IF &0ENC_NAV1 = 1
{
L0 = &0IE_ENT_NAV1 * -1
&0ENT_NAV1 = ROTATE 108 ,117 ,L0
CALL &0SUB_D_NAV1
}
}
Var 0596, name 0ID_NAV1, Link IOCARD_DISPLAY, Device 40, Digit 21, Numbers 5 // #SC#Script_MIP_OVHFWD_OVH#
Var 0597, name 0SUB_D_NAV1, Link SUBRUTINE
{
L0 = &0ENT_NAV1 * 100
L1 = DIV &0DEC_NAV1 ,10
&0ID_NAV1 = L0 + L1
}
Var 0598, name 0IO_PT_NAV1, Link IOCARD_OUT, Device 40, Output 12 // #SC#Script_MIP_OVHFWD_OVH#
Var 0599, name 0II_SW_NAV1, Link IOCARD_SW, Device 40, Input 14 // #SC#Script_MIP_OVHFWD_OVH#
{
IF &0II_SW_NAV1 = 1
{
IF &0ENC_NAV1 = 1
{
L0 = &0ENT_NAV1 * 100
L1 = DIV &0DEC_NAV1 ,10
L0 = L0 + L1
L1 = DIV &0ACT_NAV1 ,100
L2 = MOD &0ACT_NAV1 ,100
&0ACT_NAV1 = L0
&0ENT_NAV1 = L1
L0 = MOD L2 ,10
L2 = L2 * 10
IF L0 > 0
{
L2 = L2 + 5
}
&0DEC_NAV1 = L2
CALL &0SUB_D_NAV1
&0ID2_NAV1 = &0ACT_NAV1
}
}
}
Var 0600, name 0ACT_NAV1
Var 0601, name 0ID2_NAV1, Link IOCARD_DISPLAY, Device 40, Digit 16, Numbers 5 // #SC#Script_MIP_OVHFWD_OVH#
{
IF &0ID2_NAV1 > 0
{
&0XP_NAV1 = &0ID2_NAV1
}
}
Var 0602, name 0IO_PT2_NAV1, Link IOCARD_OUT, Device 40, Output 12 // #SC#Script_MIP_OVHFWD_OVH#
Var 0603, name 0XP_NAV1, Value 10800
{
L0 = &0XP_NAV1 - 10000
&0FNAV1 = TOBCD L0
}
Var 0604, name 0ENC_NAV2
{
IF &0ENC_NAV2 = 1
{
&0IO_PT_NAV2 = 1
&0IO_PT2_NAV2 = 1
CALL &0SUB_D_NAV2
&0ID2_NAV2 = &0ACT_NAV2
}
ELSE
{
&0IO_PT_NAV2 = 0
&0IO_PT2_NAV2 = 0
&0ID_NAV2 = -999999
&0ID2_NAV2 = -999999
}
}
Var 0605, name 0ENT_NAV2
Var 0606, name 0DEC_NAV2
Var 0607, name 0IE_DEC_NAV2, Link IOCARD_ENCODER, Device 40, Input 81, Aceleration 1, Type 2 // #SC#Script_MIP_OVHFW
{
IF &0ENC_NAV2 = 1
{
L0 = &0IE_DEC_NAV2 * 25
L1 = &0DEC_NAV2 + L0
IF L1 < 0
{
L1 = 975
}
IF L1 > 975
{
L1 = 0
}
&0DEC_NAV2 = L1
CALL &0SUB_D_NAV2
}
}
Var 0608, name 0IE_ENT_NAV2, Link IOCARD_ENCODER, Device 40, Input 83, Aceleration 1, Type 2 // #SC#Script_MIP_OVHFW
{
IF &0ENC_NAV2 = 1
{
L0 = &0IE_ENT_NAV2 * -1
&0ENT_NAV2 = ROTATE 108 ,117 ,L0
CALL &0SUB_D_NAV2
}
}
Var 0609, name 0ID_NAV2, Link IOCARD_DISPLAY, Device 40, Digit 85, Numbers 5 // #SC#Script_MIP_OVHFWD_OVH#
Var 0610, name 0SUB_D_NAV2, Link SUBRUTINE
{
L0 = &0ENT_NAV2 * 100
L1 = DIV &0DEC_NAV2 ,10
&0ID_NAV2 = L0 + L1
}
Var 0611, name 0IO_PT_NAV2, Link IOCARD_OUT, Device 40, Output 76 // #SC#Script_MIP_OVHFWD_OVH#
Var 0612, name 0II_SW_NAV2, Link IOCARD_SW, Device 40, Input 86 // #SC#Script_MIP_OVHFWD_OVH#
{
IF &0II_SW_NAV2 = 1
{
IF &0ENC_NAV2 = 1
{
L0 = &0ENT_NAV2 * 100
L1 = DIV &0DEC_NAV2 ,10
L0 = L0 + L1
L1 = DIV &0ACT_NAV2 ,100
L2 = MOD &0ACT_NAV2 ,100
&0ACT_NAV2 = L0
&0ENT_NAV2 = L1
L0 = MOD L2 ,10
L2 = L2 * 10
IF L0 > 0
{
L2 = L2 + 5
}
&0DEC_NAV2 = L2
CALL &0SUB_D_NAV2
&0ID2_NAV2 = &0ACT_NAV2
}
}
}
Var 0613, name 0ACT_NAV2
Var 0614, name 0ID2_NAV2, Link IOCARD_DISPLAY, Device 40, Digit 80, Numbers 5 // #SC#Script_MIP_OVHFWD_OVH#
{
IF &0ID2_NAV2 > 0
{
&0XP_NAV2 = &0ID2_NAV2
}
}
Var 0615, name 0IO_PT2_NAV2, Link IOCARD_OUT, Device 40, Output 76 // #SC#Script_MIP_OVHFWD_OVH#
Var 0616, name 0XP_NAV2, Value 10800
{
L0 = &0XP_NAV2 - 10000
&0FNAV2 = TOBCD L0
}
Var 0617, name 0ENC_ADF1
{
IF &0ENC_ADF1 = 1
{
&0IO_PT_ADF1 = 1
CALL &0SUB_D_ADF1
&0ID2_ADF1 = &0ACT_ADF1
&0O_ADF1 = 1
}
ELSE
{
&0IO_PT_ADF1 = 0
&0ID_ADF1 = -999999
&0ID2_ADF1 = -999999
&0O_ADF1 = 0
}
}
Var 0618, name 0ENT_ADF1
Var 0619, name 0DEC_ADF1
Var 0620, name 0IE_DEC_ADF1, Link IOCARD_ENCODER, Device 40, Input 18, Aceleration 5, Type 2 // #SC#Script_MIP_OVHFW
{
IF &0ENC_ADF1 = 1
{
L0 = &0IE_DEC_ADF1 * 1
L1 = &0DEC_ADF1 + L0
IF L1 < 0
{
L1 = 99
}
IF L1 > 99
{
L1 = 0
}
&0DEC_ADF1 = L1
CALL &0SUB_D_ADF1
}
}
Var 0621, name 0IE_ENT_ADF1, Link IOCARD_ENCODER, Device 40, Input 20, Aceleration 4, Type 2 // #SC#Script_MIP_OVHFW
{
IF &0ENC_ADF1 = 1
{
L0 = &0IE_ENT_ADF1 * -1
L1 = &0ENT_ADF1 + L0
IF L1 < 10
{
L1 = 179
}
IF L1 > 179
{
L1 = 10
}
&0ENT_ADF1 = L1
CALL &0SUB_D_ADF1
}
}
Var 0622, name 0ID_ADF1, Link IOCARD_DISPLAY, Device 40, Digit 37, Numbers 5 // #SC#Script_MIP_OVHFWD_OVH#
Var 0623, name 0SUB_D_ADF1, Link SUBRUTINE
{
L0 = &0ENT_ADF1 * 100
L1 = &0DEC_ADF1
&0ID_ADF1 = L0 + L1
}
Var 0624, name 0II_SW_ADF1, Link IOCARD_SW, Device 40, Input 23 // #SC#Script_MIP_OVHFWD_OVH#
{
IF &0II_SW_ADF1 = 1
{
IF &0ENC_ADF1 = 1
{
L0 = &0ENT_ADF1 * 100
L1 = &0DEC_ADF1
L0 = L0 + L1
L1 = DIV &0ACT_ADF1 ,100
L2 = MOD &0ACT_ADF1 ,100
&0ACT_ADF1 = L0
&0ENT_ADF1 = L1
&0DEC_ADF1 = L2
CALL &0SUB_D_ADF1
&0ID2_ADF1 = &0ACT_ADF1
}
}
}
Var 0625, name 0ACT_ADF1
Var 0626, name 0ID2_ADF1, Link IOCARD_DISPLAY, Device 40, Digit 32, Numbers 5 // #SC#Script_MIP_OVHFWD_OVH#
{
IF &0ID2_ADF1 > 0
{
&0XP_ADF1 = &0ID2_ADF1
}
}
Var 0627, name 0IO_PT_ADF1, Link IOCARD_OUT, Device 40, Output 13 // #SC#Script_MIP_OVHFWD_OVH#
Var 0628, name 0O_ADF1
Var 0629, name 0XP_ADF1
{
L0 = DIV &0XP_ADF1 ,10000
L1 = L0 * 10000
L2 = &0XP_ADF1 - L1
L2 = DIV L2 ,10
&0FADF1A = TOBCD L2
L0 = L0 * 100
L1 = DIV &0XP_ADF1 ,10
L1 = L1 * 10
L2 = &0XP_ADF1 - L1
L2 = L2 + L0
&0FADF1B = TOBCD L2
}
Var 0630, name 0ANT_ADF1, Link IOCARD_SW, Device 40, Input 22 // #SC#Script_MIP_OVHFWD_OVH#
{
IF &0ANT_ADF1 = 1
{
&0DANTA_ADF1 = 0
&0DANTS_ADF1 = 0
&0DADFA_ADF1 = 1
&0DADFS_ADF1 = 1
}
ELSE
{
&0DANTA_ADF1 = 1
&0DANTS_ADF1 = 1
&0DADFA_ADF1 = 0
&0DADFS_ADF1 = 0
}
}
Var 0631, name 0DANTA_ADF1, Link IOCARD_DISPLAY, Device 40, Digit 43, Numbers 1 // #SC#Script_MIP_OVHFWD_OVH#
Var 0632, name 0DANTS_ADF1, Link IOCARD_DISPLAY, Device 40, Digit 44, Numbers 1 // #SC#Script_MIP_OVHFWD_OVH#
Var 0633, name 0DADFA_ADF1, Link IOCARD_DISPLAY, Device 40, Digit 42, Numbers 1 // #SC#Script_MIP_OVHFWD_OVH#
Var 0634, name 0DADFS_ADF1, Link IOCARD_DISPLAY, Device 40, Digit 45, Numbers 1 // #SC#Script_MIP_OVHFWD_OVH#
Var 0635, name 0S_ADF1TONE, Link IOCARD_SW, Device 40, Input 24 // #SC#Script_MIP_OVHFWD_OVH#
{
&0TONEADF1 = CHANGEBITN 0 ,&0S_ADF1TONE
}
Var 0636, name 0ENC_ADF2
{
IF &0ENC_ADF2 = 1
{
&0IO_PT_ADF2 = 1
CALL &0SUB_D_ADF2
&0ID2_ADF2 = &0ACT_ADF2
&0O_ADF2 = 1
}
ELSE
{
&0IO_PT_ADF2 = 0
&0ID_ADF2 = -999999
&0ID2_ADF2 = -999999
&0O_ADF2 = 0
}
}
Var 0637, name 0ENT_ADF2
Var 0638, name 0DEC_ADF2
Var 0639, name 0IE_DEC_ADF2, Link IOCARD_ENCODER, Device 40, Input 90, Aceleration 5, Type 2 // #SC#Script_MIP_OVHFW
{
IF &0ENC_ADF2 = 1
{
L0 = &0IE_DEC_ADF2 * 1
L1 = &0DEC_ADF2 + L0
IF L1 < 0
{
L1 = 99
}
IF L1 > 99
{
L1 = 0
}
&0DEC_ADF2 = L1
CALL &0SUB_D_ADF2
}
}
Var 0640, name 0IE_ENT_ADF2, Link IOCARD_ENCODER, Device 40, Input 92, Aceleration 4, Type 2 // #SC#Script_MIP_OVHFW
{
IF &0ENC_ADF2 = 1
{
L0 = &0IE_ENT_ADF2 * -1
L1 = &0ENT_ADF2 + L0
IF L1 < 10
{
L1 = 179
}
IF L1 > 179
{
L1 = 10
}
&0ENT_ADF2 = L1
CALL &0SUB_D_ADF2
}
}
Var 0641, name 0ID_ADF2, Link IOCARD_DISPLAY, Device 40, Digit 101, Numbers 5 // #SC#Script_MIP_OVHFWD_OVH#
Var 0642, name 0SUB_D_ADF2, Link SUBRUTINE
{
L0 = &0ENT_ADF2 * 100
L1 = &0DEC_ADF2
&0ID_ADF2 = L0 + L1
}
Var 0643, name 0II_SW_ADF2, Link IOCARD_SW, Device 40, Input 95 // #SC#Script_MIP_OVHFWD_OVH#
{
IF &0II_SW_ADF2 = 1
{
IF &0ENC_ADF2 = 1
{
L0 = &0ENT_ADF2 * 100
L1 = &0DEC_ADF2
L0 = L0 + L1
L1 = DIV &0ACT_ADF2 ,100
L2 = MOD &0ACT_ADF2 ,100
&0ACT_ADF2 = L0
&0ENT_ADF2 = L1
&0DEC_ADF2 = L2
CALL &0SUB_D_ADF2
&0ID2_ADF2 = &0ACT_ADF2
}
}
}
Var 0644, name 0ACT_ADF2
Var 0645, name 0ID2_ADF2, Link IOCARD_DISPLAY, Device 40, Digit 96, Numbers 5 // #SC#Script_MIP_OVHFWD_OVH#
{
IF &0ID2_ADF2 > 0
{
&0XP_ADF2 = &0ID2_ADF2
}
}
Var 0646, name 0IO_PT_ADF2, Link IOCARD_OUT, Device 40, Output 77 // #SC#Script_MIP_OVHFWD_OVH#
Var 0647, name 0O_ADF2
Var 0648, name 0XP_ADF2
{
L0 = DIV &0XP_ADF2 ,10000
L1 = L0 * 10000
L2 = &0XP_ADF2 - L1
L2 = DIV L2 ,10
&0FADF2A = TOBCD L2
L0 = L0 * 100
L1 = DIV &0XP_ADF2 ,10
L1 = L1 * 10
L2 = &0XP_ADF2 - L1
L2 = L2 + L0
&0FADF2B = TOBCD L2
}
Var 0649, name 0ANT_ADF2, Link IOCARD_SW, Device 40, Input 94 // #SC#Script_MIP_OVHFWD_OVH#
{
IF &0ANT_ADF2 = 1
{
&0DANTA_ADF2 = 0
&0DANTS_ADF2 = 0
&0DADFA_ADF2 = 1
&0DADFS_ADF2 = 1
}
ELSE
{
&0DANTA_ADF2 = 1
&0DANTS_ADF2 = 1
&0DADFA_ADF2 = 0
&0DADFS_ADF2 = 0
}
}
Var 0650, name 0DANTA_ADF2, Link IOCARD_DISPLAY, Device 40, Digit 107, Numbers 1 // #SC#Script_MIP_OVHFWD_OVH#
Var 0651, name 0DANTS_ADF2, Link IOCARD_DISPLAY, Device 40, Digit 108, Numbers 1 // #SC#Script_MIP_OVHFWD_OVH#
Var 0652, name 0DADFA_ADF2, Link IOCARD_DISPLAY, Device 40, Digit 106, Numbers 1 // #SC#Script_MIP_OVHFWD_OVH#
Var 0653, name 0DADFS_ADF2, Link IOCARD_DISPLAY, Device 40, Digit 109, Numbers 1 // #SC#Script_MIP_OVHFWD_OVH#
Var 0654, name 0S_ADF2TONE, Link IOCARD_SW, Device 40, Input 96 // #SC#Script_MIP_OVHFWD_OVH#
{
&0TONEADF2 = CHANGEBITN 0 ,&0S_ADF2TONE
}
Var 0655, name 0DIG_POS_STATU
{
&0FINATC = 0
IF &0DIG_POS_STATU = 5
{
&0TIMERUP = 0
CALL &0DIGITS2_SUB
}
ELSE
{
&0TIMERUP = 1
CALL &0DIGITS2_SUB
}
}
Var 0656, name 0DIG_1_SUB, Value 0
{
CALL &0DIGITS_SUB
}
Var 0657, name 0DIG_2_SUB, Value 0
{
CALL &0DIGITS_SUB
}
Var 0658, name 0DIG_3_SUB, Value 2
{
CALL &0DIGITS_SUB
}
Var 0659, name 0DIG_4_SUB, Value 1
{
CALL &0DIGITS_SUB
}
Var 0660, name 0D_ACTIVE, Link IOCARD_DISPLAY, Device 40, Digit 90, Numbers 4 // #SC#Script_MIP_OVHFWD_OVH#
Var 0661, name 0D_FAIL, Link IOCARD_DISPLAY, Device 40, Digit 94, Numbers 1 // #SC#Script_MIP_OVHFWD_OVH#
Var 0662, name 0DIS_ATC, Link IOCARD_OUT, Device 40, Output 99 // #SC#Script_MIP_OVHFWD_OVH#
Var 0663, name 0DIS_1, Link IOCARD_OUT, Device 40, Output 100 // #SC#Script_MIP_OVHFWD_OVH#
Var 0664, name 0DIS_2, Link IOCARD_OUT, Device 40, Output 101 // #SC#Script_MIP_OVHFWD_OVH#
Var 0665, name 0LED_FAIL, Link IOCARD_OUT, Device 40, Output 98 // #SC#Script_MIP_OVHFWD_OVH#
Var 0666, name 0E_LEFT, Link IOCARD_ENCODER, Device 40, Input 113, Aceleration 0, Type 2 // #SC#Script_MIP_OVHFWD_OV
{
L0 = &0E_LEFT * 1
&0DIG_POS_STATU = ROTATE 1 ,5 ,L0
}
Var 0667, name 0E_RIGHT, Link IOCARD_ENCODER, Device 40, Input 115, Aceleration 1, Type 2 // #SC#Script_MIP_OVHFWD_O
{
IF &0DIG_POS_STATU = 1
{
L0 = &0E_RIGHT * -1
&0DIG_1_SUB = ROTATE 0 ,9 ,L0
}
IF &0DIG_POS_STATU = 2
{
L0 = &0E_RIGHT * -1
&0DIG_2_SUB = ROTATE 0 ,9 ,L0
}
IF &0DIG_POS_STATU = 3
{
L0 = &0E_RIGHT * -1
&0DIG_3_SUB = ROTATE 0 ,9 ,L0
}
IF &0DIG_POS_STATU = 4
{
L0 = &0E_RIGHT * -1
&0DIG_4_SUB = ROTATE 0 ,7 ,L0
}
}
Var 0668, name 0I_IDENT, Link IOCARD_SW, Device 40, Input 78 // #SC#Script_MIP_OVHFWD_OVH#
{
IF &0I_IDENT = 1
{
&0IVAP_SB_IDENT = 1
}
}
Var 0669, name 0I_XPNDR, Link IOCARD_SW, Device 40, Input 79 // #SC#Script_MIP_OVHFWD_OVH#
{
IF &0STANDBY = 0
{
CALL &0CHECK_XP
}
}
Var 0670, name 0CHECK_XP, Link SUBRUTINE
{
IF &0I_XPNDR = 1
{
&0DIS_1 = 0
&0DIS_2 = 1
}
ELSE
{
&0DIS_1 = 1
&0DIS_2 = 0
}
}
Var 0671, name 0STANDBY, Link IOCARD_SW, Device 40, Input 139 // #SC#Script_MIP_OVHFWD_OVH#
{
IF &0STANDBY = 1
{
&command = 955
&LEDTCASFAIL = 1
}
ELSE
{
&LEDTCASFAIL = 0
}
}
Var 0672, name 0I_R_ALT, Link IOCARD_SW, Device 40, Input 140 // #SC#Script_MIP_OVHFWD_OVH#
{
IF &0I_R_ALT = 1
{
&command = 956
}
}
Var 0673, name 0I_R_XPN, Link IOCARD_SW, Device 40, Input 141 // #SC#Script_MIP_OVHFWD_OVH#
{
IF &0I_R_XPN = 1
{
&command = 957
}
}
Var 0674, name 0I_R_TAO, Link IOCARD_SW, Device 40, Input 142 // #SC#Script_MIP_OVHFWD_OVH#
{
IF &0I_R_TAO = 1
{
&command = 958
}
}
Var 0675, name 0I_R_TAR, Link IOCARD_SW, Device 40, Input 143 // #SC#Script_MIP_OVHFWD_OVH#
{
IF &0I_R_TAR = 1
{
&command = 959
}
}
Var 0676, name 0DIGITS_SUB, Link SUBRUTINE
{
L0 = &0DIG_4_SUB * 1000
L1 = &0DIG_3_SUB * 100
L0 = L0 + L1
L1 = &0DIG_2_SUB * 10
L0 = L0 + L1
L0 = L0 + &0DIG_1_SUB
&0D_ACTIVE = L0
&0FS_XPDER_ID = TOBCD &0D_ACTIVE
}
Var 0677, name 0TIMERATC, Link SUBRUTINE
{
IF &0TIMERUP = 0
{
&0LASTST = 0
}
ELSE
{
IF &0DIG_POS_STATU = 1
{
IF &0LASTST = 0
{
&0D_ATC1 = -999999
}
ELSE
{
&0D_ATC1 = &0DIG_1_SUB
}
}
IF &0DIG_POS_STATU = 2
{
IF &0LASTST = 0
{
&0D_ATC2 = -999999
}
ELSE
{
&0D_ATC2 = &0DIG_2_SUB
}
}
IF &0DIG_POS_STATU = 3
{
IF &0LASTST = 0
{
&0D_ATC3 = -999999
}
ELSE
{
&0D_ATC3 = &0DIG_3_SUB
}
}
IF &0DIG_POS_STATU = 4
{
IF &0LASTST = 0
{
&0D_ATC4 = -999999
}
ELSE
{
&0D_ATC4 = &0DIG_4_SUB
}
}
IF &0LASTST = 0
{
&0LASTST = 1
}
ELSE
{
&0LASTST = 0
}
IF &0FINATC = 50
{
&0DIG_POS_STATU = 5
}
ELSE
{
&0FINATC = &0FINATC + 1
}
}
IF &0LOCKCOUNT > 0
{
&0LOCKCOUNT = &0LOCKCOUNT - 1
&0STBAUTOL = CHANGEBITN 0 ,&0STBAUTOL
}
ELSE
{
&0STBAUTOL = 0
}
IF &0CONTACARGO > 0
{
&0CONTACARGO = &0CONTACARGO + 1
IF &0CONTACARGO > 5
{
&0CONTACARGO = 0
&0FCAFTL = 1
&0FCFWDL = 1
}
}
IF &0S_RDAILUL = 1
{
IF &0S_RDAILDL = 1
{
&0AILT_O = LIMIT -16000 ,16000 ,-500
}
}
IF &0S_RDAILUR = 1
{
IF &0S_RDAILDR = 1
{
&0AILT_O = LIMIT -16000 ,16000 ,500
}
}
}
Var 0678, name 0LASTST
Var 0679, name 0TIMERUP
Var 0680, name 0D_ATC1, Link IOCARD_DISPLAY, Device 40, Digit 90, Numbers 1 // #SC#Script_MIP_OVHFWD_OVH#
Var 0681, name 0D_ATC2, Link IOCARD_DISPLAY, Device 40, Digit 91, Numbers 1 // #SC#Script_MIP_OVHFWD_OVH#
Var 0682, name 0D_ATC3, Link IOCARD_DISPLAY, Device 40, Digit 92, Numbers 1 // #SC#Script_MIP_OVHFWD_OVH#
Var 0683, name 0D_ATC4, Link IOCARD_DISPLAY, Device 40, Digit 93, Numbers 1 // #SC#Script_MIP_OVHFWD_OVH#
Var 0684, name 0DIGITS2_SUB, Link SUBRUTINE
{
&0D_ATC1 = &0DIG_1_SUB
&0D_ATC2 = &0DIG_2_SUB
&0D_ATC3 = &0DIG_3_SUB
&0D_ATC4 = &0DIG_4_SUB
}
Var 0685, name 0FINATC, Value 0
Var 0686, name 0S_AU1VH1MI, Link IOCARD_SW, Device 40, Input 27 // #SC#Script_MIP_OVHFWD_OVH# AUDIO1 VHF1 M
{
IF &0S_AU1VH1MI = 1
{
&0AUDIO_O = SETBIT 7
&0AUDIO_O = CLEARBIT 6
}
}
Var 0687, name 0S_AU1VH2MI, Link IOCARD_SW, Device 40, Input 28 // #SC#Script_MIP_OVHFWD_OVH# AUDIO1 VHF2 M
{
IF &0S_AU1VH2MI = 1
{
&0AUDIO_O = CLEARBIT 7
&0AUDIO_O = SETBIT 6
}
}
Var 0688, name 0AU1VH1MI, Link IOCARD_OUT, Device 40, Output 14 // #SC#Script_MIP_OVHFWD_OVH# AUDIO1 VHF1 M
Var 0689, name 0AU1VH2MI, Link IOCARD_OUT, Device 40, Output 15 // #SC#Script_MIP_OVHFWD_OVH# AUDIO1 VHF2 M
Var 0690, name 0S_AU1VH1VO, Link IOCARD_SW, Device 40, Input 29 // #SC#Script_MIP_OVHFWD_OVH# AUDIO1 VHF1 V
{
IF &0S_AU1VH1VO = 1
{
L0 = TESTBIT &0AUDIO_I ,5
&0AUDIO_O = CHANGEBITN 5 ,L0
}
}
Var 0691, name 0S_AU1VH2VO, Link IOCARD_SW, Device 40, Input 30 // #SC#Script_MIP_OVHFWD_OVH# AUDIO1 VHF2 V
{
IF &0S_AU1VH2VO = 1
{
L0 = TESTBIT &0AUDIO_I ,5
&0AUDIO_O = CHANGEBITN 5 ,L0
}
}
Var 0692, name 0AU1VH1VO, Link IOCARD_OUT, Device 40, Output 16 // #SC#Script_MIP_OVHFWD_OVH# AUDIO1 VHF1 V
Var 0693, name 0AU1VH2VO, Link IOCARD_OUT, Device 40, Output 17 // #SC#Script_MIP_OVHFWD_OVH# AUDIO1 VHF2 V
Var 0694, name 0S_AU1NA1VO, Link IOCARD_SW, Device 40, Input 31 // #SC#Script_MIP_OVHFWD_OVH# AUDIO1 NAV1 V
{
IF &0S_AU1NA1VO = 1
{
L0 = TESTBIT &0AUDIO_I ,4
&0AUDIO_O = CHANGEBITN 4 ,L0
}
}
Var 0695, name 0S_AU1NA2VO, Link IOCARD_SW, Device 40, Input 32 // #SC#Script_MIP_OVHFWD_OVH# AUDIO1 NAV2 V
{
IF &0S_AU1NA2VO = 1
{
L0 = TESTBIT &0AUDIO_I ,3
&0AUDIO_O = CHANGEBITN 3 ,L0
}
}
Var 0696, name 0S_AU1AD1VO, Link IOCARD_SW, Device 40, Input 33 // #SC#Script_MIP_OVHFWD_OVH# AUDIO1 ADF1 V
{
IF &0S_AU1AD1VO = 1
{
L0 = TESTBIT &0AUDIO_I ,0
&0AUDIO_O = CHANGEBITN 0 ,L0
}
}
Var 0697, name 0S_AU1AD2VO, Link IOCARD_SW, Device 40, Input 34 // #SC#Script_MIP_OVHFWD_OVH# AUDIO1 ADF2 V
Var 0698, name 0S_AU1MKRVO, Link IOCARD_SW, Device 40, Input 35 // #SC#Script_MIP_OVHFWD_OVH# AUDIO1 MARKER
{
IF &0S_AU1MKRVO = 1
{
L0 = TESTBIT &0AUDIO_I ,2
&0AUDIO_O = CHANGEBITN 2 ,L0
}
}
Var 0699, name 0AU1NA1VO, Link IOCARD_OUT, Device 40, Output 18 // #SC#Script_MIP_OVHFWD_OVH# AUDIO1 NAV1 V
Var 0700, name 0AU1NA2VO, Link IOCARD_OUT, Device 40, Output 19 // #SC#Script_MIP_OVHFWD_OVH# AUDIO1 NAV2 V
Var 0701, name 0AU1AD1VO, Link IOCARD_OUT, Device 40, Output 20 // #SC#Script_MIP_OVHFWD_OVH# AUDIO1 ADF1 V
Var 0702, name 0AU1AD2VO, Link IOCARD_OUT, Device 40, Output 21 // #SC#Script_MIP_OVHFWD_OVH# AUDIO1 ADF2 V
Var 0703, name 0AU1MKRVO, Link IOCARD_OUT, Device 40, Output 22 // #SC#Script_MIP_OVHFWD_OVH# AUDIO1 MARKER
Var 0704, name 0S_AU2VH1MI, Link IOCARD_SW, Device 40, Input 99 // #SC#Script_MIP_OVHFWD_OVH# AUDIO1 VHF1 M
{
IF &0S_AU2VH1MI = 1
{
&0AUDIO_O = SETBIT 7
&0AUDIO_O = CLEARBIT 6
}
}
Var 0705, name 0S_AU2VH2MI, Link IOCARD_SW, Device 40, Input 100 // #SC#Script_MIP_OVHFWD_OVH# AUDIO1 VHF2 M
{
IF &0S_AU2VH2MI = 1
{
&0AUDIO_O = CLEARBIT 7
&0AUDIO_O = SETBIT 6
}
}
Var 0706, name 0AU2VH1MI, Link IOCARD_OUT, Device 40, Output 78 // #SC#Script_MIP_OVHFWD_OVH# AUDIO1 VHF1 M
Var 0707, name 0AU2VH2MI, Link IOCARD_OUT, Device 40, Output 79 // #SC#Script_MIP_OVHFWD_OVH# AUDIO1 VHF2 M
Var 0708, name 0S_AU2VH1VO, Link IOCARD_SW, Device 40, Input 101 // #SC#Script_MIP_OVHFWD_OVH# AUDIO1 VHF1 V
{
IF &0S_AU2VH1VO = 1
{
L0 = TESTBIT &0AUDIO_I ,5
&0AUDIO_O = CHANGEBITN 5 ,L0
}
}
Var 0709, name 0S_AU2VH2VO, Link IOCARD_SW, Device 40, Input 102 // #SC#Script_MIP_OVHFWD_OVH# AUDIO1 VHF2 V
{
IF &0S_AU2VH2VO = 1
{
L0 = TESTBIT &0AUDIO_I ,5
&0AUDIO_O = CHANGEBITN 5 ,L0
}
}
Var 0710, name 0AU2VH1VO, Link IOCARD_OUT, Device 40, Output 80 // #SC#Script_MIP_OVHFWD_OVH# AUDIO1 VHF1 V
Var 0711, name 0AU2VH2VO, Link IOCARD_OUT, Device 40, Output 81 // #SC#Script_MIP_OVHFWD_OVH# AUDIO1 VHF2 V
Var 0712, name 0S_AU2NA1VO, Link IOCARD_SW, Device 40, Input 103 // #SC#Script_MIP_OVHFWD_OVH# AUDIO1 NAV1 V
{
IF &0S_AU2NA1VO = 1
{
L0 = TESTBIT &0AUDIO_I ,4
&0AUDIO_O = CHANGEBITN 4 ,L0
}
}
Var 0713, name 0S_AU2NA2VO, Link IOCARD_SW, Device 40, Input 104 // #SC#Script_MIP_OVHFWD_OVH# AUDIO1 NAV2 V
{
IF &0S_AU2NA2VO = 1
{
L0 = TESTBIT &0AUDIO_I ,3
&0AUDIO_O = CHANGEBITN 3 ,L0
}
}
Var 0714, name 0S_AU2AD1VO, Link IOCARD_SW, Device 40, Input 105 // #SC#Script_MIP_OVHFWD_OVH# AUDIO1 ADF1 V
{
IF &0S_AU2AD1VO = 1
{
L0 = TESTBIT &0AUDIO_I ,0
&0AUDIO_O = CHANGEBITN 0 ,L0
}
}
Var 0715, name 0S_AU2AD2VO, Link IOCARD_SW, Device 40, Input 106 // #SC#Script_MIP_OVHFWD_OVH# AUDIO1 ADF2 V
Var 0716, name 0S_AU2MKRVO, Link IOCARD_SW, Device 40, Input 107 // #SC#Script_MIP_OVHFWD_OVH# AUDIO1 MARKER
{
IF &0S_AU2MKRVO = 1
{
L0 = TESTBIT &0AUDIO_I ,2
&0AUDIO_O = CHANGEBITN 2 ,L0
}
}
Var 0717, name 0AU2NA1VO, Link IOCARD_OUT, Device 40, Output 82 // #SC#Script_MIP_OVHFWD_OVH# AUDIO1 NAV1 V
Var 0718, name 0AU2NA2VO, Link IOCARD_OUT, Device 40, Output 83 // #SC#Script_MIP_OVHFWD_OVH# AUDIO1 NAV2 V
Var 0719, name 0AU2AD1VO, Link IOCARD_OUT, Device 40, Output 84 // #SC#Script_MIP_OVHFWD_OVH# AUDIO1 ADF1 V
Var 0720, name 0AU2AD2VO, Link IOCARD_OUT, Device 40, Output 85 // #SC#Script_MIP_OVHFWD_OVH# AUDIO1 ADF2 V
Var 0721, name 0AU2MKRVO, Link IOCARD_OUT, Device 40, Output 86 // #SC#Script_MIP_OVHFWD_OVH# AUDIO1 MARKER
Var 0722, name 0S_STBOVRD, Link IOCARD_SW, Device 40, Input 135 // #SC#Script_MIP_OVHFWD_OVH# STAB TRIM OVE
{
IF &0S_STBOVRD = 1
{
&0STABTRIM_O = SETBIT 13
}
ELSE
{
&0STABTRIM_O = CLEARBIT 13
}
}
Var 0723, name 0R_STBDAUTO, Link IOCARD_SW, Device 40, Input 137 // #SC#Script_MIP_OVHFWD_OVH# STAB TRIM DOO
{
IF &0R_STBDAUTO = 1
{
&0LOCKCOUNT = 15
}
}
Var 0724, name 0LOCKCOUNT, Value 0
Var 0725, name 0STBAUTOL, Link IOCARD_OUT, Device 40, Output 97 // #SC#Script_MIP_OVHFWD_OVH# STAB TRIM AUT
Var 0726, name 0R_STBDUNLK, Link IOCARD_SW, Device 40, Input 136 // #SC#Script_MIP_OVHFWD_OVH# STAB TRIM DOO
{
IF &0R_STBDUNLK = 1
{
&0LOCKCOUNT = 0
}
}
Var 0727, name 0R_STBDDENY, Link IOCARD_SW, Device 40, Input 138 // #SC#Script_MIP_OVHFWD_OVH# STAB TRIM DOO
{
IF &0R_STBDDENY = 1
{
&0LOCKCOUNT = 0
}
}
Var 0728, name 0TESTRUN, Value 0
Var 0729, name 0CONTACARGO, Value 0
Var 0730, name 0FCDISCL, Link IOCARD_OUT, Device 40, Output 87 // #SC#Script_MIP_OVHFWD_OVH# FIRE CARGO DI
Var 0731, name 0FCDISCBARL, Link IOCARD_OUT, Device 40, Output 88 // #SC#Script_MIP_OVHFWD_OVH# FIRE CARGO DI
Var 0732, name 0FCAFTL, Link IOCARD_OUT, Device 40, Output 89 // #SC#Script_MIP_OVHFWD_OVH# FIRE CARGO AF
Var 0733, name 0FCFWDL, Link IOCARD_OUT, Device 40, Output 91 // #SC#Script_MIP_OVHFWD_OVH# FIRE CARGO FW
Var 0734, name 0FCEXTFWDL, Link IOCARD_OUT, Device 40, Output 94 // #SC#Script_MIP_OVHFWD_OVH# FIRE CARGO EX
Var 0735, name 0FCEXTAFTL, Link IOCARD_OUT, Device 40, Output 95 // #SC#Script_MIP_OVHFWD_OVH# FIRE CARGO EX
Var 0736, name 0S_EXT1TEST, Link IOCARD_SW, Device 40, Input 53 // #SC#Script_MIP_OVHFWD_OVH# FIRE ENGINE E
{
IF &0S_EXT1TEST = 1
{
&0FIREG1L = 1
&0FIREGAL = 1
&0FIREG2L = 1
}
ELSE
{
IF &0S_EXT2TEST = 0
{
&0FIREG1L = 0
&0FIREGAL = 0
&0FIREG2L = 0
}
}
}
Var 0737, name 0S_EXT2TEST, Link IOCARD_SW, Device 40, Input 52 // #SC#Script_MIP_OVHFWD_OVH# FIRE ENGINE E
{
IF &0S_EXT2TEST = 1
{
&0FIREG1L = 1
&0FIREGAL = 1
&0FIREG2L = 1
}
ELSE
{
IF &0S_EXT1TEST = 0
{
&0FIREG1L = 0
&0FIREGAL = 0
&0FIREG2L = 0
}
}
}
Var 0738, name 0ENG1_OVHL, Link IOCARD_OUT, Device 40, Output 23 // #SC#Script_MIP_OVHFWD_OVH# ENGINE 1 OVER
Var 0739, name 0APUDETINOPL, Link IOCARD_OUT, Device 40, Output 25 // #SC#Script_MIP_OVHFWD_OVH# APU DET INOPE
Var 0740, name 0FIREFAULTL, Link IOCARD_OUT, Device 40, Output 26 // #SC#Script_MIP_OVHFWD_OVH# FIRE ENGINES
Var 0741, name 0FIREWHELLL, Link IOCARD_OUT, Device 40, Output 27 // #SC#Script_MIP_OVHFWD_OVH# FIRE WHELL WE
Var 0742, name 0ENG2_OVHL, Link IOCARD_OUT, Device 40, Output 28 // #SC#Script_MIP_OVHFWD_OVH# ENGINE 2 OVER
Var 0743, name 0RBOTDISL, Link IOCARD_OUT, Device 40, Output 30 // #SC#Script_MIP_OVHFWD_OVH# ENGINE 2 BOTT
Var 0744, name 0FIRE1L, Link IOCARD_OUT, Device 40, Output 31 // #SC#Script_MIP_OVHFWD_OVH# ENGINE 1 FIRE
Var 0745, name 0FIREAL, Link IOCARD_OUT, Device 40, Output 32 // #SC#Script_MIP_OVHFWD_OVH# APU FIRE HAND
Var 0746, name 0FIRE2L, Link IOCARD_OUT, Device 40, Output 33 // #SC#Script_MIP_OVHFWD_OVH# ENGINE 2 FIRE
Var 0747, name 0FIREG1L, Link IOCARD_OUT, Device 40, Output 34 // #SC#Script_MIP_OVHFWD_OVH# FIRE ENGINE 1
Var 0748, name 0FIREGAL, Link IOCARD_OUT, Device 40, Output 35 // #SC#Script_MIP_OVHFWD_OVH# FIRE APU GREE
Var 0749, name 0FIREG2L, Link IOCARD_OUT, Device 40, Output 36 // #SC#Script_MIP_OVHFWD_OVH# FIRE ENGINE 2
Var 0750, name 0R_RADTST, Link IOCARD_SW, Device 40, Input 69 // #SC#Script_MIP_OVHFWD_OVH# RADAR WX-TEST
{
IF &0R_RADTST = 1
{
&0RADAR_PM = 381
}
}
Var 0751, name 0R_RADMAP, Link IOCARD_SW, Device 40, Input 71 // #SC#Script_MIP_OVHFWD_OVH# RADAR WX-TURB
{
IF &0R_RADMAP = 1
{
&0RADAR_PM = 380
}
}
Var 0752, name 0S_RDAILUL, Link IOCARD_SW, Device 40, Input 63 // #SC#Script_MIP_OVHFWD_OVH# RUDDER TRIM A
Var 0753, name 0S_RDAILUR, Link IOCARD_SW, Device 40, Input 64 // #SC#Script_MIP_OVHFWD_OVH# RUDDER TRIM A
Var 0754, name 0S_RDAILDL, Link IOCARD_SW, Device 40, Input 65 // #SC#Script_MIP_OVHFWD_OVH# RUDDER TRIM A
Var 0755, name 0S_RDAILDR, Link IOCARD_SW, Device 40, Input 66 // #SC#Script_MIP_OVHFWD_OVH# RUDDER TRIM A
Var 0756, name 0FCOM1, Link FSUIPC_OUT, Offset $034E, Length 2 // COM1 ACTIVE
Var 0757, name 0FCOM2, Link FSUIPC_OUT, Offset $3118, Length 2 // COM2 ACTIVE
Var 0758, name 0FNAV1, Link FSUIPC_OUT, Offset $0350, Length 2 // NAV1 ACTIVE
Var 0759, name 0FNAV2, Link FSUIPC_OUT, Offset $0352, Length 2 // NAV2 ACTIVE
Var 0760, name 0FADF1A, Link FSUIPC_OUT, Offset $034C, Length 2 // ADF1 ACTIVE PART1
Var 0761, name 0FADF1B, Link FSUIPC_OUT, Offset $0356, Length 2 // ADF1 ACTIVE PART2
Var 0762, name 0FADF2A, Link FSUIPC_OUT, Offset $02D4, Length 2 // ADF2 ACTIVE PART1
Var 0763, name 0FADF2B, Link FSUIPC_OUT, Offset $02D6, Length 2 // ADF2 ACTIVE PART2
Var 0764, name 0TONEADF1, Link FSUIPC_OUT, Offset $3107, Length 2 // ADF1 TONE
Var 0765, name 0TONEADF2, Link FSUIPC_OUT, Offset $02FB, Length 2 // ADF2 TONE
Var 0766, name 0FS_XPDER_ID, Link FSUIPC_INOUT, Offset $0354, Length 2
Var 0767, name 0IVAP_SB_MODE, Link FSUIPC_INOUT, Offset $7B91, Length 1
Var 0768, name 0IVAP_SB_IDENT, Link FSUIPC_INOUT, Offset $7B93, Length 1
Var 0769, name 0XPDER_FAIL, Link FSUIPC_INOUT, Offset $0B6F, Length 1
{
IF &0XPDER_FAIL = 1
{
&0D_FAIL = -999997
&0LED_FAIL = 1
}
ELSE
{
&0D_FAIL = -999999
&0LED_FAIL = 0
}
}
Var 0770, name 0TCAS_MAGENTA, Link FSUIPC_INOUT, Offset $04F4, Length 2
Var 0771, name 0AUDIO_O, Link FSUIPC_INOUT, Offset $3122, Length 1 // RADIO AUDIO BITS
Var 0772, name 0AUDIO_I, Link FSUIPC_IN, Offset $3122, Length 1 // RADIO AUDIO BITS
{
&0AU1VH1MI = TESTBIT &0AUDIO_I ,7
&0AU1VH2MI = TESTBIT &0AUDIO_I ,6
&0AU1VH1VO = TESTBIT &0AUDIO_I ,5
&0AU1VH2VO = TESTBIT &0AUDIO_I ,5
&0AU1NA1VO = TESTBIT &0AUDIO_I ,4
&0AU1NA2VO = TESTBIT &0AUDIO_I ,3
&0AU1AD1VO = TESTBIT &0AUDIO_I ,0
&0AU1MKRVO = TESTBIT &0AUDIO_I ,2
&0AU2VH1MI = TESTBIT &0AUDIO_I ,7
&0AU2VH2MI = TESTBIT &0AUDIO_I ,6
&0AU2VH1VO = TESTBIT &0AUDIO_I ,5
&0AU2VH2VO = TESTBIT &0AUDIO_I ,5
&0AU2NA1VO = TESTBIT &0AUDIO_I ,4
&0AU2NA2VO = TESTBIT &0AUDIO_I ,3
&0AU2AD1VO = TESTBIT &0AUDIO_I ,0
&0AU2MKRVO = TESTBIT &0AUDIO_I ,2
}
Var 0773, name 0STABTRIM_O, Link FSUIPC_INOUT, Offset $050A, Length 2 // STAB TRIM OVERRIDE
Var 0774, name 0RADAR_PM, Link FSUIPC_INOUT, Offset $04F4, Length 2 // PMAGENTA COMMANDS
Var 0775, name 0AILT_O, Link FSUIPC_INOUT, Offset $0C02, Length 2, Type 1 // AILERONS TRIM
Var 0776, name RTpush, Link IOCARD_SW, Device 40, Input 38
{
IF &RTpush = 1
{
&JOY = SETBIT 1
}
ELSE
{
&JOY = CLEARBIT 1
}
}
Var 0777, name JOY, Link FSUIPC_INOUT, Offset $3340, Length 4
Var 0778, name TRIMAILD, Link IOCARD_SW, Device 40, Input 63
{
IF &TRIMAILD = 1
{
&command = 602
}
}
Var 0779, name TRIMAILG, Link IOCARD_SW, Device 40, Input 64
{
IF &TRIMAILG = 1
{
&command = 603
}
}
Var 0780, name Z1A, Link IOCARD_SW, Device 40, Input 123
{
IF &Z1A = 1
{
&command = 546
}
}
Var 0781, name Z1norm, Link IOCARD_SW, Device 40, Input 122
{
IF &Z1norm = 1
{
&command = 547
}
}
Var 0782, name Z1B, Link IOCARD_SW, Device 40, Input 121
{
IF &Z1B = 1
{
&command = 548
}
}
Var 0783, name Z2A, Link IOCARD_SW, Device 40, Input 120
{
IF &Z2A = 1
{
&command = 551
}
}
Var 0784, name Z2norm, Link IOCARD_SW, Device 40, Input 119
{
IF &Z2norm = 1
{
&command = 552
}
}
Var 0785, name Z2B, Link IOCARD_SW, Device 40, Input 118
{
IF &Z2B = 1
{
&command = 553
}
}
Var 0786, name TESTCARGO, Link IOCARD_SW, Device 40, Input 117
{
IF &TESTCARGO = 1
{
&command = 554
&0FCEXTAFTL = 1
&0FCEXTFWDL = 1
}
ELSE
{
&0FCEXTAFTL = DELAY 0 ,200
&0FCEXTFWDL = DELAY 0 ,200
}
}
Var 0787, name 9474, Link FSUIPC_INOUT, Offset $9474, Length 1
{
IF &9474 = 1
{
&0FCAFTL = 1
}
ELSE
{
&0FCAFTL = 0
}
}
Var 0788, name 9473, Link FSUIPC_INOUT, Offset $9473, Length 1
{
IF &9473 = 1
{
&0FCFWDL = 1
}
ELSE
{
&0FCFWDL = 0
}
}
Var 0789, name 9475, Link FSUIPC_INOUT, Offset $9475, Length 1
{
IF &9475 = 2
{
&0FCDISCL = 1
}
ELSE
{
&0FCDISCL = 0
}
IF &9475 = 5
{
&0FCDISCBARL = 1
}
ELSE
{
&0FCDISCBARL = 0
}
IF &9475 = 4
{
&0FCDISCBARL = 1
}
ELSE
{
&0FCDISCBARL = 0
}
}
Var 0790, name 9412, Link FSUIPC_INOUT, Offset $9412, Length 1
{
&LEDDETECTFAULT = TESTBIT &9412 ,2
}
Var 0791, name LEDDETECTFAULT, Link IOCARD_OUT, Device 40, Output 93
Var 0792, name PUSHFWDCARGO, Link IOCARD_SW, Device 40, Input 128, Type P
{
IF &PUSHFWDCARGO = 1
{
&command = 556
&LEDFWDCARGO = 1
}
ELSE
{
&command = 557
&LEDFWDCARGO = 0
}
}
Var 0793, name LEDFWDCARGO, Link IOCARD_OUT, Device 40, Output 92
Var 0794, name PUSHAFTCARGO, Link IOCARD_SW, Device 40, Input 127, Type P
{
IF &PUSHAFTCARGO = 1
{
&command = 559
&LEDAFTCARGO = 1
}
ELSE
{
&command = 560
&LEDAFTCARGO = 0
}
}
Var 0795, name LEDAFTCARGO, Link IOCARD_OUT, Device 40, Output 90
Var 0796, name PUSHDISCHCARGO, Link IOCARD_SW, Device 40, Input 126, Type P
{
IF &PUSHDISCHCARGO = 1
{
&command = 562
}
ELSE
{
&command = 563
}
}
Var 0797, name LEDTCASFAIL, Link IOCARD_OUT, Device 40, Output 98
Var 0798, name S_BARO2, Link IOCARD_SW, Device 6, Input 22
{
IF &S_BARO2 = 0
{
IF &BARO_SW_S2 = 0
{
&command = 675
}
}
ELSE
{
&BARO_SW_S2 = 0
}
}
Var 0799, name S_MIN2, Link IOCARD_SW, Device 6, Input 25
{
IF &S_MIN2 = 0
{
IF &MIN_SW_S2 = 0
{
&command = 669
}
}
ELSE
{
&MIN_SW_S2 = 0
}
}
Var 0800, name BARO_SW_S2, Value 0
Var 0801, name E_BARO2, Link IOCARD_ENCODER, Device 6, Input 20, Aceleration 1, Type 2
{
IF &S_BARO2 = 0
{
IF &E_BARO2 > 0
{
&command = 673 // BARO DEC
&BARO_SW_S2 = 1
}
ELSE
{
&command = 674 // BARO INC
&BARO_SW_S2 = 1
}
}
ELSE
{
IF &E_BARO2 > 0
{
&command = 671 // INHG
&BARO_SW_S2 = 1
}
ELSE
{
&command = 672 // HP
&BARO_SW_S2 = 1
}
}
}
Var 0802, name MIN_SW_S2, Value 0
Var 0803, name E_MIN2, Link IOCARD_ENCODER, Device 6, Input 23, Aceleration 6, Type 2
{
IF &S_MIN2 = 0
{
IF &E_MIN2 > 0
{
&command = 667 // MIN DEC
&MIN_SW_S2 = 1
}
ELSE
{
&command = 668 // MIN INC
&MIN_SW_S2 = 1
}
}
ELSE
{
IF &E_MIN2 > 0
{
&command = 665 // RADIO
&MIN_SW_S2 = 1
}
ELSE
{
&command = 666 // BARO
&MIN_SW_S2 = 1
}
}
}
Var 0804, name S_52, Link IOCARD_SW, Device 6, Input 0
{
IF &S_52 = 1
{
&command = 696
}
}
Var 0805, name S_102, Link IOCARD_SW, Device 6, Input 1
{
IF &S_102 = 1
{
&command = 697
}
}
Var 0806, name S_202, Link IOCARD_SW, Device 6, Input 2
{
IF &S_202 = 1
{
&command = 698
}
}
Var 0807, name S_402, Link IOCARD_SW, Device 6, Input 3
{
IF &S_402 = 1
{
&command = 699
}
}
Var 0808, name S_802, Link IOCARD_SW, Device 6, Input 4
{
IF &S_802 = 1
{
&command = 700
}
}
Var 0809, name S_1602, Link IOCARD_SW, Device 6, Input 5
{
IF &S_1602 = 1
{
&command = 701
}
}
Var 0810, name S_3202, Link IOCARD_SW, Device 6, Input 6
{
IF &S_3202 = 1
{
&command = 702
}
}
Var 0811, name S_6402, Link IOCARD_SW, Device 6, Input 7
{
IF &S_6402 = 1
{
&command = 703
}
}
Var 0812, name S_APPR2, Link IOCARD_SW, Device 6, Input 9
{
IF &S_APPR2 = 1
{
&command = 689
}
}
Var 0813, name S_EVOR2, Link IOCARD_SW, Device 6, Input 10
{
IF &S_EVOR2 = 1
{
&command = 690
}
}
Var 0814, name S_MAP2, Link IOCARD_SW, Device 6, Input 11
{
IF &S_MAP2 = 1
{
&command = 691
}
}
Var 0815, name S_PLN2, Link IOCARD_SW, Device 6, Input 12
{
IF &S_PLN2 = 1
{
&command = 692
}
}
Var 0816, name S_WXR2, Link IOCARD_SW, Device 6, Input 27
{
IF &S_WXR2 = 1
{
&command = 705 // WXR
}
}
Var 0817, name S_STA2, Link IOCARD_SW, Device 6, Input 28
{
IF &S_STA2 = 1
{
&command = 706 // STA
}
}
Var 0818, name S_WPT2, Link IOCARD_SW, Device 6, Input 29
{
IF &S_WPT2 = 1
{
&command = 707 // WPT
}
}
Var 0819, name S_APT2, Link IOCARD_SW, Device 6, Input 30
{
IF &S_APT2 = 1
{
&command = 708 // APT
}
}
Var 0820, name S_DATA2, Link IOCARD_SW, Device 6, Input 31
{
IF &S_DATA2 = 1
{
&command = 709 // DATA
}
}
Var 0821, name S_POS2, Link IOCARD_SW, Device 6, Input 32
{
IF &S_POS2 = 1
{
&command = 710 // POS
}
}
Var 0822, name S_TERR2, Link IOCARD_SW, Device 6, Input 33
{
IF &S_TERR2 = 1
{
&command = 1246 // TERR
}
}
Var 0823, name S_FPV2, Link IOCARD_SW, Device 6, Input 34
{
IF &S_FPV2 = 1
{
&command = 676 // FPV
}
}
Var 0824, name S_MTRS2, Link IOCARD_SW, Device 6, Input 38
{
IF &S_MTRS2 = 1
{
&command = 670 // MTRS
}
}
Var 0825, name S_V12, Link IOCARD_SW, Device 6, Input 36
{
IF &S_V12 = 1
{
&command = 679 // VOR_ADF = VOR
}
ELSE
{
IF &S_A12 = 0
{
&command = 680 // VOR_ADF = OFF
}
}
}
Var 0826, name S_A12, Link IOCARD_SW, Device 6, Input 37
{
IF &S_A12 = 1
{
&command = 681 // VOR_ADF = ADF
}
ELSE
{
IF &S_V12 = 0
{
&command = 680 // VOR_ADF = OFF
}
}
}
Var 0827, name S_V22, Link IOCARD_SW, Device 6, Input 18
{
IF &S_V22 = 1
{
&command = 684 // VOR_ADF2 = VOR
}
ELSE
{
IF &S_A22 = 0
{
&command = 685 // VOR_ADF2 = OFF
}
}
}
Var 0828, name S_A22, Link IOCARD_SW, Device 6, Input 19
{
IF &S_A22 = 1
{
&command = 686 // VOR_ADF2 = ADF
}
ELSE
{
IF &S_V22 = 0
{
&command = 685 // VOR_ADF2 = OFF
}
}
}
Var 0829, name Time_Date_Yea2 // Indice para digitos Time-Date-Year
Var 0830, name Modif_Year2 // Activamos control modificacion año. 0=De
Var 0831, name Modif_DDMM2 // Activamos control modificacion Dia.Mes -
Var 0832, name Modif_HHMM2 // Activamos control modificacion Hora.Minu
Var 0833, name Year_to_Modif2 // Guarda el año para modificar
Var 0834, name DD_to_Modif2 // Guarda el Dia para modificar
Var 0835, name MM_to_Modif2 // Guarda el Mes para modificar
Var 0836, name CHR_ET_ToDisp2 // Controla si vemos el CHR o el ET en el d
Var 0837, name CHR_Min2 // Acumula los Minutos del cronometro
Var 0838, name CHR_Sec2 // Acumula los Segundos del cronometro
Var 0839, name Estado_CHR2 // COntrola el estado del Botón CHR. 0 -> P
Var 0840, name ET_Hr2 // Acumula las Horas del ET Elapsed Time
Var 0841, name ET_Min2 // Acumula los Minutos del ET Elapsed Time
Var 0842, name ET_Sec2 // Acumula los Segundos del ET Elapsed Tim
Var 0843, name Estado_ET2 // COntrola el estado del Botón ET. 0 -> Po
Var 0844, name Limit_DD_Mes2 // Almacena el total de días que tiene el m
Var 0845, name DayofYear2 // Almacena el día del año
Var 0846, name M_MOTOR2, Link IOCARD_MOTOR, Device 17, Output 1, Aceleration 200
Var 0847, name Aguja_Segundo2
{
L0 = 4065 / 60
L0 = L0 * &Aguja_Segundo2
&M_MOTOR2 = ROUND L0
}
Var 0848, name PARPADEO_U2, Link SUBRUTINE
{
&BLINK22 = 0
}
Var 0849, name PARPADEO_D2, Link SUBRUTINE
{
&BLINK222 = 0
}
Var 0850, name HH_to_Modif2 // Guarda la hora para modificar
Var 0851, name MI_to_Modif2 // Guarda los minutos para modificar
Var 0852, name Clock_Seconds2, Link FSUIPC_INOUT, Offset $023A, Length 1 // Segundos del Reloj del FS
{
IF &Time_Date_Yea2 = 1 // Visualizo el año
{
IF &Modif_Year2 = 1 // Si estamos en activacion del control del
{
&Disp_Year2 = &Year_to_Modif2
&Disp_Year2 = DELAY -999999 ,50
}
}
IF &Time_Date_Yea2 = 2 // Visualizo el dia y mes
{
IF &Modif_DDMM2 = 1 // Si estamos en activacion del control mod
{
&Disp_Month_Mi2 = &MM_to_Modif2
&Disp_Month_Mi2 = DELAY -999999 ,50
&Disp_Day_Hour2 = &DD_to_Modif2
}
IF &Modif_DDMM2 = 2 // Si estamos en activacion del control mod
{
&Disp_Day_Hour2 = &DD_to_Modif2
&Disp_Day_Hour2 = DELAY -999999 ,50
&Disp_Month_Mi2 = &MM_to_Modif2
}
}
IF &Time_Date_Yea2 = 3 // Visualizo la hora Zulu
{
CALL &Show_Display2
IF &Modif_HHMM2 = 1 // Si estamos en activacion del control mod
{
&Disp_Month_Mi2 = &MI_to_Modif2
&Disp_Month_Mi2 = DELAY -999999 ,50
&Disp_Day_Hour2 = &HH_to_Modif2
}
IF &Modif_HHMM2 = 2 // Si estamos en activacion del control mod
{
&Disp_Day_Hour2 = &HH_to_Modif2
&Disp_Day_Hour2 = DELAY -999999 ,50
&Disp_Month_Mi2 = &MI_to_Modif2
}
}
IF &Time_Date_Yea2 = 4 // Visualizo Minutos y Segundos
{
CALL &Show_Display2
}
IF &Estado_CHR2 = 2 // 2 -> Inicia CHR o continúa
{
IF &CHR_ET_ToDisp2 = 0
{
&PARPADEO_D2 = 1
}
&CHR_Sec2 = &CHR_Sec2 + 1
IF &CHR_Sec2 > 59
{
&CHR_Sec2 = 0
&CHR_Min2 = &CHR_Min2 + 1
IF &CHR_Min2 > 59 // Cuando llegamos a 1 hora se pone a cero
{
&CHR_Min2 = 0
}
}
&Aguja_Segundo2 = &CHR_Sec2 // Movemos la aguja de los segundos si el C
}
IF &Estado_ET2 = 2 // 2 -> Inicia ET o continúa
{
IF &CHR_ET_ToDisp2 = 1
{
&PARPADEO_D2 = 1
}
&ET_Sec2 = &ET_Sec2 + 1
IF &ET_Sec2 > 59
{
&ET_Sec2 = 0
&ET_Min2 = &ET_Min2 + 1
IF &ET_Min2 > 59
{
&ET_Min2 = 0
&ET_Hr2 = &ET_Hr2 + 1
}
}
}
IF &CHR_ET_ToDisp2 = 0 // Mostramos el CHR en los displays inferio
{
CALL &Ver_CHR2
}
ELSE // Mostramos el ET en los displays inferior
{
IF &CHR_ET_ToDisp2 = 1
{
CALL &Ver_ET2
}
}
}
Var 0853, name Zulu_Hour2, Link FSUIPC_INOUT, Offset $023B, Length 1 // Hora Zulu. Lectura y escritura
{
CALL &Show_Display2
}
Var 0854, name Zulu_Minute2, Link FSUIPC_INOUT, Offset $023C, Length 1 // Minutos Zulu. Lectura y escritura
{
CALL &Show_Display2
}
Var 0855, name Day_of_Year2, Link FSUIPC_INOUT, Offset $023E, Length 2 // Numero del día del año. Lectura y escrit
Var 0856, name Day_of_Month2, Link FSUIPC_IN, Offset $023D, Length 1 // Día del mes correspondiente. Sólo lectur
{
CALL &Show_Display2
}
Var 0857, name Current_Month2, Link FSUIPC_IN, Offset $0242, Length 1 // Numero del mes. Sólo lectura
{
CALL &Show_Display2
}
Var 0858, name Zulu_Year_Set2, Link FSUIPC_INOUT, Offset $0240, Length 2 // Año. Lectura y escritura
{
&Year_to_Modif2 = &Zulu_Year_Set2
CALL &Chk_Bisiesto2 // Comprobamos si es bisiesto
}
Var 0859, name Disp_Year2, Link IOCARD_DISPLAY, Device 17, Digit 0, Numbers 4 // UP Displays Year
Var 0860, name Disp_Day_Hour2, Link IOCARD_DISPLAY, Device 17, Digit 2, Numbers 2 // UP Displays Day or Hour
Var 0861, name Disp_Month_Mi2, Link IOCARD_DISPLAY, Device 17, Digit 0, Numbers 2 // UP Displays Month or Minutes
Var 0862, name Disp_DWN_Min2, Link IOCARD_DISPLAY, Device 17, Digit 6, Numbers 2 // Down Displays CHR - ET -> Min
Var 0863, name Disp_DWN_Sec2, Link IOCARD_DISPLAY, Device 17, Digit 4, Numbers 2 // Down Displays CHR - ET -> Sec
Var 0864, name D_CHRBRIGHT2, Link IOCARD_DISPLAY, Device 17, Digit 16, Numbers 3
Var 0865, name DECIMAL_U2, Link IOCARD_OUT, Device 17, Output 20
Var 0866, name DECIMAL_D2, Link IOCARD_OUT, Device 17, Output 21
Var 0867, name DECIMAL_C2, Link IOCARD_OUT, Device 17, Output 22
Var 0868, name SW_Time_Date2, Link IOCARD_SW, Device 17, Input 1, Type P // ----------------------------------> Botó
{
IF &Modif_Year2 = 0 // Si NO estamos en activacion del control
{
&Time_Date_Yea2 = &Time_Date_Yea2 + 1
IF &Modif_DDMM2 > 0 // Si estoy modificando dia del mes o el me
{
&Modif_DDMM2 = 0
}
IF &Modif_HHMM2 > 0 // Si estoy modificando dia hora o minutos
{
&Modif_HHMM2 = 0
}
}
IF &Time_Date_Yea2 > 4 // Comprobamos si nos salimos de margenes
{
&Time_Date_Yea2 = 1 // Ponemos a 1
}
CALL &Show_Display2 // Mostramos en displays el dato correspond
IF &Estado_CHR2 = 3 // Si el CHR esta parado
{
}
}
Var 0869, name SW_SET2, Link IOCARD_SW, Device 17, Input 2, Type P // ----------------------------------> Botó
{
IF &Time_Date_Yea2 = 1 // Si estoy visualizando el año
{
IF &Modif_Year2 = 0 // Si NO estoy modificando el año
{
&Modif_Year2 = 1 // Activamos control modificacion año
&Year_to_Modif2 = &Zulu_Year_Set2 // Pasamos el año a una vble para modificar
}
ELSE
{
CALL &Chk_Bisiesto2 // Comprobamos si es bisiesto
CALL &Calc_DayofYea2
&Day_of_Year2 = &DayofYear2 // Devolvemos el día al FS para que lo modi
&Modif_Year2 = 0 // Desactivamos control modificacion año
&Zulu_Year_Set2 = &Year_to_Modif2 // Devolvemos el año al FS para que lo modi
CALL &Show_Display2 // Mostramos el año
}
}
IF &Time_Date_Yea2 = 2 // Si estoy visualizando el dia del mes y e
{
IF &Modif_DDMM2 = 0 // Si NO estoy modificando dia del mes y el
{
&Modif_DDMM2 = 1 // Activamos control modificacion Mes
&MM_to_Modif2 = &Current_Month2 // Pasamos el mes a una vble para modificar
&DD_to_Modif2 = &Day_of_Month2
&PARPADEO_U2 = 0
}
ELSE
{
IF &Modif_DDMM2 = 1 // Si estamos modificando el mes pasamos a
{
CALL &Chk_DiasDelMe2 // Calculamos cuantos dias tiene el mes que
&Modif_DDMM2 = 2 // Activamos control modificacion Día
&DD_to_Modif2 = &Day_of_Month2 // Pasamos el día a una vble para modificar
&Disp_Month_Mi2 = DELAY &MM_to_Modif2 ,50
}
ELSE // Terminamos de modificar así que mandamos
{
CALL &Calc_DayofYea2
&Day_of_Year2 = &DayofYear2 // Devolvemos el día al FS para que lo modi
&PARPADEO_U2 = 2
&Modif_DDMM2 = 0
CALL &Show_Display2
&Show_Display2 = DELAY 1 ,50
}
}
}
IF &Time_Date_Yea2 = 3 // Si estoy visualizando el dia del Hora y
{
IF &Modif_HHMM2 = 0 // Si NO estoy modificando Nada
{
&Modif_HHMM2 = 1 // Activamos control modificacion Minutos
&MI_to_Modif2 = &Zulu_Minute2 // Pasamos minutos
&HH_to_Modif2 = &Zulu_Hour2 // Pasamos Horas
&PARPADEO_U2 = 0
}
ELSE
{
IF &Modif_HHMM2 = 1 // Si estamos modificando Minutos pasamos a
{
&Modif_HHMM2 = 2 // Activamos control modificacion Día
&HH_to_Modif2 = &Zulu_Hour2 // Pasamos el día a una vble para modificar
&Disp_Month_Mi2 = DELAY &MI_to_Modif2 ,50
}
ELSE // Terminamos de modificar así que mandamos
{
&Zulu_Hour2 = &HH_to_Modif2
&Zulu_Minute2 = &MI_to_Modif2
&PARPADEO_U2 = 2
&Modif_HHMM2 = 0
CALL &Show_Display2
&Show_Display2 = DELAY 1 ,50
}
}
}
}
Var 0870, name SW_CHR2, Link IOCARD_SW, Device 17, Input 0 // ----------------------------------> Botó
{
IF &SW_CHR2 = 1
{
IF &CHR_ET_ToDisp2 = -1
{
&CHR_ET_ToDisp2 = 0
&Aguja_Segundo2 = 0
&DECIMAL_C2 = 1
&DECIMAL_D2 = 1
}
ELSE
{
&DECIMAL_C2 = 1
CALL &Ver_CHR2
IF &CHR_ET_ToDisp2 = 1 // Venimos de la Función ET
{
&CHR_ET_ToDisp2 = 0 // Acivamos control sobre el display para C
}
ELSE // Ya estabamos en la función CHR
{
&Estado_CHR2 = &Estado_CHR2 + 1 // Cambiamos el estado de CHR
}
IF &Estado_CHR2 > 3 // Comprobamos limite del estado del CHR
{
&Estado_CHR2 = 2 // 2 -> Inicia CHR o continúa 3 -> STOP Cro
}
IF &Estado_CHR2 <> 2
{
&PARPADEO_D2 = 2
}
}
}
}
Var 0871, name SW_ET2, Link IOCARD_SW, Device 17, Input 6, Type P // ----------------------------------> Botó
{
IF &CHR_ET_ToDisp2 = -1
{
&CHR_ET_ToDisp2 = 0
&Aguja_Segundo2 = 0
&DECIMAL_C2 = 1
&DECIMAL_D2 = 1
}
ELSE
{
&DECIMAL_C2 = 0
CALL &Ver_ET2
IF &CHR_ET_ToDisp2 = 0 // Venimos de la Función CHR
{
&CHR_ET_ToDisp2 = 1 // Acivamos control sobre el display para E
}
ELSE // Ya estabamos en la función ET
{
&Estado_ET2 = &Estado_ET2 + 1 // Cambiamos el estado de ET
}
IF &Estado_ET2 > 3 // Comprobamos limite del estado del ET
{
&Estado_ET2 = 2 // 2 -> Inicia ET o continúa 3 -> STOP ET
}
IF &Estado_ET2 <> 2
{
&PARPADEO_D2 = 2
}
}
}
Var 0872, Link IOCARD_SW, Device 17, Input 5, Type P // ----------------------------------> Botó
{
IF &SW_CHR2 = 1
{
&CHR_ET_ToDisp2 = -1
&Estado_CHR2 = 1
&Estado_ET2 = 1
&DECIMAL_C2 = 1
&Aguja_Segundo2 = 45
&Disp_DWN_Min2 = -999999
&Disp_DWN_Sec2 = -999999
&DECIMAL_D2 = 0
&CHR_Min2 = 0
&CHR_Sec2 = 0
&ET_Hr2 = 0
&ET_Min2 = 0
&ET_Sec2 = 0
&DECIMAL_C2 = 0
}
ELSE
{
IF &CHR_ET_ToDisp2 = -1
{
&CHR_ET_ToDisp2 = 0
&Aguja_Segundo2 = 0
&DECIMAL_C2 = 1
&DECIMAL_D2 = 1
}
ELSE
{
IF &CHR_ET_ToDisp2 = 0
{
&CHR_Min2 = 0 // Ponemos a cero los minutos del CHR
&CHR_Sec2 = 0 // Ponemos a cero los segundos del CHR
&Aguja_Segundo2 = 0
CALL &Ver_CHR2
}
ELSE
{
&ET_Hr2 = 0 // Ponemos a cero la hora del ET
&ET_Min2 = 0 // Ponemos a cero los minutos del ET
&ET_Sec2 = 0 // Ponemos a cero los segundos del ET
CALL &Ver_ET2
}
}
}
}
Var 0873, Link IOCARD_SW, Device 17, Input 3, Type P // ----------------------------------> Botó
{
IF &Modif_Year2 = 1 // Si estamos en activacion del control del
{
&Year_to_Modif2 = &Year_to_Modif2 + 1
&Disp_Year2 = &Year_to_Modif2
}
IF &Modif_DDMM2 = 1 // Si estamos en activacion del control del
{
&MM_to_Modif2 = &MM_to_Modif2 + 1
IF &MM_to_Modif2 > 12
{
&MM_to_Modif2 = 1
}
&Disp_Month_Mi2 = &MM_to_Modif2
}
IF &Modif_DDMM2 = 2 // Si estamos en activacion del control del
{
&DD_to_Modif2 = &DD_to_Modif2 + 1
IF &DD_to_Modif2 > &Limit_DD_Mes2
{
&DD_to_Modif2 = 1
}
&Disp_Day_Hour2 = &DD_to_Modif2
}
IF &Modif_HHMM2 = 1 // Si estamos en activacion del control de
{
&MI_to_Modif2 = &MI_to_Modif2 + 1
IF &MI_to_Modif2 > 59
{
&MI_to_Modif2 = 0
}
&Disp_Month_Mi2 = &MI_to_Modif2
}
IF &Modif_HHMM2 = 2 // Si estamos en activacion del control de
{
&HH_to_Modif2 = &HH_to_Modif2 + 1
IF &HH_to_Modif2 > 23
{
&HH_to_Modif2 = 0
}
&Disp_Day_Hour2 = &HH_to_Modif2
}
}
Var 0874, Link IOCARD_SW, Device 17, Input 4, Type P // ----------------------------------> Botó
{
IF &Modif_Year2 = 1 // Si estamos en activacion del control del
{
&Year_to_Modif2 = &Year_to_Modif2 - 1
&Disp_Year2 = &Year_to_Modif2
}
IF &Modif_DDMM2 = 1 // Si estamos en activacion del control del
{
&MM_to_Modif2 = &MM_to_Modif2 - 1
IF &MM_to_Modif2 < 1
{
&MM_to_Modif2 = 12
}
&Disp_Month_Mi2 = &MM_to_Modif2
}
IF &Modif_DDMM2 = 2 // Si estamos en activacion del control del
{
&DD_to_Modif2 = &DD_to_Modif2 - 1
IF &DD_to_Modif2 < 1
{
&DD_to_Modif2 = &Limit_DD_Mes2
}
&Disp_Day_Hour2 = &DD_to_Modif2
}
IF &Modif_HHMM2 = 1 // Si estamos en activacion del control de
{
&MI_to_Modif2 = &MI_to_Modif2 - 1
IF &MI_to_Modif2 < 0
{
&MI_to_Modif2 = 59
}
&Disp_Month_Mi2 = &MI_to_Modif2
}
IF &Modif_HHMM2 = 2 // Si estamos en activacion del control de
{
&HH_to_Modif2 = &HH_to_Modif2 - 1
IF &HH_to_Modif2 < 0
{
&HH_to_Modif2 = 23
}
&Disp_Day_Hour2 = &HH_to_Modif2
}
}
Var 0875, name Show_Display2, Link SUBRUTINE // Muestra el año
{
&PARPADEO_U2 = 0
IF &Time_Date_Yea2 = 1 // Visualizo el año
{
&Disp_Year2 = -999999 // Apagamos el año
&Disp_Year2 = &Zulu_Year_Set2
}
IF &Time_Date_Yea2 = 2 // Visualizo el dia y mes
{
&Disp_Day_Hour2 = &Day_of_Month2
&Disp_Month_Mi2 = &Current_Month2
&PARPADEO_U2 = 2
}
IF &Time_Date_Yea2 = 3 // Visualizo la hora Zulu y Minutos
{
&Disp_Day_Hour2 = &Zulu_Hour2
&Disp_Month_Mi2 = &Zulu_Minute2
&PARPADEO_U2 = 1
}
IF &Time_Date_Yea2 = 4 // Visualizo Minutos y Segundos
{
&Disp_Day_Hour2 = &Zulu_Minute2
&Disp_Month_Mi2 = &Clock_Seconds2
&PARPADEO_U2 = 1
}
}
Var 0876, name Ver_CHR2, Link SUBRUTINE // Pasa CHR al display
{
&Disp_DWN_Min2 = &CHR_Min2 // Mostramos los minutos del CHR en Display
&Disp_DWN_Sec2 = &CHR_Sec2 // Mostramos los minutos del CHR en Display
}
Var 0877, name Ver_ET2, Link SUBRUTINE // Pasa ET al display
{
IF &ET_Hr2 = 0 // Durante la primera hora mostramos MM:SS
{
&Disp_DWN_Min2 = &ET_Min2 // Mostramos los minutos del ET en Display
&Disp_DWN_Sec2 = &ET_Sec2 // Mostramos los segundos del ET en Display
}
ELSE // Despues mostramos HH:MM
{
&Disp_DWN_Min2 = &ET_Hr2 // Mostramos la hora del ET en Display Down
&Disp_DWN_Sec2 = &ET_Min2 // Mostramos los minutos del ET en Display
}
}
Var 0878, name Chk_Bisiesto2, Link SUBRUTINE // Comprueba si el año es bisisesto
{
L0 = MOD &Zulu_Year_Set2 ,4 // L0 acumula el resto de la división
IF L0 = 0
{
&Chk_Bisiesto2 = 1 // No Bisiesto = 0 Bisiesto = 1
}
ELSE
{
L0 = MOD &Zulu_Year_Set2 ,400
IF L0 = 0
{
L0 = MOD &Zulu_Year_Set2 ,100
IF L0 = 0
{
&Chk_Bisiesto2 = 1 // No Bisiesto = 0 Bisiesto = 1
}
ELSE
{
&Chk_Bisiesto2 = 0 // No Bisiesto = 0 Bisiesto = 1
}
}
ELSE
{
&Chk_Bisiesto2 = 0 // No Bisiesto = 0 Bisiesto = 1
}
}
}
Var 0879, name Chk_DiasDelMe2, Link SUBRUTINE // Calcula cuantos días tiene el mes
{
IF &MM_to_Modif2 = 1 // ENE
{
&Limit_DD_Mes2 = 31
}
IF &MM_to_Modif2 = 2 // FEB
{
IF &Chk_Bisiesto2 = 0 // Si no es bisiesto
{
&Limit_DD_Mes2 = 28
}
ELSE // Si es bisiesto
{
&Limit_DD_Mes2 = 29
}
}
IF &MM_to_Modif2 = 3 // MAR
{
&Limit_DD_Mes2 = 31
}
IF &MM_to_Modif2 = 4 // ABR
{
&Limit_DD_Mes2 = 30
}
IF &MM_to_Modif2 = 5 // MAY
{
&Limit_DD_Mes2 = 31
}
IF &MM_to_Modif2 = 6 // JUN
{
&Limit_DD_Mes2 = 30
}
IF &MM_to_Modif2 = 7 // JUL
{
&Limit_DD_Mes2 = 31
}
IF &MM_to_Modif2 = 8 // AGO
{
&Limit_DD_Mes2 = 31
}
IF &MM_to_Modif2 = 9 // SEP
{
&Limit_DD_Mes2 = 30
}
IF &MM_to_Modif2 = 10 // OCT
{
&Limit_DD_Mes2 = 31
}
IF &MM_to_Modif2 = 11 // NOV
{
&Limit_DD_Mes2 = 30
}
IF &MM_to_Modif2 = 12 // DIC
{
&Limit_DD_Mes2 = 31
}
}
Var 0880, name Calc_DayofYea2, Link SUBRUTINE // Calcula el dia del mes en relacion al añ
{
IF &MM_to_Modif2 = 1 // ENE 31
{
&DayofYear2 = &DD_to_Modif2 // Paso a Calc_DayofYear el día del mes de
}
IF &MM_to_Modif2 = 2 // FEB 28
{
&DayofYear2 = &DD_to_Modif2 + 31 // Le sumo a los días del mes los del mes a
}
IF &MM_to_Modif2 = 3 // MAR 31
{
&DayofYear2 = &DD_to_Modif2 + 59 // Le sumo a los días del mes los de los me
}
IF &MM_to_Modif2 = 4 // ABR 30
{
&DayofYear2 = &DD_to_Modif2 + 90 // Le sumo a los días del mes los de los me
}
IF &MM_to_Modif2 = 5 // MAY 31
{
&DayofYear2 = &DD_to_Modif2 + 120 // Le sumo a los días del mes los de los me
}
IF &MM_to_Modif2 = 6 // JUN 30
{
&DayofYear2 = &DD_to_Modif2 + 151 // Le sumo a los días del mes los de los me
}
IF &MM_to_Modif2 = 7 // JUL 31
{
&DayofYear2 = &DD_to_Modif2 + 181 // Le sumo a los días del mes los de los me
}
IF &MM_to_Modif2 = 8 // AGO 31
{
&DayofYear2 = &DD_to_Modif2 + 212 // Le sumo a los días del mes los de los me
}
IF &MM_to_Modif2 = 9 // SEP 30
{
&DayofYear2 = &DD_to_Modif2 + 243 // Le sumo a los días del mes los de los me
}
IF &MM_to_Modif2 = 10 // OCT 31
{
&DayofYear2 = &DD_to_Modif2 + 273 // Le sumo a los días del mes los de los me
}
IF &MM_to_Modif2 = 11 // NOV 30
{
&DayofYear2 = &DD_to_Modif2 + 304 // Le sumo a los días del mes los de los me
}
IF &MM_to_Modif2 = 12 // DIC 31
{
&DayofYear2 = &DD_to_Modif2 + 334 // Le sumo a los días del mes los de los me
}
IF &MM_to_Modif2 > 1
{
IF &Chk_Bisiesto2 = 1 // Si es bisiesto
{
&DayofYear2 = &DayofYear2 + 1
}
}
&Current_Month2 = &MM_to_Modif2
&Day_of_Month2 = &DD_to_Modif2
}
Var 0881, name BLINK22, Link SUBRUTINE
{
IF &BLINK22 = 0
{
IF &PARPADEO_U2 = 0 // No parpadea y queda apagado
{
&DECIMAL_U2 = 0
}
IF &PARPADEO_U2 = 1 // Parpadea
{
&DECIMAL_U2 = 1
&BLINK22 = DELAY 1 ,50
}
IF &PARPADEO_U2 = 2 // No parpadea y queda encendido
{
&DECIMAL_U2 = 1
}
}
ELSE
{
IF &PARPADEO_U2 = 0
{
&DECIMAL_U2 = 0
}
IF &PARPADEO_U2 = 1
{
&DECIMAL_U2 = 0
}
IF &PARPADEO_U2 = 2
{
&DECIMAL_U2 = 1
}
}
}
Var 0882, name BLINK222, Link SUBRUTINE
{
IF &BLINK222 = 0
{
IF &PARPADEO_D2 = 0 // No parpadea y queda apagado
{
&DECIMAL_D2 = 0
}
IF &PARPADEO_D2 = 1 // Parpadea
{
&DECIMAL_D2 = 1
&BLINK222 = DELAY 1 ,50
}
IF &PARPADEO_D2 = 2 // No parpadea y queda encendido
{
&DECIMAL_D2 = 1
}
}
ELSE
{
IF &PARPADEO_D2 = 0
{
&DECIMAL_D2 = 0
}
IF &PARPADEO_D2 = 1
{
&DECIMAL_D2 = 0
}
IF &PARPADEO_D2 = 2
{
&DECIMAL_D2 = 1
}
}
}
Var 0883, name iocp_teclas
Var 0884, name teclado, Link IOCARD_KEYS, Device 13
{
IF &teclado = 71 // menu
{
&k = 994
}
IF &teclado = 79 // perf init
{
&k = 989
}
IF &teclado = 78 // rte
{
&k = 990
}
IF &teclado = 75 // des
{
&k = 993
}
IF &teclado = 70 // legs
{
&k = 995
}
IF &teclado = 67 // prog
{
&k = 998
}
IF &teclado = 63 // n1 altn
{
&k = 999
}
IF &teclado = 62 // fix
{
&k = 1000
}
IF &teclado = 77 // clb
{
&k = 991
}
IF &teclado = 76 // crz
{
&k = 992
}
IF &teclado = 69 // dep
{
&k = 996
}
IF &teclado = 68 // hold
{
&k = 997
}
IF &teclado = 66 // ENTER
{
&k = 1003
}
IF &teclado = 55 // Prev Pg
{
&k = 1001
}
IF &teclado = 54 // Next Pg
{
&k = 1002
}
IF &teclado = 7 // 0
{
&k = 1013
}
IF &teclado = 32 // 1
{
&k = 1004
}
IF &teclado = 31 // 2
{
&k = 1005
}
IF &teclado = 30 // 3
{
&k = 1006
}
IF &teclado = 24 // 4
{
&k = 1007
}
IF &teclado = 23 // 5
{
&k = 1008
}
IF &teclado = 22 // 6
{
&k = 1009
}
IF &teclado = 16 // 7
{
&k = 1010
}
IF &teclado = 15 // 8
{
&k = 1011
}
IF &teclado = 14 // 9
{
&k = 1012
}
IF &teclado = 8 // .
{
&k = 1014
}
IF &teclado = 2 // barra
{
&k = 1042
}
IF &teclado = 6 // +
{
&k = 1015
}
IF &teclado = 3 // Delete
{
&k = 1043
}
IF &teclado = 1 // Clr
{
&k = 1044
}
IF &teclado = 4 // Clr
{
&k = 1045
}
IF &teclado = 61 // A
{
&k = 1016
}
IF &teclado = 60 // B
{
&k = 1017
}
IF &teclado = 59 // C
{
&k = 1018
}
IF &teclado = 58 // D
{
&k = 1019
}
IF &teclado = 57 // E
{
&k = 1020
}
IF &teclado = 53 // F
{
&k = 1021
}
IF &teclado = 52 // G
{
&k = 1022
}
IF &teclado = 51 // H
{
&k = 1023
}
IF &teclado = 50 // I
{
&k = 1024
}
IF &teclado = 49 // J
{
&k = 1025
}
IF &teclado = 29 // K
{
&k = 1026
}
IF &teclado = 28 // L
{
&k = 1027
}
IF &teclado = 27 // M
{
&k = 1028
}
IF &teclado = 26 // N
{
&k = 1029
}
IF &teclado = 25 // O
{
&k = 1030
}
IF &teclado = 21 // P
{
&k = 1031
}
IF &teclado = 20 // Q
{
&k = 1032
}
IF &teclado = 19 // R
{
&k = 1033
}
IF &teclado = 18 // S
{
&k = 1034
}
IF &teclado = 17 // T
{
&k = 1035
}
IF &teclado = 13 // U
{
&k = 1036
}
IF &teclado = 12 // V
{
&k = 1037
}
IF &teclado = 11 // W
{
&k = 1038
}
IF &teclado = 10 // X
{
&k = 1039
}
IF &teclado = 9 // Y
{
&k = 1040
}
IF &teclado = 5 // Z
{
&k = 1041
}
IF &teclado = 56 // Linea 1L
{
&k = 975
}
IF &teclado = 64 // Linea 2L
{
&k = 976
}
IF &teclado = 72 // Linea 3L
{
&k = 977
}
IF &teclado = 80 // Linea 4L
{
&k = 978
}
IF &teclado = 88 // Linea 5L
{
&k = 979
}
IF &teclado = 87 // Linea 6L
{
&k = 980
}
IF &teclado = 86 // Linea 1R
{
&k = 981
}
IF &teclado = 85 // Linea 2R
{
&k = 982
}
IF &teclado = 84 // Linea 3R
{
&k = 983
}
IF &teclado = 83 // Linea 4R
{
&k = 984
}
IF &teclado = 82 // Linea 5R
{
&k = 985
}
IF &teclado = 74 // Linea 6R
{
&k = 986
}
}
Var 0885, name k, Link SUBRUTINE
{
&commands3 = &k
&commands3 = -2
}
Var 0886, name commands3, Link IOCP, Offset 1000 // Send commands
Var 0887, name FMC1_EXEC_led, Link IOCARD_OUT, Device 13, Output 2 // FMC EXEC green led
Var 0888, name FMC1_MSG_led, Link IOCARD_OUT, Device 13, Output 1 // FMC MSG amber led
Var 0889, name FMC1_FAIL_led, Link IOCARD_OUT, Device 13, Output 4 // FMC FAIL red led
Var 0890, name FMC1_OFST_led, Link IOCARD_OUT, Device 13, Output 0 // FMC OFST amber led
Var 0891, name FMC1_DSPY_led, Link IOCARD_OUT, Device 13, Output 3 // FMC DSPY red led
Var 0892, name FMC1leds, Link FSUIPC_INOUT, Offset $9427, Length 1
{
&FMC1_EXEC_led = TESTBIT &FMC1leds ,2 // EXEC LED
&FMC1_MSG_led = TESTBIT &FMC1leds ,0 // MSG LED
&FMC1_OFST_led = TESTBIT &FMC1leds ,6 // OFST LED
&FMC1_DSPY_led = TESTBIT &FMC1leds ,4 // DSPY LED
&FMC2_EXEC_led = TESTBIT &FMC1leds ,3
&FMC2_MSG_led = TESTBIT &FMC1leds ,1
&FMC2_OFST_led = TESTBIT &FMC1leds ,7
&FMC2_DSPY_led = TESTBIT &FMC1leds ,5
}
Var 0893, name teclado2, Link IOCARD_KEYS, Device 14
{
IF &teclado2 = 71 // menu
{
&k2 = 1065
}
IF &teclado2 = 79 // perf init
{
&k2 = 1060
}
IF &teclado2 = 78 // rte
{
&k2 = 1061
}
IF &teclado2 = 75 // des
{
&k2 = 1064
}
IF &teclado2 = 70 // legs
{
&k2 = 1066
}
IF &teclado2 = 67 // prog
{
&k2 = 1069
}
IF &teclado2 = 63 // n1 altn
{
&k2 = 1070
}
IF &teclado2 = 62 // fix
{
&k2 = 1071
}
IF &teclado2 = 77 // clb
{
&k2 = 1062
}
IF &teclado2 = 76 // crz
{
&k2 = 1063
}
IF &teclado2 = 69 // dep
{
&k2 = 1067
}
IF &teclado2 = 68 // hold
{
&k2 = 1068
}
IF &teclado2 = 66 // ENTER
{
&k2 = 1074
}
IF &teclado2 = 55 // Prev Pg
{
&k2 = 1072
}
IF &teclado2 = 54 // Next Pg
{
&k2 = 1073
}
IF &teclado2 = 7 // 0
{
&k2 = 1084
}
IF &teclado2 = 32 // 1
{
&k2 = 1075
}
IF &teclado2 = 31 // 2
{
&k2 = 1076
}
IF &teclado2 = 30 // 3
{
&k2 = 1077
}
IF &teclado2 = 24 // 4
{
&k2 = 1078
}
IF &teclado2 = 23 // 5
{
&k2 = 1079
}
IF &teclado2 = 22 // 6
{
&k2 = 1080
}
IF &teclado2 = 16 // 7
{
&k2 = 1081
}
IF &teclado2 = 15 // 8
{
&k2 = 1082
}
IF &teclado2 = 14 // 9
{
&k2 = 1083
}
IF &teclado2 = 8 // .
{
&k2 = 1085
}
IF &teclado2 = 2 // barra
{
&k2 = 1113
}
IF &teclado2 = 6 // +
{
&k2 = 1086
}
IF &teclado2 = 3 // Delete
{
&k2 = 1114
}
IF &teclado2 = 1 // Clr
{
&k2 = 1115
}
IF &teclado2 = 4 // SP
{
&k2 = 1116
}
IF &teclado2 = 61 // A
{
&k2 = 1087
}
IF &teclado2 = 60 // B
{
&k2 = 1088
}
IF &teclado2 = 59 // C
{
&k2 = 1089
}
IF &teclado2 = 58 // D
{
&k2 = 1090
}
IF &teclado2 = 57 // E
{
&k2 = 1091
}
IF &teclado2 = 53 // F
{
&k2 = 1092
}
IF &teclado2 = 52 // G
{
&k2 = 1093
}
IF &teclado2 = 51 // H
{
&k2 = 1094
}
IF &teclado2 = 50 // I
{
&k2 = 1095
}
IF &teclado2 = 49 // J
{
&k2 = 1096
}
IF &teclado2 = 29 // K
{
&k2 = 1097
}
IF &teclado2 = 28 // L
{
&k2 = 1098
}
IF &teclado2 = 27 // M
{
&k2 = 1099
}
IF &teclado2 = 26 // N
{
&k2 = 1100
}
IF &teclado2 = 25 // O
{
&k2 = 1101
}
IF &teclado2 = 21 // P
{
&k2 = 1102
}
IF &teclado2 = 20 // Q
{
&k2 = 1103
}
IF &teclado2 = 19 // R
{
&k2 = 1104
}
IF &teclado2 = 18 // S
{
&k2 = 1105
}
IF &teclado2 = 17 // T
{
&k2 = 1106
}
IF &teclado2 = 13 // U
{
&k2 = 1107
}
IF &teclado2 = 12 // V
{
&k2 = 1108
}
IF &teclado2 = 11 // W
{
&k2 = 1109
}
IF &teclado2 = 10 // X
{
&k2 = 1110
}
IF &teclado2 = 9 // Y
{
&k2 = 1111
}
IF &teclado2 = 5 // Z
{
&k2 = 1112
}
IF &teclado2 = 56 // Linea 1L
{
&k2 = 1046
}
IF &teclado2 = 64 // Linea 2L
{
&k2 = 1047
}
IF &teclado2 = 72 // Linea 3L
{
&k2 = 1048
}
IF &teclado2 = 80 // Linea 4L
{
&k2 = 1049
}
IF &teclado2 = 88 // Linea 5L
{
&k2 = 1050
}
IF &teclado2 = 87 // Linea 6L
{
&k2 = 1051
}
IF &teclado2 = 86 // Linea 1R
{
&k2 = 1052
}
IF &teclado2 = 85 // Linea 2R
{
&k2 = 1053
}
IF &teclado2 = 84 // Linea 3R
{
&k2 = 1054
}
IF &teclado2 = 83 // Linea 4R
{
&k2 = 1055
}
IF &teclado2 = 82 // Linea 5R
{
&k2 = 1056
}
IF &teclado2 = 74 // Linea 6R
{
&k2 = 1057
}
}
Var 0894, name k2, Link SUBRUTINE
{
&commands33 = &k2
&commands33 = -2
}
Var 0895, name commands33, Link IOCP, Offset 1000 // Send commands
Var 0896, name FMC2_EXEC_led, Link IOCARD_OUT, Device 14, Output 2 // FMC EXEC green led
Var 0897, name FMC2_MSG_led, Link IOCARD_OUT, Device 14, Output 1 // FMC MSG amber led
Var 0898, name FMC2_FAIL_led, Link IOCARD_OUT, Device 14, Output 4 // FMC FAIL red led
Var 0899, name FMC2_OFST_led, Link IOCARD_OUT, Device 14, Output 0 // FMC OFST amber led
Var 0900, name FMC2_DSPY_led, Link IOCARD_OUT, Device 14, Output 3 // FMC DSPY red led
Var 0901, name MIPBRAKEDIS_O, Link IOCARD_OUT, Device 15, Output 21 // AUTO BRAKE DISARM INDICATOR
Var 0902, name MIPBRAKEDI_O, Link IOCP, Offset 795 // AUTO BRAKE DISARM INDICATOR OFFSET
{
&MIPBRAKEDIS_O = &MIPBRAKEDI_O
}
Var 0903, name MIPANTI_SKID_O, Link IOCARD_OUT, Device 15, Output 22 // ANTI SKID INOP INDICATOR
Var 0904, name MIPANTI_SKI_O, Link IOCP, Offset 797 // ANTI SKID INOP INDICATOR OFFSET
{
&MIPANTI_SKID_O = &MIPANTI_SKI_O
}
Var 0905, name MIPFLAPTRANS_O, Link IOCARD_OUT, Device 15, Output 23 // LE FLAPS TRANSIT INDICATOR
Var 0906, name MIPFLAPTRAN_O, Link IOCP, Offset 491 // LE FLAPS TRANSIT INDICATOR OFFSET
{
&MIPFLAPTRANS_O = &MIPFLAPTRAN_O
}
Var 0907, name MIPFLAPSEXT_O, Link IOCARD_OUT, Device 15, Output 24 // LE FLAPS EXTENDED INDICATOR
Var 0908, name MIPFLAPSEX_O, Link IOCP, Offset 492 // LE FLAPS EXTENDED INDICATOR
{
&MIPFLAPSEXT_O = &MIPFLAPSEX_O
}
Var 0909, name N1SET2_I, Link IOCARD_SW, Device 15, Input 36 // N1 SET ROTARY SWITCH POSITION 2
{
IF &N1SET2_I = 1
{
&commands4 = 476
&commands4 = -2
}
}
Var 0910, name N1SET1_I, Link IOCARD_SW, Device 15, Input 37 // N1 SET ROTARY SWITCH POSITION 1
{
IF &N1SET1_I = 1
{
&commands4 = 477
&commands4 = -2
}
}
Var 0911, name N1SETAUTO_I, Link IOCARD_SW, Device 15, Input 38 // N1 SET ROTARY SWITCH POSITION AUTO
{
IF &N1SETAUTO_I = 1
{
&commands4 = 478
&commands4 = -2
}
}
Var 0912, name N1SETBOTH_I, Link IOCARD_SW, Device 15, Input 39 // N1 SET ROTARY SWITCH POSITION BOTH
{
IF &N1SETBOTH_I = 1
{
&commands4 = 479
&commands4 = -2
}
}
Var 0913, name N1SETENC_I, Link IOCARD_ENCODER, Device 15, Input 40, Aceleration 1, Type 2 // N1 SET ENCODER INPUT
{
IF &N1SETENC_I > 0
{
&commands4 = 481
&commands4 = -2
}
ELSE
{
&commands4 = 480
&commands4 = -2
}
}
Var 0914, name FUEL_USED_I, Link IOCARD_SW, Device 15, Input 42 // FUEL FLOW SWITCH USED
{
IF &FUEL_USED_I = 1
{
&commands4 = 483
&commands4 = -2
}
}
Var 0915, name FUEL_RESET_I, Link IOCARD_SW, Device 15, Input 43 // FUEL FLOW SWITCH RESET
{
IF &FUEL_RESET_I = 1
{
&commands4 = 482
&commands4 = -2
}
}
Var 0916, name SPD_AUTO_I, Link IOCARD_SW, Device 15, Input 45 // SPD REF ROTARY SWITCH POSITION AUTO
{
IF &SPD_AUTO_I = 1
{
&commands4 = 742
&commands4 = -2
}
}
Var 0917, name SPD_V1_I, Link IOCARD_SW, Device 15, Input 46 // SPD REF ROTARY SWITCH POSITION V1
{
IF &SPD_V1_I = 1
{
&commands4 = 743
&commands4 = -2
}
}
Var 0918, name SPD_VR_I, Link IOCARD_SW, Device 15, Input 47 // SPD REF ROTARY SWITCH POSITION VR
{
IF &SPD_VR_I = 1
{
&commands4 = 744
&commands4 = -2
}
}
Var 0919, name SPD_WT_I, Link IOCARD_SW, Device 15, Input 48 // SPD REF ROTARY SWITCH POSITION WT
{
IF &SPD_WT_I = 1
{
&commands4 = 745
&commands4 = -2
}
}
Var 0920, name SPD_VREF_I, Link IOCARD_SW, Device 15, Input 49 // SPD REF ROTARY SWITCH POSITION VREF
{
IF &SPD_VREF_I = 1
{
&commands4 = 746
&commands4 = -2
}
}
Var 0921, name SPD_A_I, Link IOCARD_SW, Device 15, Input 50 // SPD REF ROTARY SWITCH POSITION TRIANGLE
{
IF &SPD_A_I = 1
{
&commands4 = 747
&commands4 = -2
}
}
Var 0922, name SPD_SET_I, Link IOCARD_SW, Device 15, Input 51 // SPD REF ROTARY SWITCH POSITION SET
{
IF &SPD_SET_I = 1
{
&commands4 = 748
&commands4 = -2
}
}
Var 0923, name SPD_ENC_I, Link IOCARD_ENCODER, Device 15, Input 52, Aceleration 1, Type 2 // SPD REF ENCODER INPUT
{
IF &SPD_ENC_I > 0
{
&commands4 = 750
&commands4 = -2
}
ELSE
{
&commands4 = 749
&commands4 = -2
}
}
Var 0924, name BRAKE_RTO_I, Link IOCARD_SW, Device 15, Input 54 // AUTO BRAKE ROTARY SWITCH POSITION RTO
{
IF &BRAKE_RTO_I = 1
{
&commands4 = 1198
&commands4 = -2
CALL &subspoiler
}
}
Var 0925, name BRAKE_OFF_I, Link IOCARD_SW, Device 15, Input 55 // AUTO BRAKE ROTARY SWITCH POSITION OFF
{
IF &BRAKE_OFF_I = 1
{
&commands4 = 1199
&commands4 = -2
}
}
Var 0926, name BRAKE_1_I, Link IOCARD_SW, Device 15, Input 56 // AUTO BRAKE ROTARY SWITCH POSITION 1
{
IF &BRAKE_1_I = 1
{
&commands4 = 1200
&commands4 = -2
CALL &subspoiler
}
}
Var 0927, name BRAKE_2_I, Link IOCARD_SW, Device 15, Input 57 // AUTO BRAKE ROTARY SWITCH POSITION 2
{
IF &BRAKE_2_I = 1
{
&commands4 = 1201
&commands4 = -2
CALL &subspoiler
}
}
Var 0928, name BRAKE_3_I, Link IOCARD_SW, Device 15, Input 58 // AUTO BRAKE ROTARY SWITCH POSITION 3
{
IF &BRAKE_3_I = 1
{
&commands4 = 1202
&commands4 = -2
CALL &subspoiler
}
}
Var 0929, name BRAKE_MAX_I, Link IOCARD_SW, Device 15, Input 59 // AUTO BRAKE ROTARY SWITCH POSITION MAX
{
IF &BRAKE_MAX_I = 1
{
&commands4 = 1203
&commands4 = -2
CALL &subspoiler
}
}
Var 0930, name MFD_ENG_I, Link IOCARD_SW, Device 15, Input 60 // MFD ENG MOMENTARY SWITCH BUTTON
{
IF &MFD_ENG_I = 1
{
&commands4 = 501
&commands4 = -2
}
}
Var 0931, name MFD_SYS_I, Link IOCARD_SW, Device 15, Input 61 // MFD SYS MOMENTARY SWITCH BUTTON
{
IF &MFD_SYS_I = 1
{
&commands4 = 502
&commands4 = -2
}
}
Var 0932, name commands4, Link IOCP, Offset 1000 // Send commands
Var 0933, name NOSEWHEEL_I, Link IOCARD_SW, Device 15, Input 66 // NOSE WHEEL SWITCH
Var 0934, name DUL_OUTBD_I, Link IOCARD_SW, Device 15, Input 0 // DU LEFT ROTARY SWITCH POSITION "MAIN OUT
{
IF &DUL_OUTBD_I = 1
{
&commands4 = 723
&commands4 = -2
}
}
Var 0935, name DUL_MAINNORM_I, Link IOCARD_SW, Device 15, Input 1 // DU LEFT ROTARY SWITCH POSITION "MAIN NOR
{
IF &DUL_MAINNORM_I = 1
{
&commands4 = 724
&commands4 = -2
}
}
Var 0936, name DUL_MAINENG_I, Link IOCARD_SW, Device 15, Input 2 // DU LEFT ROTARY SWITCH POSITION "MAIN ENG
{
IF &DUL_MAINENG_I = 1
{
&commands4 = 725
&commands4 = -2
}
}
Var 0937, name DUL_MAINPFD_I, Link IOCARD_SW, Device 15, Input 3 // DU LEFT ROTARY SWITCH POSITION "MAIN PFD
{
IF &DUL_MAINPFD_I = 1
{
&commands4 = 726
&commands4 = -2
}
}
Var 0938, name DUL_MAINMFD_I, Link IOCARD_SW, Device 15, Input 4 // DU LEFT ROTARY SWITCH POSITION "MAIN MFD
{
IF &DUL_MAINMFD_I = 1
{
&commands4 = 727
&commands4 = -2
}
}
Var 0939, name DUL_LOWENG_I, Link IOCARD_SW, Device 15, Input 5 // DU LEFT ROTARY SWITCH POSITION "LOWER EN
{
IF &DUL_LOWENG_I = 1
{
&commands4 = 739
&commands4 = -2
}
}
Var 0940, name DUL_LOWNORM_I, Link IOCARD_SW, Device 15, Input 6 // DU LEFT ROTARY SWITCH POSITION "LOWER NO
{
IF &DUL_LOWNORM_I = 1
{
&commands4 = 738
&commands4 = -2
}
}
Var 0941, name DUL_LOWND_I, Link IOCARD_SW, Device 15, Input 7 // DU LEFT ROTARY SWITCH POSITION "LOWER ND
{
IF &DUL_LOWND_I = 1
{
&commands4 = 737
&commands4 = -2
}
}
Var 0942, name DUR_LOWND_I, Link IOCARD_SW, Device 15, Input 9 // DU RIGHT ROTARY SWITCH POSITION "LOWER N
{
IF &DUR_LOWND_I = 1
{
&commands4 = 737
&commands4 = -2
}
}
Var 0943, name DUR_LOWNORM_I, Link IOCARD_SW, Device 15, Input 10 // DU RIGHT ROTARY SWITCH POSITION "LOWER N
{
IF &DUR_LOWNORM_I = 1
{
&commands4 = 738
&commands4 = -2
}
}
Var 0944, name DUR_LOWENG_I, Link IOCARD_SW, Device 15, Input 11 // DU RIGHT ROTARY SWITCH POSITION "LOWER E
{
IF &DUR_LOWENG_I = 1
{
&commands4 = 739
&commands4 = -2
}
}
Var 0945, name DUR_MAINMFD_I, Link IOCARD_SW, Device 15, Input 12 // DU RIGHT ROTARY SWITCH POSITION "MAIN MF
{
IF &DUR_MAINMFD_I = 1
{
&commands4 = 730
&commands4 = -2
}
}
Var 0946, name DUR_MAINPFD_I, Link IOCARD_SW, Device 15, Input 13 // DU RIGHT ROTARY SWITCH POSITION "MAIN PF
{
IF &DUR_MAINPFD_I = 1
{
&commands4 = 731
&commands4 = -2
}
}
Var 0947, name DUR_MAINENG_I, Link IOCARD_SW, Device 15, Input 14 // DU RIGHT ROTARY SWITCH POSITION "MAIN EN
{
IF &DUR_MAINENG_I = 1
{
&commands4 = 732
&commands4 = -2
}
}
Var 0948, name DUR_MAINNORM_I, Link IOCARD_SW, Device 15, Input 15 // DU RIGHT ROTARY SWITCH POSITION "NORM"
{
IF &DUR_MAINNORM_I = 1
{
&commands4 = 733
&commands4 = -2
}
}
Var 0949, name DUR_OUTBD_I, Link IOCARD_SW, Device 15, Input 16 // DU RIGHT ROTARY SWITCH POSITION "OUTBD P
{
IF &DUR_OUTBD_I = 1
{
&commands4 = 734
&commands4 = -2
}
}
Var 0950, name AFDSAP_L_I, Link IOCARD_SW, Device 15, Input 18 // AFDS LEFT SWITCH "AP/P/RST"
{
IF &AFDSAP_L_I = 1
{
&commands4 = 235
&commands4 = -2
}
}
Var 0951, name AFDSAT_L_I, Link IOCARD_SW, Device 15, Input 19 // AFDS LEFT SWITCH "AT/P/RST"
{
IF &AFDSAT_L_I = 1
{
&commands4 = 236
&commands4 = -2
}
}
Var 0952, name AFDSFMC_L_I, Link IOCARD_SW, Device 15, Input 20 // AFDS LEFT SWITCH "FMC/P/RST"
{
IF &AFDSFMC_L_I = 1
{
&commands4 = 830
&commands4 = -2
}
}
Var 0953, name AFDST1_L_I, Link IOCARD_SW, Device 15, Input 21 // AFDS LEFT SWITCH "TEST 1"
{
IF &AFDST1_L_I = 1
{
&commands4 = 237
&commands4 = -2
}
}
Var 0954, name AFDST2_L_I, Link IOCARD_SW, Device 15, Input 22 // AFDS LEFT SWITCH "TEST 2"
{
IF &AFDST2_L_I = 1
{
&commands4 = 238
&commands4 = -2
}
}
Var 0955, name AFDSAP_R_I, Link IOCARD_SW, Device 15, Input 27 // AFDS RIGHT SWITCH "AP/P/RST"
{
IF &AFDSAP_R_I = 1
{
&commands4 = 235
&commands4 = -2
}
}
Var 0956, name AFDSAT_R_I, Link IOCARD_SW, Device 15, Input 28 // AFDS RIGHT SWITCH "AT/P/RST"
{
IF &AFDSAT_R_I = 1
{
&commands4 = 236
&commands4 = -2
}
}
Var 0957, name AFDSFMC_R_I, Link IOCARD_SW, Device 15, Input 29 // AFDS RIGHT SWITCH "FMC/P/RST"
{
IF &AFDSFMC_R_I = 1
{
&commands4 = 830
&commands4 = -2
}
}
Var 0958, name AFDST1_R_I, Link IOCARD_SW, Device 15, Input 30 // AFDS RIGHT SWITCH "TEST 1"
{
IF &AFDST1_R_I = 1
{
&commands4 = 237
&commands4 = -2
}
}
Var 0959, name AFDST2_R_I, Link IOCARD_SW, Device 15, Input 31 // AFDS RIGHT SWITCH "TEST 2"
{
IF &AFDST2_R_I = 1
{
&commands4 = 238
&commands4 = -2
}
}
Var 0960, name FIREW_L_I, Link IOCARD_SW, Device 15, Input 63 // LEFT FIRE WARNING MOMENTARY SWITCH
{
IF &FIREW_L_I = 1
{
&commands4 = 564
&commands4 = -2
}
}
Var 0961, name FIREW_R_I, Link IOCARD_SW, Device 15, Input 23 // RIGHT FIRE WARNING MOMENTARY SWITCH
{
IF &FIREW_R_I = 1
{
&commands4 = 564
&commands4 = -2
}
}
Var 0962, name MASTERC_L_I, Link IOCARD_SW, Device 15, Input 64 // LEFT MASTER CAUTION MOMENTARY SWITCH
{
IF &MASTERC_L_I = 1
{
&commands4 = 1179
&commands4 = -2
}
}
Var 0963, name MASTERC_R_I, Link IOCARD_SW, Device 15, Input 17 // RIGHT MASTER CAUTION MOMENTARY SWITCH
{
IF &MASTERC_R_I = 1
{
&commands4 = 1179
&commands4 = -2
}
}
Var 0964, name SIXPACK_L_I, Link IOCARD_SW, Device 15, Input 65 // LEFT SIXPACK MOMENTARY SWITCH
{
IF &SIXPACK_L_I = 1
{
&commands4 = 1180
&commands4 = -2
}
}
Var 0965, name SIXPACK_R_I, Link IOCARD_SW, Device 15, Input 8 // RIGHT SIXPACK MOMENTARY SWITCH
{
IF &SIXPACK_R_I = 1
{
&commands4 = 1180
&commands4 = -2
}
}
Var 0966, name MIPDIMTEST_I, Link IOCARD_SW, Device 15, Input 67 // MIP LIGHTS TEST MOMENTARY SWITCH POSITIO
{
IF &MIPDIMTEST_I = 1
{
IF &MIPTESTTEST_I = 0
{
&commands4 = 1244
&commands4 = -2
}
}
ELSE
{
IF &MIPTESTTEST_I = 0
{
&commands4 = 1243
&commands4 = -2
}
}
}
Var 0967, name MIPTESTTEST_I, Link IOCARD_SW, Device 15, Input 68 // MIP LIGHTS TEST MOMENTARY SWITCH POSITIO
{
IF &MIPTESTTEST_I = 1
{
IF &MIPDIMTEST_I = 0
{
&commands4 = 1242
&commands4 = -2
}
}
ELSE
{
IF &MIPDIMTEST_I = 0
{
&commands4 = 1243
&commands4 = -2
}
}
}
Var 0968, name GEARL_UP_I, Link IOCARD_SW, Device 15, Input 69 // LANDING GEAR SWITCH "UP" POSITION
{
IF &GEARL_UP_I = 1
{
IF &GEARL_DW_I = 0
{
&commands4 = 1171
&commands4 = -2
}
}
ELSE
{
IF &GEARL_DW_I = 0
{
&commands4 = 1172
&commands4 = -2
}
}
}
Var 0969, name GEARL_DW_I, Link IOCARD_SW, Device 15, Input 70 // LANDING GEAR SWITCH "DW" POSITION
{
IF &GEARL_DW_I = 1
{
IF &GEARL_UP_I = 0
{
&commands4 = 1173
&commands4 = -2
}
}
ELSE
{
IF &GEARL_UP_I = 0
{
&commands4 = 1172
&commands4 = -2
}
}
}
Var 0970, name GRDPROXSYST_I, Link IOCARD_SW, Device 15, Input 32 // GROUND PROXIMITY SYS TEST SWITCH
{
IF &GRDPROXSYST_I = 1
{
&commands4 = 1191
&commands4 = -2
}
}
Var 0971, name GRDPROXFLAP_I, Link IOCARD_SW, Device 15, Input 33 // GROUND PROXIMITY FLAP INHIBIT SWITCH
{
IF &GRDPROXFLAP_I = 1
{
&commands4 = 1183
&commands4 = -2
}
ELSE
{
&commands4 = 1184
&commands4 = -2
}
}
Var 0972, name GRDPROXGEAR_I, Link IOCARD_SW, Device 15, Input 34 // GROUND PROXIMITY GEAR INHIBIT SWITCH
{
IF &GRDPROXGEAR_I = 1
{
&commands4 = 1186
&commands4 = -2
}
ELSE
{
&commands4 = 1187
&commands4 = -2
}
}
Var 0973, name GRDPROXTERR_I, Link IOCARD_SW, Device 15, Input 35 // GROUND PROXIMITY TERR INHIBIT SWITCH
{
IF &GRDPROXTERR_I = 1
{
&commands4 = 1189
&commands4 = -2
}
ELSE
{
&commands4 = 1190
&commands4 = -2
}
}
Var 0974, name FREE_1_I, Link IOCARD_SW, Device 15, Input 24 // FREE INPUT
Var 0975, name FREE_2_I, Link IOCARD_SW, Device 15, Input 25 // FREE INPUT
Var 0976, name FREE_3_I, Link IOCARD_SW, Device 15, Input 26 // FREE INPUT
Var 0977, name FREE_4_I, Link IOCARD_SW, Device 15, Input 44 // FREE INPUT
Var 0978, name FREE_5_I, Link IOCARD_SW, Device 15, Input 62 // FREE INPUT
Var 0979, name FREE_6_I, Link IOCARD_SW, Device 15, Input 71 // FREE INPUT
Var 0980
Var 0981
Var 0982
Var 0983, name AFDSAPG_L_O, Link IOCARD_OUT, Device 15, Output 11 // AFDS LEFT GREEN AP/P/RST LED
Var 0984, name AFDSAPR_L_O, Link IOCARD_OUT, Device 15, Output 12 // AFDS LEFT "RED AP/P/RST LED"
Var 0985, name AFDSATG_L_O, Link IOCARD_OUT, Device 15, Output 13 // AFDS LEFT "GREEN AT/P/RST LED"
Var 0986, name AFDSATR_L_O, Link IOCARD_OUT, Device 15, Output 14 // AFDS LEFT "RED AT/P/RST LED"
Var 0987, name AFDSFMCG_L_O, Link IOCARD_OUT, Device 15, Output 15 // AFDS LEFT "GREEN FMC/P/RST LED"
Var 0988, name AFDSAPG_R_O, Link IOCARD_OUT, Device 15, Output 16 // AFDS RIGHT "GREEN AP/P/RST LED"
Var 0989, name AFDSAPR_R_O, Link IOCARD_OUT, Device 15, Output 17 // AFDS RIGHT "RED AP/P/RST LED"
Var 0990, name AFDSATG_R_O, Link IOCARD_OUT, Device 15, Output 18 // AFDS RIGHT "GREEN AT/P/RST LED"
Var 0991, name AFDSATR_R_O, Link IOCARD_OUT, Device 15, Output 19 // AFDS RIGHT "RED AT/P/RST LED"
Var 0992, name AFDSFMCG_R_O, Link IOCARD_OUT, Device 15, Output 20 // AFDS RIGHT "GREEN FMC/P/RST LED"
Var 0993, name AFDS_APLEDS_O, Link IOCP, Offset 55
{
&AFDSAPG_L_O = TESTBIT &AFDS_APLEDS_O ,0 // AP AMBER/GREEN LEFT INDICATOR LIGHT
&AFDSAPG_R_O = TESTBIT &AFDS_APLEDS_O ,0 // AP AMBER/GREEN RIGHT INDICATOR LIGHT
&AFDSAPR_L_O = TESTBIT &AFDS_APLEDS_O ,1 // AP RED LEFT INDICATOR LIGHT
&AFDSAPR_R_O = TESTBIT &AFDS_APLEDS_O ,1 // AP RED RIGHT INDICATOR LIGHT
}
Var 0994, name AFDS_ATLEDS_O, Link IOCP, Offset 56
{
&AFDSATG_L_O = TESTBIT &AFDS_ATLEDS_O ,0 // AT AMBER/GREEN LEFT INDICATOR LIGHT
&AFDSATG_R_O = TESTBIT &AFDS_ATLEDS_O ,0 // AT AMBER/GREEN RIGHT INDICATOR LIGHT
&AFDSATR_L_O = TESTBIT &AFDS_ATLEDS_O ,1 // AT RED LEFT INDICATOR LIGHT
&AFDSATR_R_O = TESTBIT &AFDS_ATLEDS_O ,1 // AT RED RIGHT INDICATOR LIGHT
}
Var 0995, name AFDS_FMC_O, Link IOCP, Offset 58
{
&AFDSFMCG_L_O = &AFDS_FMC_O
&AFDSFMCG_R_O = &AFDS_FMC_O
}
Var 0996, name FIREW_L_O, Link IOCARD_OUT, Device 15, Output 25 // LEFT FIRE WARNING INDICATOR
Var 0997, name FIREW_R_O, Link IOCARD_OUT, Device 15, Output 50 // RIGHT FIRE WARNING INDICATOR
Var 0998, name FIREW_LEDS_O, Link IOCP, Offset 801
{
&FIREW_L_O = &FIREW_LEDS_O
&FIREW_R_O = &FIREW_LEDS_O
}
Var 0999, name MASTERC_L_O, Link IOCARD_OUT, Device 15, Output 26 // LEFT MASTER CAUTION INDICATOR
Var 1000, name MASTERC_R_O, Link IOCARD_OUT, Device 15, Output 49 // RIGHT MASTER CAUTION INDICATOR
Var 1001, name MASTERC_LEDS_O, Link IOCP, Offset 802
{
&MASTERC_L_O = &MASTERC_LEDS_O
&MASTERC_R_O = &MASTERC_LEDS_O
}
Var 1002, name SIXPFLT_L_O, Link IOCARD_OUT, Device 15, Output 27 // LEFT SIXPACK FLT CONT INDICATOR
Var 1003, name SIXPELE_L_O, Link IOCARD_OUT, Device 15, Output 28 // LEFT SIXPACK ELEC INDICATOR
Var 1004, name SIXPIRS_L_O, Link IOCARD_OUT, Device 15, Output 29 // LEFT SIXPACK IRS INDICATOR
Var 1005, name SIXPAPU_L_O, Link IOCARD_OUT, Device 15, Output 30 // LEFT SIXPACK APU INDICATOR
Var 1006, name SIXPFUEL_L_O, Link IOCARD_OUT, Device 15, Output 31 // LEFT SIXPACK FUEL INDICATOR
Var 1007, name SIXPOVHT_L_O, Link IOCARD_OUT, Device 15, Output 32 // LEFT SIXPACK OVHT/DET INDICATOR
Var 1008, name SIXP_FLT_O, Link IOCP, Offset 803 // LEFT SIXPACK FLT CONT INDICATOR OFFSET
{
&SIXPFLT_L_O = &SIXP_FLT_O
}
Var 1009, name SIXP_ELE_L_O, Link IOCP, Offset 806 // LEFT SIXPACK ELEC INDICATOR OFFSET
{
&SIXPELE_L_O = &SIXP_ELE_L_O
}
Var 1010, name SIXP_IRS_L_O, Link IOCP, Offset 804 // LEFT SIXPACK IRS INDICATOR OFFSET
{
&SIXPIRS_L_O = &SIXP_IRS_L_O
}
Var 1011, name SIXP_APU_L_O, Link IOCP, Offset 807 // LEFT SIXPACK APU INDICATOR OFFSET
{
&SIXPAPU_L_O = &SIXP_APU_L_O
}
Var 1012, name SIXP_FUEL_L_O, Link IOCP, Offset 805 // LEFT SIXPACK FUEL INDICATOR OFFSET
{
&SIXPFUEL_L_O = &SIXP_FUEL_L_O
}
Var 1013, name SIXP_OVHT_L_O, Link IOCP, Offset 808 // LEFT SIXPACK OVHT/DET INDICATOR OFFSET
{
&SIXPOVHT_L_O = &SIXP_OVHT_L_O
}
Var 1014, name SIXPICE_R_O, Link IOCARD_OUT, Device 15, Output 43 // RIGHT SIXPACK ANTI-ICE INDICATOR
Var 1015, name SIXPENG_R_O, Link IOCARD_OUT, Device 15, Output 44 // RIGHT SIXPACK ENG INDICATOR
Var 1016, name SIXPHYD_R_O, Link IOCARD_OUT, Device 15, Output 45 // RIGHT SIXPACK HYD INDICATOR
Var 1017, name SIXPOVE_R_O, Link IOCARD_OUT, Device 15, Output 46 // RIGHT SIXPACK OVERHEAD INDICATOR
Var 1018, name SIXPDOO_R_O, Link IOCARD_OUT, Device 15, Output 47 // RIGHT SIXPACK DOORS INDICATOR
Var 1019, name SIXPAIR_R_O, Link IOCARD_OUT, Device 15, Output 48 // RIGHT SIXPACK AIR COND INDICATOR
Var 1020, name SIXP_ICE_R_O, Link IOCP, Offset 809 // RIGHT LEFT SIXPACK ANTI-ICE INDICATOR OF
{
&SIXPICE_R_O = &SIXP_ICE_R_O
}
Var 1021, name SIXP_ENG_R_O, Link IOCP, Offset 812 // RIGHT SIXPACK ENG INDICATOR OFFSET
{
&SIXPENG_R_O = &SIXP_ENG_R_O
}
Var 1022, name SIXP_HYD_R_O, Link IOCP, Offset 810 // RIGHT SIXPACK HYD INDICATOR OFFSET
{
&SIXPHYD_R_O = &SIXP_HYD_R_O
}
Var 1023, name SIXP_OVE_R_O, Link IOCP, Offset 813 // RIGHT SIXPACK OVERHEAD INDICATOR OFFSET
{
&SIXPOVE_R_O = &SIXP_OVE_R_O
}
Var 1024, name SIXP_DOO_R_O, Link IOCP, Offset 811 // RIGHT SIXPACK DOORS INDICATOR OFFSET
{
&SIXPDOO_R_O = &SIXP_DOO_R_O
}
Var 1025, name SIXP_AIR_R_O, Link IOCP, Offset 814 // RIGHT SIXPACK AIR COND INDICATOR OFFSET
{
&SIXPAIR_R_O = &SIXP_AIR_R_O
}
Var 1026, name BELOW_L_O, Link IOCARD_OUT, Device 15, Output 33 // LEFT BELOW G/S P-INHIBIT INDICATOR
Var 1027, name BELOW_R_O, Link IOCARD_OUT, Device 15, Output 52 // RIGHT BELOW G/S P-INHIBIT INDICATOR
Var 1028, name SPDBKARM_O, Link IOCARD_OUT, Device 15, Output 34 // SPEED BRAKE ARMED INDICATOR
Var 1029, name SPDBKNARM_O, Link IOCARD_OUT, Device 15, Output 35 // SPEED BRAKE DO NOT ARM INDICATOR
Var 1030, name STABOUT_O, Link IOCARD_OUT, Device 15, Output 36 // STAB OUT OF TRIM KORRY INDICATOR
Var 1031, name NOSEG_UP_O, Link IOCARD_OUT, Device 15, Output 37 // NOSE GEAR UP INDICATOR
Var 1032, name NOSEG_DW_O, Link IOCARD_OUT, Device 15, Output 38 // NOSE GEAR DW INDICATOR
Var 1033, name LEFTG_UP_O, Link IOCARD_OUT, Device 15, Output 39 // LEFT GEAR UP INDICATOR
Var 1034, name RIGHTG_UP_O, Link IOCARD_OUT, Device 15, Output 40 // RIGHT GEAR UP INDICATOR
Var 1035, name LEFTG_DW_O, Link IOCARD_OUT, Device 15, Output 41 // LEFT GEAR DW INDICATOR
Var 1036, name RIGHTG_DW_O, Link IOCARD_OUT, Device 15, Output 42 // RIGHT GEAR DW INDICATOR
Var 1037, name GPWS_INOP_O, Link IOCARD_OUT, Device 15, Output 53 // GPWS INOP INDICATOR
Var 1038, name SPDBKEXT_O, Link IOCARD_OUT, Device 15, Output 51 // SPEED BRAKE EXTENDED
Var 1039, name BELOW_O, Link IOCP, Offset 819 // BELOW G/S P-INHIBIT INDICATORS OFFSET
{
&BELOW_L_O = &BELOW_O
&BELOW_R_O = &BELOW_O
}
Var 1040, name SPDBKARMO_O, Link IOCP, Offset 485 // SPEED BRAKE ARMED INDICATOR
{
&SPDBKARM_O = &SPDBKARMO_O
}
Var 1041, name SPDBKNARMO_O, Link IOCP, Offset 486 // SPEED BRAKE DO NOT ARM INDICATOR
{
&SPDBKNARM_O = &SPDBKNARMO_O
}
Var 1042, name STABOUTO_O, Link IOCP, Offset 477 // STAB OUT OF TRIM KORRY INDICATOR
{
&STABOUT_O = &STABOUTO_O
}
Var 1043, name NOSEG_UPO_O, Link IOCP, Offset 788 // NOSE GEAR UP INDICATOR
{
&NOSEG_UP_O = &NOSEG_UPO_O
}
Var 1044, name NOSEG_DWO_O, Link IOCP, Offset 789 // NOSE GEAR DW INDICATOR
{
&NOSEG_DW_O = &NOSEG_DWO_O
}
Var 1045, name LEFTG_UPO_O, Link IOCP, Offset 790 // LEFT GEAR UP INDICATOR
{
&LEFTG_UP_O = &LEFTG_UPO_O
}
Var 1046, name RIGHTG_UPO_O, Link IOCP, Offset 792 // RIGHT GEAR UP INDICATOR
{
&RIGHTG_UP_O = &RIGHTG_UPO_O
}
Var 1047, name LEFTG_DWO_O, Link IOCP, Offset 791 // LEFT GEAR DW INDICATOR
{
&LEFTG_DW_O = &LEFTG_DWO_O
}
Var 1048, name RIGHTG_DWO_O, Link IOCP, Offset 793 // RIGHT GEAR DW INDICATOR
{
&RIGHTG_DW_O = &RIGHTG_DWO_O
}
Var 1049, name GPWSINOP_O, Link IOCP, Offset 824 // GPWS INOP INDICATOR
{
&GPWS_INOP_O = &GPWSINOP_O
}
Var 1050, name SPDBKEX_O, Link IOCP, Offset 487 // SPEED BRAKE EXTENDED INDICATOR
{
&SPDBKEXT_O = &SPDBKEX_O
}
Var 1051, name FREE_1_O, Link IOCARD_OUT, Device 15, Output 54 // FREE OUTPUT
Var 1052, name FREE_2_O, Link IOCARD_OUT, Device 15, Output 55 // FREE OUTPUT
Var 1053, name SERVO_YAW, Link USB_SERVOS, Device 18, Output 3, PosL 321, PosC 521, PosR 766, Type 1 // YAW DAMPER G
Var 1054, name SERVO_FLAPL, Link USB_SERVOS, Device 18, Output 2, PosL 200, PosC 630, PosR 1023, Type 1 // LEFT NEED
{
IF &SERVO_FLAPL < 142
{
&SERVO_FLAPL = 142
}
}
Var 1055, name SERVO_FLAPR, Link USB_SERVOS, Device 18, Output 1, PosL 136, PosC 617, PosR 1023, Type 1 // RIGHT NEE
{
IF &SERVO_FLAPR < 142
{
&SERVO_FLAPR = 142
}
}
Var 1056, name SERVO_BRAKE, Link USB_SERVOS, Device 18, Output 4, PosL 200, PosC 600, PosR 972, Type 1 // BRAKE PRES
Var 1057, name crewoxy, Link FSUIPC_INOUT, Offset $94D8, Length 2
{
L0 = &crewoxy / 10
L1 = L0 * 3.75
&SERVO_OXY = L1 + 220
}
Var 1058, name airtemp, Link FSUIPC_INOUT, Offset $9484, Length 1
{
L0 = &airtemp * 6.85
L1 = L0 + 229
&SERVO_CabTemp = L1
}
Var 1059, name ductpressR, Link FSUIPC_INOUT, Offset $9485, Length 1
{
L0 = &ductpressR * 9.36
&SERVO_PressR = L0 + 216
}
Var 1060, name ductpressL, Link FSUIPC_INOUT, Offset $9486, Length 1
{
L0 = &ductpressL * 9.53
&SERVO_PressL = L0 + 207
}
Var 1061, name valvemanuel, Link IOCP, Offset 104
{
L0 = &valvemanuel * 2.4
L1 = L0 + 688
&SERVO_OUTFLOW = L1
}
Var 1062, name fueltemp, Link FSUIPC_INOUT, Offset $94D2, Length 2
{
L0 = &fueltemp * 0.7
&SERVO_FuelTemp = L0 + 565
}
Var 1063, name apuegt, Link FSUIPC_INOUT, Offset $949D, Length 2
{
L0 = &apuegt * 0.7
&SERVO_APU = L0 + 230
}
Var 1064, name diffpress, Link IOCP, Offset 120
{
L0 = &diffpress * 106
L1 = L0 + 143
&SERVO_PresDiff = L1
}
Var 1065, name cabalt, Link IOCP, Offset 119
{
L0 = &cabalt / 1000
L1 = L0 * 25.7
&SERVO_CabAlt = L1 + 235
}
Var 1066, name cabinclimb, Link IOCP, Offset 122
{
L0 = &cabinclimb / 10
L1 = L0 * 3
&SERVO_CabVSI = L1 + 551
}
Var 1067, name flaps, Link FSUIPC_INOUT, Offset $94A4, Length 1
{
L0 = &flaps
IF L0 > 0
{
IF L0 <= 1
{
&SERVO_FLAPR = TIMER 257 ,1 ,1
&SERVO_FLAPL = TIMER 242 ,1 ,1
}
}
IF L0 > 1
{
IF L0 <= 2
{
&SERVO_FLAPR = TIMER 389 ,1 ,1
&SERVO_FLAPL = TIMER 363 ,1 ,1
}
}
IF L0 > 2
{
IF L0 <= 3
{
&SERVO_FLAPR = TIMER 490 ,1 ,10
&SERVO_FLAPL = TIMER 463 ,1 ,10
}
}
IF L0 > 3
{
IF L0 <= 4
{
&SERVO_FLAPR = TIMER 617 ,1 ,1
&SERVO_FLAPL = TIMER 563 ,1 ,1
}
}
IF L0 > 4
{
IF L0 <= 5
{
&SERVO_FLAPL = TIMER 648 ,1 ,1
&SERVO_FLAPR = TIMER 708 ,1 ,1
}
}
IF L0 > 5
{
IF L0 <= 6
{
&SERVO_FLAPL = TIMER 719 ,1 ,1
&SERVO_FLAPR = TIMER 799 ,1 ,1
}
}
IF L0 > 6
{
IF L0 <= 7
{
&SERVO_FLAPL = TIMER 832 ,1 ,1
&SERVO_FLAPR = TIMER 929 ,1 ,1
}
}
IF L0 > 7
{
IF L0 <= 8
{
&SERVO_FLAPL = TIMER 914 ,1 ,1
&SERVO_FLAPR = TIMER 1023 ,1 ,1
}
}
IF L0 < 8
{
IF L0 >= 7
{
&SERVO_FLAPL = TIMER 832 ,-1 ,1
&SERVO_FLAPR = TIMER 929 ,-1 ,1
}
}
IF L0 < 7
{
IF L0 >= 6
{
&SERVO_FLAPL = TIMER 719 ,-1 ,1
&SERVO_FLAPR = TIMER 799 ,-1 ,1
}
}
IF L0 < 6
{
IF L0 >= 5
{
&SERVO_FLAPL = TIMER 648 ,-1 ,1
&SERVO_FLAPR = TIMER 708 ,-1 ,1
}
}
IF L0 < 5
{
IF L0 >= 4
{
&SERVO_FLAPL = TIMER 563 ,-1 ,1
&SERVO_FLAPR = TIMER 617 ,-1 ,1
}
}
IF L0 < 4
{
IF L0 >= 3
{
&SERVO_FLAPL = TIMER 463 ,-1 ,1
&SERVO_FLAPR = TIMER 490 ,-1 ,1
}
}
IF L0 < 3
{
IF L0 >= 2
{
&SERVO_FLAPL = TIMER 363 ,-1 ,10
&SERVO_FLAPR = TIMER 389 ,-1 ,10
}
}
IF L0 < 2
{
IF L0 >= 1
{
&SERVO_FLAPL = TIMER 242 ,-1 ,1
&SERVO_FLAPR = TIMER 257 ,-1 ,1
}
}
IF L0 < 1
{
IF L0 >= 0
{
&SERVO_FLAPL = TIMER 142 ,-1 ,1
&SERVO_FLAPR = TIMER 142 ,-1 ,1
}
}
}
Var 1068, name brakepress, Link FSUIPC_INOUT, Offset $94D6, Length 2
{
L0 = &brakepress / 100
L1 = L0 * 19.48
&SERVO_BRAKE = L1 + 209
}
Var 1069, name SERVO_OXY, Link USB_SERVOS, Device 20, Output 1, PosL 0, PosC 512, PosR 1023, Type 1
Var 1070, name yaw_damper, Link FSUIPC_INOUT, Offset $94A1, Length 2
Var 1071, name ELT_SW, Link IOCARD_SW, Device 21, Input 85
{
IF &ELT_SW = 1
{
&ELT_O = 1
}
ELSE
{
&ELT_O = 0
}
}
Var 1072, name ELT_O, Link IOCARD_OUT, Device 21, Output 93 // ELT INDICATOR
Var 1073, name LE_TEST_I, Link IOCARD_SW, Device 21, Input 68 // LE DEVICES TEST SWITCH
{
IF &LE_TEST_I = 1
{
&command = 615
}
ELSE
{
&command = -1
}
}
Var 1074, name SLATFLAPSRIGHT, Link FSUIPC_INOUT, Offset $9429, Length 1
{
&SLAT5FULL = TESTBIT &SLATFLAPSRIGHT ,2
&SLAT6FULL = TESTBIT &SLATFLAPSRIGHT ,2
&SLAT7FULL = TESTBIT &SLATFLAPSRIGHT ,2
&SLAT8FULL = TESTBIT &SLATFLAPSRIGHT ,2
&SLAT5TRANS = TESTBIT &SLATFLAPSRIGHT ,0
&SLAT6TRANS = TESTBIT &SLATFLAPSRIGHT ,0
&SLAT7TRANS = TESTBIT &SLATFLAPSRIGHT ,0
&SLAT8TRANS = TESTBIT &SLATFLAPSRIGHT ,0
&SLAT5EXT = TESTBIT &SLATFLAPSRIGHT ,1
&SLAT6EXT = TESTBIT &SLATFLAPSRIGHT ,1
&SLAT7EXT = TESTBIT &SLATFLAPSRIGHT ,1
&SLAT8EXT = TESTBIT &SLATFLAPSRIGHT ,1
&FLAP3EXT = TESTBIT &SLATFLAPSRIGHT ,4
&FLAP4EXT = TESTBIT &SLATFLAPSRIGHT ,4
&FLAP3TRANS = TESTBIT &SLATFLAPSRIGHT ,3
&FLAP4TRANS = TESTBIT &SLATFLAPSRIGHT ,3
}
Var 1075, name SLATFLAPLEFT, Link FSUIPC_INOUT, Offset $9415, Length 1
{
&SLAT1FULL = TESTBIT &SLATFLAPLEFT ,2
&SLAT2FULL = TESTBIT &SLATFLAPLEFT ,2
&SLAT3FULL = TESTBIT &SLATFLAPLEFT ,2
&SLAT4FULL = TESTBIT &SLATFLAPLEFT ,2
&SLAT1TRANS = TESTBIT &SLATFLAPLEFT ,0
&SLAT2TRANS = TESTBIT &SLATFLAPLEFT ,0
&SLAT3TRANS = TESTBIT &SLATFLAPLEFT ,0
&SLAT4TRANS = TESTBIT &SLATFLAPLEFT ,0
&SLAT1EXT = TESTBIT &SLATFLAPLEFT ,1
&SLAT2EXT = TESTBIT &SLATFLAPLEFT ,1
&SLAT3EXT = TESTBIT &SLATFLAPLEFT ,1
&SLAT4EXT = TESTBIT &SLATFLAPLEFT ,1
&FLAP1EXT = TESTBIT &SLATFLAPLEFT ,4
&FLAP2EXT = TESTBIT &SLATFLAPLEFT ,4
&FLAP1TRANS = TESTBIT &SLATFLAPLEFT ,3
&FLAP2TRANS = TESTBIT &SLATFLAPLEFT ,3
}
Var 1076, name SLAT1TRANS, Link IOCARD_OUT, Device 21, Output 11 // SLAT 1 TRANSIT INDICATOR
Var 1077, name SLAT1EXT, Link IOCARD_OUT, Device 21, Output 12 // SLAT 1 EXTENDED INDICATOR
Var 1078, name SLAT1FULL, Link IOCARD_OUT, Device 21, Output 13 // SLAT 1 FULL EXTENDED INDICATOR
Var 1079, name SLAT2TRANS, Link IOCARD_OUT, Device 21, Output 14 // SLAT 2 TRANSIT INDICATOR
Var 1080, name SLAT2EXT, Link IOCARD_OUT, Device 21, Output 15 // SLAT 2 EXTENDED INDICATOR
Var 1081, name SLAT2FULL, Link IOCARD_OUT, Device 21, Output 16 // SLAT 2 FULL EXTENDED INDICATOR
Var 1082, name SLAT3TRANS, Link IOCARD_OUT, Device 21, Output 17 // SLAT 3 TRANSIT INDICATOR
Var 1083, name SLAT3EXT, Link IOCARD_OUT, Device 21, Output 18 // SLAT 3 EXTENDED INDICATOR
Var 1084, name SLAT3FULL, Link IOCARD_OUT, Device 21, Output 19 // SLAT 3 FULL EXTENDED INDICATOR
Var 1085, name SLAT4TRANS, Link IOCARD_OUT, Device 21, Output 20 // SLAT 4 TRANSIT INDICATOR
Var 1086, name SLAT4EXT, Link IOCARD_OUT, Device 21, Output 21 // SLAT 4 EXTENDED INDICATOR
Var 1087, name SLAT4FULL, Link IOCARD_OUT, Device 21, Output 22 // SLAT 4 FULL EXTENDED INDICATOR
Var 1088, name SLAT5TRANS, Link IOCARD_OUT, Device 21, Output 31 // SLAT 5 TRANSIT INDICATOR
Var 1089, name SLAT5EXT, Link IOCARD_OUT, Device 21, Output 32 // SLAT 5 EXTENDED INDICATOR
Var 1090, name SLAT5FULL, Link IOCARD_OUT, Device 21, Output 33 // SLAT 5 FULL EXTENDED INDICATOR
Var 1091, name SLAT6TRANS, Link IOCARD_OUT, Device 21, Output 34 // SLAT 6 TRANSIT INDICATOR
Var 1092, name SLAT6EXT, Link IOCARD_OUT, Device 21, Output 35 // SLAT 6 EXTENDED INDICATOR
Var 1093, name SLAT6FULL, Link IOCARD_OUT, Device 21, Output 36 // SLAT 6 FULL EXTENDED INDICATOR
Var 1094, name SLAT7TRANS, Link IOCARD_OUT, Device 21, Output 37 // SLAT 7 TRANSIT INDICATOR
Var 1095, name SLAT7EXT, Link IOCARD_OUT, Device 21, Output 38 // SLAT 7 EXTENDED INDICATOR
Var 1096, name SLAT7FULL, Link IOCARD_OUT, Device 21, Output 39 // SLAT 7 FULL EXTENDED INDICATOR
Var 1097, name SLAT8TRANS, Link IOCARD_OUT, Device 21, Output 40 // SLAT 8 TRANSIT INDICATOR
Var 1098, name SLAT8EXT, Link IOCARD_OUT, Device 21, Output 41 // SLAT 8 EXTENDED INDICATOR
Var 1099, name SLAT8FULL, Link IOCARD_OUT, Device 21, Output 42 // SLAT 8 FULL EXTENDED INDICATOR
Var 1100, name FLAP1TRANS, Link IOCARD_OUT, Device 21, Output 23 // FLAP 1 TRANSIT INDICATOR
Var 1101, name FLAP1EXT, Link IOCARD_OUT, Device 21, Output 24 // FLAP 1 EXTENDED INDICATOR
Var 1102, name FLAP2TRANS, Link IOCARD_OUT, Device 21, Output 25 // FLAP 2 TRANSIT INDICATOR
Var 1103, name FLAP2EXT, Link IOCARD_OUT, Device 21, Output 26 // FLAP 2 EXTENDED INDICATOR
Var 1104, name FLAP3TRANS, Link IOCARD_OUT, Device 21, Output 27 // FLAP 3 TRANSIT INDICATOR
Var 1105, name FLAP3EXT, Link IOCARD_OUT, Device 21, Output 28 // FLAP 3 EXTENDED INDICATOR
Var 1106, name FLAP4TRANS, Link IOCARD_OUT, Device 21, Output 29 // FLAP 4 TRANSIT INDICATOR
Var 1107, name FLAP4EXT, Link IOCARD_OUT, Device 21, Output 30 // FLAP 4 EXTENDED INDICATOR
Var 1108, name PSEU, Link FSUIPC_INOUT, Offset $9421, Length 1
{
&PSEU_O = TESTBIT &PSEU ,6
}
Var 1109, name PSEU_O, Link IOCARD_OUT, Device 21, Output 94 // PSEU INDICATOR
Var 1110, name irspoin1, Link FSUIPC_INOUT, Offset $94C1, Length 1
{
&IRS_DOT1R = &irspoin1
}
Var 1111, name IRS_DOT1R, Link IOCARD_OUT, Device 21, Output 43 // RIGHT HALF DISPLAY: RIGHT DOT
Var 1112, name irspoin2, Link FSUIPC_INOUT, Offset $94C2, Length 1
{
&IRS_DOT2R = &irspoin2
}
Var 1113, name IRS_DOT2R, Link IOCARD_OUT, Device 21, Output 44 // RIGHT HALF DISPLAY: CENTER DOT
Var 1114, name irspoin3, Link FSUIPC_INOUT, Offset $94C3, Length 1
{
&IRS_DOT3R = &irspoin3
}
Var 1115, name IRS_DOT3R, Link IOCARD_OUT, Device 21, Output 45 // RIGHT HALF DISPLAY: LEFT DOT
Var 1116, name irspoint4, Link FSUIPC_INOUT, Offset $94BE, Length 1
{
&IRS_DOT1L = &irspoint4
}
Var 1117, name IRS_DOT1L, Link IOCARD_OUT, Device 21, Output 46 // LEFT HALF DISPLAY: RIGHT DOT
Var 1118, name irspoin5, Link FSUIPC_INOUT, Offset $94BF, Length 1
{
&IRS_DOT2L = &irspoin5
}
Var 1119, name IRS_DOT2L, Link IOCARD_OUT, Device 21, Output 47 // LEFT HALF DISPLAY: CENTER DOT
Var 1120, name irspoin6, Link FSUIPC_INOUT, Offset $94C0, Length 1
{
&IRS_DOT3L = &irspoin6
}
Var 1121, name IRS_DOT3L, Link IOCARD_OUT, Device 21, Output 48 // LEFT HALF DISPLAY: LEFT DOT
Var 1122, name irsR1, Link FSUIPC_INOUT, Offset $94BD, Length 1
{
IF &irsR1 = 10
{
&IRS_R_1 = -999999
}
ELSE
{
&IRS_R_1 = &irsR1
}
}
Var 1123, name IRS_R_1, Link IOCARD_DISPLAY, Device 21, Digit 1, Numbers 1 // IRS's RIGHT DISPLAY DIGITS
Var 1124, name irsR2, Link FSUIPC_INOUT, Offset $94BC, Length 1
{
IF &irsR2 = 10
{
&IRS_R_2 = -999999
}
ELSE
{
&IRS_R_2 = &irsR2
}
}
Var 1125, name IRS_R_2, Link IOCARD_DISPLAY, Device 21, Digit 2, Numbers 1
Var 1126, name irsR3, Link FSUIPC_INOUT, Offset $94BB, Length 1
{
IF &irsR3 = 10
{
&IRS_R_3 = -999999
}
ELSE
{
&IRS_R_3 = &irsR3
}
}
Var 1127, name IRS_R_3, Link IOCARD_DISPLAY, Device 21, Digit 3, Numbers 1
Var 1128, name irsR4, Link FSUIPC_INOUT, Offset $94BA, Length 1
{
IF &irsR4 = 10
{
&IRS_R_4 = -999999
}
ELSE
{
&IRS_R_4 = &irsR4
}
}
Var 1129, name IRS_R_4, Link IOCARD_DISPLAY, Device 21, Digit 4, Numbers 1
Var 1130, name irsR5, Link FSUIPC_INOUT, Offset $94B9, Length 1
{
IF &irsR5 = 10
{
&IRS_R_5 = -999999
}
ELSE
{
&IRS_R_5 = &irsR5
}
}
Var 1131, name IRS_R_5, Link IOCARD_DISPLAY, Device 21, Digit 5, Numbers 1
Var 1132, name irsR6, Link FSUIPC_INOUT, Offset $94B8, Length 1
{
IF &irsR6 = 10
{
&IRS_R_6 = -999999
}
ELSE
{
&IRS_R_6 = &irsR6
}
}
Var 1133, name IRS_R_6, Link IOCARD_DISPLAY, Device 21, Digit 6, Numbers 1
Var 1134, name irsEW, Link FSUIPC_INOUT, Offset $94B7, Length 1
{
IF &irsEW > 0
{
&IRS_EW = -999997
}
IF &irsEW < -1
{
&IRS_EW = -999996
}
IF &irsEW = 10
{
&IRS_EW = -999999
}
}
Var 1135, name IRS_EW, Link IOCARD_DISPLAY, Device 21, Digit 7, Numbers 1 // IRS's EAST&WEST DIGIT
Var 1136, name irsL1, Link FSUIPC_INOUT, Offset $94B6, Length 1
{
IF &irsL1 = 10
{
&IRS_L_1 = -999999
}
ELSE
{
&IRS_L_1 = &irsL1
}
}
Var 1137, name IRS_L_1, Link IOCARD_DISPLAY, Device 21, Digit 9, Numbers 1 // IRS's LEFT DISPLAY DIGITS
Var 1138, name irsL2, Link FSUIPC_INOUT, Offset $94B5, Length 1
{
IF &irsL2 = 10
{
&IRS_L_2 = -999999
}
ELSE
{
&IRS_L_2 = &irsL2
}
}
Var 1139, name IRS_L_2, Link IOCARD_DISPLAY, Device 21, Digit 10, Numbers 1
Var 1140, name irsL3, Link FSUIPC_INOUT, Offset $94B4, Length 1
{
IF &irsL3 = 10
{
&IRS_L_3 = -999999
}
ELSE
{
&IRS_L_3 = &irsL3
}
}
Var 1141, name IRS_L_3, Link IOCARD_DISPLAY, Device 21, Digit 11, Numbers 1
Var 1142, name irsL4, Link FSUIPC_INOUT, Offset $94B3, Length 1
{
IF &irsL4 = 10
{
&IRS_L_4 = -999999
}
ELSE
{
&IRS_L_4 = &irsL4
}
}
Var 1143, name IRS_L_4, Link IOCARD_DISPLAY, Device 21, Digit 12, Numbers 1
Var 1144, name irsL5, Link FSUIPC_INOUT, Offset $94B2, Length 1
{
IF &irsL5 = 10
{
&IRS_L_5 = -999999
}
ELSE
{
&IRS_L_5 = &irsL5
}
}
Var 1145, name IRS_L_5, Link IOCARD_DISPLAY, Device 21, Digit 13, Numbers 1
Var 1146, name irsNS, Link FSUIPC_INOUT, Offset $94B1, Length 1
{
IF &irsNS > 0
{
&IRS_NS = -999995
}
IF &irsNS < -1
{
&IRS_NS = 5
}
IF &irsNS = 10
{
&IRS_NS = -999999
}
}
Var 1147, name IRS_NS, Link IOCARD_DISPLAY, Device 21, Digit 14, Numbers 1 // IRS's NORTH&SOUTH DIGIT
Var 1148, name gpslight, Link FSUIPC_INOUT, Offset $9418, Length 1
{
&IRS_GPS_O = TESTBIT &gpslight ,2
&IRS_ALIGN_L_O = TESTBIT &gpslight ,3
&IRS_FAULT_L_O = TESTBIT &gpslight ,7
&IRS_ONDC_L_O = TESTBIT &gpslight ,4
&IRS_ALIGN_R_O = TESTBIT &gpslight ,5
&IRS_ONDC_R_O = TESTBIT &gpslight ,6
}
Var 1149, name IRS_GPS_O, Link IOCARD_OUT, Device 21, Output 95 // IRS GPS INDICATOR
Var 1150, name IRS_ALIGN_L_O, Link IOCARD_OUT, Device 21, Output 96 // IRS ALIGN L INDICATOR
Var 1151, name IRS_FAULT_L_O, Link IOCARD_OUT, Device 21, Output 97 // IRS FAULT L INDICATOR
Var 1152, name IRS_ONDC_L_O, Link IOCARD_OUT, Device 21, Output 98 // IRS ON DC L INDICATOR
Var 1153, name lightgps2, Link FSUIPC_INOUT, Offset $9419, Length 1
{
&IRS_DCFAIL_L_O = TESTBIT &lightgps2 ,0
&IRS_FAULT_R_O = TESTBIT &lightgps2 ,1
&IRS_DCFAIL_R_O = TESTBIT &lightgps2 ,2
}
Var 1154, name IRS_DCFAIL_L_O, Link IOCARD_OUT, Device 21, Output 99 // IRS DC FAIL L INDICATOR
Var 1155, name IRS_ALIGN_R_O, Link IOCARD_OUT, Device 21, Output 100 // IRS ALIGN R INDICATOR
Var 1156, name IRS_FAULT_R_O, Link IOCARD_OUT, Device 21, Output 101 // IRS FAULT R INDICATOR
Var 1157, name IRS_ONDC_R_O, Link IOCARD_OUT, Device 21, Output 102 // IRS ON DC R INDICATOR
Var 1158, name IRS_DCFAIL_R_O, Link IOCARD_OUT, Device 21, Output 103 // IRS DC FAIL R INDICATOR
Var 1159, name IRS_TEST_I, Link IOCARD_SW, Device 21, Input 48 // IRS TEST ROTARY SWITCH
{
IF &IRS_TEST_I = 1
{
&command = 833
}
}
Var 1160, name IRS_TKGS_I, Link IOCARD_SW, Device 21, Input 49 // IRS TK/GS ROTARY SWITCH
{
IF &IRS_TKGS_I = 1
{
&command = 834
}
}
Var 1161, name IRS_PPOS_I, Link IOCARD_SW, Device 21, Input 50 // IRS PPOS ROTARY SWITCH
{
IF &IRS_PPOS_I = 1
{
&command = 835
}
}
Var 1162, name IRS_WIND_I, Link IOCARD_SW, Device 21, Input 51 // IRS WIND ROTARY SWITCH
{
IF &IRS_WIND_I = 1
{
&command = 836
}
}
Var 1163, name IRS_HDGSTS_I, Link IOCARD_SW, Device 21, Input 52 // IRS HDG/STS ROTARY SWITCH
{
IF &IRS_HDGSTS_I = 1
{
&command = 837
}
}
Var 1164, name IRS_SYSL_I, Link IOCARD_SW, Device 21, Input 53 // IRS SYS DISPLAY LEFT ROTARY SWITCH
{
IF &IRS_SYSL_I = 1
{
&command = 839
}
ELSE
{
&command = 840
}
}
Var 1165, name IRS_LOFF_I, Link IOCARD_SW, Device 21, Input 72 // IRS LEFT OFF ROTARY SWITCH
{
IF &IRS_LOFF_I = 1
{
&command = 855
}
}
Var 1166, name IRS_LALIGN_I, Link IOCARD_SW, Device 21, Input 73 // IRS LEFT ALIGN ROTARY SWITCH
{
IF &IRS_LALIGN_I = 1
{
&command = 856
}
}
Var 1167, name IRS_LNAV_I, Link IOCARD_SW, Device 21, Input 74 // IRS LEFT NAV ROTARY SWITCH
{
IF &IRS_LNAV_I = 1
{
&command = 857
}
}
Var 1168, name IRS_LATT_I, Link IOCARD_SW, Device 21, Input 75 // IRS LEFT ATT ROTARY SWITCH
{
IF &IRS_LATT_I = 1
{
&command = 858
}
}
Var 1169, name IRS_ROFF_I, Link IOCARD_SW, Device 21, Input 76 // IRS RIGHT OFF ROTARY SWITCH
{
IF &IRS_ROFF_I = 1
{
&command = 861
}
}
Var 1170, name IRS_RALIGN_I, Link IOCARD_SW, Device 21, Input 77 // IRS RIGHT ALIGN ROTARY SWITCH
{
IF &IRS_RALIGN_I = 1
{
&command = 862
}
}
Var 1171, name IRS_RNAV_I, Link IOCARD_SW, Device 21, Input 78 // IRS RIGHT NAV ROTARY SWITCH
{
IF &IRS_RNAV_I = 1
{
&command = 863
}
}
Var 1172, name IRS_RATT_I, Link IOCARD_SW, Device 21, Input 79 // IRS RIGHT ATT ROTARY SWITCH
{
IF &IRS_RATT_I = 1
{
&command = 864
}
}
Var 1173, name IRS_KEY1_I, Link IOCARD_SW, Device 21, Input 36 // IRS KEY 1 MOMENTARY SWITCH
{
IF &IRS_KEY1_I = 1
{
&command = 841
}
ELSE
{
&command = -1
}
}
Var 1174, name IRS_KEY2_I, Link IOCARD_SW, Device 21, Input 44 // IRS KEY 2N MOMENTARY SWITCH
{
IF &IRS_KEY2_I = 1
{
&command = 842
}
ELSE
{
&command = -1
}
}
Var 1175, name IRS_KEY3_I, Link IOCARD_SW, Device 21, Input 42 // IRS KEY 3 MOMENTARY SWITCH
{
IF &IRS_KEY3_I = 1
{
&command = 843
}
ELSE
{
&command = -1
}
}
Var 1176, name IRS_KEY4_I, Link IOCARD_SW, Device 21, Input 38 // IRS KEY 4W MOMENTARY SWITCH
{
IF &IRS_KEY4_I = 1
{
&command = 844
}
ELSE
{
&command = -1
}
}
Var 1177, name IRS_KEY5_I, Link IOCARD_SW, Device 21, Input 40 // IRS KEY 5H MOMENTARY SWITCH
{
IF &IRS_KEY5_I = 1
{
&command = 845
}
ELSE
{
&command = -1
}
}
Var 1178, name IRS_KEY6_I, Link IOCARD_SW, Device 21, Input 46 // IRS KEY 6E MOMENTARY SWITCH
{
IF &IRS_KEY6_I = 1
{
&command = 846
}
ELSE
{
&command = -1
}
}
Var 1179, name IRS_KEY7_I, Link IOCARD_SW, Device 21, Input 43 // IRS KEY 7 MOMENTARY SWITCH
{
IF &IRS_KEY7_I = 1
{
&command = 847
}
ELSE
{
&command = -1
}
}
Var 1180, name IRS_KEY8_I, Link IOCARD_SW, Device 21, Input 37 // IRS KEY 8S MOMENTARY SWITCH
{
IF &IRS_KEY8_I = 1
{
&command = 848
}
ELSE
{
&command = -1
}
}
Var 1181, name IRS_KEY9_I, Link IOCARD_SW, Device 21, Input 45 // IRS KEY 9 MOMENTARY SWITCH
{
IF &IRS_KEY9_I = 1
{
&command = 849
}
ELSE
{
&command = -1
}
}
Var 1182, name IRS_KEYENT_I, Link IOCARD_SW, Device 21, Input 47 // IRS KEY ENT MOMENTARY SWITCH
{
IF &IRS_KEYENT_I = 1
{
&command = 850
}
ELSE
{
&command = -1
}
}
Var 1183, name IRS_KEY0_I, Link IOCARD_SW, Device 21, Input 39 // IRS KEY 0 MOMENTARY SWITCH
{
IF &IRS_KEY0_I = 1
{
&command = 851
}
ELSE
{
&command = -1
}
}
Var 1184, name IRS_KEYCLR_I, Link IOCARD_SW, Device 21, Input 41 // IRS KEY CLR MOMENTARY SWITCH
{
IF &IRS_KEYCLR_I = 1
{
&command = 852
}
ELSE
{
&command = -1
}
}
Var 1185, name AFT_PHONE_I, Link IOCARD_SW, Device 21, Input 86 // AFTER SERVICE INTERPHONE ON SWITCH
Var 1186, name AFT_DIM_I, Link IOCARD_SW, Device 21, Input 81 // DOME WHITE DIM SWITCH ON
Var 1187, name AFT_BRIGHT_I, Link IOCARD_SW, Device 21, Input 82 // DOME WHITE BRIGHT SWITCH ON
Var 1188, name AO1_MIC_VH1, Link IOCARD_OUT, Device 21, Output 75 // AUDIO COMM 1 MIC INDICATOR
Var 1189, name AO1_MIC_VH2, Link IOCARD_OUT, Device 21, Output 76 // AUDIO COMM 2 MIC INDICATOR
Var 1190, name AO1_VOL_VH1, Link IOCARD_OUT, Device 21, Output 77 // AUDIO COMM 1 VOL INDICATOR
Var 1191, name AO1_VOL_VH2, Link IOCARD_OUT, Device 21, Output 78 // AUDIO COMM 2 VOL INDICATOR
Var 1192, name AO1_VOL_NV1, Link IOCARD_OUT, Device 21, Output 79 // AUDIO NAV 1 VOL INDICATOR
Var 1193, name AO1_VOL_NV2, Link IOCARD_OUT, Device 21, Output 80 // AUDIO NAV 2 VOL INDICATOR
Var 1194, name AO1_VOL_AD1, Link IOCARD_OUT, Device 21, Output 81 // AUDIO ADF 1 VOL INDICATOR
Var 1195, name AO1_VOL_AD2, Link IOCARD_OUT, Device 21, Output 82 // AUDIO ADF 2 VOL INDICATOR
Var 1196, name AO1_VOL_MKR, Link IOCARD_OUT, Device 21, Output 83 // AUDIO MARKER VOL INDICATOR
Var 1197, name AI1_MIC_VH1, Link IOCARD_SW, Device 21, Input 54, Type P // AUDIO COMM 1 MIC SWITCH
{
IF &AI1_MIC_VH1 = 1
{
&command = 378
IF V0195 = 0
{
&AO1_MIC_VH1 = 1
}
}
ELSE
{
&command = -1
&AO1_MIC_VH1 = 0
}
}
Var 1198, name AI1_MIC_VH2, Link IOCARD_SW, Device 21, Input 55, Type P // AUDIO COMM 2 MIC SWITCH
{
IF &AI1_MIC_VH2 = 1
{
&command = 379
IF V0195 = 0
{
&AO1_MIC_VH2 = 1
}
}
ELSE
{
&command = -1
&AO1_MIC_VH2 = 0
}
}
Var 1199, name AI1_VOL_VH1, Link IOCARD_SW, Device 21, Input 56, Type P // AUDIO COMM 1 VOL SWITCH
{
IF &AI1_VOL_VH1 = 1
{
&command = 391
IF V0195 = 0
{
&AO1_VOL_VH1 = 1
}
}
ELSE
{
&command = -1
&AO1_VOL_VH1 = 0
}
}
Var 1200, name AI1_VOL_VH2, Link IOCARD_SW, Device 21, Input 57, Type P // AUDIO COMM 2 VOL SWITCH
{
IF &AI1_VOL_VH2 = 1
{
&command = 392
IF V0195 = 0
{
&AO1_VOL_VH2 = 1
}
}
ELSE
{
&AO1_VOL_VH2 = 0
&command = -1
}
}
Var 1201, name AI1_VOL_NV1, Link IOCARD_SW, Device 21, Input 58, Type P // AUDIO NAV 1 VOL SWITCH
{
IF &AI1_VOL_NV1 = 1
{
&command = 395
IF V0195 = 0
{
&AO1_VOL_NV1 = 1
}
}
ELSE
{
&AO1_VOL_NV1 = 0
&command = -1
}
}
Var 1202, name AI1_VOL_NV2, Link IOCARD_SW, Device 21, Input 59, Type P // AUDIO NAV 2 VOL SWITCH
{
IF &AI1_VOL_NV2 = 1
{
&command = 396
IF V0195 = 0
{
&AO1_VOL_NV2 = 1
}
}
ELSE
{
&AO1_VOL_NV2 = 0
&command = -1
}
}
Var 1203, name AI1_VOL_AD1, Link IOCARD_SW, Device 21, Input 60, Type P // AUDIO ADF 1 VOL SWITCH
{
IF &AI1_VOL_AD1 = 1
{
IF V0195 = 0
{
&AO1_VOL_AD1 = 1
}
}
ELSE
{
&AO1_VOL_AD1 = 0
}
}
Var 1204, name AI1_VOL_AD2, Link IOCARD_SW, Device 21, Input 61, Type P // AUDIO ADF 2 VOL SWITCH
{
IF &AI1_VOL_AD2 = 1
{
IF V0195 = 0
{
&AO1_VOL_AD2 = 1
}
}
ELSE
{
&AO1_VOL_AD2 = 0
}
}
Var 1205, name AI1_VOL_MKR, Link IOCARD_SW, Device 21, Input 62, Type P // AUDIO MARKER VOL SWITCH
{
IF &AI1_VOL_MKR = 1
{
IF V0195 = 0
{
&AO1_VOL_MKR = 1
}
}
ELSE
{
&AO1_VOL_MKR = 0
}
}
Var 1206, name AI1_RT, Link IOCARD_SW, Device 21, Input 65 // AUDIO RT SWITCH
Var 1207, name AI1_IC, Link IOCARD_SW, Device 21, Input 66 // AUDIO IC SWITCH
Var 1208, name AI1_SEL_V, Link IOCARD_SW, Device 21, Input 64 // AUDIO FILTER V SWITCH
Var 1209, name AI1_SEL_R, Link IOCARD_SW, Device 21, Input 63 // AUDIO FILTER R SWITCH
Var 1210, name AI1_INT_NRM, Link IOCARD_SW, Device 21, Input 67 // AUDIO NORM SWITCH
Var 1211, name reverselight, Link FSUIPC_INOUT, Offset $9410, Length 1
{
&ENG_RVRSER_L_O = TESTBIT &reverselight ,0
&ENG_RVRSER_R_O = TESTBIT &reverselight ,1
&ENG_CONTR_L_O = TESTBIT &reverselight ,2
&ENG_CONTR_R_O = TESTBIT &reverselight ,3
}
Var 1212, name ENG_RVRSER_L_O, Link IOCARD_OUT, Device 21, Output 104 // REVERSER L 1 INDICATOR
Var 1213, name ENG_RVRSER_R_O, Link IOCARD_OUT, Device 21, Output 105 // REVERSER R 2 INDICATOR
Var 1214, name ENG_CONTR_L_O, Link IOCARD_OUT, Device 21, Output 106 // ENGINE CONTROL L 1 INDICATOR
Var 1215, name ENG_CONTR_R_O, Link IOCARD_OUT, Device 21, Output 107 // ENGINE CONTROL R 2 INDICATOR
Var 1216, name ENG_ALTN_L_O, Link IOCARD_OUT, Device 21, Output 84 // ENGINE ALTN L 1 KORRY INDICATOR
Var 1217, name ENG_ON_L_O, Link IOCARD_OUT, Device 21, Output 85 // ENGINE ON L 1 KORRY INDICATOR
Var 1218, name ENG_ALTN_R_O, Link IOCARD_OUT, Device 21, Output 86 // ENGINE ALTN R 2 KORRY INDICATOR
Var 1219, name ENG_ON_R_O, Link IOCARD_OUT, Device 21, Output 87 // ENGINE ON R 2 KORRY INDICATOR
Var 1220, name pasoxylight, Link FSUIPC_INOUT, Offset $9423, Length 1
{
&PASS_OXY_O = TESTBIT &pasoxylight ,2
}
Var 1221, name PASS_OXY_O, Link IOCARD_OUT, Device 21, Output 108 // PASS OXYGEN ON INDICATOR
Var 1222, name PASS_OXY_I, Link IOCARD_SW, Device 21, Input 83 // PASS OXYGEN ON SWITCH
{
IF &PASS_OXY_I = 1
{
&command = 43
}
ELSE
{
&command = 42
}
}
Var 1223, name lightgear, Link FSUIPC_INOUT, Offset $941E, Length 1
{
&AFT_LGEAR_O = TESTBIT &lightgear ,3
&AFT_RGEAR_O = TESTBIT &lightgear ,5
&AFT_NOSEGEAR_O = TESTBIT &lightgear ,1
}
Var 1224, name AFT_LGEAR_O, Link IOCARD_OUT, Device 21, Output 109 // AFT LEFT GEAR INDICATOR
Var 1225, name AFT_RGEAR_O, Link IOCARD_OUT, Device 21, Output 92 // AFT RIGHT GEAR INDICATOR
Var 1226, name AFT_NOSEGEAR_O, Link IOCARD_OUT, Device 21, Output 111 // AFT NOSE GEAR INDICATOR
Var 1227, name AFT_RECOFF_O, Link IOCARD_OUT, Device 21, Output 112 // AFT FLIGHT RECORDER OFF INDICATOR
Var 1228, name FLTREC_I, Link IOCARD_SW, Device 21, Input 84 // AFT FLIGHT RECORDER TEST SWITCH
Var 1229, name MACHWT1_I, Link IOCARD_SW, Device 21, Input 87 // AFT MACH AIRSPEED WARNING TEST 1 SWITCH
{
IF &MACHWT1_I = 1
{
&command = 1195
}
ELSE
{
&command = -1
}
}
Var 1230, name MACHWT2_I, Link IOCARD_SW, Device 21, Input 88 // AFT MACH AIRSPEED WARNING TEST 2 SWITCH
Var 1231, name STALLWT1_I, Link IOCARD_SW, Device 21, Input 90 // AFT STALL WARNING TEST 1 SWITCH
{
IF &STALLWT1_I = 1
{
&command = 1196
}
ELSE
{
&command = -1
}
}
Var 1232, name STALLWT2_I, Link IOCARD_SW, Device 21, Input 91 // AFT STALL WARNING TEST 2 SWITCH
Var 1233, name etatthrottle1, Link FSUIPC_INOUT, Offset $088C, Length 2, Type 1
{
CALL &subthrottle1
CALL &subspoiler
}
Var 1234, name etatthrottle2, Link FSUIPC_INOUT, Offset $0924, Length 2, Type 1
{
CALL &subthrottle2
}
Var 1235, name etatspoilers, Link FSUIPC_INOUT, Offset $0BD0, Length 4
Var 1236, name potthrottle1, Link IOCARD_ANALOGIC, Device 30, Input 1, PosL 18, PosC 140, PosR 210
{
L0 = &potthrottle1 * 83.58
IF &etatautomode > 0
{
IF &etatautomode <= 6
{
&etatthrottle1 = &etatthrottle1
}
}
IF &etatautomode = 0
{
&etatthrottle1 = L0
}
IF &etatautomode = 7
{
&etatthrottle1 = L0
}
}
Var 1237, name potthrottle2, Link IOCARD_ANALOGIC, Device 30, Input 2, PosL 72, PosC 160, PosR 248
{
L0 = &potthrottle2 * 66
IF &etatautomode > 0
{
IF &etatautomode <= 6
{
&etatthrottle2 = &etatthrottle2
}
}
IF &etatautomode = 0
{
&etatthrottle2 = L0
}
IF &etatautomode = 7
{
&etatthrottle2 = L0
}
}
Var 1238, name potspoilers, Link IOCARD_ANALOGIC, Device 30, Input 6, PosL 13, PosC 127, PosR 224
{
L0 = &potspoilers * 73.13
&etatspoilers = L0
CALL &subspoiler
}
Var 1239, name etatflaps, Link FSUIPC_INOUT, Offset $0BDC, Length 4
Var 1240, name potflaps, Link IOCARD_ANALOGIC, Device 30, Input 5, PosL 19, PosC 120, PosR 227
{
L0 = &potflaps
IF L0 < 30
{
&etatflaps = 0
}
IF L0 > 30
{
IF L0 < 50
{
&etatflaps = 2048
}
}
IF L0 > 60
{
IF L0 < 80
{
&etatflaps = 4096
}
}
IF L0 > 90
{
IF L0 < 110
{
&etatflaps = 6144
}
}
IF L0 > 120
{
IF L0 < 150
{
&etatflaps = 8192
}
}
IF L0 > 160
{
IF L0 < 180
{
&etatflaps = 10239
}
}
IF L0 > 190
{
IF L0 < 215
{
&etatflaps = 12287
}
}
IF L0 > 220
{
IF L0 < 240
{
&etatflaps = 14335
}
}
IF L0 > 250
{
&etatflaps = 16383
}
}
Var 1241, name potreverse1, Link IOCARD_ANALOGIC, Device 30, Input 4, PosL 0, PosC 127, PosR 255
{
L0 = &potreverse1
IF L0 > 180
{
&etatthrottle1 = -16384
}
IF L0 > 120
{
IF L0 < 140
{
&etatthrottle1 = 0
}
}
}
Var 1242, name potreverse2, Link IOCARD_ANALOGIC, Device 30, Input 3, PosL 0, PosC 127, PosR 255
{
L0 = &potreverse2
IF L0 > 170
{
&etatthrottle2 = -16384
}
IF L0 > 100
{
IF L0 < 120
{
&etatthrottle2 = 0
}
}
}
Var 1243, name SWidl1, Link IOCARD_SW, Device 30, Input 0
{
IF &SWidl1 = 1
{
&command = 511
}
ELSE
{
&command = 510
}
}
Var 1244, name SWidl2, Link IOCARD_SW, Device 30, Input 1
{
IF &SWidl2 = 1
{
&command = 514
}
ELSE
{
&command = 513
}
}
Var 1245, name SWat1, Link IOCARD_SW, Device 30, Input 2
{
IF &SWat1 = 1
{
&command = 233
&servothrottle1 = -1023
&servothrottle2 = -1023
}
}
Var 1246, name SWat2, Link IOCARD_SW, Device 30, Input 3
{
IF &SWat2 = 1
{
&command = 233
&servothrottle1 = -1023
&servothrottle2 = -1023
}
}
Var 1247, name SWtoga1, Link IOCARD_SW, Device 30, Input 4
{
IF &SWtoga1 = 1
{
&command = 234
&etatthrottle1 = 16383
&etatthrottle2 = 16383
}
}
Var 1248, name SWtoga2, Link IOCARD_SW, Device 30, Input 5
{
IF &SWtoga2 = 1
{
&command = 234
}
}
Var 1249, name SWparkingbrake, Link IOCARD_SW, Device 30, Input 6
{
IF &SWparkingbrake = 1
{
&command = 1178
IF V0195 = 0
{
&LedPARK = 1
}
}
ELSE
{
&command = 1177
&LedPARK = 0
}
}
Var 1250, name SWbphorncut, Link IOCARD_SW, Device 30, Input 7
Var 1251, name SWstabtrimelec, Link IOCARD_SW, Device 30, Input 9
{
IF &SWstabtrimelec = 1
{
&command = 595
}
ELSE
{
&command = 596
}
}
Var 1252, name SWstabtrimauto, Link IOCARD_SW, Device 30, Input 10
{
IF &SWstabtrimauto = 1
{
&command = 598
}
ELSE
{
&command = 599
}
}
Var 1253, name LedPARK, Link IOCARD_OUT, Device 30, Output 0
Var 1254, name moteurtrim, Link IOCARD_MOTOR, Device 30, Output 0, Aceleration 2
Var 1255, name etattrimwheel, Link FSUIPC_INOUT, Offset $9472, Length 1
{
L0 = &etattrimwheel
IF L0 = 0
{
&moteurtrim = 0
}
IF L0 = 1
{
&moteurtrim = 127
}
IF L0 = 2
{
&moteurtrim = 255
}
}
Var 1256, name etattrim, Link FSUIPC_INOUT, Offset $949F, Length 2
{
L0 = &etattrim * 1.9
L1 = L0 + 453
&servotrim = L1
}
Var 1257, name etatautomode, Link FSUIPC_INOUT, Offset $94DE, Length 1
{
CALL &subthrottle1
CALL &subthrottle2
}
Var 1258, name servothrottle1, Link IOCARD_SERVO, Device 30, Output 1, PosL 1023, PosC 512, PosR 0
Var 1259, name servothrottle2, Link IOCARD_SERVO, Device 30, Output 2, PosL 1023, PosC 512, PosR 0
Var 1260, name servotrim, Link IOCARD_SERVO, Device 30, Output 4, PosL 0, PosC 512, PosR 1023
Var 1261, name servospoiler, Link IOCARD_SERVO, Device 30, Output 3, PosL 0, PosC 512, PosR 1023
Var 1262, name subthrottle1, Link SUBRUTINE
{
L0 = &etatthrottle1 / 38
L1 = L0 + 380
IF &etatautomode >= 1
{
IF &etatautomode <= 6
{
&servothrottle1 = L1
}
}
IF &etatautomode = 0
{
&servothrottle1 = -1023
}
IF &etatautomode = 7
{
&servothrottle1 = -1023
}
}
Var 1263, name subthrottle2, Link SUBRUTINE
{
L0 = &etatthrottle2 / -38
L1 = L0 + 805
IF &etatautomode >= 1
{
IF &etatautomode <= 6
{
&servothrottle2 = L1
}
}
IF &etatautomode = 0
{
&servothrottle2 = -1023
}
IF &etatautomode = 7
{
&servothrottle2 = -1023
}
}
Var 1264, name subspoiler, Link SUBRUTINE
{
IF &BRAKE_1_I = 1
{
IF &VITESSE > 7500
{
IF &AVIONSOL = 1
{
&SPOILUP = 1
}
}
}
IF &BRAKE_2_I = 1
{
IF &VITESSE > 7500
{
IF &AVIONSOL = 1
{
&SPOILUP = 1
}
}
}
IF &BRAKE_3_I = 1
{
IF &VITESSE > 7500
{
IF &AVIONSOL = 1
{
&SPOILUP = 1
}
}
}
IF &BRAKE_MAX_I = 1
{
IF &VITESSE > 7500
{
IF &AVIONSOL = 1
{
&SPOILUP = 1
}
}
}
IF &BRAKE_RTO_I = 1
{
IF &etatthrottle1 = -16384
{
&SPOILUP = 1
}
}
IF &VITESSE > 7000
{
IF &VITESSE < 7400
{
&servospoiler = -1023
}
}
IF &AVIONSOL = 1
{
IF &potspoilers > 100
{
IF &etatthrottle1 > 500
{
&SPOILDOWN = 1
}
}
}
}
Var 1265, name VITESSE, Link FSUIPC_INOUT, Offset $02BC, Length 4
{
CALL &subspoiler
}
Var 1266, name AVIONSOL, Link FSUIPC_INOUT, Offset $0366, Length 2
{
CALL &subspoiler
}
Var 1267, name ETATGAIN, Link FSUIPC_INOUT, Offset $942F, Length 1
Var 1268, name ETATRADAR, Link FSUIPC_INOUT, Offset $942E, Length 1
Var 1269, name ETATTILT, Link FSUIPC_INOUT, Offset $9470, Length 1
Var 1270, name TESTRADAR, Link IOCARD_SW, Device 40, Input 69
{
IF &TESTRADAR = 1
{
&ETATRADAR = 0
}
}
Var 1271, name WXRADAR, Link IOCARD_SW, Device 40, Input 70
{
IF &WXRADAR = 1
{
&ETATRADAR = 1
}
}
Var 1272, name WXTRADAR, Link IOCARD_SW, Device 40, Input 71
{
IF &WXTRADAR = 1
{
&ETATRADAR = 2
}
ELSE
{
&ETATRADAR = 3
}
}
Var 1273, name POTTILT, Link IOCARD_ANALOGIC, Device 40, Input 3, PosL 0, PosC 127, PosR 255
{
&ETATTILT = &POTTILT
}
Var 1274, name POTGAIN, Link IOCARD_ANALOGIC, Device 40, Input 2, PosL 0, PosC 127, PosR 255
{
L0 = &POTGAIN / 28
L1 = ROUND L0
&ETATGAIN = L1
}
Var 1275, name ETATELEVATOR, Link FSUIPC_INOUT, Offset $0BB2, Length 2, Type 1
Var 1276, name ETATAILERON, Link FSUIPC_INOUT, Offset $0BB6, Length 2, Type 1
Var 1277, name ETATRUDDER, Link FSUIPC_INOUT, Offset $0BBA, Length 2, Type 1
Var 1278, name ETATFREINGAUCH, Link FSUIPC_INOUT, Offset $0BC4, Length 2
Var 1279, name ETATFREINDROIT, Link FSUIPC_INOUT, Offset $0BC6, Length 2
Var 1280, name POTELEVATORPIL, Link IOCARD_ANALOGIC, Device 15, Input 4, PosL 9, PosC 100, PosR 185
{
CALL &subprofondeur
}
Var 1281, name POTAILERONPIL, Link USB_ANALOGIC, Device 18, Input 1, PosL 72, PosC 144, PosR 217
{
CALL &subaileron
}
Var 1282, name POTRUDDERPIL, Link IOCARD_ANALOGIC, Device 15, Input 1, PosL 0, PosC 127, PosR 255
{
CALL &subrudder
}
Var 1283, name POTFREINGAUCHE, Link IOCARD_ANALOGIC, Device 15, Input 2, PosL 0, PosC 127, PosR 255
{
CALL &subfreingauche
}
Var 1284, name subprofondeur, Link SUBRUTINE
{
L0 = &POTELEVATORPIL * 163.83
L1 = &POTELEVATOR2 * 156.02
IF &testCMDA = 0
{
IF &selectpil = 1
{
&ETATELEVATOR = L0 - 16383
}
}
IF &testCMDA = 0
{
IF &selectcopil = 1
{
&ETATELEVATOR = L1 - 16383
}
}
IF &testCMDA = 1
{
&ETATELEVATOR = &ETATELEVATOR
}
}
Var 1285, name selectpil, Value 0
{
CALL &subprofondeur
CALL &subaileron
CALL &subfreingauche
}
Var 1286, name selectcopil, Value 0
{
CALL &subprofondeur
CALL &subaileron
CALL &subfreingauche
}
Var 1287, name swselectPIL, Link IOCARD_SW, Device 40, Input 63
{
IF &swselectPIL = 1
{
&selectpil = 1
&selectcopil = 0
}
}
Var 1288, name swselectCOPIL, Link IOCARD_SW, Device 40, Input 64
{
IF &swselectCOPIL = 1
{
&selectpil = 0
&selectcopil = 1
}
}
Var 1289, name subaileron, Link SUBRUTINE
{
L0 = &POTAILERONPIL * 113.77
L1 = &POTAILERON2 * 121.36
IF &selectpil = 1
{
&ETATAILERON = L0 - 16383
}
IF &selectcopil = 1
{
&ETATAILERON = L1 - 16383
}
}
Var 1290, name subrudder, Link SUBRUTINE
{
L0 = &POTRUDDERPIL * 148.93
&ETATRUDDER = L0 - 16383
}
Var 1291, name subfreingauche, Link SUBRUTINE
{
L0 = &POTFREINGAUCHE * 84.01
L1 = &POTFREINGAU2 * 77.64
IF &selectpil = 1
{
IF L0 > 840
{
&ETATFREINGAUCH = L0
}
IF L0 < 840
{
&ETATFREINGAUCH = 0
}
}
IF &selectcopil = 1
{
IF L1 > 1930
{
&ETATFREINGAUCH = L1
}
IF L1 < 1930
{
&ETATFREINGAUCH = 0
}
}
}
Var 1292, name POTFREINDROIT, Link IOCARD_ANALOGIC, Device 15, Input 3, PosL 0, PosC 127, PosR 255
{
CALL &subfreindroit
}
Var 1293, name subfreindroit, Link SUBRUTINE
{
L0 = &POTFREINDROIT * 83.16
L1 = &POTFREINDROIT2 * 87.6
IF &selectpil = 1
{
IF L0 > 830
{
&ETATFREINDROIT = L0
}
IF L0 < 830
{
&ETATFREINDROIT = 0
}
}
IF &selectcopil = 1
{
IF L1 > 870
{
&ETATFREINDROIT = L1
}
IF L1 < 870
{
&ETATFREINDROIT = 0
}
}
}
Var 1294, name POTAILERON2, Link IOCARD_ANALOGIC, Device 30, Input 7, PosL 61, PosC 135, PosR 204
{
CALL &subaileron
}
Var 1295, name POTFREINGAU2, Link USB_ANALOGIC, Device 18, Input 2, PosL 0, PosC 127, PosR 255
{
CALL &subfreingauche
}
Var 1296, name POTFREINDROIT2, Link USB_ANALOGIC, Device 18, Input 3, PosL 0, PosC 127, PosR 255
{
CALL &subfreindroit
}
Var 1297, name POTELEVATOR2, Link USB_ANALOGIC, Device 18, Input 4, PosL 17, PosC 105, PosR 200
{
CALL &subprofondeur
}
Var 1298, name SPOILUP
{
IF &SPOILUP = 1
{
&servospoiler = 337
&servospoiler = DELAY -1023 ,70
&SPOILUP = DELAY 0 ,200
}
}
Var 1299, name SPOILDOWN
{
IF &SPOILDOWN = 1
{
&servospoiler = 772
&servospoiler = DELAY -1023 ,200
&SPOILDOWN = DELAY 0 ,210
}
}
Var 1300, name yokedisco1, Link IOCARD_SW, Device 15, Input 40
{
IF &yokedisco1 = 1
{
&command = 232
}
ELSE
{
&command = -2
}
}
Var 1301, name yokedisco2, Link IOCARD_SW, Device 15, Input 47
{
IF &yokedisco2 = 1
{
&command = 232
}
ELSE
{
&command = -2
}
}
Var 1302, name trimup1, Link IOCARD_SW, Device 15, Input 41
{
IF &trimup1 = 1
{
&JOY = SETBIT 6
}
ELSE
{
&JOY = CLEARBIT 6
}
}
Var 1303, name trimup2, Link IOCARD_SW, Device 15, Input 51
{
IF &trimup2 = 1
{
&JOY = SETBIT 6
}
ELSE
{
&JOY = CLEARBIT 6
}
}
Var 1304, name trimdn1, Link IOCARD_SW, Device 15, Input 39
{
IF &trimdn1 = 1
{
&JOY = SETBIT 7
}
ELSE
{
&JOY = CLEARBIT 7
}
}
Var 1305, name trimdn2, Link IOCARD_SW, Device 15, Input 48
{
IF &trimdn2 = 1
{
&JOY = SETBIT 7
}
ELSE
{
&JOY = CLEARBIT 7
}
}
Var 1306, name pushtalk1, Link IOCARD_SW, Device 15, Input 36
{
IF &pushtalk1 = 1
{
&JOY = SETBIT 5
}
ELSE
{
&JOY = CLEARBIT 5
}
}
Var 1307, name pushtalk2, Link IOCARD_SW, Device 15, Input 37
{
IF &pushtalk2 = 1
{
&JOY = SETBIT 5
}
ELSE
{
&JOY = CLEARBIT 5
}
}
Var 1308, name pushtalk3, Link IOCARD_SW, Device 15, Input 49
{
IF &pushtalk3 = 1
{
&JOY = SETBIT 5
}
ELSE
{
&JOY = CLEARBIT 5
}
}
Var 1309, name pushtalk4, Link IOCARD_SW, Device 15, Input 50
{
IF &pushtalk4 = 1
{
&JOY = SETBIT 5
}
ELSE
{
&JOY = CLEARBIT 5
}
}
Var 1310, name testCMDA
{
CALL &subprofondeur
}
Retourner vers Programmes testés et prêts à l'emploi
Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 1 invité