Host Engineering Forum
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2012, 08:22:51 am


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: Timer in count down mode  (Read 320 times)
J Butler
Newbie
*
Posts: 1


« on: July 07, 2011, 12:12:54 pm »

Working on a small project that the user would like to see the timer numbers on a touch panel counting down instead of up as normal.  Something like "Minutes left"...

Has anyone run across this requirement?

Regards
Logged
PLCGuy
Internal Dev
****
Posts: 334



« Reply #1 on: July 07, 2011, 12:16:40 pm »

Yes I do. I used a counter tied to the one second bit, SP4. When the oven is warming up it counts up, cooling down it counts down. You will have to do some math to convert to minutes and seconds. I used a POP command to do this. If you need more info let me know. Load you counter memory in the accumulator, div by 60 pop out the value and do the math again. Try to figure it out.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM