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 March 23rd, 2009, 01:04 PM   #1
randyrjohnson2002
Member
United States

randyrjohnson2002 is offline
 
Join Date: Sep 2008
Location: rockford,il
Posts: 26
Double Word to an hmi for 6 figure value

I have a micrologix 1200 and i am trying to calculate 5 differnet counters that will end up adding to 200,000 on a bejeir hmi which will handle the integer level. The problem is i cant move and integer from the plc of that value. I know there is a way to make it a double word to be able to go to that number. I just have not figured it out yet. is there anyone that can give an example of ladder to be able to do it?
thank you very much for your time and have a great day.
  Reply With Quote
Old March 23rd, 2009, 01:27 PM   #2
TConnolly
Lifetime Supporting Member
United States

TConnolly is offline
 
TConnolly's Avatar
 
Join Date: Apr 2005
Location: Salt Lake City
Posts: 5,409
Instead of using five different counters, use a one-shot and an add instruction with an L type address.

XIC B3/0 ONS B3/1 ADD 1 L9:0 L9:0.

L type elements are 32 bit doubles. L9:? addresses can count up to 2,147,483,647.
__________________
True craftsmanship is only one more power tool away.

That's the beauty of processors, they don't have emotions they just run code - The PLC Kid.
  Reply With Quote
Old March 23rd, 2009, 04:04 PM   #3
bwiring
Member
United States

bwiring is offline
 
Join Date: Nov 2005
Location: mpls. mn.
Posts: 45
i don't see a type "l" element in rslogix. can you tell me how to get to a type"l" element
  Reply With Quote
Old March 23rd, 2009, 04:12 PM   #4
bernie_carlton
Lifetime Supporting Member + Moderator
United States

bernie_carlton is offline
 
bernie_carlton's Avatar
 
Join Date: Apr 2002
Location: Yakima, Washington
Posts: 4,595
On the left hand side of your screen rioght-click on 'Data Files'. Select 'New'. Under 'Type' select 'Long'. Enter the number of elements you want. Select OK.
__________________
Controlling outputs is the PLC's way of getting its inputs to change.

www.thePLCguy.com
  Reply With Quote
Old March 23rd, 2009, 04:16 PM   #5
bwiring
Member
United States

bwiring is offline
 
Join Date: Nov 2005
Location: mpls. mn.
Posts: 45
thanks.....good info to know
  Reply With Quote
Old March 24th, 2009, 06:18 AM   #6
randyrjohnson2002
Member
United States

randyrjohnson2002 is offline
 
Join Date: Sep 2008
Location: rockford,il
Posts: 26
Thank you gentleman very much for you help!!!!1
  Reply With Quote
Old March 24th, 2009, 06:35 AM   #7
irondesk40
Member
United States

irondesk40 is offline
 
Join Date: Jan 2008
Location: nc
Posts: 323
Man, learn something new everyday. I had been trying to do this same type of thing yesterday and was confused.
Thanks for advice, great site, i have the ab tech connect support agreement, but almost all the time, can come on this site and find the answer while I am on hold for them.
  Reply With Quote
Old March 24th, 2009, 08:50 AM   #8
TConnolly
Lifetime Supporting Member
United States

TConnolly is offline
 
TConnolly's Avatar
 
Join Date: Apr 2005
Location: Salt Lake City
Posts: 5,409
Pop quiz...

Why is it better to use an L address (double integer) instead of an F address (floating point) when counting very large values?
__________________
True craftsmanship is only one more power tool away.

That's the beauty of processors, they don't have emotions they just run code - The PLC Kid.
  Reply With Quote
Old March 24th, 2009, 08:54 AM   #9
rdrast
Lifetime Supporting Member
United States

rdrast is offline
 
rdrast's Avatar
 
Join Date: Apr 2003
Location: South Carolina Lowcountry
Posts: 3,639
Quote:
Originally Posted by Alaric View Post
Pop quiz...

Why is it better to use an L address (double integer) instead of an F address (floating point) when counting very large values?
Because eventually adding 1 will do nothing?

X + 1 = X ?

At least the 32 bit integer will roll-over, which is detectable, so you can add one to yet another higher order counter (if needed).
__________________
------------------------------------
How to ask questions the SMART Way!

Look First, Ask Second!

  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
How to Build a Free HMI for AB Archie LIVE PLC Questions And Answers 32 December 4th, 2007 05:56 AM
What is “D” in PID? ... fundamentals of Derivative Ron Beaufort LIVE PLC Questions And Answers 20 March 2nd, 2005 01:26 AM
Sequencers randy LIVE PLC Questions And Answers 42 September 7th, 2004 08:55 AM
I/O Comm. problem btw PLC & HMI WFox LIVE PLC Questions And Answers 7 December 31st, 2003 01:09 PM
Trying to find a website ganutenator LIVE PLC Questions And Answers 9 January 5th, 2003 03:06 PM


All times are GMT -5. The time now is 07:32 AM.


.