Paca

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by Clinton's Electrical, May 20, 2009.

  1. Clinton's Electrical

    Clinton's Electrical

    Joined:
    Mar 28, 2006
    Messages:
    31
    Likes Received:
    0
    Hi all Yesterday I Updated To Latest Firmware And PICED / Toolkit Etc :)
    I HAve A Scene On the Touch Screen B/W Mk 1 And Commands In PACA Eg
    once (Time = "6:00:00 AM") then
    begin
    PulseCBusLevel("Local Network", "Lighting", "Scene Master Off", 100%, 0, "0:00:01", 0%);
    once (Time = "07:06:00 PM") then
    PulseCBusLevel("Local Network", "Lighting", "Scene Goodnight", 100%, 0, "0:00:02", 0%);
    end

    This used To Work But not Anymore, Any Idea's ?

    Thanks , Clinton:cool:
     
    Clinton's Electrical, May 20, 2009
    #1
  2. Clinton's Electrical

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    It is unlikely that the code you have posted would have ever worked, because you have a "once" inside another "once". You are probably wanting something like:

    Code:
    once (Time = "6:00:00 AM") then
    begin
      PulseCBusLevel("Local Network", "Lighting", "Scene Master Off", 100%, 0, "0:00:01", 0%);
    end;
    
    once (Time = "07:06:00 PM") then
    begin
      PulseCBusLevel("Local Network", "Lighting", "Scene Goodnight", 100%, 0, "0:00:02", 0%);
    end;
     
    Darren, May 21, 2009
    #2
  3. Clinton's Electrical

    [IL]NewGen

    Joined:
    Aug 3, 2004
    Messages:
    121
    Likes Received:
    0
    Location:
    Melb, Australia
    remember that for every 'BEGIN' there has to be an 'END;'

    write down you're functions out on paper in point form and work steadily there to form your modules
     
    [IL]NewGen, May 22, 2009
    #3
  4. Clinton's Electrical

    Clinton's Electrical

    Joined:
    Mar 28, 2006
    Messages:
    31
    Likes Received:
    0
    Thank You Guys, Your Brains Must Be Fresher Than Mine.:D
    Have A Great Weekend, Thanks, Clinton
     
    Clinton's Electrical, May 22, 2009
    #4
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.