Support Forums
How to use alarms to run a boiler

Based on the value read from a thermister I wish to activate a relay to continue a heater or turn it off until it drops below a set value. Here is the code that I thought would work based on the manual but it fails to compile.

BEGIN"config"
'Generated by new dEX-2
password=""

RA"Schedule_B"("b:",ALARMS:OV:100KB:W60,DATA:OV:1MB)2S
LOGONA 5R(II,2W,"Resistance~Ohms",=1001CV,LM,NA)

RB2S IF1(1001CV > 30)1RELAY=0 IF2(1001CV < 29) 1RELAY=1

END

Unable to puzzle my way to a version via the dEX interface. Any suggestions welcome.

Based on the value read from a thermister I wish to activate a relay to continue a heater or turn it off until it drops below a set value. Here is the code that I thought would work based on the manual but it fails to compile. BEGIN&quot;config&quot; &#039;Generated by new dEX-2 password=&quot;&quot; RA&quot;Schedule_B&quot;(&quot;b:&quot;,ALARMS:OV:100KB:W60,DATA:OV:1MB)2S LOGONA 5R(II,2W,&quot;Resistance~Ohms&quot;,=1001CV,LM,NA) RB2S IF1(1001CV &gt; 30)1RELAY=0 IF2(1001CV &lt; 29) 1RELAY=1 END Unable to puzzle my way to a version via the dEX interface. Any suggestions welcome.
edited Jul 19 at 6:53 am

This actually works

BEGIN"config"
'Generated by new dEX-2
password=""

RS1S

RA"Schedule_A"("b:",ALARMS:OV:100KB:W60,DATA:OV:1MB)2S
LOGONA
5YS04(I,4W,"YS04~degC",=1001CV,LM,NA)
ALARMR1(1001CV>21)1RELAY"hot enough"{1RELAY=0}
ALARMR2(1001CV<19)1RELAY"turn-on heater"{1RELAY=1}
END

This actually works BEGIN&quot;config&quot; &#039;Generated by new dEX-2 password=&quot;&quot; RS1S RA&quot;Schedule_A&quot;(&quot;b:&quot;,ALARMS:OV:100KB:W60,DATA:OV:1MB)2S LOGONA 5YS04(I,4W,&quot;YS04~degC&quot;,=1001CV,LM,NA) ALARMR1(1001CV&gt;21)1RELAY&quot;hot enough&quot;{1RELAY=0} ALARMR2(1001CV&lt;19)1RELAY&quot;turn-on heater&quot;{1RELAY=1} END
24
1
1
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft