adding over 32767

cuttemall

Member
Join Date
May 2009
Location
illinois
Posts
1
hello all,

i am using a micro 1000 and adding 4 counters that will total over 32767. i am using 1 [add] for 2 counter for a total of 2 [add] moving both to an [N] file then adding the 2 [N[ files in another [add] will fault if i go over 32767 as it says in the help intsruction how do i if i need to set the over flow bit and still view the correct count on the program.

thanks
 
Normally you would use a float as your destination file to add numbers larger than 32,767 but if my memory is correct micrologix 1000 does not support floating point so you will have to count to say 30,000 for example ( anything lower than 32,767 ) then increment a counter . so using my example if your counter had an accumulated value of 10 that would be 300,000.
 
I've done it using 2 consecutive integers. One counting 0-9999 and the other counting 10,000s. Kind of the same thing except as above but easier to know the count without doing any math...
 
Maybe you should explain what you intent to do with the results. If it is just to display, both the above methods will work, if not.....

Best Regards
____________
 

Similar Topics

Hi Everyone, Currently we have three plants running with Controllogix PLCs (L72, L73, L74). In each of these plants we have 2 FTView SE...
Replies
0
Views
55
Hello, Im building project with 1756-L82ES controller and 1756-IB16S card but i cant find it when trying to add the card to IO configuration...
Replies
3
Views
136
Hello, I have a pair of redundant 1756-L71 controllers rev 24. These controllers currently have produced and consumed tag interfaces to 3 other...
Replies
2
Views
160
I'm adding an IAI Gateway with 2 axes connected to it. To an ethernet network on my PLC. So, I think the math is correct on the Input and Output...
Replies
0
Views
143
Hi Folks. I am gearing up to add a 2nd identical HMI to a project. This 2nd HMI will basically be an exact clone of the 1st one. The equipment...
Replies
3
Views
259
Back
Top Bottom