<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
 The only thing the equation should do is letting one of the signals thru. The hysteresis you specified in th controller still works. It only specifies how long the heat pump should run or in other words send a 1 to the equation.<br>
You could try MAX(control_sig1,control_sig2)<br>
<br>
Richard<br>
<br>
<div id="htc_header" style="">----- Reply message -----<br>
Från: "Amdi Worm" <amdiworm@gmail.com><br>
Till: "Richard Thygesen" <richard.thygesen@mdh.se><br>
Kopia: "trnsys-users@cae.wisc.edu" <trnsys-users@cae.wisc.edu><br>
Rubrik: [TRNSYS-users] Controling Heatpump system<br>
Datum: tis, jan 15, 2013 11:34<br>
<br>
</div>
<br>
<br>
<div>Thanks a lot for the quick answers. 
<div>I have been trying to use the equation-method, but im not able to make it work, could you by any change mail me a screen dump of the MAX OR - sentences you recommended? Im also having a hard time figurering out how to integrate a hysteresis when using
 the functions since they just retur "0" or "1".</div>
<div><br>
</div>
<div>Sorry to question you again, I would just really like to make this work.</div>
<div><br>
</div>
<div>Best Regards</div>
<div>Amdi Worm  <br>
<br>
<div class="gmail_quote">2013/1/15 Richard Thygesen <span dir="ltr"><<a href="mailto:richard.thygesen@mdh.se" target="_blank">richard.thygesen@mdh.se</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Amdi.<br>
I'm simulating a system like yours and I use a equation to allow two control signals to control the heat pump.
<br>
One which is based on the return temperature from the heating system and one based on the temperature in a certain place on the DHW tank.<br>
A max or or equation should work. Play around with equations a bit and read chapter 6 in the manual to see which arguments that can be used.<br>
<br>
Almost all heat pumps in Sweden prioritize the DHW production.<span class="HOEnZb"><font color="#888888"><br>
<br>
Richard</font></span>
<div class="HOEnZb">
<div class="h5"><br>
<br>
<div>----- Reply message -----<br>
Från: "Amdi Worm" <<a href="mailto:amdiworm@gmail.com" target="_blank">amdiworm@gmail.com</a>><br>
Till: "<a href="mailto:trnsys-users@cae.wisc.edu" target="_blank">trnsys-users@cae.wisc.edu</a>" <<a href="mailto:trnsys-users@cae.wisc.edu" target="_blank">trnsys-users@cae.wisc.edu</a>><br>
Rubrik: [TRNSYS-users] Controling Heatpump system<br>
Datum: tis, jan 15, 2013 10:16<br>
<br>
</div>
<br>
<br>
Dear All
<div><br>
</div>
<div>I am simulating a heatpump system as attached in the PDF file.</div>
<div>My heatpump system is supplying both roomheating and DHW. As it is for now the heatpump (type 927) is controlled by the temperature in the returnpipe to the heatpump (as it is in many practical cases with a hysteresis) and the temperature in the returnpipe
 where the heatpump is turned on, depends on the outdoor temperature (lower outdoor temperature = demand for higher return temperature).</div>
<div><br>
</div>
<div>But as my system is connected, the DHW system gets the same temperature as the room-heating system, and in summertime due to the outdoor dependence, the temperature is not sufficient for the DHW system. I need the outdoor dependence according to danish
 law so it is not a solution just to turn it off.</div>
<div><br>
</div>
<div>Instead I would like to model the system so that the heatpump turns on if the temperature in the returnpipe in the roomheating curcuit goes below a certain values, and in the same way for the DHW circuit, but here the heatpump must turn on at another value
 in the returpipe of that circuit. </div>
<div>Is it possible to give the heatpump 2 control signals, so that it runs if one (or both) of the criterias is met? Which controller could be used in this case? Is it possile to create an "if / else" equation and thereby give the heatpump a control-signal
 or maybe a Type 108 with roomheating as stage one and DHW as stage two.</div>
<div><br>
</div>
<div>It is not an option for me to choose a 2 stage heatpumpe, since I haven't been able to get sufficient cataloge-data as input.   </div>
<div><br>
</div>
<div>I hope one is able to help.</div>
<div><br>
</div>
<div>Best regards</div>
<div>Amdi Worm</div>
<div><br>
</div>
<div>Esbensen A/S</div>
<div>     </div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</body>
</html>