![]() |
||
|
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: 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
|
|
|
|
#2 |
|
Lifetime Supporting Member + Moderator
|
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.
|
|
|
|
#3 |
|
Lifetime Supporting Member + Moderator
|
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. |
|
|
|
#4 |
|
Member
![]() 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.
|
|
![]() |
| 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 |
| 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 |