You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

PLC training tools sale

Reply
 
Thread Tools Display Modes
Old September 23rd, 2008, 09:34 AM   #1
Krilun
Member
United States

Krilun is offline
 
Krilun's Avatar
 
Join Date: Aug 2008
Location: Cleveland
Posts: 44
Storing Timer ACC

Hey guys,

Background: I am using RSLogix 5000 function block diagrams to time how long a pump is running. When the pump is running, the timer gets enabled and when the timer is running for 60 seconds it increments a counter to keep track of minutes. The timer ACC represents seconds.

The problem: When the pump stops, the ACC goes back to 0. So if the timer ACC is 45 (representing 45 seconds) when the pump enable signal goes low, the ACC goes back to zero.

The Question: Does anyone know how to store the timer ACC value when the timer enable goes to zero?


Any sugguestions would be extremely appreciated.
-Ken
  Reply With Quote
Old September 23rd, 2008, 09:46 AM   #2
LJBMatt
Member
United States

LJBMatt is offline
 
Join Date: Apr 2004
Location: Dayton, OH
Posts: 430
-||- (Timer Enable) MOV TMR.ACC, ACC_Storage_Reg

Use the timer enable bit with a MOV instruction from the .ACC to storage tag. That way when the timer turns off the value is stored until the next time the timer is enabled.
__________________
Matt Stefanski

Go Dayton Flyers!
  Reply With Quote
Old September 23rd, 2008, 10:04 AM   #3
bernie_carlton
Lifetime Supporting Member + Moderator
United States

bernie_carlton is offline
 
bernie_carlton's Avatar
 
Join Date: Apr 2002
Location: Yakima, Washington
Posts: 6,226
How about the RTOR command?
__________________
Controlling outputs is the PLC's way of getting its inputs to change.

www.thePLCguy.com
  Reply With Quote
Old September 23rd, 2008, 10:14 AM   #4
bosko
Member
Canada

bosko is offline
 
Join Date: Jun 2006
Location: Ontario
Posts: 96
I wouldn't go at it from that angle. use a retentative timer instead and have it go for 6 minutes, then every 6 minutes add 0.1 to your "run time" hours. Instead of showing 36089 minutes, it would show 601.48 hours.
  Reply With Quote
Old September 23rd, 2008, 10:53 AM   #5
Krilun
Member
United States

Krilun is offline
 
Krilun's Avatar
 
Join Date: Aug 2008
Location: Cleveland
Posts: 44
bernie_carlton.... your method worked. After your post I pulled out a PLC book from college and looked up how RTORs work and it works the EXACT way I want it to.

bosko... thank you for your sugguestion. That is very smart and I will probably end up implementing that.
  Reply With Quote
Old September 23rd, 2008, 12:25 PM   #6
ttichy
Member
United States

ttichy is offline
 
Join Date: Jul 2006
Location: strongsville, OH
Posts: 74
i usually end up counting seconds. The time resolution is fine enough for me, you can have a LOT of seconds in a DINT and you don't have to worry about resetting the timer.
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
A plea for help...and mentor damianjones LIVE PLC Questions And Answers 72 February 7th, 2007 11:10 AM
Siemens S7400 timer value preset help kegman LIVE PLC Questions And Answers 2 October 4th, 2005 08:53 PM
My first PLC question bioplc LIVE PLC Questions And Answers 7 July 19th, 2005 01:54 PM
difference between S7-300 and S7-200 timer Pandiani LIVE PLC Questions And Answers 8 April 27th, 2005 07:13 AM
finding greatest ready961 LIVE PLC Questions And Answers 16 August 2nd, 2004 05:49 PM


All times are GMT -5. The time now is 04:19 AM.


.