News:

  • May 05, 2026, 05:10:47 PM

Login with username, password and session length

Author Topic: Timer Question  (Read 8276 times)

timk5000

  • Jr. Member
  • **
  • Posts: 15
Timer Question
« on: November 26, 2015, 11:09:13 AM »
I have attached a PDF showing some sample code that latches a air cylinder waits 2 seconds and latches another one. The codes works on the SIM but the Timer keeps running. How should this be coded so that the timer stops while leaving both cylinders latched until CutterInPB is on.

Thanks

timk5000

  • Jr. Member
  • **
  • Posts: 15
Re: Timer Question
« Reply #1 on: November 26, 2015, 11:12:04 AM »
Sorry last sentence should be - How should this be coded so that the timer stops while leaving both cylinders latched until CutterOutPB is on.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6154
  • Yes Pinky, Do-more will control the world!
Re: Timer Question
« Reply #2 on: November 26, 2015, 11:21:21 AM »
Change the timer to TMRDOWN. You'll probably also need to add CutterOutPB to the LockCylRetract path of rung 2.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

timk5000

  • Jr. Member
  • **
  • Posts: 15
Re: Timer Question
« Reply #3 on: November 26, 2015, 03:04:55 PM »
That makes sense
Thanks

plcnut

  • Hero Member
  • *****
  • Posts: 814
    • premiersi.com
Re: Timer Question
« Reply #4 on: November 27, 2015, 08:42:14 AM »
The timer continuing to run does not hurt anything. To get your desired outcome simply delete all the contacts from rung 2 except for the timer.done bit.
Circumstances don't determine who we are, they only reveal it.

~Jason Wolthuis
Premier Systems Integration, LLC
http://premiersi.com