Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

Revert fan flow back to normal after ems input

Via EMS, I want to adjust the fan air flow at some moments. I know how to adjust it. However, I can't figure out how to get it back to the orginal speed after the moments of fan increase via the ems. For simplification, I now have this.

EnergyManagementSystem:Actuator,
    FANN,          
    5 ZONE PVAV FAN,  
    fan,            
    Fan Air Mass Flow Rate


    EnergyManagementSystem:Program,
       Fanprogram   
        IF (DayOfWeek ==2),    
        SET FANN=15,      
    ENDIF;

For this example, I want to increase the fan flow rate to 15 kg/s every 2nd day of the week. After the 2nd, day I want to revert it back to the speed what it would normally do. However, now it stays on 15 kg/s forever. I want it to go back to the default value after the 2nd day is finished. And this default value varies over time (depending on heating/cooling load), so it is not a constant value.

I hope someone can help.