diff --git a/Models/Instruments/OHpanel/OHpanel.xml b/Models/Instruments/OHpanel/OHpanel.xml index d284b9ea..c8795bcf 100644 --- a/Models/Instruments/OHpanel/OHpanel.xml +++ b/Models/Instruments/OHpanel/OHpanel.xml @@ -53,8 +53,6 @@ select - APUBleedBtn1F - APUBleedBtn2O APUGenBtn1F APUGenBtn2O APUMasterBtn1F @@ -184,23 +182,21 @@ select Eng1BleedBtn1F Eng1BleedBtn2O - - - systems/electrical/bus/dc-ess-shed - 25 - - - - - - select Eng2BleedBtn1F Eng2BleedBtn2O + APUBleedBtn1F + APUBleedBtn2O - - systems/electrical/bus/dc-2 - 25 - + + + systems/electrical/bus/dc-2 + 25 + + + systems/electrical/bus/dc-ess-shed + 25 + + @@ -4187,10 +4183,16 @@ false - - systems/electrical/bus/dc-ess-shed - 25 - + + + systems/electrical/bus/dc-2 + 25 + + + systems/electrical/bus/dc-ess-shed + 25 + + property-toggle controls/pneumatics/switches/bleed-1 @@ -4256,11 +4258,11 @@ - systems/electrical/bus/dc-bat + systems/electrical/bus/dc-2 25 - systems/electrical/bus/dc-ess + systems/electrical/bus/dc-ess-shed 25 @@ -4327,10 +4329,16 @@ false - - systems/electrical/bus/dc-2 - 25 - + + + systems/electrical/bus/dc-2 + 25 + + + systems/electrical/bus/dc-ess-shed + 25 + + property-toggle controls/pneumatics/switches/bleed-2 diff --git a/Nasal/ECAM/ECAM-controller.nas b/Nasal/ECAM/ECAM-controller.nas index 30c582cf..03e15e97 100644 --- a/Nasal/ECAM/ECAM-controller.nas +++ b/Nasal/ECAM/ECAM-controller.nas @@ -54,6 +54,10 @@ var warningNodes = { bleed2NotShutOutput: props.globals.initNode("/ECAM/warnings/timer/prv-2-not-shut-output"), bleed1And2LoTemp: props.globals.initNode("/ECAM/warnings/timer/bleed-1-and-2-low-temp"), bleed1And2LoTempOutput: props.globals.initNode("/ECAM/warnings/timer/bleed-1-and-2-low-temp-output"), + bleed1Off60Output: props.globals.initNode("/ECAM/warnings/logic/bleed-1-off-60-output"), + bleed1Off5Output: props.globals.initNode("/ECAM/warnings/logic/bleed-1-off-5-output"), + bleed2Off60Output: props.globals.initNode("/ECAM/warnings/logic/bleed-2-off-60-output"), + bleed2Off5Output: props.globals.initNode("/ECAM/warnings/logic/bleed-2-off-5-output"), }, Flipflops: { bleed1LowTemp: props.globals.initNode("/ECAM/warnings/logic/bleed-1-low-temp-flipflop-output"), diff --git a/Nasal/ECAM/ECAM-logic.nas b/Nasal/ECAM/ECAM-logic.nas index bf2159b2..4357b941 100644 --- a/Nasal/ECAM/ECAM-logic.nas +++ b/Nasal/ECAM/ECAM-logic.nas @@ -1353,6 +1353,18 @@ var messages_priority_2 = func { ECAM_controller.warningReset(xBleedIcing); } + if (bleed1Off.clearFlag == 0 and (warningNodes.Timers.bleed1Off60Output.getValue() == 1 or warningNodes.Timers.bleed1Off5Output.getValue() == 1) and FWC.Timer.eng1idleOutput.getBoolValue()) { + bleed1Off.active = 1; + } else { + ECAM_controller.warningReset(bleed1Off); + } + + if (bleed2Off.clearFlag == 0 and (warningNodes.Timers.bleed2Off60Output.getValue() == 1 or warningNodes.Timers.bleed2Off5Output.getValue() == 1) and FWC.Timer.eng2idleOutput.getBoolValue()) { + bleed2Off.active = 1; + } else { + ECAM_controller.warningReset(bleed2Off); + } + # BMC if (bleedMonFault.clearFlag == 0 and systems.PNEU.Fail.bmc1.getValue() and systems.PNEU.Fail.bmc2.getValue()) { bleedMonFault.active = 1; diff --git a/Systems/a320-fwc.xml b/Systems/a320-fwc.xml index ac2c4a52..0e7e00fa 100644 --- a/Systems/a320-fwc.xml +++ b/Systems/a320-fwc.xml @@ -106,17 +106,45 @@ Timer for the ECAM system - /systems/pneumatics/warnings/lowtemp-1 + /systems/pneumatics/warnings/lowtemp-1-mem 100 0.016666 Timer for the ECAM system - /systems/pneumatics/warnings/lowtemp-2 + /systems/pneumatics/warnings/lowtemp-2-mem 100 0.016666 + + + Timer for the ECAM system + /ECAM/warnings/logic/bleed-1-off-60 + 100 + 0.016666 + + + + Timer for the ECAM system + /ECAM/warnings/logic/bleed-2-off-60 + 100 + 0.016666 + + + + Timer for the ECAM system + /ECAM/warnings/logic/bleed-1-off-5 + 100 + 0.2 + + + + Timer for the ECAM system + /ECAM/warnings/logic/bleed-2-off-5 + 100 + 0.2 + @@ -398,13 +426,81 @@ - + + + + /systems/pneumatics/warnings/lowtemp-1-mem eq 0 + /ECAM/warning-phase eq 6 + /controls/pneumatics/switches/bleed-1 eq 0 + /ECAM/warnings/logic/prv-1-not-shut eq 0 + /ECAM/warnings/logic/bleed-1-off-flipflop eq 0 + + + + + + + /systems/pneumatics/warnings/lowtemp-1-mem eq 0 + /ECAM/warning-phase eq 2 + /controls/pneumatics/switches/bleed-1 eq 0 + /ECAM/warnings/logic/prv-1-not-shut eq 0 + /ECAM/warnings/logic/bleed-1-off-flipflop eq 0 + + + + + + + /systems/pneumatics/valves/engine-1-prv-valve-disag eq 1 + /controls/pneumatics/switches/bleed-1 eq 1 + + + + - /ECAM/warnings/logic/bleed-1-wai-avail eq 0 - /ECAM/warnings/logic/bleed-2-lo-temp-xbleed eq 1 - /ECAM/warnings/logic/bleed-2-lo-temp-bleed eq 1 - /ECAM/warnings/logic/bleed-2-lo-temp-pack eq 1 + /ECAM/warning-phase eq 1 + /ECAM/warning-phase eq 3 + /ECAM/warning-phase eq 7 + + + + + + + /systems/pneumatics/warnings/lowtemp-2-mem eq 0 + /ECAM/warning-phase eq 6 + /controls/pneumatics/switches/bleed-2 eq 0 + /ECAM/warnings/logic/prv-2-not-shut eq 0 + /ECAM/warnings/logic/bleed-2-off-flipflop eq 0 + + + + + + + /systems/pneumatics/warnings/lowtemp-2-mem eq 0 + /ECAM/warning-phase eq 2 + /controls/pneumatics/switches/bleed-2 eq 0 + /ECAM/warnings/logic/prv-2-not-shut eq 0 + /ECAM/warnings/logic/bleed-2-off-flipflop eq 0 + + + + + + + /systems/pneumatics/valves/engine-2-prv-valve-disag eq 1 + /controls/pneumatics/switches/bleed-2 eq 1 + + + + + + + /ECAM/warning-phase eq 1 + /ECAM/warning-phase eq 3 + /ECAM/warning-phase eq 7 diff --git a/Systems/a320-pneumatic.xml b/Systems/a320-pneumatic.xml index eb01ab4e..10fdd290 100644 --- a/Systems/a320-pneumatic.xml +++ b/Systems/a320-pneumatic.xml @@ -830,6 +830,16 @@ + + + + /systems/pneumatics/warnings/lowtemp-1-mem eq 1 + /controls/pneumatics/switches/bleed-1 eq 1 + + + /systems/pneumatics/warnings/lowtemp-1 eq 1 + + @@ -932,6 +942,17 @@ /gear/gear[1]/wow eq 0 + + + + + /systems/pneumatics/warnings/lowtemp-2-mem eq 1 + /controls/pneumatics/switches/bleed-2 eq 1 + + + /systems/pneumatics/warnings/lowtemp-2 eq 1 + + diff --git a/Systems/ecam-proprules.xml b/Systems/ecam-proprules.xml index b3efe0dc..b3afd071 100644 --- a/Systems/ecam-proprules.xml +++ b/Systems/ecam-proprules.xml @@ -566,4 +566,26 @@ /ECAM/warnings/logic/wai-falling-pulse + + RS + + /ECAM/warnings/logic/bleed-1-off-flipflop-set + + + /ECAM/warnings/logic/bleed-1-off-flipflop-reset + + /ECAM/warnings/logic/bleed-1-off-flipflop + + + + RS + + /ECAM/warnings/logic/bleed-2-off-flipflop-set + + + /ECAM/warnings/logic/bleed-2-off-flipflop-reset + + /ECAM/warnings/logic/bleed-2-off-flipflop + +