2014-06-20 12:46:06 +02:00
|
|
|
/*@!Encoding:1252*/
|
|
|
|
on sysvar sysvar::Airbus::ESS_DC1
|
|
|
|
{
|
2014-07-11 13:34:18 +02:00
|
|
|
if (@this)
|
2014-06-20 12:46:06 +02:00
|
|
|
{
|
2014-07-11 13:34:18 +02:00
|
|
|
@sysvar::Airbus::DEU223RH06::B_DC1_E=@this;
|
|
|
|
@sysvar::Airbus::DEU226RH06::B_DC1_E=@this;
|
2014-07-15 18:47:43 +02:00
|
|
|
@sysvar::Airbus::DEU228RH06::B_DC1_E=@this;
|
|
|
|
@sysvar::Airbus::DEU229RH06::B_DC1_E=@this;
|
2014-06-20 12:46:06 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
on sysvar sysvar::Airbus::ESS_DC2
|
|
|
|
{
|
2014-07-11 13:34:18 +02:00
|
|
|
if (@this)
|
2014-06-20 12:46:06 +02:00
|
|
|
{
|
2014-07-11 13:34:18 +02:00
|
|
|
@sysvar::Airbus::DEU223RH06::B_DC2_E=@this;
|
|
|
|
@sysvar::Airbus::DEU226RH06::B_DC2_E=@this;
|
2014-07-15 18:47:43 +02:00
|
|
|
@sysvar::Airbus::DEU228RH06::B_DC2_E=@this;
|
|
|
|
@sysvar::Airbus::DEU229RH06::B_DC2_E=@this;
|
2014-06-20 12:46:06 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
on sysvar sysvar::Airbus::NORM_DC1
|
|
|
|
{
|
2014-07-11 13:34:18 +02:00
|
|
|
if (@this)
|
2014-06-20 12:46:06 +02:00
|
|
|
{
|
2014-07-11 13:34:18 +02:00
|
|
|
@sysvar::Airbus::DEU223RH06::B_DC1_N=@this;
|
|
|
|
@sysvar::Airbus::DEU226RH06::B_DC1_N=@this;
|
2014-07-15 18:47:43 +02:00
|
|
|
@sysvar::Airbus::DEU228RH06::B_DC1_N=@this;
|
|
|
|
@sysvar::Airbus::DEU229RH06::B_DC1_N=@this;
|
2014-06-20 12:46:06 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
on sysvar sysvar::Airbus::NORM_DC2
|
|
|
|
{
|
2014-07-11 13:34:18 +02:00
|
|
|
if (@this)
|
2014-06-20 12:46:06 +02:00
|
|
|
{
|
2014-07-11 13:34:18 +02:00
|
|
|
@sysvar::Airbus::DEU223RH06::B_DC2_N=@this;
|
|
|
|
@sysvar::Airbus::DEU226RH06::B_DC2_N=@this;
|
2014-07-15 18:47:43 +02:00
|
|
|
@sysvar::Airbus::DEU228RH06::B_DC2_N=@this;
|
|
|
|
@sysvar::Airbus::DEU229RH06::B_DC2_N=@this;
|
2014-06-20 12:46:06 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2014-07-15 18:47:43 +02:00
|
|
|
|
|
|
|
|
2014-06-20 12:46:06 +02:00
|
|
|
on sysvar sysvar::Airbus::DEU223RH06::B_DC1_E
|
|
|
|
{
|
2014-07-11 13:34:18 +02:00
|
|
|
if (@this)
|
2014-06-20 12:46:06 +02:00
|
|
|
@sysvar::Airbus::DEU223RH06::B_DC2_E=0;
|
2014-07-11 13:34:18 +02:00
|
|
|
|
2014-06-20 12:46:06 +02:00
|
|
|
update();
|
|
|
|
}
|
|
|
|
|
|
|
|
on sysvar sysvar::Airbus::DEU223RH06::B_DC2_E
|
|
|
|
{
|
2014-07-11 13:34:18 +02:00
|
|
|
if (@this)
|
2014-06-20 12:46:06 +02:00
|
|
|
@sysvar::Airbus::DEU223RH06::B_DC1_E=0;
|
2014-07-11 13:34:18 +02:00
|
|
|
|
2014-06-20 12:46:06 +02:00
|
|
|
update();
|
|
|
|
}
|
|
|
|
|
|
|
|
on sysvar sysvar::Airbus::DEU223RH06::B_DC1_N
|
|
|
|
{
|
2014-07-11 13:34:18 +02:00
|
|
|
if (@this)
|
2014-06-20 12:46:06 +02:00
|
|
|
@sysvar::Airbus::DEU223RH06::B_DC2_N=0;
|
2014-07-11 13:34:18 +02:00
|
|
|
|
2014-06-20 12:46:06 +02:00
|
|
|
update();
|
|
|
|
}
|
|
|
|
|
|
|
|
on sysvar sysvar::Airbus::DEU223RH06::B_DC2_N
|
|
|
|
{
|
2014-07-11 13:34:18 +02:00
|
|
|
if (@this)
|
2014-06-20 12:46:06 +02:00
|
|
|
@sysvar::Airbus::DEU223RH06::B_DC1_N=0;
|
2014-07-11 13:34:18 +02:00
|
|
|
|
2014-06-20 12:46:06 +02:00
|
|
|
update();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-07-15 18:47:43 +02:00
|
|
|
|
2014-06-20 12:46:06 +02:00
|
|
|
on sysvar sysvar::Airbus::DEU226RH06::B_DC1_E
|
|
|
|
{
|
2014-07-11 13:34:18 +02:00
|
|
|
if (@this)
|
2014-06-20 12:46:06 +02:00
|
|
|
@sysvar::Airbus::DEU226RH06::B_DC2_E=0;
|
2014-07-11 13:34:18 +02:00
|
|
|
|
2014-06-20 12:46:06 +02:00
|
|
|
update();
|
|
|
|
}
|
|
|
|
|
|
|
|
on sysvar sysvar::Airbus::DEU226RH06::B_DC2_E
|
|
|
|
{
|
2014-07-11 13:34:18 +02:00
|
|
|
if (@this)
|
2014-06-20 12:46:06 +02:00
|
|
|
@sysvar::Airbus::DEU226RH06::B_DC1_E=0;
|
2014-07-11 13:34:18 +02:00
|
|
|
|
2014-06-20 12:46:06 +02:00
|
|
|
|
|
|
|
update();
|
|
|
|
}
|
|
|
|
|
|
|
|
on sysvar sysvar::Airbus::DEU226RH06::B_DC1_N
|
|
|
|
{
|
2014-07-11 13:34:18 +02:00
|
|
|
if (@this)
|
2014-06-20 12:46:06 +02:00
|
|
|
@sysvar::Airbus::DEU226RH06::B_DC2_N=0;
|
2014-07-11 13:34:18 +02:00
|
|
|
|
2014-06-20 12:46:06 +02:00
|
|
|
update();
|
|
|
|
}
|
|
|
|
|
|
|
|
on sysvar sysvar::Airbus::DEU226RH06::B_DC2_N
|
|
|
|
{
|
2014-07-11 13:34:18 +02:00
|
|
|
if (@this)
|
2014-06-20 12:46:06 +02:00
|
|
|
@sysvar::Airbus::DEU226RH06::B_DC1_N=0;
|
2014-07-11 13:34:18 +02:00
|
|
|
|
|
|
|
update();
|
2014-06-20 12:46:06 +02:00
|
|
|
}
|
|
|
|
|
2014-07-15 18:47:43 +02:00
|
|
|
|
|
|
|
|
|
|
|
on sysvar sysvar::Airbus::DEU228RH06::B_DC1_E
|
|
|
|
{
|
|
|
|
if (@this)
|
|
|
|
@sysvar::Airbus::DEU228RH06::B_DC2_E=0;
|
|
|
|
|
|
|
|
update();
|
|
|
|
}
|
|
|
|
|
|
|
|
on sysvar sysvar::Airbus::DEU228RH06::B_DC2_E
|
|
|
|
{
|
|
|
|
if (@this)
|
|
|
|
@sysvar::Airbus::DEU228RH06::B_DC1_E=0;
|
|
|
|
|
|
|
|
update();
|
|
|
|
}
|
|
|
|
|
|
|
|
on sysvar sysvar::Airbus::DEU228RH06::B_DC1_N
|
|
|
|
{
|
|
|
|
if (@this)
|
|
|
|
@sysvar::Airbus::DEU228RH06::B_DC2_N=0;
|
|
|
|
|
|
|
|
update();
|
|
|
|
}
|
|
|
|
|
|
|
|
on sysvar sysvar::Airbus::DEU228RH06::B_DC2_N
|
|
|
|
{
|
|
|
|
if (@this)
|
|
|
|
@sysvar::Airbus::DEU228RH06::B_DC1_N=0;
|
|
|
|
|
|
|
|
update();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
on sysvar sysvar::Airbus::DEU229RH06::B_DC1_E
|
|
|
|
{
|
|
|
|
if (@this)
|
|
|
|
@sysvar::Airbus::DEU229RH06::B_DC2_E=0;
|
|
|
|
|
|
|
|
update();
|
|
|
|
}
|
|
|
|
|
|
|
|
on sysvar sysvar::Airbus::DEU229RH06::B_DC2_E
|
|
|
|
{
|
|
|
|
if (@this)
|
|
|
|
@sysvar::Airbus::DEU229RH06::B_DC1_E=0;
|
|
|
|
|
|
|
|
update();
|
|
|
|
}
|
|
|
|
|
|
|
|
on sysvar sysvar::Airbus::DEU229RH06::B_DC1_N
|
|
|
|
{
|
|
|
|
if (@this)
|
|
|
|
@sysvar::Airbus::DEU229RH06::B_DC2_N=0;
|
|
|
|
|
|
|
|
update();
|
|
|
|
}
|
|
|
|
|
|
|
|
on sysvar sysvar::Airbus::DEU229RH06::B_DC2_N
|
|
|
|
{
|
|
|
|
if (@this)
|
|
|
|
@sysvar::Airbus::DEU229RH06::B_DC1_N=0;
|
|
|
|
|
|
|
|
update();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-06-20 12:46:06 +02:00
|
|
|
on sysvar sysvar::Airbus::TL_CUT_OFF
|
|
|
|
{
|
2014-07-11 13:34:18 +02:00
|
|
|
update();
|
2014-06-20 12:46:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void update()
|
|
|
|
{
|
|
|
|
@sysvar::Airbus::DEU223RH06::DC1_E = @sysvar::Airbus::DEU223RH06::B_DC1_E && @sysvar::Airbus::TL_CUT_OFF;
|
|
|
|
@sysvar::Airbus::DEU223RH06::DC1_N = @sysvar::Airbus::DEU223RH06::B_DC1_N && @sysvar::Airbus::TL_CUT_OFF;
|
|
|
|
@sysvar::Airbus::DEU223RH06::DC2_E = @sysvar::Airbus::DEU223RH06::B_DC2_E && @sysvar::Airbus::TL_CUT_OFF;
|
|
|
|
@sysvar::Airbus::DEU223RH06::DC2_N = @sysvar::Airbus::DEU223RH06::B_DC2_N && @sysvar::Airbus::TL_CUT_OFF;
|
|
|
|
@sysvar::Airbus::DEU226RH06::DC1_E = @sysvar::Airbus::DEU226RH06::B_DC1_E && @sysvar::Airbus::TL_CUT_OFF;
|
|
|
|
@sysvar::Airbus::DEU226RH06::DC1_N = @sysvar::Airbus::DEU226RH06::B_DC1_N && @sysvar::Airbus::TL_CUT_OFF;
|
|
|
|
@sysvar::Airbus::DEU226RH06::DC2_E = @sysvar::Airbus::DEU226RH06::B_DC2_E && @sysvar::Airbus::TL_CUT_OFF;
|
|
|
|
@sysvar::Airbus::DEU226RH06::DC2_N = @sysvar::Airbus::DEU226RH06::B_DC2_N && @sysvar::Airbus::TL_CUT_OFF;
|
2014-07-15 18:47:43 +02:00
|
|
|
@sysvar::Airbus::DEU228RH06::DC1_E = @sysvar::Airbus::DEU228RH06::B_DC1_E && @sysvar::Airbus::TL_CUT_OFF;
|
|
|
|
@sysvar::Airbus::DEU228RH06::DC1_N = @sysvar::Airbus::DEU228RH06::B_DC1_N && @sysvar::Airbus::TL_CUT_OFF;
|
|
|
|
@sysvar::Airbus::DEU228RH06::DC2_E = @sysvar::Airbus::DEU228RH06::B_DC2_E && @sysvar::Airbus::TL_CUT_OFF;
|
|
|
|
@sysvar::Airbus::DEU228RH06::DC2_N = @sysvar::Airbus::DEU228RH06::B_DC2_N && @sysvar::Airbus::TL_CUT_OFF;
|
|
|
|
@sysvar::Airbus::DEU229RH06::DC1_E = @sysvar::Airbus::DEU229RH06::B_DC1_E && @sysvar::Airbus::TL_CUT_OFF;
|
|
|
|
@sysvar::Airbus::DEU229RH06::DC1_N = @sysvar::Airbus::DEU229RH06::B_DC1_N && @sysvar::Airbus::TL_CUT_OFF;
|
|
|
|
@sysvar::Airbus::DEU229RH06::DC2_E = @sysvar::Airbus::DEU229RH06::B_DC2_E && @sysvar::Airbus::TL_CUT_OFF;
|
|
|
|
@sysvar::Airbus::DEU229RH06::DC2_N = @sysvar::Airbus::DEU229RH06::B_DC2_N && @sysvar::Airbus::TL_CUT_OFF;
|
2014-07-11 13:34:18 +02:00
|
|
|
|
|
|
|
if (@sysvar::Airbus::TL_CUT_OFF == -1) // value could not be read
|
|
|
|
{
|
|
|
|
@sysvar::Airbus::DEU223RH06::E = -1;
|
2014-07-15 18:47:43 +02:00
|
|
|
@sysvar::Airbus::DEU223RH06::N = -1;
|
2014-07-11 13:34:18 +02:00
|
|
|
@sysvar::Airbus::DEU226RH06::E = -1;
|
2014-07-15 18:47:43 +02:00
|
|
|
@sysvar::Airbus::DEU226RH06::N = -1;
|
|
|
|
@sysvar::Airbus::DEU228RH06::E = -1;
|
|
|
|
@sysvar::Airbus::DEU228RH06::N = -1;
|
|
|
|
@sysvar::Airbus::DEU229RH06::E = -1;
|
|
|
|
@sysvar::Airbus::DEU229RH06::N = -1;
|
2014-07-11 13:34:18 +02:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
@sysvar::Airbus::DEU223RH06::E = (@sysvar::Airbus::DEU223RH06::B_DC1_E || @sysvar::Airbus::DEU223RH06::B_DC2_E);
|
|
|
|
@sysvar::Airbus::DEU223RH06::N = (@sysvar::Airbus::DEU223RH06::B_DC1_N || @sysvar::Airbus::DEU223RH06::B_DC2_N);
|
|
|
|
|
|
|
|
@sysvar::Airbus::DEU226RH06::E = (@sysvar::Airbus::DEU226RH06::B_DC1_E || @sysvar::Airbus::DEU226RH06::B_DC2_E);
|
|
|
|
@sysvar::Airbus::DEU226RH06::N = (@sysvar::Airbus::DEU226RH06::B_DC1_N || @sysvar::Airbus::DEU226RH06::B_DC2_N);
|
2014-07-15 18:47:43 +02:00
|
|
|
|
|
|
|
@sysvar::Airbus::DEU228RH06::E = (@sysvar::Airbus::DEU228RH06::B_DC1_E || @sysvar::Airbus::DEU228RH06::B_DC2_E);
|
|
|
|
@sysvar::Airbus::DEU228RH06::N = (@sysvar::Airbus::DEU228RH06::B_DC1_N || @sysvar::Airbus::DEU228RH06::B_DC2_N);
|
|
|
|
|
|
|
|
@sysvar::Airbus::DEU229RH06::E = (@sysvar::Airbus::DEU229RH06::B_DC1_E || @sysvar::Airbus::DEU229RH06::B_DC2_E);
|
|
|
|
@sysvar::Airbus::DEU229RH06::N = (@sysvar::Airbus::DEU229RH06::B_DC1_N || @sysvar::Airbus::DEU229RH06::B_DC2_N);
|
2014-07-11 13:34:18 +02:00
|
|
|
}
|
2014-06-20 12:46:06 +02:00
|
|
|
}
|
|
|
|
|
2014-07-16 13:00:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
on key 'D'
|
|
|
|
{
|
|
|
|
@sysvar::Airbus::DeuPower_Input = !@sysvar::Airbus::DeuPower_Input;
|
|
|
|
}
|
|
|
|
|
|
|
|
on key 'e'
|
|
|
|
{
|
|
|
|
if (!@sysvar::Airbus::DeuPower_Input)
|
|
|
|
return;
|
|
|
|
@sysvar::Airbus::DEU223RH06::B_DC1_E=1;
|
|
|
|
@sysvar::Airbus::DEU226RH06::B_DC1_E=1;
|
|
|
|
@sysvar::Airbus::DEU228RH06::B_DC1_E=1;
|
|
|
|
@sysvar::Airbus::DEU229RH06::B_DC1_E=1;
|
|
|
|
}
|
|
|
|
|
|
|
|
on key 'r'
|
|
|
|
{
|
|
|
|
if (!@sysvar::Airbus::DeuPower_Input)
|
|
|
|
return;
|
|
|
|
@sysvar::Airbus::DEU223RH06::B_DC2_E=1;
|
|
|
|
@sysvar::Airbus::DEU226RH06::B_DC2_E=1;
|
|
|
|
@sysvar::Airbus::DEU228RH06::B_DC2_E=1;
|
|
|
|
@sysvar::Airbus::DEU229RH06::B_DC2_E=1;
|
|
|
|
}
|
|
|
|
|
|
|
|
on key 'n'
|
|
|
|
{
|
|
|
|
if (!@sysvar::Airbus::DeuPower_Input)
|
|
|
|
return;
|
|
|
|
@sysvar::Airbus::DEU223RH06::B_DC1_N=1;
|
|
|
|
@sysvar::Airbus::DEU226RH06::B_DC1_N=1;
|
|
|
|
@sysvar::Airbus::DEU228RH06::B_DC1_N=1;
|
|
|
|
@sysvar::Airbus::DEU229RH06::B_DC1_N=1;
|
|
|
|
}
|
|
|
|
|
|
|
|
on key 'm'
|
|
|
|
{
|
|
|
|
if (!@sysvar::Airbus::DeuPower_Input)
|
|
|
|
return;
|
|
|
|
@sysvar::Airbus::DEU223RH06::B_DC2_N=1;
|
|
|
|
@sysvar::Airbus::DEU226RH06::B_DC2_N=1;
|
|
|
|
@sysvar::Airbus::DEU228RH06::B_DC2_N=1;
|
|
|
|
@sysvar::Airbus::DEU229RH06::B_DC2_N=1;
|
|
|
|
}
|
|
|
|
|
|
|
|
on key 'o'
|
|
|
|
{
|
|
|
|
if (!@sysvar::Airbus::DeuPower_Input)
|
|
|
|
return;
|
|
|
|
@sysvar::Airbus::DEU223RH06::B_DC1_E = 0;
|
|
|
|
@sysvar::Airbus::DEU223RH06::B_DC1_N = 0;
|
|
|
|
@sysvar::Airbus::DEU223RH06::B_DC2_E = 0;
|
|
|
|
@sysvar::Airbus::DEU223RH06::B_DC2_N = 0;
|
|
|
|
@sysvar::Airbus::DEU226RH06::B_DC1_E = 0;
|
|
|
|
@sysvar::Airbus::DEU226RH06::B_DC1_N = 0;
|
|
|
|
@sysvar::Airbus::DEU226RH06::B_DC2_E = 0;
|
|
|
|
@sysvar::Airbus::DEU226RH06::B_DC2_N = 0;
|
|
|
|
@sysvar::Airbus::DEU228RH06::B_DC1_E = 0;
|
|
|
|
@sysvar::Airbus::DEU228RH06::B_DC1_N = 0;
|
|
|
|
@sysvar::Airbus::DEU228RH06::B_DC2_E = 0;
|
|
|
|
@sysvar::Airbus::DEU228RH06::B_DC2_N = 0;
|
|
|
|
@sysvar::Airbus::DEU229RH06::B_DC1_E = 0;
|
|
|
|
@sysvar::Airbus::DEU229RH06::B_DC1_N = 0;
|
|
|
|
@sysvar::Airbus::DEU229RH06::B_DC2_E = 0;
|
|
|
|
@sysvar::Airbus::DEU229RH06::B_DC2_N = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
on start
|
|
|
|
{
|
|
|
|
openPanel("DEU Power");
|
|
|
|
}
|
|
|
|
|
|
|
|
on preStop
|
|
|
|
{
|
|
|
|
closePanel("DEU Power");
|
|
|
|
}
|