Delay Vs Timer

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by Memphix, Jan 29, 2014.

  1. Memphix

    Memphix

    Joined:
    Aug 31, 2006
    Messages:
    248
    Likes Received:
    1
    Location:
    Australia
    Would like to know how much processing power a delay in logic uses?

    Be good to compare it to a timer running.

    Thanks.
     
    Memphix, Jan 29, 2014
    #1
  2. Memphix

    Roosta

    Joined:
    Nov 22, 2011
    Messages:
    560
    Likes Received:
    1
    Location:
    Australia
    My understanding is that a delay stops the logic processor at the delay line for the delay period, where as a timer works in the background of the logic engine..
     
    Roosta, Jan 29, 2014
    #2
  3. Memphix

    Ashley

    Joined:
    Dec 1, 2005
    Messages:
    1,537
    Likes Received:
    176
    Location:
    Adelaide, Australia
    When you use a timer you need to keep testing it so the module is being continuously run (every 200mS anyway) and your logic code is being continuously executed. With a delay the whole module stops and no logic code is executed so the delay will be more efficient. The logic engine will perform the delay testing internally, but since it's running compiled code and not interpreted code it will do it much faster.

    This all depends of course on how the logic engine is implemented so you will need confirmation from the guy who wrote it, but that's how it would work if I wrote it :)
     
    Ashley, Jan 29, 2014
    #3
  4. Memphix

    Memphix

    Joined:
    Aug 31, 2006
    Messages:
    248
    Likes Received:
    1
    Location:
    Australia
    Great thanks.

    Good to know its just that module. Is the time close to accurate delay "00:05:00" is pretty close to 5 minutes in the touch screen/PAC?
     
    Memphix, Jan 30, 2014
    #4
  5. Memphix

    Ashley

    Joined:
    Dec 1, 2005
    Messages:
    1,537
    Likes Received:
    176
    Location:
    Adelaide, Australia
    Given that the modules are run every 200mS that will be the determining factor in the accuracy of the timers or delays
     
    Ashley, Jan 31, 2014
    #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.