SLC500 Math Register

Joe Loescher

Member
Join Date
Mar 2003
Location
Brampton, Ontario
Posts
47
Hi,

Does anyone here have any ideas why the S:13 bit would continually increment by 1 every second? It continues up to sixty, increments S:14 by 1 then starts over at zero. I can't see anything in the program doing this, I have 10 machines running basically the same program and only 1 is doing this.
 
You might want to carefully check the application again.

When you do integer division the math register holds the quotient and the remainder. Computing minutes and seconds would be a very good example of something where you want to know the quotient and the remainder. 120 seconds = two minutes and ten seconds. The quotient is 2 and the remainder is 10. If you needed 2:10 instead of 2.1667 then you might not want to change to using a floating point calculation.

Thats up to you to determine for your application of course, I'm just pointing out one possible reason it was originally done that way.
 

Similar Topics

I am working with a AB SLC500 with a math command ADD source A F10.5 source B 5E-005 Destination F10.40 What is 5E-005 mean? Thank you
Replies
3
Views
5,706
Hey guys. this is a bit of programming, but just trying to grasp the concept. let's say i have 100lbs. of something on a scale that has a 4-20ma...
Replies
5
Views
2,427
I cannot add SLC500 analog input tag (I: 8.3) to EZSeries Touch Panel Editor (V 5.3). I used all the listed tag datatype but it all says "Invalid...
Replies
10
Views
294
can the slc500 5/05 send a email and text over Ethernet ?
Replies
3
Views
195
Hello, did anybody know, if there exist an converting cable like the1492-CM1746-M01 (for an 1746-IB16 to an 5069-IB16), for an 1746-HSCE to an...
Replies
3
Views
400
Back
Top Bottom