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 June 28th, 2011, 06:28 AM   #1
Anibal Hernandez
Member
Puerto Rico

Anibal Hernandez is offline
 
Join Date: Aug 2003
Posts: 70
AB Micrologic 1500 Adding Floating Points

Can anyone here refresh my mind on how to perform addition on 33 floating point variables? F8:1 to F8:32. the result should be in F8:0
  Reply With Quote
Old June 28th, 2011, 08:17 AM   #2
Christoff84
Lifetime Supporting Member + Moderator
Canada

Christoff84 is offline
 
Christoff84's Avatar
 
Join Date: Jun 2006
Location: Cambridge, ON
Posts: 304
Here's a simple way of doing it assuming you want to sum them every scan. If not, you can always add a timer so the logic only runs when you need it.
Attached Images
File Type: jpg screen1.jpg (72.7 KB, 14 views)
File Type: jpg Screen2.jpg (24.7 KB, 8 views)
  Reply With Quote
Old June 28th, 2011, 08:37 AM   #3
kolyur
Lifetime Supporting Member + Moderator
United States

kolyur is offline
 
kolyur's Avatar
 
Join Date: Oct 2004
Location: Wooster, Ohio
Posts: 936
My suggestion would be to just make 31 rungs:
F8:0 = 0.0
F8:0 = F8:1 + F8:2
F8:0 = F8:0 + F8:3
...
F8:0 = F8:0 + F8:32

Put them all in a subroutine and they won't get in your way. I've tried the JMP/LBL thing before, yes it is compact but it can adversely affect your scan time.
  Reply With Quote
Old June 28th, 2011, 08:55 AM   #4
Anibal Hernandez
Member
Puerto Rico

Anibal Hernandez is offline
 
Join Date: Aug 2003
Posts: 70
Thank you all, this is precisely what I needed it. The function CPT is no available on this processor.
  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
Getting started (Micrologic 1500 + PanelView 550) JoeBleau LIVE PLC Questions And Answers 5 June 18th, 2005 08:27 PM
HELP! AB MicroLogix 1500 pschffr LIVE PLC Questions And Answers 1 May 9th, 2004 05:54 PM
AB ML1500 Floating point to integer conversion opamp LIVE PLC Questions And Answers 8 April 22nd, 2003 01:06 PM
AB Micrologix 1500 Kthiel LIVE PLC Questions And Answers 2 January 20th, 2003 10:24 PM
Counter, AB Micrologix 1500 jthornton LIVE PLC Questions And Answers 8 December 16th, 2002 01:10 AM


All times are GMT -5. The time now is 03:22 AM.


.