Simple PAC question (I hope)

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by firefly, Feb 14, 2006.

  1. firefly

    firefly

    Joined:
    Feb 14, 2006
    Messages:
    3
    Likes Received:
    0
    I've just installed a PAC unit and I've failed at the first post.

    Using PICED I thought I'd start with something simple and decided to get my bathroom fan to switch on with the bathroom light and switch off 10 mins after the light goes out (rather than a long press which is what I have at the moment). When I found that it didn't work I decided to just get the fan to switch on with the light and build on it from there.

    I've used the wizard but it still doesn't work. Using the wizard the code went
    ONCE GetLightingState ("1R11")=ON THEN
    SetLightingState ("1R12",ON);
    The compilation checker reported no errors.
    (1R11 is the light and 1R12 the fan)

    I know the PAC unit is working because I set up a schedule to operate the porch light using the PICED schedule wizard and it works fine.

    Any ideas where I could be going wrong or how I can debug. Since the code is generated by the wizard and the addresses were selected form the pull down menu I'm at a loss as to where I have gone wrong.

    Thanks FF
     
    firefly, Feb 14, 2006
    #1
  2. firefly

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    Even though you may not see any compile errors or run-time errors, there could still be logical errors in your code (see the logic help file, errors section).
    No. The PAC interrogates the network itself when it starts up.
    That would help. I would just put a couple of buttons on the page. Set them up to control the two group addresses and see what happens when you run the logic. If that works, you can connect to C-Bus to check that it works with the real C-Bus network.
     
    Darren, Feb 15, 2006
    #2
  3. firefly

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    The code looks OK. It will not start the fan if the bathroom light is on when the PAC first starts. It needs to see the light go from off to on before it will switch on the fan.

    Have you tested this is PICED ? It is recommended that all code be thoroughy tested in PICED before downloading to the PAC.
     
    Darren, Feb 15, 2006
    #3
  4. firefly

    firefly

    Joined:
    Feb 14, 2006
    Messages:
    3
    Likes Received:
    0
    Thanks Darren

    Not having a touch screen installed on my system I'd just ignored all of the stuff on PICED for touch screens. I didn't realise you could set it up to simulate the logic.

    My logic works fine in PICED. Unforetunetly I'm not home for a week so I can't try it out on the system to see if it works.

    Fingers crossed it should work

    FF
     
    firefly, Feb 15, 2006
    #4
  5. firefly

    firefly

    Joined:
    Feb 14, 2006
    Messages:
    3
    Likes Received:
    0
    Darren

    All works fine now.

    It seems that you have to restart the PAC before the transfer takes effect.

    Cheers

    FF
     
    firefly, Feb 26, 2006
    #5
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.