AIR VIRTUEL 737

ERREUR SCRIPT

Aller en bas

ERREUR SCRIPT Empty ERREUR SCRIPT

Message par Phil 64 le Sam 11 Juin - 18:02

Bonjour,

Est ce que quelqu'un pourrait m'aider à y voir plus clair dans mon script.
En fait, c'est la partie fermeture et ouverture des portes qui poseraient conflit.
Voici mon script :

// *****************************************************************************
// * Config_SIOC ver 4.5   -     By Manuel Velez    -    [Vous devez être inscrit et connecté pour voir ce lien]
// *****************************************************************************
// * FileName : sioc.txt
// * Date : 02/03/2016



Var 0000, Value 0
{
 V7001 = 132    
 V7002 = 127    
 V7003 = 512    
 V7004 = 1023    
 V7005 = 805    
 V7006 = 960    
 V7007 = 208    
 V7008 = 1023    
 V7009 = 1023    
}

Var 9000, name COLD_DARK     // Standby bus dc voltage used for cold & d
{
 CALL &FLT_ALT_SR     // Flt alt subroutine
 CALL &LAND_ALT_SR     // Land alt subroutine
}

Var 9100, name AC_BUS     // AC bus gate from ProSim

Var 7001, Link USB_SERVOS, Device 3, Output 1, PosL 0, PosC 0, PosR 0, Type 0     // Differential pressure gauge

Var 7002, Link USB_SERVOS, Device 3, Output 2, PosL 0, PosC 0, PosR 0, Type 0     // Cabin altitude gauge

Var 7003, Link USB_SERVOS, Device 3, Output 3, PosL 0, PosC 0, PosR 0, Type 0     // Cabin vsi gauge

Var 7004, Link USB_SERVOS, Device 3, Output 4, PosL 0, PosC 0, PosR 0     // Duct pressure gauge

Var 7005, Link USB_SERVOS, Device 3, Output 5, PosL 0, PosC 0, PosR 0     // Cabin temperature gauge

Var 7006, Link USB_SERVOS, Device 3, Output 6, PosL 0, PosC 0, PosR 0     // Outflow valve position gauge

Var 7007, Link USB_SERVOS, Device 4, Output 5, PosL 0, PosC 0, PosR 0     // Fuel temperature gauge

Var 7008, Link USB_SERVOS, Device 4, Output 6, PosL 0, PosC 0, PosR 0     // APU EGT gauge

Var 7009, Link USB_SERVOS, Device 4, Output 2, PosL 0, PosC 0, PosR 0     // Brake pressure gauge on MIP

Var 8002, Link USB_ANALOGIC, Device 3, Input 2, PosL 0, PosC 127, PosR 255     // Aft cab temp

Var 8003, Link USB_ANALOGIC, Device 3, Input 3, PosL 0, PosC 127, PosR 255     // Fwd cab temp

Var 8004, Link USB_ANALOGIC, Device 3, Input 4, PosL 0, PosC 127, PosR 255     // Cont cab temp

Var 9001     // Eng 1 starter solenoid value from prosim
{
 IF V9001 = 1
 {
   V9003 = 1023    
 }
 ELSE
 {
   V9003 = 300    
 }
}

Var 9002     // Eng 2 starter solenoid value from prosim
{
 IF V9002 = 1
 {
   V9004 = 1023    
 }
 ELSE
 {
   V9004 = 300    
 }
}

Var 9003, Link USB_SERVOS, Device 4, Output 4, PosL 0, PosC 0, PosR 0     // Eng 1 starter servo

Var 9004, Link USB_SERVOS, Device 4, Output 3, PosL 0, PosC 0, PosR 0     // Eng 2 starter servo

Var 5073, Link IOCARD_SW, Device 5, Input 73     // Hyd ENG1 On

Var 5074, Link IOCARD_SW, Device 5, Input 74     // Hyd ELEC2 On

Var 5075, Link IOCARD_SW, Device 5, Input 75     // Hyd ENG2 On

Var 5076, Link IOCARD_SW, Device 5, Input 76     // Hyd ELEC1 On

Var 5077, Link IOCARD_SW, Device 5, Input 77     // CVR Test
{
 L0 = V5077    
 V6145 = DELAY L0 ,150     // Light status led after short delay
 IF V5077 = 1
 {
   V5901 = DELAY 1 ,150     // Generate tone after short delay
 }
}

Var 5900, name PULSE_TONE     // Alternates output to headphone jack betw
{
 L0 = MOD &PULSE_TONE ,2
 IF L0 = 0
 {
   V6143 = 0    
 }
 ELSE
 {
   V6143 = 1    
 }
}

Var 5901     // Timer for pulse tone
{
 &PULSE_TONE = 150    
 &PULSE_TONE = TIMER 0 ,-1 ,1
 V5901 = 0    
}

Var 5078, Link IOCARD_SW, Device 5, Input 78     // CVR Erase

Var 5079, Link IOCARD_SW, Device 5, Input 79     // Eng Anti-Ice 2 On

Var 5080, Link IOCARD_SW, Device 5, Input 80     // Eng Anti-Ice 1 On

Var 5081, Link IOCARD_SW, Device 5, Input 81     // Window heat test OVHT

Var 5082, Link IOCARD_SW, Device 5, Input 82     // Wing Anti-Ice On

Var 5083, Link IOCARD_SW, Device 5, Input 83     // TAT Test

Var 5084, Link IOCARD_SW, Device 5, Input 84     // Probe heat B On

Var 5085, Link IOCARD_SW, Device 5, Input 85     // Probe heat A On

Var 5086, Link IOCARD_SW, Device 5, Input 86     // Window heat FWD R On

Var 5087, Link IOCARD_SW, Device 5, Input 87     // Window heat test PWR TEST

Var 5088, Link IOCARD_SW, Device 5, Input 88     // Window heat FWD L On

Var 5089, Link IOCARD_SW, Device 5, Input 89     // Window heat Side L On

Var 5090, Link IOCARD_SW, Device 5, Input 90     // Air temp selector cab aft

Var 5091, Link IOCARD_SW, Device 5, Input 91     // Trim air On

Var 5092, Link IOCARD_SW, Device 5, Input 92     // Window heat Side R On

Var 5093, Link IOCARD_SW, Device 5, Input 93     // Air temp selector duct fwd

Var 5094, Link IOCARD_SW, Device 5, Input 94     // Air temp selector cont cab

Var 5095, Link IOCARD_SW, Device 5, Input 95     // Air temp selector pack left

Var 5096, Link IOCARD_SW, Device 5, Input 96     // Air temp selector pack right

Var 5097, Link IOCARD_SW, Device 5, Input 97     // Air temp selector cab fwd

Var 5098, Link IOCARD_SW, Device 5, Input 98     // Air temp selector duct aft

Var 5099, Link IOCARD_SW, Device 5, Input 99     // Pack 2 Off

Var 5100, Link IOCARD_SW, Device 5, Input 100     // Recirc Fan L Auto

Var 5101, Link IOCARD_SW, Device 5, Input 101     // Pack 1 High

Var 5102, Link IOCARD_SW, Device 5, Input 102     // Pneumatic Isolation switch Open

Var 5103, Link IOCARD_SW, Device 5, Input 103     // Pack 1 Off

Var 5104, Link IOCARD_SW, Device 5, Input 104     // Recirc Fan R Auto

Var 5106, Link IOCARD_SW, Device 5, Input 106     // Pack 2 High

Var 5107, Link IOCARD_SW, Device 5, Input 107     // Pneumatic Isolation switch Close

Var 5108, Link IOCARD_SW, Device 5, Input 108     // Lights Logo On

Var 5109, Link IOCARD_SW, Device 5, Input 109     // Ignition select Right

Var 5110, Link IOCARD_SW, Device 5, Input 110     // Ignition select Left

Var 5111, Link IOCARD_SW, Device 5, Input 111     // Start 2 Off

Var 5112, Link IOCARD_SW, Device 5, Input 112     // Start 2 GRD

Var 5114, Link IOCARD_SW, Device 5, Input 114     // Lights Strobe On

Var 5115, Link IOCARD_SW, Device 5, Input 115     // Start 2 CONT

Var 5116, Link IOCARD_SW, Device 5, Input 116     // Start 2 FLT

Var 5117, Link IOCARD_SW, Device 5, Input 117     // Lights Anti collision On

Var 5122, Link IOCARD_SW, Device 5, Input 122     // Lights Wheel well On

Var 5123, Link IOCARD_SW, Device 5, Input 123     // Lights Wing On

Var 5124, Link IOCARD_SW, Device 5, Input 124     // Alt horn cutout Pushed

Var 5126, Link IOCARD_SW, Device 5, Input 126     // Bleed APU On

Var 5127, Link IOCARD_SW, Device 5, Input 127     // Pressurization Auto

Var 5128, Link IOCARD_SW, Device 5, Input 128     // Pressurization Altn

Var 5129, Link IOCARD_SW, Device 5, Input 129     // Outflow valve Open

Var 5130, Link IOCARD_SW, Device 5, Input 130     // Pressurization Man

Var 5131, Link IOCARD_SW, Device 5, Input 131     // Bleed 2 On

Var 5132, Link IOCARD_SW, Device 5, Input 132     // Trip reset On

Var 5133, Link IOCARD_SW, Device 5, Input 133     // Bleed 1 On

Var 5134, Link IOCARD_SW, Device 5, Input 134     // Outflow valve Close

Var 5144, Link IOCARD_SW, Device 5, Input 144     // Fuel Center Aft On

Var 5147, Link IOCARD_SW, Device 5, Input 147     // Fuel Left Fwd On

Var 5148, Link IOCARD_SW, Device 5, Input 148     // Fuel Left Aft On

Var 5149, Link IOCARD_SW, Device 5, Input 149     // Crossfeed On

Var 5150, Link IOCARD_SW, Device 5, Input 150     // Fuel Center Fwd On

Var 5151, Link IOCARD_SW, Device 5, Input 151     // Fuel Right Fwd On

Var 5152, Link IOCARD_SW, Device 5, Input 152     // Fuel Right Aft On

Var 5153, Link IOCARD_SW, Device 5, Input 153     // Light Main Retract L On

Var 5158, Link IOCARD_SW, Device 5, Input 158     // Light Main Fixed L On

Var 5159, Link IOCARD_SW, Device 5, Input 159     // Light Main Retract R On

Var 5167, Link IOCARD_SW, Device 5, Input 167     // Yaw damper On

Var 5171, Link IOCARD_SW, Device 5, Input 171     // Flt Ctrl B B On

Var 5172, Link IOCARD_SW, Device 5, Input 172     // Spoiler A Off

Var 5173, Link IOCARD_SW, Device 5, Input 173     // Spoiler B Off

Var 5174, Link IOCARD_SW, Device 5, Input 174     // Flt Ctrl A A On

Var 5175, Link IOCARD_SW, Device 5, Input 175     // Alternate flaps Arm

Var 5176, Link IOCARD_SW, Device 5, Input 176     // Alternate flaps ctrl Down

Var 5177, Link IOCARD_SW, Device 5, Input 177     // Alternate flaps ctrl Up

Var 5178, Link IOCARD_SW, Device 5, Input 178     // Flt Ctrl B Stby Rud

Var 5179, Link IOCARD_SW, Device 5, Input 179     // Flt Ctrl A Stby Rud

Var 5180, Link IOCARD_SW, Device 5, Input 180     // IRS Both on L

Var 5181, Link IOCARD_SW, Device 5, Input 181     // Display source All on 2

Var 5182, Link IOCARD_SW, Device 5, Input 182     // Display source Auto

Var 5183, Link IOCARD_SW, Device 5, Input 183     // VHF Nav both on 2

Var 5184, Link IOCARD_SW, Device 5, Input 184     // Display source All on 1

Var 5185, Link IOCARD_SW, Device 5, Input 185     // FMC Both on L

Var 5186, Link IOCARD_SW, Device 5, Input 186     // FMC Both on R

Var 5187, Link IOCARD_SW, Device 5, Input 187     // IRS Both on R

Var 5188, Link IOCARD_SW, Device 5, Input 188     // VHF Nav both on 1

Var 5189, Link IOCARD_SW, Device 5, Input 189     // Elec Pnl DC TR2

Var 5190, Link IOCARD_SW, Device 5, Input 190     // Battery switch

Var 5191, Link IOCARD_SW, Device 5, Input 191     // Elec Pnl DC STBY PWR

Var 5192, Link IOCARD_SW, Device 5, Input 192     // Elec Pnl DC BAT BUS

Var 5193, Link IOCARD_SW, Device 5, Input 193     // Elec Pnl DC BAT

Var 5194, Link IOCARD_SW, Device 5, Input 194     // Elec Pnl DC TEST

Var 5195, Link IOCARD_SW, Device 5, Input 195     // Elec Pnl DC TR3

Var 5196, Link IOCARD_SW, Device 5, Input 196     // Elec Pnl DC TR1

Var 5197, Link IOCARD_SW, Device 5, Input 197     // Elec Pnl DC AUX BAT

Var 5198, Link IOCARD_SW, Device 5, Input 198     // Elec Pnl AC STBY PWR

Var 5199, Link IOCARD_SW, Device 5, Input 199     // Elec Pnl AC TEST

Var 5200, Link IOCARD_SW, Device 5, Input 200     // Elec Pnl AC INV

Var 5201, Link IOCARD_SW, Device 5, Input 201     // Elec Pnl AC APU GEN

Var 5202, Link IOCARD_SW, Device 5, Input 202     // Elec Pnl AC GEN2

Var 5203, Link IOCARD_SW, Device 5, Input 203     // Elec maint Pushed

Var 5204, Link IOCARD_SW, Device 5, Input 204     // Galley On

Var 5205, Link IOCARD_SW, Device 5, Input 205     // Elec Pnl AC GRD PWR

Var 5206, Link IOCARD_SW, Device 5, Input 206     // Elec Pnl AC GEN1

Var 5207, Link IOCARD_SW, Device 5, Input 207     // Disconnect 2 Normal

Var 5209, Link IOCARD_SW, Device 5, Input 209     // Display Control Panel Both on 2

Var 5210, Link IOCARD_SW, Device 5, Input 210     // Disconnect 1 Normal

Var 5211, Link IOCARD_SW, Device 5, Input 211     // Display Control Panel Both on 1

Var 5212, Link IOCARD_SW, Device 5, Input 212     // Ground Power On

Var 5213, Link IOCARD_SW, Device 5, Input 213     // Ground Power Off

Var 5214, Link IOCARD_SW, Device 5, Input 214     // Standby power switch Bat

Var 5215, Link IOCARD_SW, Device 5, Input 215     // Standby power switch Auto

Var 5252, Link IOCARD_SW, Device 5, Input 36     // APU GEN 2 Off

Var 5253, Link IOCARD_SW, Device 5, Input 37     // Bus transfer switch Auto

Var 5254, Link IOCARD_SW, Device 5, Input 38     // GEN 1 On

Var 5255, Link IOCARD_SW, Device 5, Input 39     // APU GEN 1 On

Var 5256, Link IOCARD_SW, Device 5, Input 40     // GEN 1 Off

Var 5257, Link IOCARD_SW, Device 5, Input 41     // GEN 2 Off

Var 5258, Link IOCARD_SW, Device 5, Input 42     // GEN 2 On

Var 5259, static, Link IOCARD_SW, Device 5, Input 43     // APU GEN 2 On

Var 5260, static, Link IOCARD_SW, Device 5, Input 44     // APU GEN 1 Off

Var 5262, Link IOCARD_SW, Device 5, Input 46     // Light Main Fixed R On

Var 5263, Link IOCARD_SW, Device 5, Input 47     // Lights Runway turnoff L On

Var 5264, Link IOCARD_SW, Device 5, Input 48     // Lights Taxi On

Var 5265, Link IOCARD_SW, Device 5, Input 49     // Lights Runway turnoff R On

Var 5266, Link IOCARD_SW, Device 5, Input 50     // APU switch Start

Var 5267, Link IOCARD_SW, Device 5, Input 51     // APU switch Off

Var 5270, Link IOCARD_SW, Device 5, Input 54     // Seatbelt Off

Var 5272, Link IOCARD_SW, Device 5, Input 56     // Equip cooling supply Alternate

Var 5273, Link IOCARD_SW, Device 5, Input 57     // Emer Exit Lights Off

Var 5274, Link IOCARD_SW, Device 5, Input 58     // Equip cooling exhaust Alternate

Var 5275, Link IOCARD_SW, Device 5, Input 59     // Seatbelt On

Var 5276, Link IOCARD_SW, Device 5, Input 60     // No Smoking On

Var 5277, Link IOCARD_SW, Device 5, Input 61     // No Smoking Off

Var 5278, Link IOCARD_SW, Device 5, Input 62     // Emer Exit Lights Armed

Var 5279, Link IOCARD_SW, Device 5, Input 63     // Start 1 CONT

Var 5282, Link IOCARD_SW, Device 5, Input 66     // Start 1 GRD

Var 5284, Link IOCARD_SW, Device 5, Input 68     // Attend Pushed

Var 5285, Link IOCARD_SW, Device 5, Input 69     // Ground call On

Var 5286, Link IOCARD_SW, Device 5, Input 70     // Start 1 FLT

Var 5287, Link IOCARD_SW, Device 5, Input 71     // Start 1 Off

Var 6075, Link IOCARD_OUT, Device 5, Output 75     // Window heat Side L overheat

Var 6076, Link IOCARD_OUT, Device 5, Output 76     // auxPitot Heat

Var 6077, Link IOCARD_OUT, Device 5, Output 77     // Window heat FWD R overheat

Var 6078, Link IOCARD_OUT, Device 5, Output 78     // Zone temp AFT CAB

Var 6079, Link IOCARD_OUT, Device 5, Output 79     // Window heat FWD L overheat

Var 6080, Link IOCARD_OUT, Device 5, Output 80     // Zone temp CONT CAB

Var 6081, Link IOCARD_OUT, Device 5, Output 81     // Window heat Side R overheat

Var 6082, Link IOCARD_OUT, Device 5, Output 82     // Zone temp FWD CAB

Var 6083, Link IOCARD_OUT, Device 5, Output 83     // Pressurization altn

Var 6084, Link IOCARD_OUT, Device 5, Output 84     // Dual bleed

Var 6085, Link IOCARD_OUT, Device 5, Output 85     // Pressurization manual

Var 6086, Link IOCARD_OUT, Device 5, Output 86     // Hyd ENG1 LP

Var 6087, Link IOCARD_OUT, Device 5, Output 87     // Window heat Side R on

Var 6088, Link IOCARD_OUT, Device 5, Output 88     // Hyd ELEC2 LP

Var 6089, Link IOCARD_OUT, Device 5, Output 89     // Window heat FWD R on

Var 6090, Link IOCARD_OUT, Device 5, Output 90     // Hyd ELEC1 LP

Var 6091, Link IOCARD_OUT, Device 5, Output 91     // Window heat FWD L on

Var 6092, Link IOCARD_OUT, Device 5, Output 92     // Hyd ELEC1 OVHT

Var 6093, Link IOCARD_OUT, Device 5, Output 93     // Window heat Side L on

Var 6094, Link IOCARD_OUT, Device 5, Output 94     // Hyd ENG2 LP

Var 6095, Link IOCARD_OUT, Device 5, Output 95     // Capt Pitot Heat

Var 6096, Link IOCARD_OUT, Device 5, Output 96     // Hyd ELEC2 OVHT

Var 6097, Link IOCARD_OUT, Device 5, Output 97     // Elev pitot Heat L

Var 6098, Link IOCARD_OUT, Device 5, Output 98     // Door Right Aft Overwing

Var 6099, Link IOCARD_OUT, Device 5, Output 99     // tempProbe Heat

Var 6100, Link IOCARD_OUT, Device 5, Output 100     // Door Left Aft Overwing

Var 6101, Link IOCARD_OUT, Device 5, Output 101     // Alpha Vane Heat L

Var 6102, Link IOCARD_OUT, Device 5, Output 102     // Door Aft Entry

Var 6103, Link IOCARD_OUT, Device 5, Output 103     // Alpha Vane Heat R

Var 6104, Link IOCARD_OUT, Device 5, Output 104     // Door Left Fwd Overwing

Var 6105, Link IOCARD_OUT, Device 5, Output 105     // Cowl Anti-Ice L

Var 6106, Link IOCARD_OUT, Device 5, Output 106     // Door Fwd entry

Var 6107, Link IOCARD_OUT, Device 5, Output 107     // Copilot Pitot Heat

Var 6108, Link IOCARD_OUT, Device 5, Output 108     // Door Fwd Service

Var 6109, Link IOCARD_OUT, Device 5, Output 109     // Cowl Anti-Ice R

Var 6110, Link IOCARD_OUT, Device 5, Output 110     // Door Right Fwd Overwing

Var 6111, Link IOCARD_OUT, Device 5, Output 111     // Elev pitot Heat R

Var 6112, Link IOCARD_OUT, Device 5, Output 112     // Door Equip

Var 6143, Link IOCARD_OUT, Device 5, Output 143     // Output to CVR audio jack

Var 6145, Link IOCARD_OUT, Device 5, Output 145     // CVR Status

Var 6147, Link IOCARD_OUT, Device 5, Output 147     // Yaw damper

Var 6148, Link IOCARD_OUT, Device 5, Output 148     // Fuel Left Aft LP

Var 6149, Link IOCARD_OUT, Device 5, Output 149     // FLT Control low pressure B

Var 6150, Link IOCARD_OUT, Device 5, Output 150     // Fuel Center Aft LP

Var 6151, Link IOCARD_OUT, Device 5, Output 151     // Hyd standby low quantity

Var 6152, Link IOCARD_OUT, Device 5, Output 152     // Fuel Left Fwd LP

Var 6153, Link IOCARD_OUT, Device 5, Output 153     // FLT Control low pressure A

Var 6154, Link IOCARD_OUT, Device 5, Output 154     // Fuel Right Fwd LP

Var 6155, Link IOCARD_OUT, Device 5, Output 155     // Hyd standby low pressure

Var 6156, Link IOCARD_OUT, Device 5, Output 156     // Fuel Right Aft LP

Var 6157, Link IOCARD_OUT, Device 5, Output 157     // Auto slat Fail

Var 6158, Link IOCARD_OUT, Device 5, Output 158     // Fuel Center Fwd LP

Var 6159, Link IOCARD_OUT, Device 5, Output 159     // Mach Trim Fail

Var 6160, Link IOCARD_OUT, Device 5, Output 160     // Filter Bypass L

Var 6161, Link IOCARD_OUT, Device 5, Output 161     // Speed Trim Fail

Var 6162, Link IOCARD_OUT, Device 5, Output 162     // Filter Bypass R

Var 6163, Link IOCARD_OUT, Device 5, Output 163     // Feel Diff Press

Var 6164, static, Link IOCARD_OUT, Device 5, Output 164     // APU Low oil pressure

Var 6165, Link IOCARD_OUT, Device 5, Output 165     // Bat discharge

Var 6166, static, Link IOCARD_OUT, Device 5, Output 166     // APU FAULT

Var 6167, Link IOCARD_OUT, Device 5, Output 167     // TR UNIT

Var 6168, static, Link IOCARD_OUT, Device 5, Output 168     // APU Overspeed

Var 6169, Link IOCARD_OUT, Device 5, Output 169     // ELEC

Var 6170, Link IOCARD_OUT, Device 5, Output 170     // Transfer bus OFF 2

Var 6171, Link IOCARD_OUT, Device 5, Output 171     // Drive 2

Var 6172, Link IOCARD_OUT, Device 5, Output 172     // Source OFF 1

Var 6173, Link IOCARD_OUT, Device 5, Output 173     // Standby pwr off

Var 6174, Link IOCARD_OUT, Device 5, Output 174     // Source OFF 2

Var 6175, Link IOCARD_OUT, Device 5, Output 175     // Drive 1

Var 6176, Link IOCARD_OUT, Device 5, Output 176     // Transfer bus OFF 1

Var 6205, static, Link IOCARD_OUT, Device 5, Output 205     // APU Maint

Var 6209, static, Link IOCARD_OUT, Device 5, Output 209     // APU GEN OFF BUS

Var 6211, Link IOCARD_OUT, Device 5, Output 211     // GEN BUS OFF 2

Var 6213, Link IOCARD_OUT, Device 5, Output 213     // GEN BUS OFF 1

Var 6214, Link IOCARD_OUT, Device 5, Output 214     // Equip cooling supply Off

Var 6215, Link IOCARD_OUT, Device 5, Output 215     // Grd Pwr available

Var 6216, Link IOCARD_OUT, Device 5, Output 216     // Equip cooling exhaust Off

Var 6217, Link IOCARD_OUT, Device 5, Output 217     // ENG Valve Closed R

Var 6218, Link IOCARD_OUT, Device 5, Output 218     // Emerg Exit Lights not armed

Var 6219, Link IOCARD_OUT, Device 5, Output 219     // SPAR Valve Closed L

Var 6220, Link IOCARD_OUT, Device 5, Output 220     // Pack L

Var 6221, Link IOCARD_OUT, Device 5, Output 221     // ENG Valve Closed L

Var 6222, Link IOCARD_OUT, Device 5, Output 222     // Bleed trip off 1

Var 6223, Link IOCARD_OUT, Device 5, Output 223     // Crossfeed indicator

Var 6224, Link IOCARD_OUT, Device 5, Output 224     // Wing-body overheat 1

Var 6225, Link IOCARD_OUT, Device 5, Output 225     // SPAR Valve Closed R

Var 6226, Link IOCARD_OUT, Device 5, Output 226     // Door Fwd Cargo

Var 6227, Link IOCARD_OUT, Device 5, Output 227     // Attend call

Var 6228, Link IOCARD_OUT, Device 5, Output 228     // Pressurization auto fail

Var 6229, Link IOCARD_OUT, Device 5, Output 229     // Ram door full open L

Var 6230, Link IOCARD_OUT, Device 5, Output 230     // Door Aft Service

Var 6231, Link IOCARD_OUT, Device 5, Output 231     // Ram door full open R

Var 6232, Link IOCARD_OUT, Device 5, Output 232     // Wing-body overheat 2

Var 6233, Link IOCARD_OUT, Device 5, Output 233     // Cowl valve open R

Var 6234, Link IOCARD_OUT, Device 5, Output 234     // Door Aft Cargo

Var 6235, Link IOCARD_OUT, Device 5, Output 235     // WAI R Valve Open

Var 6236, Link IOCARD_OUT, Device 5, Output 236     // Bleed trip off 2

Var 6237, Link IOCARD_OUT, Device 5, Output 237     // Cowl valve open L

Var 6238, Link IOCARD_OUT, Device 5, Output 238     // Pack R

Var 6239, Link IOCARD_OUT, Device 5, Output 239     // WAI L Valve Open

Var 6240, Link IOCARD_OUT, Device 5, Output 240     // Off sched descent

Var 6500     // Electric Panel Upper left
{
 IF V6500 = -1
 {
   IF V5194 = 1     // dc selector in test position
   {
     V6192 = 88         // light all segments
   }
   ELSE
   {
     V6192 = -999999         // blank display
   }
 }
 ELSE
 {
   V6192 = V6500    
 }
}

Var 6501     // Electric Panel Upper right
{
 IF V6501 = -1
 {
   IF V5199 = 1     // ac selector in test position
   {
     V6194 = 888         // light all segments
   }
   ELSE
   {
     V6194 = -999999         // blank display
   }
 }
 ELSE
 {
   V6194 = V6501    
 }
}

Var 6502     // Electric Panel Lower left
{
 IF V6502 = -1
 {
   IF V5194 = 1     // dc selector in test position
   {
     V6197 = 88         // light all segments
   }
   ELSE
   {
     V6197 = -999999         // blank display
   }
 }
 ELSE
 {
   V6197 = V6502    
 }
}

Var 6503     // Electric Panel Lower center
{
 IF V6503 = -1
 {
   IF V5199 = 1     // ac selector in test position
   {
     V6199 = 88         // light all segments
   }
   ELSE
   {
     V6199 = -999999         // blank display
   }
 }
 ELSE
 {
   V6199 = V6503    
 }
}

Var 6504     // Electric Panel Lower right
{
 IF V6504 = -1
 {
   IF V5199 = 1     // ac selector in test position
   {
     V6201 = 888         // light all segments
   }
   ELSE
   {
     V6201 = -999999         // blank display
   }
 }
 ELSE
 {
   V6201 = V6504    
 }
}

Var 6192, Link IOCARD_DISPLAY, Device 5, Digit 192, Numbers 2     // Electric Panel Upper left

Var 6194, Link IOCARD_DISPLAY, Device 5, Digit 194, Numbers 3     // Electric Panel Upper right

Var 6197, Link IOCARD_DISPLAY, Device 5, Digit 197, Numbers 2     // Electric Panel Lower left

Var 6199, Link IOCARD_DISPLAY, Device 5, Digit 199, Numbers 2     // Electric Panel Lower center

Var 6201, Link IOCARD_DISPLAY, Device 5, Digit 201, Numbers 3     // Electric Panel Lower right

Var 5136, Link IOCARD_ENCODER, Device 5, Input 136, Aceleration 0, Type 2     // Flt Alt control
{
 L0 = V5136 * -1
 L0 = L0 * 500
 V6600 = LIMIT -1000 ,42000 ,L0
}

Var 6600, Link IOCARD_DISPLAY, Device 5, Digit 208, Numbers 5     // Flt Alt value
{
 CALL &FLT_ALT_SR
}

Var 6601, name FLT_ALT_SR, Link SUBRUTINE
{
 IF &COLD_DARK = 0     // cold & dark
 {
   V6600 = -999999         // blank display
 }
 ELSE
 {
   IF V6600 = -999999
   {
     V6600 = 24000    
   }
   ELSE
   {
     V6600 = V6600    
   }
 }
}

Var 5138, Link IOCARD_ENCODER, Device 5, Input 138, Aceleration 2, Type 2     // Land Alt control
{
 L0 = V5138 * -1
 L0 = L0 * 50
 V6700 = LIMIT -1000 ,14000 ,L0
}

Var 6700, Link IOCARD_DISPLAY, Device 5, Digit 213, Numbers 5, Value 0     // Land Alt Value
{
 CALL &LAND_ALT_SR
}

Var 6701, name LAND_ALT_SR, Link SUBRUTINE
{
 IF &COLD_DARK = 0     // cold & dark
 {
   V6700 = -999999         // blank display
 }
 ELSE
 {
   IF V6700 = -999999
   {
     V6700 = 0    
   }
   ELSE
   {
     V6700 = V6700    
   }
 }
}

Var 0100, name D_COURSE1, Link IOCARD_DISPLAY, Digit 0, Numbers 3

Var 0102, name D_IAS, Link IOCARD_DISPLAY, Digit 3, Numbers 3

Var 0104, name D_HDG, Link IOCARD_DISPLAY, Digit 6, Numbers 3

Var 0106, name D_ALT, Link IOCARD_DISPLAY, Digit 9, Numbers 5

Var 0108, name D_VS, Link IOCARD_DISPLAY, Digit 14, Numbers 5

Var 0110, name D_COURSE2, Link IOCARD_DISPLAY, Digit 19, Numbers 3

Var 0112, name VS_Trigger     // Vertical Speed Trigger

Var 0114, name BRIGHT, Link IOCARD_DISPLAY, Digit 32, Numbers 3     // Bright control for digits

Var 0116, name D_IAS_IND, Link IOCARD_DISPLAY, Digit 22, Numbers 1

Var 0118, name SUB_BLINK, Link SUBRUTINE
{
 IF &Inhibit_IAS = 0
 {
   IF &O_IASSYMB = 0
   {
     &D_IAS_IND = -999999    
   }
   ELSE
   {
     IF &O_IASSYMB = 1
     {
       &D_IAS_IND = -999996    
       &D_IAS_IND = DELAY -999999 ,80
     }
     IF &O_IASSYMB = 2
     {
       &D_IAS_IND = 8    
       &D_IAS_IND = DELAY -999999 ,80
     }
   }
 }
}

Var 0120, name HDG_temp

Var 0122, name BANK_act

Var 0200, name DECIMAL
{
 IF &Inhibit_IAS = 0     // Do not place the decimal if the display
 {
   &IAS_DOT = &DECIMAL    
 }
}

Var 0201, name IAS_DOT, Link IOCARD_OUT, Output 20

Var 0202, name O_N1, Link IOCARD_OUT, Output 21

Var 0204, name O_AT, Link IOCARD_OUT, Output 22

Var 0206, name O_SPEED, Link IOCARD_OUT, Output 23

Var 0208, name O_LVLCHG, Link IOCARD_OUT, Output 24

Var 0210, name O_VNAV, Link IOCARD_OUT, Output 25

Var 0212, name O_HDGSEL, Link IOCARD_OUT, Output 26

Var 0214, name O_APP, Link IOCARD_OUT, Output 27

Var 0216, name O_VORLOC, Link IOCARD_OUT, Output 28

Var 0218, name O_LNAV, Link IOCARD_OUT, Output 29

Var 0220, name O_ALTHLD, Link IOCARD_OUT, Output 30

Var 0222, name O_VS, Link IOCARD_OUT, Output 31

Var 0224, name O_CWSA, Link IOCARD_OUT, Output 32

Var 0226, name O_CMDA, Link IOCARD_OUT, Output 33

Var 0228, name O_CWSB, Link IOCARD_OUT, Output 34

Var 0230, name O_CMDB, Link IOCARD_OUT, Output 35

Var 0232, name O_FD1, Link IOCARD_OUT, Output 37

Var 0234, name O_FD2, Link IOCARD_OUT, Output 36

Var 0236, name O_IASSYMB     // Flashing A/B in IAS window, 0=No warning

Var 0238, name O_BACKLIGHT     // Backlight: 1 = on, 0 = off

Var 0300, name E_IAS, Link IOCARD_ENCODER, Input 0, Aceleration 4, Type 2
{
 IF &Inhibit_IAS = 0
 {
   L0 = -1 * &E_IAS
   IF &DECIMAL = 1
   {
     &D_IAS = LIMIT 50 ,90 ,L0
   }
   ELSE
   {
     &D_IAS = LIMIT 110 ,400 ,L0
   }
 }
}

Var 0302, name E_ALT, Link IOCARD_ENCODER, Input 2, Aceleration 4, Type 2
{
 IF &Inhibit_Alt = 0
 {
   L0 = -100 * &E_ALT
   &D_ALT = LIMIT 0 ,50000 ,L0
 }
}

Var 0304, name E_COURSE1, Link IOCARD_ENCODER, Input 4, Aceleration 4, Type 2
{
 IF &Inhibit_OBS1 = 0
 {
   L0 = &E_COURSE1 * -1
   &D_COURSE1 = ROTATE 0 ,359 ,L0
 }
}

Var 0306, name E_HDG, Link IOCARD_ENCODER, Input 6, Aceleration 4, Type 2
{
 IF &Inhibit_HDG = 0
 {
   IF &BANK_act = 0
   {
     L0 = &E_HDG * -1
     &D_HDG = ROTATE 0 ,359 ,L0
     &HDG_temp = &D_HDG    
   }
   IF &I_BANK_SW = 1
   {
     &D_HDG = &I_BANK_LIMIT    
     L1 = &E_HDG * -5
     &D_HDG = LIMIT 10 ,30 ,L1
     &I_BANK_LIMIT = &D_HDG    
   }
   ELSE
   {
     &D_HDG = &HDG_temp    
   }
 }
}

Var 0308, name E_COURSE2, Link IOCARD_ENCODER, Input 9, Aceleration 4, Type 2
{
 IF &Inhibit_OBS2 = 0
 {
   L0 = &E_COURSE2 * -1
   &D_COURSE2 = ROTATE 0 ,359 ,L0
 }
}

Var 0310, name E_VS, Link IOCARD_ENCODER, Input 11, Aceleration 4, Type 2
{
 IF &Inhibit_VS = 0
 {
   L0 = &E_VS * -50
   &D_VS = LIMIT -7000 ,7000 ,L0
 }
 ELSE
 {
   &VS_Trigger = 1    
 }
}

Var 0320, name Inhibit_IAS
{
 IF &Inhibit_IAS = 1
 {
   &D_IAS = -999999    
   &IAS_DOT = 0    
 }
 ELSE
 {
   &IAS_DOT = &DECIMAL    
 }
}

Var 0322, name Inhibit_Alt
{
 IF &Inhibit_Alt = 1
 {
   &D_ALT = -999999    
 }
}

Var 0324, name Inhibit_OBS1
{
 IF &Inhibit_OBS1 = 1
 {
   &D_COURSE1 = -999999    
 }
}

Var 0326, name Inhibit_HDG
{
 IF &Inhibit_HDG = 1
 {
   &D_HDG = -999999    
 }
}

Var 0328, name Inhibit_OBS2
{
 IF &Inhibit_OBS2 = 1
 {
   &D_COURSE2 = -999999    
 }
}

Var 0330, name Inhibit_VS
{
 IF &Inhibit_VS = 1
 {
   &D_VS = -999999    
 }
}

Var 0400, name I_CO, Link IOCARD_SW, Input 13

Var 0402, name I_FD2, Link IOCARD_SW, Input 14

Var 0404, name I_DISENGAGE, Link IOCARD_SW, Input 15

Var 0406, name I_FD1, Link IOCARD_SW, Input 16

Var 0408, name I_CWSB, Link IOCARD_SW, Input 18

Var 0410, name I_CMDB, Link IOCARD_SW, Input 19

Var 0412, name I_CWSA, Link IOCARD_SW, Input 20

Var 0414, name I_CMDA, Link IOCARD_SW, Input 21

Var 0416, name I_VS, Link IOCARD_SW, Input 22

Var 0418, name I_ALTHLD, Link IOCARD_SW, Input 23

Var 0420, name I_APP, Link IOCARD_SW, Input 24

Var 0422, name I_VORLOC, Link IOCARD_SW, Input 25

Var 0424, name I_LNAV, Link IOCARD_SW, Input 27

Var 0426, name I_HDGSEL, Link IOCARD_SW, Input 28

Var 0428, name I_LVLCHG, Link IOCARD_SW, Input 29

Var 0430, name I_VNAV, Link IOCARD_SW, Input 30

Var 0432, name I_SPEED, Link IOCARD_SW, Input 31

Var 0434, name I_N1, Link IOCARD_SW, Input 32

Var 0436, name I_AT, Link IOCARD_SW, Input 33

Var 0438, name I_SPD_INTER, Link IOCARD_SW, Input 37

Var 0440, name I_ALT_INTER, Link IOCARD_SW, Input 36

Var 0442, name I_BANK_LIMIT, Value 10

Var 0444, name I_BANK_SW, Link IOCARD_SW, Input 34     // Activate bank limit
{
 IF &I_BANK_SW = 1
 {
   &BANK_act = 1    
   &D_HDG = &I_BANK_LIMIT    
 }
 ELSE
 {
   &BANK_act = 0    
   &D_HDG = &HDG_temp    
 }
}

Var 0500, name I_E1_DISPMODE

Var 0501, name I_E1_ZOOM

Var 0502, name I_E1_NAV1

Var 0503, name I_E1_NAV2

Var 0504, name I_E1_STA, Link IOCARD_SW, Device 1, Input 27

Var 0505, name I_E1_WPT, Link IOCARD_SW, Device 1, Input 28

Var 0506, name I_E1_CTR, Link IOCARD_SW, Device 1, Input 29

Var 0507, name I_E1_ARPT, Link IOCARD_SW, Device 1, Input 30

Var 0508, name I_E1_TFC, Link IOCARD_SW, Device 1, Input 31

Var 0509, name I_E1_DATA, Link IOCARD_SW, Device 1, Input 32

Var 0510, name I_E1_POS, Link IOCARD_SW, Device 1, Input 33

Var 0511, name I_E1_FPV, Link IOCARD_SW, Device 1, Input 34

Var 0512, name I_E1_MTR, Link IOCARD_SW, Device 1, Input 38

Var 0513, name I_E1_MINRST

Var 0514, name I_E1_QNHSTD

Var 0515, name I_E1_MINRADIO

Var 0516, name I_E1_MINBARO

Var 0517, name I_E1_CHANGEMIN

Var 0518, name I_E1_BAROHPA

Var 0519, name I_E1_BAROINCH

Var 0520, name I_E1_CHGBARO

Var 0521, name I_E1_TERR

Var 0522, name I_E1_WXR

Var 0523, Link IOCARD_SW, Device 1, Input 10     // VOR mode
{
 IF V0523 = 1
 {
   &I_E1_DISPMODE = 2    
 }
}

Var 0524, Link IOCARD_SW, Device 1, Input 11     // MAP mode
{
 IF V0524 = 1
 {
   &I_E1_DISPMODE = 3    
 }
}

Var 0525, Link IOCARD_SW, Device 1, Input 12     // PLAN mode
{
 IF V0525 = 1
 {
   &I_E1_DISPMODE = 4    
 }
}

Var 0526, Link IOCARD_SW, Device 1, Input 0     // Range 5
{
 IF V0526 = 1
 {
   &I_E1_ZOOM = 1    
 }
}

Var 0527, Link IOCARD_SW, Device 1, Input 1     // Range 10
{
 IF V0527 = 1
 {
   &I_E1_ZOOM = 2    
 }
}

Var 0528, Link IOCARD_SW, Device 1, Input 2     // Range 20
{
 IF V0528 = 1
 {
   &I_E1_ZOOM = 3    
 }
}

Var 0529, Link IOCARD_SW, Device 1, Input 3     // Range 40
{
 IF V0529 = 1
 {
   &I_E1_ZOOM = 4    
 }
}

Var 0530, Link IOCARD_SW, Device 1, Input 4     // Range 80
{
 IF V0530 = 1
 {
   &I_E1_ZOOM = 5    
 }
}

Var 0531, Link IOCARD_SW, Device 1, Input 5     // Range 160
{
 IF V0531 = 1
 {
   &I_E1_ZOOM = 6    
 }
}

Var 0532, Link IOCARD_SW, Device 1, Input 6     // Range 320
{
 IF V0532 = 1
 {
   &I_E1_ZOOM = 7    
 }
}

Var 0533, Link IOCARD_SW, Device 1, Input 7     // Range 640
{
 IF V0533 = 1
 {
   &I_E1_ZOOM = 8    
 }
}

Var 0535, Link IOCARD_SW, Device 1, Input 36     // NAV 1 VOR
{
 CALL &E1NAV1
}

Var 0536, Link IOCARD_SW, Device 1, Input 37     // NAV 1 ADF
{
 CALL &E1NAV1
}

Var 0537, name E1NAV1, Link SUBRUTINE
{
 IF V0535 = 1
 {
   &I_E1_NAV1 = 1    
 }
 ELSE
 {
   IF V0536 = 1
   {
     &I_E1_NAV1 = 2    
   }
   ELSE
   {
     &I_E1_NAV1 = 0    
   }
 }
}

Var 0538, Link IOCARD_SW, Device 1, Input 18     // NAV 2 VOR
{
 CALL &E1NAV2
}

Var 0539, Link IOCARD_SW, Device 1, Input 19     // NAV 2 ADF
{
 CALL &E1NAV2
}

Var 0540, name E1NAV2, Link SUBRUTINE
{
 IF V0538 = 1
 {
   &I_E1_NAV2 = 1    
 }
 ELSE
 {
   IF V0539 = 1
   {
     &I_E1_NAV2 = 2    
   }
   ELSE
   {
     &I_E1_NAV2 = 0    
   }
 }
}

Var 0541, Link IOCARD_SW, Device 1, Input 9     // APP mode
{
 IF V0541 = 1
 {
   &I_E1_DISPMODE = 1    
 }
}

Var 0550, name Min1Moved

Var 0551, name Bar1Moved

Var 0552, Link IOCARD_SW, Device 1, Input 25
{
 IF V0552 = 1
 {
   &Min1Moved = 0    
 }
 ELSE
 {
   IF &Min1Moved = 0
   {
     &I_E1_MINRST = TOGGLE 0
   }
 }
}

Var 0553, Link IOCARD_SW, Device 1, Input 22
{
 IF V0553 = 1
 {
   &Bar1Moved = 0    
 }
 ELSE
 {
   IF &Bar1Moved = 0
   {
     &I_E1_QNHSTD = TOGGLE 0
   }
 }
}

Var 0554, Link IOCARD_ENCODER, Device 1, Input 23, Aceleration 4, Type 2
{
 &Min1Moved = 1    
 IF V0552 = 1
 {
   IF V0554   0
   {
     &I_E1_MINRADIO = TOGGLE 0
   }
   ELSE
   {
     &I_E1_MINBARO = TOGGLE 0
   }
 }
 ELSE
 {
   &I_E1_CHANGEMIN = V0554 * -1
   &I_E1_CHANGEMIN = 0    
 }
}

Var 0555, Link IOCARD_ENCODER, Device 1, Input 20, Aceleration 4, Type 2
{
 &Bar1Moved = 1    
 IF V0553 = 1
 {
   IF V0555   0
   {
     &I_E1_BAROINCH = TOGGLE 0
   }
   ELSE
   {
     &I_E1_BAROHPA = TOGGLE 0
   }
 }
 ELSE
 {
   &I_E1_CHGBARO = V0555 * -1
   &I_E1_CHGBARO = 0    
 }
}

Var 0050, name CDUKey, Link IOCARD_KEYS, Device 13     // Keyboard reading

Var 0051, name CDUExec, Link IOCARD_OUT, Device 13, Output 2     // device

Var 0052, name CDUFail, Link IOCARD_OUT, Device 13, Output 4

Var 0053, name CDUMSG, Link IOCARD_OUT, Device 13, Output 1

Var 1001, name FS_N_GEAR_POS, Link FSUIPC_INOUT, Offset $0BEC, Length 4
{
 IF &FS_N_GEAR_POS = 16383
 {
   &IND_N_GEAR_DN = 1    
   &IND_N_GEAR_UP = 0    
 }
 ELSE
 {
   IF &FS_N_GEAR_POS > 1
   {
     &IND_N_GEAR_DN = 0    
     &IND_N_GEAR_UP = 1    
   }
   ELSE
   {
     IF &FS_N_GEAR_POS = 0
     {
       &IND_N_GEAR_UP = 0    
       &IND_N_GEAR_DN = 0    
     }
   }
 }
}

Var 1002, name FS_R_GEAR_POS, Link FSUIPC_INOUT, Offset $0BF0, Length 4
{
 IF &FS_R_GEAR_POS = 16383
 {
   &IND_R_GEAR_DN = 1    
   &IND_R_GEAR_UP = 0    
 }
 ELSE
 {
   IF &FS_R_GEAR_POS > 1
   {
     &IND_R_GEAR_DN = 0    
     &IND_R_GEAR_UP = 1    
   }
   ELSE
   {
     IF &FS_R_GEAR_POS = 0
     {
       &IND_R_GEAR_UP = 0    
       &IND_R_GEAR_DN = 0    
     }
   }
 }
}

Var 1003, name FS_L_GEAR_POS, Link FSUIPC_INOUT, Offset $0BF4, Length 4
{
 IF &FS_L_GEAR_POS = 16383
 {
   &IND_L_GEAR_DN = 1    
   &IND_L_GEAR_UP = 0    
 }
 ELSE
 {
   IF &FS_L_GEAR_POS > 1
   {
     &IND_L_GEAR_DN = 0    
     &IND_L_GEAR_UP = 1    
   }
   ELSE
   {
     IF &FS_L_GEAR_POS = 0
     {
       &IND_L_GEAR_UP = 0    
       &IND_L_GEAR_DN = 0    
     }
   }
 }
}

Var 1004, name IND_N_GEAR_UP, Link IOCARD_OUT, Device 2, Output 15

Var 1005, name IND_R_GEAR_UP, Link IOCARD_OUT, Device 2, Output 14

Var 1006, name IND_L_GEAR_UP, Link IOCARD_OUT, Device 2, Output 16

Var 1007, name IND_N_GEAR_DN, Link IOCARD_OUT, Device 2, Output 12

Var 1008, name IND_R_GEAR_DN, Link IOCARD_OUT, Device 2, Output 11

Var 1009, name IND_L_GEAR_DN, Link IOCARD_OUT, Device 2, Output 13

Var 1010, name FS_G_LEVER_POS, Link FSUIPC_INOUT, Offset $0BE8, Length 4

Var 1011, name SW_LAND_GEAR_D, Link IOCARD_SW, Device 2, Input 2
{
 IF &SW_LAND_GEAR_D = 1
 {
   &FS_G_LEVER_POS = 16383    
 }
}

Var 1012, name SW_LAND_GEAR_U, Link IOCARD_SW, Device 2, Input 1
{
 IF &SW_LAND_GEAR_U = 1
 {
   &FS_G_LEVER_POS = 0    
 }
}

Var 1703, Link FSUIPC_OUT, Offset $0892, Length 1     // Eng Start 1 SW

Var 1705, Link FSUIPC_OUT, Offset $092A, Length 1     // Eng Start 2 SW

Var 1716, Link IOCARD_SW, Device 5, Input 70     // Eng Start 1 Grd ROT
{
 IF V1716 = 1
 {
   V1703 = 1    
 }
}

Var 1717, Link IOCARD_SW, Device 5, Input 69     // Eng Start 1 Off ROT
{
 IF V1717 = 1
 {
   V1703 = 0    
 }
}

Var 1722, Link IOCARD_SW, Device 5, Input 70     // Eng Start 2 Grd ROT
{
 IF V1722 = 1
 {
   V1705 = 1    
 }
}

Var 1723, Link IOCARD_SW, Device 5, Input 71     // Eng Start 2 Off ROT
{
 IF V1723 = 1
 {
   V1705 = 0    
 }
}
// ************************ Commandes Ouverture/Fermeture toutes portes + echelle *****************************

Var 5016, name fs_door, Link FSUIPC_INOUT, Offset $3367, Length 1


Var 5017, name sw_door1, Link IOCARD_SW, Device 2, Input 39
{
&fs_door = &sw_door1 * 8 // cargo AV
}
Var 5018, name sw_door2, Link IOCARD_SW, Device 2, Input 36
{
&fs_door = &sw_door2 * 1 // porte cabin AVG + ARG
}
Var 5019, name sw_door3, Link IOCARD_SW, Device 2, Input 38
{
&fs_door = &sw_door3 * 12 // cargo av-ar  
}
Var 5020, name sw_door4, Link IOCARD_SW, Device 2, Input 37
{
&fs_door = &sw_door4 * 2 // cabin AVD + ARD  
}
// ************************  FIN Commandes Ouverture/Fermeture toutes portes + echelle *****************************


Sans cette dernière partie, le script est viable.

Merci pour votre aide.

_________________
AMICALEMENT, ET BONS VOLS

[Vous devez être inscrit et connecté pour voir cette image][Vous devez être inscrit et connecté pour voir cette image] Fondateur/Administrateur [Vous devez être inscrit et connecté pour voir cette image]
RYZEN 7 3800X AM4, C.M GIGABYTE X570 Gaming X, 2 X 8 Go de mémoire DDR4 3200MHZ, 1 ATI Readon RX 480 Nitro+ 8Go, 1 ATI Readon R9 270 X DUAL 4Go, 1 SSD Samsung 970 Evo+ M2 1 To, 1 SSD Samsung 250 Go, OS : W10 Pro , P3D V4, Fsuipc, Prosim, FTX Global, Europe LC, Global Vector, ASP4, Gsx, FSCloud.
Phil 64
Phil 64
Admin

Date d'inscription : 07/12/2011
Localisation : 64 200 LFBZ
Messages : 1943
Age : 65

http://airvirtuel737.forumgratuit.org

Revenir en haut Aller en bas

ERREUR SCRIPT Empty Re: ERREUR SCRIPT

Message par domdom le Dim 12 Juin - 16:30

Bonsoir.

A priori les valeurs données pour "&fs_door " ne sont pas bonnes.
En fait les valeur sont 2^0, 2^1,, 2^2, 2^3 soit 1, 2, 4, 8 ce qui fait bien en binaire: 0001,0010, 0100, 1000.
Cordialement.
domdom.
domdom
domdom

Date d'inscription : 31/12/2011
Localisation : Châlons en Champagne LFOK
Messages : 521
Age : 71

http://moncockpit.monsite-orange.fr

Revenir en haut Aller en bas

ERREUR SCRIPT Empty Re: ERREUR SCRIPT

Message par Phil 64 le Dim 12 Juin - 16:40

Bonjour Domdom,
Et merci d'avoir pris le temps de me répondre.
Etant pas très calè sur ce "charabia", cela voudrait dire de remplacer :

&sw_door1 par 0001_door1 ou alors &sw_door1 par 2^0 pour la première action ?
Et bien sûr idem pour la suite.

_________________
AMICALEMENT, ET BONS VOLS

[Vous devez être inscrit et connecté pour voir cette image][Vous devez être inscrit et connecté pour voir cette image] Fondateur/Administrateur [Vous devez être inscrit et connecté pour voir cette image]
RYZEN 7 3800X AM4, C.M GIGABYTE X570 Gaming X, 2 X 8 Go de mémoire DDR4 3200MHZ, 1 ATI Readon RX 480 Nitro+ 8Go, 1 ATI Readon R9 270 X DUAL 4Go, 1 SSD Samsung 970 Evo+ M2 1 To, 1 SSD Samsung 250 Go, OS : W10 Pro , P3D V4, Fsuipc, Prosim, FTX Global, Europe LC, Global Vector, ASP4, Gsx, FSCloud.
Phil 64
Phil 64
Admin

Date d'inscription : 07/12/2011
Localisation : 64 200 LFBZ
Messages : 1943
Age : 65

http://airvirtuel737.forumgratuit.org

Revenir en haut Aller en bas

ERREUR SCRIPT Empty Re: ERREUR SCRIPT

Message par domdom le Dim 12 Juin - 18:18

Presque

Var 5016, name fs_door, Link FSUIPC_INOUT, Offset $3367, Length 1
Var 5017, name sw_door1, Link IOCARD_SW, Device 2, Input 39
{
&fs_door = &sw_door1 * 1 // cargo AV
}
Var 5018, name sw_door2, Link IOCARD_SW, Device 2, Input 36
{
&fs_door = &sw_door2 * 2 // porte cabin AVG + ARG
}
Var 5019, name sw_door3, Link IOCARD_SW, Device 2, Input 38
{
&fs_door = &sw_door3 * 4 // cargo av-ar  
}
Var 5020, name sw_door4, Link IOCARD_SW, Device 2, Input 37
{
&fs_door = &sw_door4 * 8 // cabin AVD + ARD  
}

Puisque &sw_door"x" est toujours = à 1 quand on enclenche le switch.
Je pense que ça devrait être bon.
Domdom.
domdom
domdom

Date d'inscription : 31/12/2011
Localisation : Châlons en Champagne LFOK
Messages : 521
Age : 71

http://moncockpit.monsite-orange.fr

Revenir en haut Aller en bas

ERREUR SCRIPT Empty Re: ERREUR SCRIPT

Message par FBXMZ le Dim 12 Juin - 23:22

Hé ben, merci Dom pour l'ami Phil car là, je suis complètement largué avec votre langue d'extraterrestre..... de la planète Siocton ;-)

Seb;-)
FBXMZ
FBXMZ

Date d'inscription : 03/02/2013
Localisation : Biarritz
Messages : 572
Age : 39

Revenir en haut Aller en bas

ERREUR SCRIPT Empty Re: ERREUR SCRIPT

Message par Phil 64 le Lun 13 Juin - 8:28

Merci Dom, je vais essayer ça des que possible et je te tiens au courant.
merci

_________________
AMICALEMENT, ET BONS VOLS

[Vous devez être inscrit et connecté pour voir cette image][Vous devez être inscrit et connecté pour voir cette image] Fondateur/Administrateur [Vous devez être inscrit et connecté pour voir cette image]
RYZEN 7 3800X AM4, C.M GIGABYTE X570 Gaming X, 2 X 8 Go de mémoire DDR4 3200MHZ, 1 ATI Readon RX 480 Nitro+ 8Go, 1 ATI Readon R9 270 X DUAL 4Go, 1 SSD Samsung 970 Evo+ M2 1 To, 1 SSD Samsung 250 Go, OS : W10 Pro , P3D V4, Fsuipc, Prosim, FTX Global, Europe LC, Global Vector, ASP4, Gsx, FSCloud.
Phil 64
Phil 64
Admin

Date d'inscription : 07/12/2011
Localisation : 64 200 LFBZ
Messages : 1943
Age : 65

http://airvirtuel737.forumgratuit.org

Revenir en haut Aller en bas

ERREUR SCRIPT Empty Re: ERREUR SCRIPT

Message par domdom le Lun 13 Juin - 9:25

Bonjour.

Pas de quoi. Par contre si ça ré-ouvre une porte fermée quand tu en ferme une autre il faudra remplacer 1 2 4 8 par 1, 3, 7, 15. car dans la précipitation j'ai peut-être fait une erreur (ça dépend de la logique FSUIPC)
1, 3, 7, 15 correspond en binaire à 1, 11, 111, 1111 donc un bit à 1 pour chaque série de portes.
Mais pour que ça fonctionne il faut bien actionner les inters dans le bon ordre.
Cordialement.
Domdom.
domdom
domdom

Date d'inscription : 31/12/2011
Localisation : Châlons en Champagne LFOK
Messages : 521
Age : 71

http://moncockpit.monsite-orange.fr

Revenir en haut Aller en bas

ERREUR SCRIPT Empty Re: ERREUR SCRIPT

Message par Phil 64 le Mer 15 Juin - 16:12

Désolé Domdom, mais ça fonctionne pas. Sioc me recolle une erreur et s'arrête. Je pense que c'est par ailleurs que se trouve l'erreur. Je vais essayer d'en informer notre grand spécialiste, et vous tiens au courant.
Merci quand même.


_________________
AMICALEMENT, ET BONS VOLS

[Vous devez être inscrit et connecté pour voir cette image][Vous devez être inscrit et connecté pour voir cette image] Fondateur/Administrateur [Vous devez être inscrit et connecté pour voir cette image]
RYZEN 7 3800X AM4, C.M GIGABYTE X570 Gaming X, 2 X 8 Go de mémoire DDR4 3200MHZ, 1 ATI Readon RX 480 Nitro+ 8Go, 1 ATI Readon R9 270 X DUAL 4Go, 1 SSD Samsung 970 Evo+ M2 1 To, 1 SSD Samsung 250 Go, OS : W10 Pro , P3D V4, Fsuipc, Prosim, FTX Global, Europe LC, Global Vector, ASP4, Gsx, FSCloud.
Phil 64
Phil 64
Admin

Date d'inscription : 07/12/2011
Localisation : 64 200 LFBZ
Messages : 1943
Age : 65

http://airvirtuel737.forumgratuit.org

Revenir en haut Aller en bas

ERREUR SCRIPT Empty Re: ERREUR SCRIPT

Message par mameloose le Mer 15 Juin - 17:28

le specialiste est la Very Happy

tu avais des erreurs de syntaxe ducoup sioc aime pas ca ...

c'est reparé normalement essaye ca :

Code:
// *****************************************************************************
// * Config_SIOC ver 4.5  -    By Manuel Velez    -    www.opencockpits.com
// *****************************************************************************
// * FileName : sioc.txt
// * Date : 02/03/2016



Var 0000, Value 0
{
 V7001 = 132 
 V7002 = 127 
 V7003 = 512 
 V7004 = 1023 
 V7005 = 805 
 V7006 = 960 
 V7007 = 208 
 V7008 = 1023 
 V7009 = 1023 
}

Var 9000, name COLD_DARK    // Standby bus dc voltage used for cold & d
{
 CALL &FLT_ALT_SR    // Flt alt subroutine
 CALL &LAND_ALT_SR    // Land alt subroutine
}

Var 9100, name AC_BUS    // AC bus gate from ProSim

Var 7001, Link USB_SERVOS, Device 3, Output 1, PosL 0, PosC 0, PosR 0, Type 0    // Differential pressure gauge

Var 7002, Link USB_SERVOS, Device 3, Output 2, PosL 0, PosC 0, PosR 0, Type 0    // Cabin altitude gauge

Var 7003, Link USB_SERVOS, Device 3, Output 3, PosL 0, PosC 0, PosR 0, Type 0    // Cabin vsi gauge

Var 7004, Link USB_SERVOS, Device 3, Output 4, PosL 0, PosC 0, PosR 0    // Duct pressure gauge

Var 7005, Link USB_SERVOS, Device 3, Output 5, PosL 0, PosC 0, PosR 0    // Cabin temperature gauge

Var 7006, Link USB_SERVOS, Device 3, Output 6, PosL 0, PosC 0, PosR 0    // Outflow valve position gauge

Var 7007, Link USB_SERVOS, Device 4, Output 5, PosL 0, PosC 0, PosR 0    // Fuel temperature gauge

Var 7008, Link USB_SERVOS, Device 4, Output 6, PosL 0, PosC 0, PosR 0    // APU EGT gauge

Var 7009, Link USB_SERVOS, Device 4, Output 2, PosL 0, PosC 0, PosR 0    // Brake pressure gauge on MIP

Var 8002, Link USB_ANALOGIC, Device 3, Input 2, PosL 0, PosC 127, PosR 255    // Aft cab temp

Var 8003, Link USB_ANALOGIC, Device 3, Input 3, PosL 0, PosC 127, PosR 255    // Fwd cab temp

Var 8004, Link USB_ANALOGIC, Device 3, Input 4, PosL 0, PosC 127, PosR 255    // Cont cab temp

Var 9001    // Eng 1 starter solenoid value from prosim
{
 IF V9001 = 1
 {
  V9003 = 1023 
 }
 ELSE
 {
  V9003 = 300 
 }
}

Var 9002    // Eng 2 starter solenoid value from prosim
{
 IF V9002 = 1
 {
  V9004 = 1023 
 }
 ELSE
 {
  V9004 = 300 
 }
}

Var 9003, Link USB_SERVOS, Device 4, Output 4, PosL 0, PosC 0, PosR 0    // Eng 1 starter servo

Var 9004, Link USB_SERVOS, Device 4, Output 3, PosL 0, PosC 0, PosR 0    // Eng 2 starter servo

Var 5073, Link IOCARD_SW, Device 5, Input 73    // Hyd ENG1 On

Var 5074, Link IOCARD_SW, Device 5, Input 74    // Hyd ELEC2 On

Var 5075, Link IOCARD_SW, Device 5, Input 75    // Hyd ENG2 On

Var 5076, Link IOCARD_SW, Device 5, Input 76    // Hyd ELEC1 On

Var 5077, Link IOCARD_SW, Device 5, Input 77    // CVR Test
{
 L0 = V5077 
 V6145 = DELAY L0 ,150    // Light status led after short delay
 IF V5077 = 1
 {
  V5901 = DELAY 1 ,150    // Generate tone after short delay
 }
}

Var 5900, name PULSE_TONE    // Alternates output to headphone jack betw
{
 L0 = MOD &PULSE_TONE ,2
 IF L0 = 0
 {
  V6143 = 0 
 }
 ELSE
 {
  V6143 = 1 
 }
}

Var 5901    // Timer for pulse tone
{
 &PULSE_TONE = 150 
 &PULSE_TONE = TIMER 0 ,-1 ,1
 V5901 = 0 
}

Var 5078, Link IOCARD_SW, Device 5, Input 78    // CVR Erase

Var 5079, Link IOCARD_SW, Device 5, Input 79    // Eng Anti-Ice 2 On

Var 5080, Link IOCARD_SW, Device 5, Input 80    // Eng Anti-Ice 1 On

Var 5081, Link IOCARD_SW, Device 5, Input 81    // Window heat test OVHT

Var 5082, Link IOCARD_SW, Device 5, Input 82    // Wing Anti-Ice On

Var 5083, Link IOCARD_SW, Device 5, Input 83    // TAT Test

Var 5084, Link IOCARD_SW, Device 5, Input 84    // Probe heat B On

Var 5085, Link IOCARD_SW, Device 5, Input 85    // Probe heat A On

Var 5086, Link IOCARD_SW, Device 5, Input 86    // Window heat FWD R On

Var 5087, Link IOCARD_SW, Device 5, Input 87    // Window heat test PWR TEST

Var 5088, Link IOCARD_SW, Device 5, Input 88    // Window heat FWD L On

Var 5089, Link IOCARD_SW, Device 5, Input 89    // Window heat Side L On

Var 5090, Link IOCARD_SW, Device 5, Input 90    // Air temp selector cab aft

Var 5091, Link IOCARD_SW, Device 5, Input 91    // Trim air On

Var 5092, Link IOCARD_SW, Device 5, Input 92    // Window heat Side R On

Var 5093, Link IOCARD_SW, Device 5, Input 93    // Air temp selector duct fwd

Var 5094, Link IOCARD_SW, Device 5, Input 94    // Air temp selector cont cab

Var 5095, Link IOCARD_SW, Device 5, Input 95    // Air temp selector pack left

Var 5096, Link IOCARD_SW, Device 5, Input 96    // Air temp selector pack right

Var 5097, Link IOCARD_SW, Device 5, Input 97    // Air temp selector cab fwd

Var 5098, Link IOCARD_SW, Device 5, Input 98    // Air temp selector duct aft

Var 5099, Link IOCARD_SW, Device 5, Input 99    // Pack 2 Off

Var 5100, Link IOCARD_SW, Device 5, Input 100    // Recirc Fan L Auto

Var 5101, Link IOCARD_SW, Device 5, Input 101    // Pack 1 High

Var 5102, Link IOCARD_SW, Device 5, Input 102    // Pneumatic Isolation switch Open

Var 5103, Link IOCARD_SW, Device 5, Input 103    // Pack 1 Off

Var 5104, Link IOCARD_SW, Device 5, Input 104    // Recirc Fan R Auto

Var 5106, Link IOCARD_SW, Device 5, Input 106    // Pack 2 High

Var 5107, Link IOCARD_SW, Device 5, Input 107    // Pneumatic Isolation switch Close

Var 5108, Link IOCARD_SW, Device 5, Input 108    // Lights Logo On

Var 5109, Link IOCARD_SW, Device 5, Input 109    // Ignition select Right

Var 5110, Link IOCARD_SW, Device 5, Input 110    // Ignition select Left

Var 5111, Link IOCARD_SW, Device 5, Input 111    // Start 2 Off

Var 5112, Link IOCARD_SW, Device 5, Input 112    // Start 2 GRD

Var 5114, Link IOCARD_SW, Device 5, Input 114    // Lights Strobe On

Var 5115, Link IOCARD_SW, Device 5, Input 115    // Start 2 CONT

Var 5116, Link IOCARD_SW, Device 5, Input 116    // Start 2 FLT

Var 5117, Link IOCARD_SW, Device 5, Input 117    // Lights Anti collision On

Var 5122, Link IOCARD_SW, Device 5, Input 122    // Lights Wheel well On

Var 5123, Link IOCARD_SW, Device 5, Input 123    // Lights Wing On

Var 5124, Link IOCARD_SW, Device 5, Input 124    // Alt horn cutout Pushed

Var 5126, Link IOCARD_SW, Device 5, Input 126    // Bleed APU On

Var 5127, Link IOCARD_SW, Device 5, Input 127    // Pressurization Auto

Var 5128, Link IOCARD_SW, Device 5, Input 128    // Pressurization Altn

Var 5129, Link IOCARD_SW, Device 5, Input 129    // Outflow valve Open

Var 5130, Link IOCARD_SW, Device 5, Input 130    // Pressurization Man

Var 5131, Link IOCARD_SW, Device 5, Input 131    // Bleed 2 On

Var 5132, Link IOCARD_SW, Device 5, Input 132    // Trip reset On

Var 5133, Link IOCARD_SW, Device 5, Input 133    // Bleed 1 On

Var 5134, Link IOCARD_SW, Device 5, Input 134    // Outflow valve Close

Var 5144, Link IOCARD_SW, Device 5, Input 144    // Fuel Center Aft On

Var 5147, Link IOCARD_SW, Device 5, Input 147    // Fuel Left Fwd On

Var 5148, Link IOCARD_SW, Device 5, Input 148    // Fuel Left Aft On

Var 5149, Link IOCARD_SW, Device 5, Input 149    // Crossfeed On

Var 5150, Link IOCARD_SW, Device 5, Input 150    // Fuel Center Fwd On

Var 5151, Link IOCARD_SW, Device 5, Input 151    // Fuel Right Fwd On

Var 5152, Link IOCARD_SW, Device 5, Input 152    // Fuel Right Aft On

Var 5153, Link IOCARD_SW, Device 5, Input 153    // Light Main Retract L On

Var 5158, Link IOCARD_SW, Device 5, Input 158    // Light Main Fixed L On

Var 5159, Link IOCARD_SW, Device 5, Input 159    // Light Main Retract R On

Var 5167, Link IOCARD_SW, Device 5, Input 167    // Yaw damper On

Var 5171, Link IOCARD_SW, Device 5, Input 171    // Flt Ctrl B B On

Var 5172, Link IOCARD_SW, Device 5, Input 172    // Spoiler A Off

Var 5173, Link IOCARD_SW, Device 5, Input 173    // Spoiler B Off

Var 5174, Link IOCARD_SW, Device 5, Input 174    // Flt Ctrl A A On

Var 5175, Link IOCARD_SW, Device 5, Input 175    // Alternate flaps Arm

Var 5176, Link IOCARD_SW, Device 5, Input 176    // Alternate flaps ctrl Down

Var 5177, Link IOCARD_SW, Device 5, Input 177    // Alternate flaps ctrl Up

Var 5178, Link IOCARD_SW, Device 5, Input 178    // Flt Ctrl B Stby Rud

Var 5179, Link IOCARD_SW, Device 5, Input 179    // Flt Ctrl A Stby Rud

Var 5180, Link IOCARD_SW, Device 5, Input 180    // IRS Both on L

Var 5181, Link IOCARD_SW, Device 5, Input 181    // Display source All on 2

Var 5182, Link IOCARD_SW, Device 5, Input 182    // Display source Auto

Var 5183, Link IOCARD_SW, Device 5, Input 183    // VHF Nav both on 2

Var 5184, Link IOCARD_SW, Device 5, Input 184    // Display source All on 1

Var 5185, Link IOCARD_SW, Device 5, Input 185    // FMC Both on L

Var 5186, Link IOCARD_SW, Device 5, Input 186    // FMC Both on R

Var 5187, Link IOCARD_SW, Device 5, Input 187    // IRS Both on R

Var 5188, Link IOCARD_SW, Device 5, Input 188    // VHF Nav both on 1

Var 5189, Link IOCARD_SW, Device 5, Input 189    // Elec Pnl DC TR2

Var 5190, Link IOCARD_SW, Device 5, Input 190    // Battery switch

Var 5191, Link IOCARD_SW, Device 5, Input 191    // Elec Pnl DC STBY PWR

Var 5192, Link IOCARD_SW, Device 5, Input 192    // Elec Pnl DC BAT BUS

Var 5193, Link IOCARD_SW, Device 5, Input 193    // Elec Pnl DC BAT

Var 5194, Link IOCARD_SW, Device 5, Input 194    // Elec Pnl DC TEST

Var 5195, Link IOCARD_SW, Device 5, Input 195    // Elec Pnl DC TR3

Var 5196, Link IOCARD_SW, Device 5, Input 196    // Elec Pnl DC TR1

Var 5197, Link IOCARD_SW, Device 5, Input 197    // Elec Pnl DC AUX BAT

Var 5198, Link IOCARD_SW, Device 5, Input 198    // Elec Pnl AC STBY PWR

Var 5199, Link IOCARD_SW, Device 5, Input 199    // Elec Pnl AC TEST

Var 5200, Link IOCARD_SW, Device 5, Input 200    // Elec Pnl AC INV

Var 5201, Link IOCARD_SW, Device 5, Input 201    // Elec Pnl AC APU GEN

Var 5202, Link IOCARD_SW, Device 5, Input 202    // Elec Pnl AC GEN2

Var 5203, Link IOCARD_SW, Device 5, Input 203    // Elec maint Pushed

Var 5204, Link IOCARD_SW, Device 5, Input 204    // Galley On

Var 5205, Link IOCARD_SW, Device 5, Input 205    // Elec Pnl AC GRD PWR

Var 5206, Link IOCARD_SW, Device 5, Input 206    // Elec Pnl AC GEN1

Var 5207, Link IOCARD_SW, Device 5, Input 207    // Disconnect 2 Normal

Var 5209, Link IOCARD_SW, Device 5, Input 209    // Display Control Panel Both on 2

Var 5210, Link IOCARD_SW, Device 5, Input 210    // Disconnect 1 Normal

Var 5211, Link IOCARD_SW, Device 5, Input 211    // Display Control Panel Both on 1

Var 5212, Link IOCARD_SW, Device 5, Input 212    // Ground Power On

Var 5213, Link IOCARD_SW, Device 5, Input 213    // Ground Power Off

Var 5214, Link IOCARD_SW, Device 5, Input 214    // Standby power switch Bat

Var 5215, Link IOCARD_SW, Device 5, Input 215    // Standby power switch Auto

Var 5252, Link IOCARD_SW, Device 5, Input 36    // APU GEN 2 Off

Var 5253, Link IOCARD_SW, Device 5, Input 37    // Bus transfer switch Auto

Var 5254, Link IOCARD_SW, Device 5, Input 38    // GEN 1 On

Var 5255, Link IOCARD_SW, Device 5, Input 39    // APU GEN 1 On

Var 5256, Link IOCARD_SW, Device 5, Input 40    // GEN 1 Off

Var 5257, Link IOCARD_SW, Device 5, Input 41    // GEN 2 Off

Var 5258, Link IOCARD_SW, Device 5, Input 42    // GEN 2 On

Var 5259, static, Link IOCARD_SW, Device 5, Input 43    // APU GEN 2 On

Var 5260, static, Link IOCARD_SW, Device 5, Input 44    // APU GEN 1 Off

Var 5262, Link IOCARD_SW, Device 5, Input 46    // Light Main Fixed R On

Var 5263, Link IOCARD_SW, Device 5, Input 47    // Lights Runway turnoff L On

Var 5264, Link IOCARD_SW, Device 5, Input 48    // Lights Taxi On

Var 5265, Link IOCARD_SW, Device 5, Input 49    // Lights Runway turnoff R On

Var 5266, Link IOCARD_SW, Device 5, Input 50    // APU switch Start

Var 5267, Link IOCARD_SW, Device 5, Input 51    // APU switch Off

Var 5270, Link IOCARD_SW, Device 5, Input 54    // Seatbelt Off

Var 5272, Link IOCARD_SW, Device 5, Input 56    // Equip cooling supply Alternate

Var 5273, Link IOCARD_SW, Device 5, Input 57    // Emer Exit Lights Off

Var 5274, Link IOCARD_SW, Device 5, Input 58    // Equip cooling exhaust Alternate

Var 5275, Link IOCARD_SW, Device 5, Input 59    // Seatbelt On

Var 5276, Link IOCARD_SW, Device 5, Input 60    // No Smoking On

Var 5277, Link IOCARD_SW, Device 5, Input 61    // No Smoking Off

Var 5278, Link IOCARD_SW, Device 5, Input 62    // Emer Exit Lights Armed

Var 5279, Link IOCARD_SW, Device 5, Input 63    // Start 1 CONT

Var 5282, Link IOCARD_SW, Device 5, Input 66    // Start 1 GRD

Var 5284, Link IOCARD_SW, Device 5, Input 68    // Attend Pushed

Var 5285, Link IOCARD_SW, Device 5, Input 69    // Ground call On

Var 5286, Link IOCARD_SW, Device 5, Input 70    // Start 1 FLT

Var 5287, Link IOCARD_SW, Device 5, Input 71    // Start 1 Off

Var 6075, Link IOCARD_OUT, Device 5, Output 75    // Window heat Side L overheat

Var 6076, Link IOCARD_OUT, Device 5, Output 76    // auxPitot Heat

Var 6077, Link IOCARD_OUT, Device 5, Output 77    // Window heat FWD R overheat

Var 6078, Link IOCARD_OUT, Device 5, Output 78    // Zone temp AFT CAB

Var 6079, Link IOCARD_OUT, Device 5, Output 79    // Window heat FWD L overheat

Var 6080, Link IOCARD_OUT, Device 5, Output 80    // Zone temp CONT CAB

Var 6081, Link IOCARD_OUT, Device 5, Output 81    // Window heat Side R overheat

Var 6082, Link IOCARD_OUT, Device 5, Output 82    // Zone temp FWD CAB

Var 6083, Link IOCARD_OUT, Device 5, Output 83    // Pressurization altn

Var 6084, Link IOCARD_OUT, Device 5, Output 84    // Dual bleed

Var 6085, Link IOCARD_OUT, Device 5, Output 85    // Pressurization manual

Var 6086, Link IOCARD_OUT, Device 5, Output 86    // Hyd ENG1 LP

Var 6087, Link IOCARD_OUT, Device 5, Output 87    // Window heat Side R on

Var 6088, Link IOCARD_OUT, Device 5, Output 88    // Hyd ELEC2 LP

Var 6089, Link IOCARD_OUT, Device 5, Output 89    // Window heat FWD R on

Var 6090, Link IOCARD_OUT, Device 5, Output 90    // Hyd ELEC1 LP

Var 6091, Link IOCARD_OUT, Device 5, Output 91    // Window heat FWD L on

Var 6092, Link IOCARD_OUT, Device 5, Output 92    // Hyd ELEC1 OVHT

Var 6093, Link IOCARD_OUT, Device 5, Output 93    // Window heat Side L on

Var 6094, Link IOCARD_OUT, Device 5, Output 94    // Hyd ENG2 LP

Var 6095, Link IOCARD_OUT, Device 5, Output 95    // Capt Pitot Heat

Var 6096, Link IOCARD_OUT, Device 5, Output 96    // Hyd ELEC2 OVHT

Var 6097, Link IOCARD_OUT, Device 5, Output 97    // Elev pitot Heat L

Var 6098, Link IOCARD_OUT, Device 5, Output 98    // Door Right Aft Overwing

Var 6099, Link IOCARD_OUT, Device 5, Output 99    // tempProbe Heat

Var 6100, Link IOCARD_OUT, Device 5, Output 100    // Door Left Aft Overwing

Var 6101, Link IOCARD_OUT, Device 5, Output 101    // Alpha Vane Heat L

Var 6102, Link IOCARD_OUT, Device 5, Output 102    // Door Aft Entry

Var 6103, Link IOCARD_OUT, Device 5, Output 103    // Alpha Vane Heat R

Var 6104, Link IOCARD_OUT, Device 5, Output 104    // Door Left Fwd Overwing

Var 6105, Link IOCARD_OUT, Device 5, Output 105    // Cowl Anti-Ice L

Var 6106, Link IOCARD_OUT, Device 5, Output 106    // Door Fwd entry

Var 6107, Link IOCARD_OUT, Device 5, Output 107    // Copilot Pitot Heat

Var 6108, Link IOCARD_OUT, Device 5, Output 108    // Door Fwd Service

Var 6109, Link IOCARD_OUT, Device 5, Output 109    // Cowl Anti-Ice R

Var 6110, Link IOCARD_OUT, Device 5, Output 110    // Door Right Fwd Overwing

Var 6111, Link IOCARD_OUT, Device 5, Output 111    // Elev pitot Heat R

Var 6112, Link IOCARD_OUT, Device 5, Output 112    // Door Equip

Var 6143, Link IOCARD_OUT, Device 5, Output 143    // Output to CVR audio jack

Var 6145, Link IOCARD_OUT, Device 5, Output 145    // CVR Status

Var 6147, Link IOCARD_OUT, Device 5, Output 147    // Yaw damper

Var 6148, Link IOCARD_OUT, Device 5, Output 148    // Fuel Left Aft LP

Var 6149, Link IOCARD_OUT, Device 5, Output 149    // FLT Control low pressure B

Var 6150, Link IOCARD_OUT, Device 5, Output 150    // Fuel Center Aft LP

Var 6151, Link IOCARD_OUT, Device 5, Output 151    // Hyd standby low quantity

Var 6152, Link IOCARD_OUT, Device 5, Output 152    // Fuel Left Fwd LP

Var 6153, Link IOCARD_OUT, Device 5, Output 153    // FLT Control low pressure A

Var 6154, Link IOCARD_OUT, Device 5, Output 154    // Fuel Right Fwd LP

Var 6155, Link IOCARD_OUT, Device 5, Output 155    // Hyd standby low pressure

Var 6156, Link IOCARD_OUT, Device 5, Output 156    // Fuel Right Aft LP

Var 6157, Link IOCARD_OUT, Device 5, Output 157    // Auto slat Fail

Var 6158, Link IOCARD_OUT, Device 5, Output 158    // Fuel Center Fwd LP

Var 6159, Link IOCARD_OUT, Device 5, Output 159    // Mach Trim Fail

Var 6160, Link IOCARD_OUT, Device 5, Output 160    // Filter Bypass L

Var 6161, Link IOCARD_OUT, Device 5, Output 161    // Speed Trim Fail

Var 6162, Link IOCARD_OUT, Device 5, Output 162    // Filter Bypass R

Var 6163, Link IOCARD_OUT, Device 5, Output 163    // Feel Diff Press

Var 6164, static, Link IOCARD_OUT, Device 5, Output 164    // APU Low oil pressure

Var 6165, Link IOCARD_OUT, Device 5, Output 165    // Bat discharge

Var 6166, static, Link IOCARD_OUT, Device 5, Output 166    // APU FAULT

Var 6167, Link IOCARD_OUT, Device 5, Output 167    // TR UNIT

Var 6168, static, Link IOCARD_OUT, Device 5, Output 168    // APU Overspeed

Var 6169, Link IOCARD_OUT, Device 5, Output 169    // ELEC

Var 6170, Link IOCARD_OUT, Device 5, Output 170    // Transfer bus OFF 2

Var 6171, Link IOCARD_OUT, Device 5, Output 171    // Drive 2

Var 6172, Link IOCARD_OUT, Device 5, Output 172    // Source OFF 1

Var 6173, Link IOCARD_OUT, Device 5, Output 173    // Standby pwr off

Var 6174, Link IOCARD_OUT, Device 5, Output 174    // Source OFF 2

Var 6175, Link IOCARD_OUT, Device 5, Output 175    // Drive 1

Var 6176, Link IOCARD_OUT, Device 5, Output 176    // Transfer bus OFF 1

Var 6205, static, Link IOCARD_OUT, Device 5, Output 205    // APU Maint

Var 6209, static, Link IOCARD_OUT, Device 5, Output 209    // APU GEN OFF BUS

Var 6211, Link IOCARD_OUT, Device 5, Output 211    // GEN BUS OFF 2

Var 6213, Link IOCARD_OUT, Device 5, Output 213    // GEN BUS OFF 1

Var 6214, Link IOCARD_OUT, Device 5, Output 214    // Equip cooling supply Off

Var 6215, Link IOCARD_OUT, Device 5, Output 215    // Grd Pwr available

Var 6216, Link IOCARD_OUT, Device 5, Output 216    // Equip cooling exhaust Off

Var 6217, Link IOCARD_OUT, Device 5, Output 217    // ENG Valve Closed R

Var 6218, Link IOCARD_OUT, Device 5, Output 218    // Emerg Exit Lights not armed

Var 6219, Link IOCARD_OUT, Device 5, Output 219    // SPAR Valve Closed L

Var 6220, Link IOCARD_OUT, Device 5, Output 220    // Pack L

Var 6221, Link IOCARD_OUT, Device 5, Output 221    // ENG Valve Closed L

Var 6222, Link IOCARD_OUT, Device 5, Output 222    // Bleed trip off 1

Var 6223, Link IOCARD_OUT, Device 5, Output 223    // Crossfeed indicator

Var 6224, Link IOCARD_OUT, Device 5, Output 224    // Wing-body overheat 1

Var 6225, Link IOCARD_OUT, Device 5, Output 225    // SPAR Valve Closed R

Var 6226, Link IOCARD_OUT, Device 5, Output 226    // Door Fwd Cargo

Var 6227, Link IOCARD_OUT, Device 5, Output 227    // Attend call

Var 6228, Link IOCARD_OUT, Device 5, Output 228    // Pressurization auto fail

Var 6229, Link IOCARD_OUT, Device 5, Output 229    // Ram door full open L

Var 6230, Link IOCARD_OUT, Device 5, Output 230    // Door Aft Service

Var 6231, Link IOCARD_OUT, Device 5, Output 231    // Ram door full open R

Var 6232, Link IOCARD_OUT, Device 5, Output 232    // Wing-body overheat 2

Var 6233, Link IOCARD_OUT, Device 5, Output 233    // Cowl valve open R

Var 6234, Link IOCARD_OUT, Device 5, Output 234    // Door Aft Cargo

Var 6235, Link IOCARD_OUT, Device 5, Output 235    // WAI R Valve Open

Var 6236, Link IOCARD_OUT, Device 5, Output 236    // Bleed trip off 2

Var 6237, Link IOCARD_OUT, Device 5, Output 237    // Cowl valve open L

Var 6238, Link IOCARD_OUT, Device 5, Output 238    // Pack R

Var 6239, Link IOCARD_OUT, Device 5, Output 239    // WAI L Valve Open

Var 6240, Link IOCARD_OUT, Device 5, Output 240    // Off sched descent

Var 6500    // Electric Panel Upper left
{
 IF V6500 = -1
 {
  IF V5194 = 1    // dc selector in test position
  {
    V6192 = 88        // light all segments
  }
  ELSE
  {
    V6192 = -999999        // blank display
  }
 }
 ELSE
 {
  V6192 = V6500 
 }
}

Var 6501    // Electric Panel Upper right
{
 IF V6501 = -1
 {
  IF V5199 = 1    // ac selector in test position
  {
    V6194 = 888        // light all segments
  }
  ELSE
  {
    V6194 = -999999        // blank display
  }
 }
 ELSE
 {
  V6194 = V6501 
 }
}

Var 6502    // Electric Panel Lower left
{
 IF V6502 = -1
 {
  IF V5194 = 1    // dc selector in test position
  {
    V6197 = 88        // light all segments
  }
  ELSE
  {
    V6197 = -999999        // blank display
  }
 }
 ELSE
 {
  V6197 = V6502 
 }
}

Var 6503    // Electric Panel Lower center
{
 IF V6503 = -1
 {
  IF V5199 = 1    // ac selector in test position
  {
    V6199 = 88        // light all segments
  }
  ELSE
  {
    V6199 = -999999        // blank display
  }
 }
 ELSE
 {
  V6199 = V6503 
 }
}

Var 6504    // Electric Panel Lower right
{
 IF V6504 = -1
 {
  IF V5199 = 1    // ac selector in test position
  {
    V6201 = 888        // light all segments
  }
  ELSE
  {
    V6201 = -999999        // blank display
  }
 }
 ELSE
 {
  V6201 = V6504 
 }
}

Var 6192, Link IOCARD_DISPLAY, Device 5, Digit 192, Numbers 2    // Electric Panel Upper left

Var 6194, Link IOCARD_DISPLAY, Device 5, Digit 194, Numbers 3    // Electric Panel Upper right

Var 6197, Link IOCARD_DISPLAY, Device 5, Digit 197, Numbers 2    // Electric Panel Lower left

Var 6199, Link IOCARD_DISPLAY, Device 5, Digit 199, Numbers 2    // Electric Panel Lower center

Var 6201, Link IOCARD_DISPLAY, Device 5, Digit 201, Numbers 3    // Electric Panel Lower right

Var 5136, Link IOCARD_ENCODER, Device 5, Input 136, Aceleration 0, Type 2    // Flt Alt control
{
 L0 = V5136 * -1
 L0 = L0 * 500
 V6600 = LIMIT -1000 ,42000 ,L0
}

Var 6600, Link IOCARD_DISPLAY, Device 5, Digit 208, Numbers 5    // Flt Alt value
{
 CALL &FLT_ALT_SR
}

Var 6601, name FLT_ALT_SR, Link SUBRUTINE
{
 IF &COLD_DARK = 0    // cold & dark
 {
  V6600 = -999999        // blank display
 }
 ELSE
 {
  IF V6600 = -999999
  {
    V6600 = 24000 
  }
  ELSE
  {
    V6600 = V6600 
  }
 }
}

Var 5138, Link IOCARD_ENCODER, Device 5, Input 138, Aceleration 2, Type 2    // Land Alt control
{
 L0 = V5138 * -1
 L0 = L0 * 50
 V6700 = LIMIT -1000 ,14000 ,L0
}

Var 6700, Link IOCARD_DISPLAY, Device 5, Digit 213, Numbers 5, Value 0    // Land Alt Value
{
 CALL &LAND_ALT_SR
}

Var 6701, name LAND_ALT_SR, Link SUBRUTINE
{
 IF &COLD_DARK = 0    // cold & dark
 {
  V6700 = -999999        // blank display
 }
 ELSE
 {
  IF V6700 = -999999
  {
    V6700 = 0 
  }
  ELSE
  {
    V6700 = V6700 
  }
 }
}

Var 0100, name D_COURSE1, Link IOCARD_DISPLAY, Digit 0, Numbers 3

Var 0102, name D_IAS, Link IOCARD_DISPLAY, Digit 3, Numbers 3

Var 0104, name D_HDG, Link IOCARD_DISPLAY, Digit 6, Numbers 3

Var 0106, name D_ALT, Link IOCARD_DISPLAY, Digit 9, Numbers 5

Var 0108, name D_VS, Link IOCARD_DISPLAY, Digit 14, Numbers 5

Var 0110, name D_COURSE2, Link IOCARD_DISPLAY, Digit 19, Numbers 3

Var 0112, name VS_Trigger    // Vertical Speed Trigger

Var 0114, name BRIGHT, Link IOCARD_DISPLAY, Digit 32, Numbers 3    // Bright control for digits

Var 0116, name D_IAS_IND, Link IOCARD_DISPLAY, Digit 22, Numbers 1

Var 0118, name SUB_BLINK, Link SUBRUTINE
{
 IF &Inhibit_IAS = 0
 {
  IF &O_IASSYMB = 0
  {
    &D_IAS_IND = -999999 
  }
  ELSE
  {
    IF &O_IASSYMB = 1
    {
      &D_IAS_IND = -999996 
      &D_IAS_IND = DELAY -999999 ,80
    }
    IF &O_IASSYMB = 2
    {
      &D_IAS_IND = 8 
      &D_IAS_IND = DELAY -999999 ,80
    }
  }
 }
}

Var 0120, name HDG_temp

Var 0122, name BANK_act

Var 0200, name DECIMAL
{
 IF &Inhibit_IAS = 0    // Do not place the decimal if the display
 {
  &IAS_DOT = &DECIMAL 
 }
}

Var 0201, name IAS_DOT, Link IOCARD_OUT, Output 20

Var 0202, name O_N1, Link IOCARD_OUT, Output 21

Var 0204, name O_AT, Link IOCARD_OUT, Output 22

Var 0206, name O_SPEED, Link IOCARD_OUT, Output 23

Var 0208, name O_LVLCHG, Link IOCARD_OUT, Output 24

Var 0210, name O_VNAV, Link IOCARD_OUT, Output 25

Var 0212, name O_HDGSEL, Link IOCARD_OUT, Output 26

Var 0214, name O_APP, Link IOCARD_OUT, Output 27

Var 0216, name O_VORLOC, Link IOCARD_OUT, Output 28

Var 0218, name O_LNAV, Link IOCARD_OUT, Output 29

Var 0220, name O_ALTHLD, Link IOCARD_OUT, Output 30

Var 0222, name O_VS, Link IOCARD_OUT, Output 31

Var 0224, name O_CWSA, Link IOCARD_OUT, Output 32

Var 0226, name O_CMDA, Link IOCARD_OUT, Output 33

Var 0228, name O_CWSB, Link IOCARD_OUT, Output 34

Var 0230, name O_CMDB, Link IOCARD_OUT, Output 35

Var 0232, name O_FD1, Link IOCARD_OUT, Output 37

Var 0234, name O_FD2, Link IOCARD_OUT, Output 36

Var 0236, name O_IASSYMB    // Flashing A/B in IAS window, 0=No warning

Var 0238, name O_BACKLIGHT    // Backlight: 1 = on, 0 = off

Var 0300, name E_IAS, Link IOCARD_ENCODER, Input 0, Aceleration 4, Type 2
{
 IF &Inhibit_IAS = 0
 {
  L0 = -1 * &E_IAS
  IF &DECIMAL = 1
  {
    &D_IAS = LIMIT 50 ,90 ,L0
  }
  ELSE
  {
    &D_IAS = LIMIT 110 ,400 ,L0
  }
 }
}

Var 0302, name E_ALT, Link IOCARD_ENCODER, Input 2, Aceleration 4, Type 2
{
 IF &Inhibit_Alt = 0
 {
  L0 = -100 * &E_ALT
  &D_ALT = LIMIT 0 ,50000 ,L0
 }
}

Var 0304, name E_COURSE1, Link IOCARD_ENCODER, Input 4, Aceleration 4, Type 2
{
 IF &Inhibit_OBS1 = 0
 {
  L0 = &E_COURSE1 * -1
  &D_COURSE1 = ROTATE 0 ,359 ,L0
 }
}

Var 0306, name E_HDG, Link IOCARD_ENCODER, Input 6, Aceleration 4, Type 2
{
 IF &Inhibit_HDG = 0
 {
  IF &BANK_act = 0
  {
    L0 = &E_HDG * -1
    &D_HDG = ROTATE 0 ,359 ,L0
    &HDG_temp = &D_HDG 
  }
  IF &I_BANK_SW = 1
  {
    &D_HDG = &I_BANK_LIMIT 
    L1 = &E_HDG * -5
    &D_HDG = LIMIT 10 ,30 ,L1
    &I_BANK_LIMIT = &D_HDG 
  }
  ELSE
  {
    &D_HDG = &HDG_temp 
  }
 }
}

Var 0308, name E_COURSE2, Link IOCARD_ENCODER, Input 9, Aceleration 4, Type 2
{
 IF &Inhibit_OBS2 = 0
 {
  L0 = &E_COURSE2 * -1
  &D_COURSE2 = ROTATE 0 ,359 ,L0
 }
}

Var 0310, name E_VS, Link IOCARD_ENCODER, Input 11, Aceleration 4, Type 2
{
 IF &Inhibit_VS = 0
 {
  L0 = &E_VS * -50
  &D_VS = LIMIT -7000 ,7000 ,L0
 }
 ELSE
 {
  &VS_Trigger = 1 
 }
}

Var 0320, name Inhibit_IAS
{
 IF &Inhibit_IAS = 1
 {
  &D_IAS = -999999 
  &IAS_DOT = 0 
 }
 ELSE
 {
  &IAS_DOT = &DECIMAL 
 }
}

Var 0322, name Inhibit_Alt
{
 IF &Inhibit_Alt = 1
 {
  &D_ALT = -999999 
 }
}

Var 0324, name Inhibit_OBS1
{
 IF &Inhibit_OBS1 = 1
 {
  &D_COURSE1 = -999999 
 }
}

Var 0326, name Inhibit_HDG
{
 IF &Inhibit_HDG = 1
 {
  &D_HDG = -999999 
 }
}

Var 0328, name Inhibit_OBS2
{
 IF &Inhibit_OBS2 = 1
 {
  &D_COURSE2 = -999999 
 }
}

Var 0330, name Inhibit_VS
{
 IF &Inhibit_VS = 1
 {
  &D_VS = -999999 
 }
}

Var 0400, name I_CO, Link IOCARD_SW, Input 13

Var 0402, name I_FD2, Link IOCARD_SW, Input 14

Var 0404, name I_DISENGAGE, Link IOCARD_SW, Input 15

Var 0406, name I_FD1, Link IOCARD_SW, Input 16

Var 0408, name I_CWSB, Link IOCARD_SW, Input 18

Var 0410, name I_CMDB, Link IOCARD_SW, Input 19

Var 0412, name I_CWSA, Link IOCARD_SW, Input 20

Var 0414, name I_CMDA, Link IOCARD_SW, Input 21

Var 0416, name I_VS, Link IOCARD_SW, Input 22

Var 0418, name I_ALTHLD, Link IOCARD_SW, Input 23

Var 0420, name I_APP, Link IOCARD_SW, Input 24

Var 0422, name I_VORLOC, Link IOCARD_SW, Input 25

Var 0424, name I_LNAV, Link IOCARD_SW, Input 27

Var 0426, name I_HDGSEL, Link IOCARD_SW, Input 28

Var 0428, name I_LVLCHG, Link IOCARD_SW, Input 29

Var 0430, name I_VNAV, Link IOCARD_SW, Input 30

Var 0432, name I_SPEED, Link IOCARD_SW, Input 31

Var 0434, name I_N1, Link IOCARD_SW, Input 32

Var 0436, name I_AT, Link IOCARD_SW, Input 33

Var 0438, name I_SPD_INTER, Link IOCARD_SW, Input 37

Var 0440, name I_ALT_INTER, Link IOCARD_SW, Input 36

Var 0442, name I_BANK_LIMIT, Value 10

Var 0444, name I_BANK_SW, Link IOCARD_SW, Input 34    // Activate bank limit
{
 IF &I_BANK_SW = 1
 {
  &BANK_act = 1 
  &D_HDG = &I_BANK_LIMIT 
 }
 ELSE
 {
  &BANK_act = 0 
  &D_HDG = &HDG_temp 
 }
}

Var 0500, name I_E1_DISPMODE

Var 0501, name I_E1_ZOOM

Var 0502, name I_E1_NAV1

Var 0503, name I_E1_NAV2

Var 0504, name I_E1_STA, Link IOCARD_SW, Device 1, Input 27

Var 0505, name I_E1_WPT, Link IOCARD_SW, Device 1, Input 28

Var 0506, name I_E1_CTR, Link IOCARD_SW, Device 1, Input 29

Var 0507, name I_E1_ARPT, Link IOCARD_SW, Device 1, Input 30

Var 0508, name I_E1_TFC, Link IOCARD_SW, Device 1, Input 31

Var 0509, name I_E1_DATA, Link IOCARD_SW, Device 1, Input 32

Var 0510, name I_E1_POS, Link IOCARD_SW, Device 1, Input 33

Var 0511, name I_E1_FPV, Link IOCARD_SW, Device 1, Input 34

Var 0512, name I_E1_MTR, Link IOCARD_SW, Device 1, Input 38

Var 0513, name I_E1_MINRST

Var 0514, name I_E1_QNHSTD

Var 0515, name I_E1_MINRADIO

Var 0516, name I_E1_MINBARO

Var 0517, name I_E1_CHANGEMIN

Var 0518, name I_E1_BAROHPA

Var 0519, name I_E1_BAROINCH

Var 0520, name I_E1_CHGBARO

Var 0521, name I_E1_TERR

Var 0522, name I_E1_WXR

Var 0523, Link IOCARD_SW, Device 1, Input 10    // VOR mode
{
 IF V0523 = 1
 {
  &I_E1_DISPMODE = 2 
 }
}

Var 0524, Link IOCARD_SW, Device 1, Input 11    // MAP mode
{
 IF V0524 = 1
 {
  &I_E1_DISPMODE = 3 
 }
}

Var 0525, Link IOCARD_SW, Device 1, Input 12    // PLAN mode
{
 IF V0525 = 1
 {
  &I_E1_DISPMODE = 4 
 }
}

Var 0526, Link IOCARD_SW, Device 1, Input 0    // Range 5
{
 IF V0526 = 1
 {
  &I_E1_ZOOM = 1 
 }
}

Var 0527, Link IOCARD_SW, Device 1, Input 1    // Range 10
{
 IF V0527 = 1
 {
  &I_E1_ZOOM = 2 
 }
}

Var 0528, Link IOCARD_SW, Device 1, Input 2    // Range 20
{
 IF V0528 = 1
 {
  &I_E1_ZOOM = 3 
 }
}

Var 0529, Link IOCARD_SW, Device 1, Input 3    // Range 40
{
 IF V0529 = 1
 {
  &I_E1_ZOOM = 4 
 }
}

Var 0530, Link IOCARD_SW, Device 1, Input 4    // Range 80
{
 IF V0530 = 1
 {
  &I_E1_ZOOM = 5 
 }
}

Var 0531, Link IOCARD_SW, Device 1, Input 5    // Range 160
{
 IF V0531 = 1
 {
  &I_E1_ZOOM = 6 
 }
}

Var 0532, Link IOCARD_SW, Device 1, Input 6    // Range 320
{
 IF V0532 = 1
 {
  &I_E1_ZOOM = 7 
 }
}

Var 0533, Link IOCARD_SW, Device 1, Input 7    // Range 640
{
 IF V0533 = 1
 {
  &I_E1_ZOOM = 8 
 }
}

Var 0535, Link IOCARD_SW, Device 1, Input 36    // NAV 1 VOR
{
 CALL &E1NAV1
}

Var 0536, Link IOCARD_SW, Device 1, Input 37    // NAV 1 ADF
{
 CALL &E1NAV1
}

Var 0537, name E1NAV1, Link SUBRUTINE
{
 IF V0535 = 1
 {
  &I_E1_NAV1 = 1 
 }
 ELSE
 {
  IF V0536 = 1
  {
    &I_E1_NAV1 = 2 
  }
  ELSE
  {
    &I_E1_NAV1 = 0 
  }
 }
}

Var 0538, Link IOCARD_SW, Device 1, Input 18    // NAV 2 VOR
{
 CALL &E1NAV2
}

Var 0539, Link IOCARD_SW, Device 1, Input 19    // NAV 2 ADF
{
 CALL &E1NAV2
}

Var 0540, name E1NAV2, Link SUBRUTINE
{
 IF V0538 = 1
 {
  &I_E1_NAV2 = 1 
 }
 ELSE
 {
  IF V0539 = 1
  {
    &I_E1_NAV2 = 2 
  }
  ELSE
  {
    &I_E1_NAV2 = 0 
  }
 }
}

Var 0541, Link IOCARD_SW, Device 1, Input 9    // APP mode
{
 IF V0541 = 1
 {
  &I_E1_DISPMODE = 1 
 }
}

Var 0550, name Min1Moved

Var 0551, name Bar1Moved

Var 0552, Link IOCARD_SW, Device 1, Input 25
{
 IF V0552 = 1
 {
  &Min1Moved = 0 
 }
 ELSE
 {
  IF &Min1Moved = 0
  {
    &I_E1_MINRST = TOGGLE 0
  }
 }
}

Var 0553, Link IOCARD_SW, Device 1, Input 22
{
 IF V0553 = 1
 {
  &Bar1Moved = 0 
 }
 ELSE
 {
  IF &Bar1Moved = 0
  {
    &I_E1_QNHSTD = TOGGLE 0
  }
 }
}

Var 0554, Link IOCARD_ENCODER, Device 1, Input 23, Aceleration 4, Type 2
{
 &Min1Moved = 1 
 IF V0552 = 1
 {
  IF V0554 = 0
  {
    &I_E1_MINRADIO = TOGGLE 0
  }
  ELSE
  {
    &I_E1_MINBARO = TOGGLE 0
  }
 }
 ELSE
 {
  &I_E1_CHANGEMIN = V0554 * -1
  &I_E1_CHANGEMIN = 0 
 }
}

Var 0555, Link IOCARD_ENCODER, Device 1, Input 20, Aceleration 4, Type 2
{
 &Bar1Moved = 1 
 IF V0553 = 1
 {
  IF V0555 = 0
  {
    &I_E1_BAROINCH = TOGGLE 0
  }
  ELSE
  {
    &I_E1_BAROHPA = TOGGLE 0
  }
 }
 ELSE
 {
  &I_E1_CHGBARO = V0555 * -1
  &I_E1_CHGBARO = 0 
 }
}

Var 0050, name CDUKey, Link IOCARD_KEYS, Device 13    // Keyboard reading

Var 0051, name CDUExec, Link IOCARD_OUT, Device 13, Output 2    // device

Var 0052, name CDUFail, Link IOCARD_OUT, Device 13, Output 4

Var 0053, name CDUMSG, Link IOCARD_OUT, Device 13, Output 1

Var 1001, name FS_N_GEAR_POS, Link FSUIPC_INOUT, Offset $0BEC, Length 4
{
 IF &FS_N_GEAR_POS = 16383
 {
  &IND_N_GEAR_DN = 1 
  &IND_N_GEAR_UP = 0 
 }
 ELSE
 {
  IF &FS_N_GEAR_POS > 1
  {
    &IND_N_GEAR_DN = 0 
    &IND_N_GEAR_UP = 1 
  }
  ELSE
  {
    IF &FS_N_GEAR_POS = 0
    {
      &IND_N_GEAR_UP = 0 
      &IND_N_GEAR_DN = 0 
    }
  }
 }
}

Var 1002, name FS_R_GEAR_POS, Link FSUIPC_INOUT, Offset $0BF0, Length 4
{
 IF &FS_R_GEAR_POS = 16383
 {
  &IND_R_GEAR_DN = 1 
  &IND_R_GEAR_UP = 0 
 }
 ELSE
 {
  IF &FS_R_GEAR_POS > 1
  {
    &IND_R_GEAR_DN = 0 
    &IND_R_GEAR_UP = 1 
  }
  ELSE
  {
    IF &FS_R_GEAR_POS = 0
    {
      &IND_R_GEAR_UP = 0 
      &IND_R_GEAR_DN = 0 
    }
  }
 }
}

Var 1003, name FS_L_GEAR_POS, Link FSUIPC_INOUT, Offset $0BF4, Length 4
{
 IF &FS_L_GEAR_POS = 16383
 {
  &IND_L_GEAR_DN = 1 
  &IND_L_GEAR_UP = 0 
 }
 ELSE
 {
  IF &FS_L_GEAR_POS > 1
  {
    &IND_L_GEAR_DN = 0 
    &IND_L_GEAR_UP = 1 
  }
  ELSE
  {
    IF &FS_L_GEAR_POS = 0
    {
      &IND_L_GEAR_UP = 0 
      &IND_L_GEAR_DN = 0 
    }
  }
 }
}

Var 1004, name IND_N_GEAR_UP, Link IOCARD_OUT, Device 2, Output 15

Var 1005, name IND_R_GEAR_UP, Link IOCARD_OUT, Device 2, Output 14

Var 1006, name IND_L_GEAR_UP, Link IOCARD_OUT, Device 2, Output 16

Var 1007, name IND_N_GEAR_DN, Link IOCARD_OUT, Device 2, Output 12

Var 1008, name IND_R_GEAR_DN, Link IOCARD_OUT, Device 2, Output 11

Var 1009, name IND_L_GEAR_DN, Link IOCARD_OUT, Device 2, Output 13

Var 1010, name FS_G_LEVER_POS, Link FSUIPC_INOUT, Offset $0BE8, Length 4

Var 1011, name SW_LAND_GEAR_D, Link IOCARD_SW, Device 2, Input 2
{
 IF &SW_LAND_GEAR_D = 1
 {
  &FS_G_LEVER_POS = 16383 
 }
}

Var 1012, name SW_LAND_GEAR_U, Link IOCARD_SW, Device 2, Input 1
{
 IF &SW_LAND_GEAR_U = 1
 {
  &FS_G_LEVER_POS = 0 
 }
}

Var 1703, Link FSUIPC_OUT, Offset $0892, Length 1    // Eng Start 1 SW

Var 1705, Link FSUIPC_OUT, Offset $092A, Length 1    // Eng Start 2 SW

Var 1716, Link IOCARD_SW, Device 5, Input 70    // Eng Start 1 Grd ROT
{
 IF V1716 = 1
 {
  V1703 = 1 
 }
}

Var 1717, Link IOCARD_SW, Device 5, Input 69    // Eng Start 1 Off ROT
{
 IF V1717 = 1
 {
  V1703 = 0 
 }
}

Var 1722, Link IOCARD_SW, Device 5, Input 70    // Eng Start 2 Grd ROT
{
 IF V1722 = 1
 {
  V1705 = 1 
 }
}

Var 1723, Link IOCARD_SW, Device 5, Input 71    // Eng Start 2 Off ROT
{
 IF V1723 = 1
 {
  V1705 = 0 
 }
}
// ************************ Commandes Ouverture/Fermeture toutes portes + echelle *****************************

Var 5016, name fs_door, Link FSUIPC_INOUT, Offset $3367, Length 1


Var 5017, name sw_door1, Link IOCARD_SW, Device 2, Input 39
{
&fs_door = &sw_door1 * 8 // cargo AV
}
Var 5018, name sw_door2, Link IOCARD_SW, Device 2, Input 36
{
&fs_door = &sw_door2 * 1 // porte cabin AVG + ARG
}
Var 5019, name sw_door3, Link IOCARD_SW, Device 2, Input 38
{
&fs_door = &sw_door3 * 12 // cargo av-ar
}
Var 5020, name sw_door4, Link IOCARD_SW, Device 2, Input 37
{
&fs_door = &sw_door4 * 2 // cabin AVD + ARD 
}
// ************************  FIN Commandes Ouverture/Fermeture toutes portes + echelle *****************************

mameloose

Date d'inscription : 06/04/2016
Localisation : evreux
Messages : 27
Age : 34

https://www.youtube.com/watch?v=2chwYMN6ZME

Revenir en haut Aller en bas

ERREUR SCRIPT Empty Re: ERREUR SCRIPT

Message par Phil 64 le Mer 15 Juin - 17:54

Comme les Scouts l'ami, j'en étais sûr : TOUJOURS PRÊT !!!
MERCI
Je vais essayer ça demain.

_________________
AMICALEMENT, ET BONS VOLS

[Vous devez être inscrit et connecté pour voir cette image][Vous devez être inscrit et connecté pour voir cette image] Fondateur/Administrateur [Vous devez être inscrit et connecté pour voir cette image]
RYZEN 7 3800X AM4, C.M GIGABYTE X570 Gaming X, 2 X 8 Go de mémoire DDR4 3200MHZ, 1 ATI Readon RX 480 Nitro+ 8Go, 1 ATI Readon R9 270 X DUAL 4Go, 1 SSD Samsung 970 Evo+ M2 1 To, 1 SSD Samsung 250 Go, OS : W10 Pro , P3D V4, Fsuipc, Prosim, FTX Global, Europe LC, Global Vector, ASP4, Gsx, FSCloud.
Phil 64
Phil 64
Admin

Date d'inscription : 07/12/2011
Localisation : 64 200 LFBZ
Messages : 1943
Age : 65

http://airvirtuel737.forumgratuit.org

Revenir en haut Aller en bas

ERREUR SCRIPT Empty Re: ERREUR SCRIPT

Message par Contenu sponsorisé


Contenu sponsorisé


Revenir en haut Aller en bas

Revenir en haut


 
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum