This is my current code in EMS foe control but it has no effect on simulations Schedule:Constant,Cycle,On/OFF,1; ! New schedule object
AvailabilityManager:Scheduled, ! Updated Availability Manager Packaged Rooftop Air Conditioner Availability Manager, Cycle; EnergyManagementSystem:Sensor,AptTemp, BLOCK1:ZONE1 , Zone Mean Air Temperature;
EnergyManagementSystem:Sensor,hSP, BLOCK1:ZONE1 ,Zone Thermostat Heating Setpoint Temperature; EnergyManagementSystem:Actuator,AvailSCH_Overwrite, Cycle, Schedule:Constant, Schedule Value; EnergyManagementSystem:ProgramCallingManager,Supervision, BeginTimestepBeforePredictor, HVAC_uncontolledloop_Supervision; EnergyManagementSystem:Program, HVAC_uncontolledloop_Supervision, SET Toffset = 4.00, IF AptTemp > (hSP), SET AvailSCH_Overwrite = 0, ELSEIF AvailSCH_Overwrite == 0 && AptTemp >= (hSP) && AptTemp <= (hSP + Toffset), SET AvailSCH_Overwrite = 0, ELSE, SET AvailSCH_Overwrite = 1, ENDIF;