Member Login
member
passwd
remember me on
this computer.

- join now -
- forgot username or password? -

Jump to a Date

Sponsored Communities
Cool stuff
Select a topic of interest:
...and press:
Neat Stuff
Control.com Stuff

Visit our shop for nerds in control lifestyle products.

Fortune
Every improvement in communication makes the bore more terrible.
-- Frank Moore Colby
RSS Feed
RSS feed Use this link to get an RSS feed of the Control.com article flow, for private, non-commercial use only:
www.control.com/rss/
To get a personalized feed, become a member at no cost.
Select a Page Style
Select one of the following styles:
- BluFu
- Classic
(cookies required)
advertisement
from the Forum department...
SLC 500 Floating point limit?
PLCs and related questions. topic
Posted by peter on 4 November, 2009 - 1:46 am
I need to increment a number greater than 32676 i a SLC 500 PLC for an air compressor run time. currently a run status input increments a RTO timer and resets at 3600 seconds. the RTO done bit increments a CTU instruction every hour with a preset of 32676. The accum is moved into n10 to display on HMI. The problem is the air compressor run time is now at 33000 plus hours. What is the best way to fix this problem?


Posted by M Griffin on 4 November, 2009 - 12:59 pm
If the number is just used for display, the easiest solution would be to cascade the counter into another counter and put the two display fields side by side on the screen so they look as much like one number as possible.

If the preset for the first counter is set to 999 the overall effect will still be that of a decimal display. If you end up with a small gap between the position on the screen of the two numbers (due to HMI limitations), you can call that gap a visual thousands separator (that is why you would use 999 instead of 9999).

If the preset for the first counter is set to 999, it will cascade into the second counter every 1000 hours. The two counters together would give you 32767 * 1000 = 32767000 hours, or 3740 years. That is probably somewhat beyond the expected life of the machine.

Your use of this site is subject to the terms and conditions set forth under Legal Notices and the Privacy Policy. Please read those terms and conditions carefully. Subject to the rights expressly reserved to others under Legal Notices, the content of this site and the compilation thereof is © 1999-2009 Nerds in Control, LLC. All rights reserved.

Users of this site are benefiting from open source technologies, including PHP, MySQL and Apache. Be happy.

Advertisement
Our Advertisers
Help keep our servers running...
Patronize our advertisers!