Help with simple logic

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by LCC, Nov 2, 2006.

  1. LCC

    LCC

    Joined:
    Apr 13, 2006
    Messages:
    18
    Likes Received:
    0
    Hi all,

    I am using some logic for a simple procedure to alternate between front light operation, at certain times. I'm not sure what I am doing wrong, but the lights turn on and perform as desired, but do not switch off. I have attached the logic. It works fine on piced when connected to network????
     

    Attached Files:

    LCC, Nov 2, 2006
    #1
  2. LCC

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    Do you mean that the lights do not switch off, or that the sequence does not stop ?

    If you mean the latter, it may be caused by the line

    Until (time = "9:40:00PM");

    You are relying on the delays finishing exactly at the right second for it to finish. Try changing it to

    Until (time >= "9:40:00PM");

    and see if that helps.
     
    Darren, Nov 2, 2006
    #2
  3. LCC

    LCC

    Joined:
    Apr 13, 2006
    Messages:
    18
    Likes Received:
    0
    Thanks Darren,

    ;) Thats fixed the problem!!

    So effictivly, me having a fixed time, would only work if the cycle finished at that moment that equalled the until time?? So if it completed and the time was slightly over, it would continue on its way.......much appreciated
     
    LCC, Nov 5, 2006
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.