After the fan is ON, Cooling Valve Control takes the larger value of cooling and dehumidification, both of which are calculated direct-proportionally by the PID function block. Cooling is calculated based on return air temperature and return air temperature setpoint, while dehumidification is calculated based on return air humidity and return air humidity setpoint.