Please login or register.

Login with username, password and session length
Advanced search  

News:

The Buster PiX10Hub is here! Created by the Community, for the Community.:)% #:)

Author Topic: Halting a running macro  (Read 4048 times)

jdacal

  • Jr. Member
  • **
  • Helpful Post Rating: 1
  • Posts: 11
Halting a running macro
« on: February 04, 2007, 06:33:44 PM »

If for example, A9 ON starts a macro.  Would A9 OFF stop the macro in its tracks?

The scenario I'm thinking of is that a light is on and there is a timer running in A9 macro which would turn the light off say 3 minutes.

BUT the possibility exists that another macro might kick in, say for example A10 ON.  That second macro would not want the A9 timer to run out because it wants to keep the light on for another 30 minutes.  So my question, would A9 OFF stop the A9 macro in its tracks, so that the timer would never reach the end and turn the light off prematurely?

Fun stuff.  :)
Logged

Puck

  • Advanced Member
  • Hero Member
  • ******
  • Helpful Post Rating: 171
  • Posts: 1799
Re: Halting a running macro
« Reply #1 on: February 04, 2007, 06:44:07 PM »

So my question, would A9 OFF stop the A9 macro in its tracks, so that the timer would never reach the end and turn the light off prematurely?

No it will not stop it. Once a macro starts, there is no programmable way to stop it.

However, what you can do if you are using motion sensors or timers for your macro triggers, is separate your macro into 2 separate ones (triggered by the ON & OFF signals) as opposed to having a delay in the ON macro. Then you can place a condition in the OFF macro to prevent it from executing if something else occurs.
Logged
 

X10.com | About X10 | X10 Security Systems | Cameras| Package Deals
© Copyright 2014-2016 X10.com All rights reserved.