Advertisement
subOxygen

Untitled

Nov 22nd, 2022
2,059
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Basic4GL 1.57 KB | Source Code | 0 0
  1. //controls MUA fan's and tempaertaure
  2. Variable HeatingRamp As Real
  3. 'MUA Enable BV' = On
  4.  
  5. If 'MUA Enable BV' = On Then
  6.  'MUA Enable (Not In Use)' = On
  7.  If 'MUA Status' = On Then
  8.   'MUA EF3 Enable' = On
  9.   'MUA EF5 Enable' = On
  10.   If 'MUA Supply Temp CO' < HeatingRamp Then
  11.    //HeatingRamp = 'MUA Supply Temp CO'
  12.    Else
  13.    DoEvery 15S
  14.     //HeatingRamp = Limit (HeatingRamp + 1, 0, 100)
  15.    End Do
  16.   End If
  17.   //'MUA Gas Valve' = Min (HeatingRamp, 'MUA Supply Temp CO')
  18.   Else
  19.   'MUA EF3 Enable' = Off
  20.   'MUA EF5 Enable' = Off
  21.   //HeatingRamp = 0
  22.   //'MUA Gas Valve' = 0
  23.   'MUA Supply Temp CO.Bias' = 0
  24.  End If
  25.  Else
  26.   'MUA Enable (Not In Use)' = Off
  27.   'MUA EF3 Enable' = Off
  28.   'MUA EF5 Enable' = Off
  29.   //HeatingRamp = 0
  30.   //'MUA Gas Valve' = 0
  31.   'MUA Supply Temp CO.Bias' = 0
  32. End If
  33.  
  34. //set status
  35. Switch ( 'MUA Status', 'MUA SFS (Not In Use)', 0.5, 0.2)
  36. Switch ( 'EF 3 Status', AI1, 0.5, 0.2)
  37. Switch ( 'EF 5 Status', AI2, 0.5, 0.2)
  38.  
  39. //New code Jan 2014 - Kyle Mitzner ESC
  40. If 'MUA Status' = On Then
  41.   If ('MUA SAT (Not In Use)' <= 'MUA Supply Temp Setpoint AV' + 5) And ('MUA SAT (Not In Use)' >= 'MUA Supply Temp Setpoint AV' - 5) Then
  42.     'MUA Gas Valve (Not In Use)' = Scale ('MUA Supply Temp CO', 0, 0, 8.8, 80, 35)
  43.   ElseIf
  44.     ('MUA SAT (Not In Use)' > 'MUA Supply Temp Setpoint AV' + 5) Or ('MUA SAT (Not In Use)' < 'MUA Supply Temp Setpoint AV' - 5) Then
  45.     'MUA Gas Valve (Not In Use)' = Scale ('MUA Supply Temp CO', 0, 0, 0, 100, 70)
  46.   Else
  47.     'MUA Gas Valve (Not In Use)' = 0
  48.   End If
  49. End If
  50.  
  51.                                                      
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement