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

Stop Timer explanation
 Moderated by: slychiu
 New Topic   Reply   Printer Friendly 
 Rate Topic 
AuthorPost
 Posted: Friday Sep 16th, 2016 11:26 am
   PM  Quote  Reply 
1st Post
lms
Member
 

Joined: Monday Aug 7th, 2006
Location: Durban, South Africa
Posts: 45
Status: 
Offline

  back to top

No time (= too lazy) to figure this out myself, so hoping someone can provide a quick answer...

Response1:
[Some actions]
Wait 30 Seconds Using Timer01
[More actions]

Response2:
Stop Timer Timer01

If Response2 is triggered during Response1's wait action, does Response1 continue with its subsequent actions or is Response1 itself terminated immediately?

And I assume the same would apply if the "Wait 30 Seconds" were replaced with "Do Response3 After 30 Seconds Using Timer01", i.e., Response3 would obviously not be triggered but would subsequent actions in Response1 still continue?

Thanks for any enlightenment!



 Posted: Friday Sep 16th, 2016 11:49 am
   PM  Quote  Reply 
2nd Post
slychiu
Administrator


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

  back to top

The Response after WAIT does not happen if the Timer is stopped
The same applies to Do Response after Timer

Last edited on Friday Sep 16th, 2016 11:49 am by slychiu



 Posted: Friday Sep 16th, 2016 12:01 pm
   PM  Quote  Reply 
3rd Post
slychiu
Administrator


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

  back to top

For a better understand of how the timer works;

For the Do Response after Timer action, a new process is started with a timer running down to 0. When the timer expires, the target Response is activated.

For the "Wait for Timer:  Response, when the timer expires, the next action after the wait is activated, so it actualy does Wait for the timer to expire. However that does not mean that other Responses are all waiting. Other Responses can be activated wile waiting for a timer



 Posted: Friday Sep 16th, 2016 02:46 pm
   PM  Quote  Reply 
4th Post
lms
Member
 

Joined: Monday Aug 7th, 2006
Location: Durban, South Africa
Posts: 45
Status: 
Offline

  back to top

Thanks slychiu.


On re-reading, I've just realised the second part of my question (Do Response After) is rather stupid - obviously subsequent actions in Response1 will continue immediately after the "Do After" and only Response3 would be stopped. Apologies - must have been a temporary brain failure!



 Current time is 11:02 am
Top




UltraBB 1.172 Copyright © 2007-2014 Data 1 Systems