CTC Logic Question

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by Jesmond, Oct 27, 2009.

  1. Jesmond

    Jesmond

    Joined:
    May 18, 2005
    Messages:
    107
    Likes Received:
    0
    Location:
    Victoria
    Hi Guys,

    I have an project where the client has the ability to press a button and this kicks off a 30 minute count down clock.

    This all works well as long as the count down does not cross days... i.e. if the clock starts at 11:45pm the clock will stop counting down at mid night.

    Can someone point me in the direction of where to look at resolving this issue ?
     
    Jesmond, Oct 27, 2009
    #1
  2. Jesmond

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    How are you doing the count-down clock? There are many ways of doing this.
     
    Darren, Oct 27, 2009
    #2
  3. Jesmond

    Jesmond

    Joined:
    May 18, 2005
    Messages:
    107
    Likes Received:
    0
    Location:
    Victoria
    Hi Darren,

    The function is done in the following way:

    When the a specific group is set to 100% an integer value representing an amount of time say 30 mins is assigned to a system IO variable. Then logic timer starts and at each 1 sec increment of the logic timer, we subtract 1 sec from our system IO variable. When the system IO variable reaches 0 then it is at the end of the count and the group is set to 0%

    Incidentally, when we test this on a PC running PICED and set the pc time to 11:45pm it does not seem to experience the same problem, it is only when the file is loaded onto the touch screen do we have this issue.

    Your prompt advice would be greatly appreciated.
     
    Jesmond, Oct 30, 2009
    #3
  4. Jesmond

    NickD Moderator

    Joined:
    Nov 1, 2004
    Messages:
    1,427
    Likes Received:
    64
    Location:
    Adelaide
    If you need a timely answer, you should always try Technical Support first.

    If there turns out to be some kind of problem with this implementation, they may be able to provide you with suggestions on an alternative approach.

    Nick
     
    NickD, Oct 30, 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.