Example of Creating a Thermostat for Heating
A common room thermostat works most often in an ON / OFF mode. In this mode, however, the temperature may start to "oscillate" and the value will constantly rise and fall for example, 0.1 °C. In this case, the heating would always be switched on and off and the operating life of the controls would gradually decrease. For this reason, hysteresis is used. Hysteresis is the dependence of the state of the system in its history. In our case, this can be thought of as the difference between the required and actual temperature. In the created program it is possible to change the hysteresis value for the for higher and lower limits.
Example of Hysteresis
19.8 = Is the temperature at which the heating system is reactivated. In the code section, this is written as temp_required - hystdown.
20 = Temperature required.
20.3 = Is the temperature at which the heating system is deactivated. In the code section, this is written as temp_required + hystup.
Example Given in the Program
An IPSEN-TH2 sensor is located in two rooms. In one room we want to heat to the required temperature of 20 °C and in the other room to 22 °C.
In the first room we keep the default hysteresis values written in the program code and in the second room we set our own values. The temperature values that we received from the IPSEN-TH2 sensor are multiplied by 10 and therefore even in the program the writing of all temperature values is multiplied by 10.
Example of User Block "thermostat"