Chiller alarm and cutoff now against the air temperature.

Tue, 25 Jul 2017 13:16:49 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Tue, 25 Jul 2017 13:16:49 +0200
changeset 526
2f75f94d471b
parent 525
5855abe0e82c
child 527
afd13a58c8c8

Chiller alarm and cutoff now against the air temperature.

thermferm/thermferm.c file | annotate | diff | comparison | revisions
--- a/thermferm/thermferm.c	Tue Jul 25 11:43:35 2017 +0200
+++ b/thermferm/thermferm.c	Tue Jul 25 13:16:49 2017 +0200
@@ -1662,9 +1662,12 @@
 			 * Prevent cooling if we use a chiller and the chiller temperature is not low enough.
 			 */
 			if (unit->chiller_address && (unit->chiller_state == 0)) {
-			    if ((unit->chiller_temperature / 1000.0) > (unit->PID_cool->Input - 1)) {
+			    if ((unit->chiller_temperature / 1000.0) > ((unit->air_temperature / 1000.0) - 1)) {
 			    	unit->PID_cool->OutP = 0.0;
 				unit->alarm_flag |= ALARM_FLAG_CHILLER;
+				if (seconds == 60) {
+				    syslog(LOG_NOTICE, "Cool: Air=%.2f Chiller=%.2f alarm", unit->air_temperature / 1000.0, unit->chiller_temperature / 1000.0);
+				}
 			    }
 			}
 		    	if (debug)

mercurial