Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //controls MUA fan's and tempaertaure
- Variable HeatingRamp As Real
- 'MUA Enable BV' = On
- If 'MUA Enable BV' = On Then
- 'MUA Enable (Not In Use)' = On
- If 'MUA Status' = On Then
- 'MUA EF3 Enable' = On
- 'MUA EF5 Enable' = On
- If 'MUA Supply Temp CO' < HeatingRamp Then
- //HeatingRamp = 'MUA Supply Temp CO'
- Else
- DoEvery 15S
- //HeatingRamp = Limit (HeatingRamp + 1, 0, 100)
- End Do
- End If
- //'MUA Gas Valve' = Min (HeatingRamp, 'MUA Supply Temp CO')
- Else
- 'MUA EF3 Enable' = Off
- 'MUA EF5 Enable' = Off
- //HeatingRamp = 0
- //'MUA Gas Valve' = 0
- 'MUA Supply Temp CO.Bias' = 0
- End If
- Else
- 'MUA Enable (Not In Use)' = Off
- 'MUA EF3 Enable' = Off
- 'MUA EF5 Enable' = Off
- //HeatingRamp = 0
- //'MUA Gas Valve' = 0
- 'MUA Supply Temp CO.Bias' = 0
- End If
- //set status
- Switch ( 'MUA Status', 'MUA SFS (Not In Use)', 0.5, 0.2)
- Switch ( 'EF 3 Status', AI1, 0.5, 0.2)
- Switch ( 'EF 5 Status', AI2, 0.5, 0.2)
- //New code Jan 2014 - Kyle Mitzner ESC
- If 'MUA Status' = On Then
- 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
- 'MUA Gas Valve (Not In Use)' = Scale ('MUA Supply Temp CO', 0, 0, 8.8, 80, 35)
- ElseIf
- ('MUA SAT (Not In Use)' > 'MUA Supply Temp Setpoint AV' + 5) Or ('MUA SAT (Not In Use)' < 'MUA Supply Temp Setpoint AV' - 5) Then
- 'MUA Gas Valve (Not In Use)' = Scale ('MUA Supply Temp CO', 0, 0, 0, 100, 70)
- Else
- 'MUA Gas Valve (Not In Use)' = 0
- End If
- End If
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement