Code works in simulation but not on PAC

Discussion in 'C-Bus Wired Hardware' started by Alistair, Apr 28, 2006.

  1. Alistair

    Alistair

    Joined:
    Jan 25, 2006
    Messages:
    16
    Likes Received:
    0
    Location:
    Darwen UK
    The following code works fine when PICED is in simulation mode with logic running but once it is transfered the edge triggered event will not capture.

    ------------------------------------------------------------------------
    once (GetCBusTargetLevel("Net1", "Lighting", 86) <> GetCBusLevel("Net1", "Lighting", 86)) then
    Begin
    RampReset(86);
    GroupToggle(100,100) ;
    end;
    ------------------------------------------------------------------------
    RampReset and GroupToggle are just my procedurs both of which work OK
    No compile errors, no erors in the log. Just will not work ...

    I have other once statements in this and other modules that all work ok in Simulation mode and when transfered.

    Please help ... pulling out what little hair I have
     
    Alistair, Apr 28, 2006
    #1
  2. Alistair

    Alistair

    Joined:
    Jan 25, 2006
    Messages:
    16
    Likes Received:
    0
    Location:
    Darwen UK
    This works although it has obvious limmitations

    once (GetLightingLevel(86) <> 0%)
    and (GetLightingLevel(86) <> 100%)then
    Begin
    RampReset(86);
    GroupToggle(100,100);
    end;

    and I suppose I should point out that ..

    once (GetCBusRampRate(.....

    also dosnt work, the whole GetCbus... as apposed to GetLighting seems to be a problem.

    I would realy apriciate any insight you all may have

    Thanks
    Al
     
    Alistair, Apr 28, 2006
    #2
  3. Alistair

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    You are quite right, these two functions don't work in the PAC. This will be fixed.
     
    Darren, May 1, 2006
    #3
  4. Alistair

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    Darren, May 18, 2006
    #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.