heating relay

Go down

heating relay

Post by skiv71 on Thu May 01, 2014 12:03 am

This example shows how to create a 'meta point' whose value is determined by the status of multiple TRV's in the system.

context points:
(point - var name)
trv1 pos - trv1
trv2 pos - trv2
trv3 pos - trv3

script:
value=0; // default off
open=10; // valve position required to declare open
if ((trv1.value>open) || (trv2.value>open) || (trv3.value>open)) value=1; // any valve open, enable heating
return value;

update:
context

notice the use of commenting here (// xxxxx), useful for debugging, reminding yourself later and/or helping others.
avatar
skiv71
Admin

Posts : 161
Join date : 2014-04-25
Age : 46
Location : United Kingdom

View user profile http://bmslink.co.uk:8180 [guest:guest]

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum