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 24th, 2002, 07:28 AM   #1
solder jockey
Member
United States

solder jockey is offline
 
Join Date: Sep 2002
Posts: 3
Hour Meter in Program?

I have to add a hour meter in to a Micrologix 1200 to display the "total run hours" of a compressor on a Panelview 550. The timer would have to be good for reading up to 100,000 accumulative hours.
How can this be done?
thanks
  Reply With Quote
Old September 24th, 2002, 07:50 AM   #2
Tom Jenkins
Lifetime Supporting Member
United States

Tom Jenkins is offline
 
Tom Jenkins's Avatar
 
Join Date: Apr 2002
Location: Milwaukee, WI
Posts: 5,275
We use the same technique on all our platforms. Use the "ON" bit for the compressor to run a self-resetting 6 second timer. Use the output of the timer to trip a self-resetting counter, which has a pre-set of 60 (the counter will therefore trip every 0.1 hour). Use this counter to trip another counter, which keeps track of run time in 0.1 hour increments. If you need more digits, you can use this 0.1 hour counter with a pre-set of 9999 to reset itself and trip another counter keeping track of thousand hours.
  Reply With Quote
Old September 24th, 2002, 07:58 AM   #3
Rick Densing
Member
United States

Rick Densing is offline
 
Join Date: Apr 2002
Location: Milwaukee, WI
Posts: 1,538
To continue on Tom's method. I have used it, too. To display on the PV, you have to stick two numerical displays real close together.
  Reply With Quote
Old September 24th, 2002, 08:17 AM   #4
gbradley
Lifetime Supporting Member
United States

gbradley is offline
 
gbradley's Avatar
 
Join Date: Apr 2002
Location: Corona, Ca.
Posts: 1,331
Lightbulb Readout

I had to put a counter on the screen of a panelview, so I put a display for 1,000's right next to a display that went from 0 -999.
It looks fine, but it just seems odd to display it this way. I am glad to see that I am not the only one to use this approach.
  Reply With Quote
Old September 24th, 2002, 08:39 AM   #5
TimothyMoulder
Member
United States

TimothyMoulder is offline
 
TimothyMoulder's Avatar
 
Join Date: Apr 2002
Location: Tampa, FL
Posts: 1,066
A common method. I've used it too
  Reply With Quote
Old September 24th, 2002, 08:41 AM   #6
solder jockey
Member
United States

solder jockey is offline
 
Join Date: Sep 2002
Posts: 3
good ideas guy...thanks
I thought Tom's method was the way to do it but the PV read seemed halfass'ed. I'll give a shot and see how it looks.

thanks again

p.s. Cool board! I didn't think that there was that many people out there that were into plc programming
  Reply With Quote
Old September 24th, 2002, 09:33 AM   #7
Ken Roach
Lifetime Supporting Member + Moderator
United States

Ken Roach is offline
 
Ken Roach's Avatar
 
Join Date: Apr 2002
Location: Seattle, WA
Posts: 10,706
I was pleased to discover that the MicroLogix 1200 and the newer firmware PanelViews can use and display the "Long Integer" data type. This is a 32-bit signed number instead of the traditional SLC/MicroLogix 16-bit signed numbers, so it can have a value up to 2,147,483,647 instead of just 32,767.

The timer/counter methods suggested above are excellent ways to get a traditional "hour/tenths" meter, and the PanelView display can be simplified by directly viewing a six-digit integer. You'll define the PanelView tag as a "DINT" data type.

I think you can even define a DINT data type in PanelView and address it to a regular old Integer "N" file... it uses the next Integer element as the high word. You'd have to manually create the 32-bit value in ladder logic, but it would display as one element on the PanelView.
  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
Subroutine philosophy Doug-P LIVE PLC Questions And Answers 31 February 11th, 2013 07:40 AM
hour meter fo ti505 programming bdonohue LIVE PLC Questions And Answers 1 January 26th, 2005 05:09 AM
Simulator, Simulation, Shadow Code Terry Woods LIVE PLC Questions And Answers 1 January 2nd, 2005 01:40 PM
Hour Meter with PLC Interface BudWright LIVE PLC Questions And Answers 10 November 23rd, 2003 05:35 PM
SLC 5/03 data loss andydaoust LIVE PLC Questions And Answers 1 October 10th, 2002 06:38 PM


All times are GMT -5. The time now is 04:52 PM.


.