Please login or register.

Login with username, password and session length

Author Topic: Reentrant Macros?  (Read 4720 times)

PajamaGuy

  • Hero Member
  • *****
  • Helpful Post Rating: 32
  • Posts: 522
Reentrant Macros?
« on: July 24, 2008, 01:49:29 PM »

Flag #8 is SET
Phantom switch F8 switches OFF

Macro TimeOff triggers on F8-OFF
IF FLAG #8 is SET
      Delay 5 min 
     Clear FLAG #8
     Delay 1 min
    Set F8 OFF  (or SendRF F8=OFF)
Endif

If trigger module is already OFF, will sending an F8-OFF re-trigger the macro?  Will sending RF F8-OFF re-trigger macro?  If I have this macro turn ON F8, then wait the 5 min., and then send the OFF, will it re-trigger?

(Yeah, I'm going to try it when I get home, but I thought some of you'all might have some 'sperience with reentrant macros.
« Last Edit: July 24, 2008, 01:59:20 PM by PajamaGuy »
Logged
PajamaGuy
Win-7 - Dell XPS -Automation
VA12a on a dedicated desktop - Video
XTB-IIR & V572RF32

Remote via LogMeIn (FREE) and Ignition

Puck

  • Advanced Member
  • Hero Member
  • ******
  • Helpful Post Rating: 171
  • Posts: 1799
Re: Reentrant Macros?
« Reply #1 on: July 24, 2008, 02:09:17 PM »

If trigger module is already OFF, will sending an F8-OFF re-trigger the macro?  Will sending RF F8-OFF re-trigger macro?  If I have this macro turn ON F8, then wait the 5 min., and then send the OFF, will it re-trigger?

AHP doesn't care about the previous state of a module. It will still run the OFF macro even if the module is currently OFF.
Logged

PajamaGuy

  • Hero Member
  • *****
  • Helpful Post Rating: 32
  • Posts: 522
Re: Reentrant Macros?
« Reply #2 on: July 24, 2008, 02:10:18 PM »

Great, thanks!
Logged
PajamaGuy
Win-7 - Dell XPS -Automation
VA12a on a dedicated desktop - Video
XTB-IIR & V572RF32

Remote via LogMeIn (FREE) and Ignition
 

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