time in touch screen

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by new123, Nov 24, 2011.

  1. new123

    new123

    Joined:
    Nov 23, 2011
    Messages:
    35
    Likes Received:
    0
    Location:
    kuwait
    hello..i am new to piced

    Is it possible to display the exact time at which a group address got ON in touch screen???
    I am using colour touchscreen 5080
     
    new123, Nov 24, 2011
    #1
  2. new123

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    1. Create a user system IO variable which is of type "time"
    2. Place a level component on the displaying the value of this user system IO variable
    3. Add this logic code (modified to suit your needs):

    Code:
    once GetLightingState("Group 1") = On then
    begin
      SetIntSystemIO("group change time", time);
    end;
     
    Darren, Nov 27, 2011
    #2
  3. new123

    new123

    Joined:
    Nov 23, 2011
    Messages:
    35
    Likes Received:
    0
    Location:
    kuwait
    thank you

    Thank you Darren.
    It helped me a lot.
     
    new123, Nov 28, 2011
    #3
  4. new123

    new123

    Joined:
    Nov 23, 2011
    Messages:
    35
    Likes Received:
    0
    Location:
    kuwait
    numeral

    The time I get is in numerals.
    Can I decode it to standard time(hh:mm)?
     
    new123, Nov 30, 2011
    #4
  5. new123

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    My mistake. In step 2 I should have said to place a clock component.
     
    Darren, Nov 30, 2011
    #5
  6. new123

    new123

    Joined:
    Nov 23, 2011
    Messages:
    35
    Likes Received:
    0
    Location:
    kuwait
    Thank you

    Thank you very much Darren :)
     
    new123, Nov 30, 2011
    #6
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.