Piced Logic Engine

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by Dave Byron, Sep 20, 2010.

  1. Dave Byron

    Dave Byron

    Joined:
    Aug 3, 2004
    Messages:
    835
    Likes Received:
    0
    Location:
    Casurina
    By mistake I made a Template that included Logic Code, I then added the Template to a Piced Project that had the logic engine running.

    Now the trouble starts, it added the Template Code to the existing code (now 2 copies of the same thing) with same names.
    And I can not Stop the engine (code grey), or delete them as engine running.

    Only way I found to get back control was to Disable the modules that I thought were the originals then I could stop the engine.

    Not very nice


    dave
     
    Dave Byron, Sep 20, 2010
    #1
  2. Dave Byron

    Dave Byron

    Joined:
    Aug 3, 2004
    Messages:
    835
    Likes Received:
    0
    Location:
    Casurina
    Piced Logic - Begin

    Found that the compiler will except code after the "if" line and before the "Begin".
    Although it maybe correct syntax, caused me trouble finding it as most other compilers would not allow it, be nice if it warned me

    if (GetLightingLevel("XDaybedStatus") < 50%) then
    Delay("0:00:08");
    begin
    SetLightingLevel("XDaybed", 50%, "7s");
    end;
    end;

    dave
     
    Dave Byron, Sep 20, 2010
    #2
  3. Dave Byron

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    Issue number 20439
     
    Darren, Oct 6, 2010
    #3
  4. Dave Byron

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    As you say, this is actually valid Pascal code, but a warning would be nice.

    Issue 20440.
     
    Darren, Oct 6, 2010
    #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.