Host Engineering Forum

General Category => Do-more CPUs and Do-more Designer Software => Topic started by: timk5000 on November 26, 2015, 11:09:13 AM

Title: Timer Question
Post by: timk5000 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
Title: Re: Timer Question
Post by: timk5000 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.
Title: Re: Timer Question
Post by: BobO 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.
Title: Re: Timer Question
Post by: timk5000 on November 26, 2015, 03:04:55 PM
That makes sense
Thanks
Title: Re: Timer Question
Post by: plcnut 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.