A Thermostat
Part of the Analog and Sequences section of Coddy's PLC Programming journey. Lesson 6 of 17.
Temp is a second analog input: 0 to 32767 for 0 to 100 °C. The Heater warms the liquid about 2 °C a second, and the tank cools toward 20 °C by itself.
A thermostat holds a temperature with hysteresis, the same idea as the level: heater on below 40 °C, off at 45 °C, and in between keep doing what it was doing. In raw numbers 40 °C is 13107 and 45 °C is 14745.
The Low contact matters. A heater with no liquid over it gets red hot in seconds and burns out. Low is TRUE only while liquid covers it, so with Low in series the heater can never run dry.
Challenge
Medium- turn
Heateron below 40 °C (Temp 13107) and off at 45 °C (Temp 14745), with a seal-in in between - let it heat only while
Lowis TRUE
The tank starts half full at 35 °C. Try the Use slider to empty it.
Try it yourself
{"v":1,"lang":"ld","tags":[],"rungs":[{"els":[]}]}This lesson includes a short quiz. Start the lesson to answer it and track your progress.
All lessons in Analog and Sequences
1Analog Inputs
Fill to HighHysteresisRaw Analog ValuesScaling to PercentA High Level AlarmA ThermostatPractice on your own: PLC playground