Voici le script que j'ai écris mais il ne fonctionne pas.
- Code: Tout sélectionner
[i][b]Var 1012, name ECAM_FMGS, Link FSUIPC_INOUT, Offset $66D0, Length 1 // VARIOUS CONTROL FMGS
{
CALL &SW_ECAM
}
Var 1305, name SW_ECAM, Link SUBRUTINE // INTER ECAM FMGS
{
IF &SW_ARM_SPOILER = 1
{
&ECAM_FMGS = SETBIT 1
}
ELSE
{
&ECAM_FMGS = CLEARBIT 1
}
IF &SW_DESA_SPOIL = 1
{
&ECAM_FMGS = SETBIT 2
}
ELSE
{
&ECAM_FMGS = CLEARBIT 2
}
IF &SW_ECAM_TOCONF = 1
{
&ECAM_FMGS = SETBIT 3
}
ELSE
{
&ECAM_FMGS = CLEARBIT 3
}
IF &SW_ECAM_DOOR = 1
{
&ECAM_FMGS = SETBIT 4
}
ELSE
{
&ECAM_FMGS = CLEARBIT 4
}
IF &SW_ECAM_ENGINE = 1
{
&ECAM_FMGS = SETBIT 5
}
ELSE
{
&ECAM_FMGS = CLEARBIT 5
}
IF &SW_ECAM_BLEED = 1
{
&ECAM_FMGS = SETBIT 6
}
ELSE
{
&ECAM_FMGS = CLEARBIT 6
}
IF &SW_ECAM_PRESS = 1
{
&ECAM_FMGS = SETBIT 7
}
ELSE
{
&ECAM_FMGS = CLEARBIT 7
}
IF &SW_ECAM_ELEC = 1
{
&ECAM_FMGS = SETBIT 8
}
ELSE
{
&ECAM_FMGS = CLEARBIT 8
}
IF &SW_ECAM_HYD = 1
{
&ECAM_FMGS = SETBIT 9
}
ELSE
{
&ECAM_FMGS = CLEARBIT 9
}
IF &SW_ECAM_FUEL = 1
{
&ECAM_FMGS = SETBIT 10
}
ELSE
{
&ECAM_FMGS = CLEARBIT 10
}
IF &SW_ECAM_APU = 1
{
&ECAM_FMGS = SETBIT 11
}
ELSE
{
&ECAM_FMGS = CLEARBIT 11
}
IF &SW_ECAM_COND = 1
{
&ECAM_FMGS = SETBIT 12
}
ELSE
{
&ECAM_FMGS = CLEARBIT 12
}
IF &SW_ECAM_WHEEL = 1
{
&ECAM_FMGS = SETBIT 13
}
ELSE
{
&SW_ECAM_WHEEL = CLEARBIT 13
}
IF &SW_ECAM_FCTL = 1
{
&ECAM_FMGS = SETBIT 14
}
ELSE
{
&SW_ECAM_FCTL = CLEARBIT 14
}
IF &SW_ECAM_CRUISE = 1
{
&ECAM_FMGS = SETBIT 15
}
ELSE
{
&ECAM_FMGS = CLEARBIT 15
}
}
Var 1418, name SW_ARM_SPOILER, Link IOCARD_SW, Device 2, Input 0, Type P // ARM SPOILER
{
IF &SW_ARM_SPOILER = 1
{
&ECAM_FMGS = SETBIT 0
}
ELSE
{
&ECAM_FMGS = CLEARBIT 0
}
}
Var 1419, name SW_DESA_SPOIL, Link IOCARD_SW, Device 2, Input 1, Type P // DESARME SPOILER
{
IF &SW_DESA_SPOIL = 1
{
&ECAM_FMGS = SETBIT 1
}
ELSE
{
&ECAM_FMGS = CLEARBIT 1
}
}
Var 1420, name SW_ECAM_TOCONF, Link IOCARD_SW, Device 2, Input 2, Type P // BP ECAM T.O. CONFIG
{
IF &SW_ECAM_TOCONF = 1
{
&ECAM_FMGS = SETBIT 2
}
ELSE
{
&ECAM_FMGS = CLEARBIT 2
}
}
Var 1421, name SW_ECAM_DOOR, Link IOCARD_SW, Device 2, Input 3 // BP ECAM DOOR
{
IF &SW_ECAM_DOOR = 1
{
&ECAM_FMGS = SETBIT 3
}
ELSE
{
&ECAM_FMGS = CLEARBIT 3
}
}
Var 1422, name SW_ECAM_ENGINE, Link IOCARD_SW, Input 45, Type P // BP ECAM ENGINE
{
IF &SW_ECAM_ENGINE = 1
{
&ECAM_FMGS = SETBIT 5
}
ELSE
{
&ECAM_FMGS = CLEARBIT 5
}
}
Var 1423, name SW_ECAM_BLEED, Link IOCARD_SW, Device 2, Input 6, Type P // BP ECAM BLEED
{
IF &SW_ECAM_BLEED = 1
{
&ECAM_FMGS = SETBIT 6
}
ELSE
{
&ECAM_FMGS = CLEARBIT 6
}
}
Var 1424, name SW_ECAM_PRESS, Link IOCARD_SW, Device 2, Input 7, Type P // BP ECAM CAB PRESS
{
IF &SW_ECAM_PRESS = 1
{
&ECAM_FMGS = SETBIT 7
}
ELSE
{
&ECAM_FMGS = CLEARBIT 7
}
}
Var 1425, name SW_ECAM_ELEC, Link IOCARD_SW, Input 47, Type P // BP ECAM ELECTRIC
{
IF &SW_ECAM_ELEC = 1
{
&ECAM_FMGS = SETBIT 8
}
ELSE
{
&ECAM_FMGS = CLEARBIT 8
}
}
Var 1426, name SW_ECAM_HYD, Link IOCARD_SW, Device 2, Input 9, Type P // BP ECAM HYDRAULIC
{
IF &SW_ECAM_HYD = 1
{
&ECAM_FMGS = SETBIT 9
}
ELSE
{
&ECAM_FMGS = CLEARBIT 9
}
}
Var 1427, name SW_ECAM_FUEL, Link IOCARD_SW, Device 2, Input 9, Type P // BP ECAM FUEL
{
IF &SW_ECAM_FUEL = 1
{
&ECAM_FMGS = SETBIT 10
}
ELSE
{
&ECAM_FMGS = CLEARBIT 10
}
}
Var 1428, name SW_ECAM_APU, Link IOCARD_SW, Input 46, Type P // BP ECAM APU
{
IF &SW_ECAM_APU = 1
{
&ECAM_FMGS = SETBIT 11
}
ELSE
{
&ECAM_FMGS = CLEARBIT 11
}
}
Var 1429, name SW_ECAM_COND, Link IOCARD_SW, Device 2, Input 9, Type P // Inter_cabine
{
IF &SW_ECAM_COND = 1
{
&ECAM_FMGS = SETBIT 12
}
ELSE
{
&ECAM_FMGS = CLEARBIT 12
}
}
Var 1430, name SW_ECAM_WHEEL, Link IOCARD_SW, Device 2, Input 9, Type P // BP ECAM WHEEL ET GEARS
{
IF &SW_ECAM_WHEEL = 1
{
&ECAM_FMGS = SETBIT 13
}
ELSE
{
&ECAM_FMGS = CLEARBIT 13
}
}
Var 1431, name SW_ECAM_FCTL, Link IOCARD_SW, Device 2, Input 9, Type P // BP ECAM F/CTL
{
IF &SW_ECAM_FCTL = 1
{
&ECAM_FMGS = SETBIT 14
}
ELSE
{
&ECAM_FMGS = CLEARBIT 14
}
}
Var 1432, name SW_ECAM_CRUISE, Link IOCARD_SW, Device 2, Input 9, Type P // BP ECAM CRUISE
{
IF &SW_ECAM_CRUISE = 1
{
&ECAM_FMGS = SETBIT 15
}
ELSE
{
&ECAM_FMGS = CLEARBIT 15
}
}[/b][/i]
de votre aide