Comfort Home Automation/ Security System Forums Home 
Home Search search Menu menu Not logged in - Login | Register

How to use Timers
 Moderated by: slychiu
 New Topic   Reply   Printer Friendly 
 Rate Topic 
AuthorPost
 Posted: Thursday Nov 26th, 2009 01:11 pm
   PM  Quote  Reply 
1st Post
slychiu
Administrator


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

  back to top

Comfort II Ultra as 32 user Timers which can be used to implement delays from a Response to another.

The format of the Timer action is as follows;

"Do Response X after Y seconds using Timer Z"

This means that Timer Z (1 to 32) is started for a duration of Y seconds (1 to 65534 seconds) at the end of which, Response X is activated

Important:
Note that the Timer action merely starts the timer, the action does not wait for the timer to expire, for example

Response 123
Output 1 ON
Do Response 200 after 60 seconds using Timer 20
Output 2 ON
End of response

Response 200
Output 3 ON
End of Response


When Response 123 is activated, Output 1 will turn on, Timer 20 is started, and Output 2 is turned on. This means Output 1 and 2 will appearr to turn on almost simultaneously.  Output 3 will turn on after 60 seconds

Some may have the wrong idea that Output 1 turns on, then after a delay of 60 seconds Response 200 is activated, then only output 2 turns on. This is incorrect.

There is no delay by actions within a Response. All actions are executed one after the other


There is a topic  on how to Flash lights during an alarm in http://www.comfortforums.com/forum83/1681.html
This is a good example of the use of timers and how useful they can be.

Attachment: TimerAction.jpg (Downloaded 95 times)

Last edited on Thursday Nov 26th, 2009 01:59 pm by slychiu



 Posted: Friday Nov 27th, 2009 02:25 am
   PM  Quote  Reply 
2nd Post
slychiu
Administrator


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

  back to top

Another important thing to know is that there can only be one instance of a timer running at any time. if you  use a timer you will stop the timer if it is already running

For Example, the Response

Do Response X after 20 seconds using Timer 1
Do Response Y after  10 seconds using Timer 1
Do Response Z after  5 seconds using Timer 1

will result in Response Z after 5 seconds. Response X and Y will not get activated because Timer 1 is restarted and reloaded with Response Y in the second line, and then immediately restarted and reloaded with Response Z in the 3rd line

If the intention is to do all three Responses after the delays then use different timer, eg
Do Response X after 20 seconds using Timer 1
Do Response Y after  10 seconds using Timer 2
Do Response Z after  5 seconds using Timer 3

Last edited on Friday Nov 27th, 2009 02:25 am by slychiu



 Posted: Friday Nov 27th, 2009 02:34 am
   PM  Quote  Reply 
3rd Post
slychiu
Administrator


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

  back to top

Checking if a Timer is Running

You can check if a timer is running in the Response Wizard
eg

If Timer Timer05 <> 0 Then
    Do Response..
    ...
End If

TimerX <> 0  means the timer is running
TimerX = 0 means the timer is stopped

Attachment: If Timer.jpg (Downloaded 93 times)

Last edited on Friday Nov 27th, 2009 02:37 am by slychiu



 Posted: Friday Nov 27th, 2009 02:37 am
   PM  Quote  Reply 
4th Post
slychiu
Administrator


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

  back to top

Stop Timer

You can stop a timer using the Stop Timer Action. This prevents the Timer Response at the end of the timer from working

eg, a Response starts a timer

Do Response X after 60 seconds using Timer 20

If before the timer is finishethe response below is activated

Stop Timer 20

This stops the timer 20 and hence Response X will not work



 Current time is 12:38 pm
Top




UltraBB 1.17 Copyright © 2007-2008 Data 1 Systems