CTC Logic - Stopwatch

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

  1. Jesmond

    Jesmond

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

    I have a commercial client that has asked me to program up a CTC to have 1 page that has 5 loads with an individual On & Off Button for each. When the On button is pressed, he would like it to start a stopwatch which displays the result of how long the load was on under the On button when the Off Button is pressed and the same with the off button. So when the Off button is pressed the Off stop watch starts and records the time when the On button is pressed, and so the loop goes on...

    As an extension to the above requirement, he also wants the data saved in a text file to be able to retrieve the data later for analysis.

    Has anyone got any ideas in which direction I should look at going ?
     
    Jesmond, Oct 21, 2007
    #1
  2. Jesmond

    NickD Moderator

    Joined:
    Nov 1, 2004
    Messages:
    1,427
    Likes Received:
    64
    Location:
    Adelaide
    Sounds like a perfect job for the logic engine.

    Nick
     
    NickD, Oct 22, 2007
    #2
  3. Jesmond

    Jesmond

    Joined:
    May 18, 2005
    Messages:
    107
    Likes Received:
    0
    Location:
    Victoria
    Thanks Nick,

    I thought so, but I have no idea where to start with this, any chance of giving me some clues ?
     
    Jesmond, Oct 22, 2007
    #3
  4. Jesmond

    Lucky555

    Joined:
    Aug 13, 2007
    Messages:
    229
    Likes Received:
    0
    Hey Jesmond

    The PICED programming tool is a full blooded simulation environment for the logic engine. You will need to know how to do basic programming in Pascal, which is what the logic engine is based on.

    When you click on the logic button on the PICED main screen you go to the logic section, from here there is a help button that leads to a very comprehensive help and tutorial section.

    This logic engine is only limited by your imagination and your programming skill. So start doing your homework and get back to the forum if you have specific questions.

    PS the Piced program has many logic example projects in the PROJECTS\EXAMPLES folder...;)

    PSS the logic engine will eat the requirement you described. A good PICED programmer (that excludes me) would be able to solve this one in 20 or so lines :)

    BTW for you PICED smarties that 20 lines includes declarations and initialisation...
     
    Last edited by a moderator: Oct 22, 2007
    Lucky555, Oct 22, 2007
    #4
  5. Jesmond

    Jesmond

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

    Thanks for the heads up... I'll look more into the examples and see if something simular exists....
     
    Jesmond, Oct 22, 2007
    #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.