View single post by slychiu
 Posted: Sunday Mar 12th, 2017 12:43 pm
 PM  Quote  Reply  Full Topic 
slychiu



Joined: Saturday Apr 29th, 2006
Location: Singapore
Posts: 5500
Status: 
Offline

  back to top

There are 256 Counters in Comfort Ultra. Each counter can have a value from 0 to 65535 (16 bits)

Counters can be used to count events

eg Zone Response
Increment Counter008
If Counter008 >= 3 Then
   Do Response Turn on Lights
   Set Counter008=0
EndIf

This will increment counter 8 whenever the zone is triggered, when the count reaches 3 it will  Do a Response to turn on selected lights, and reset the counter to 0

You can also Add a counter value or subtract a counter value

eg
Get Counter 5
Subtract Counter 6
Set Counter 7


This means Counter 5 - counter 6
The result is saved to another counter 7


Counters can also be used for Feedback in the Control Menu



Note that The Counter Menu does not need any words in OFF and ON action keys


In the Comfort App, counter as feedback will appear as a Slider

The slider positions correspond to counter values 0 for off (slider to the left) and 255 for full scale. the scale 0 to 255 corresponds to dimming levels for most lighting systems



Last edited on Monday Mar 13th, 2017 03:28 pm by slychiu

 Close Window