![]() |
||
|
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc. |
||
| ||
New Here? Please read this important info!!!
|
|
#1 |
|
Member
![]() 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. |
|
|
|
#2 |
|
Lifetime Supporting Member
|
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. |
|
|
|
#3 |
|
Member
![]() 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
|
|
|
|
#4 |
|
Lifetime Supporting Member + Moderator
|
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 |
|
|
|
#5 |
|
Member
![]() Join Date: Nov 2005
Location: mpls. mn.
Posts: 45
|
thanks.....good info to know
|
|
|
|
#6 |
|
Member
![]() Join Date: Sep 2008
Location: rockford,il
Posts: 26
|
Thank you gentleman very much for you help!!!!1
|
|
|
|
#7 |
|
Member
![]() 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. |
|
|
|
#8 |
|
Lifetime Supporting Member
|
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. |
|
|
|
#9 | |
|
Lifetime Supporting Member
|
Quote:
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! |
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |