Update precision_gas_mixer_H2_O2.asm

This commit is contained in:
Ivor Barhansky 2024-07-30 10:55:17 +00:00
parent 25b0907c89
commit 9de5f886cb

View File

@ -32,55 +32,55 @@ alias CurrentH2Setting r5
alias LowH2Setting r6
checkO2:
s d0 On 1
l H2PumpSetting d2 Setting
s H2o2Analyser On 1
l H2PumpSetting H2Pump Setting
mul CurrentO2Setting H2PumpSetting 0.75
s d1 Setting CurrentO2Setting
l O2 d0 RatioOxygen
s O2Pump Setting CurrentO2Setting
l O2 H2o2Analyser RatioOxygen
blt O2 O2Ratio o2PumpON
bgt O2 O2Ratio o2PumpOFF
j checkH2
checkH2:
l Pres d0 Pressure
l Pres H2o2Analyser Pressure
bge Pres MinTransPres setLOW
blt Pres MinTransPres setHIGH
resumePresCheck:
l Pres d0 Pressure
l Pres H2o2Analyser Pressure
bge Pres MaxH2Pres h2PumpOFF
H2RatioCheck:
l H2 d0 RatioVolatiles
l H2 H2o2Analyser RatioVolatiles
blt H2 H2Ratio h2PumpON
bgt H2 H2Ratio h2PumpOFF
j checkO2
o2PumpON:
s d1 On 1
s O2Pump On 1
j checkH2
o2PumpOFF:
s d1 On 0
s O2Pump On 0
j checkH2
h2PumpON:
s d2 On 1
s H2Pump On 1
j checkO2
h2PumpOFF:
s d2 On 0
s H2Pump On 0
j checkO2
pumpsOFF:
s d1 On 0
s d2 On 0
s O2Pump On 0
s H2Pump On 0
j checkO2
setLOW:
abs CurrentH2Setting PumpHighSetting
mul LowH2Setting CurrentH2Setting 0.5
s d2 Setting LowH2Setting
s H2Pump Setting LowH2Setting
j resumePresCheck
setHIGH:
s d2 Setting PumpHighSetting
s H2Pump Setting PumpHighSetting
j resumePresCheck