snydl0ga
Industrial
- May 26, 2004
- 12
I am using a function block to do repetative math calculations. I noticed that the results were coming back incorrect. After playing with the Function, I tracked it down to a constant that I was setting. Is there a special way to set constants in FB's?
I am taking a Real number and sending it to the Function where I divide it by 100000.0 and do other math on it. I noticed in monitor mode the constant actually had a large random looking number in it.
To troubleshoot it, I Replaced the constant with an address to one of my DB's (shared).
I noticed also in a different FB that it did not work and it seems the internal temp registers do not transfer to the next network. Is there a trick to that too?
Lance
I am taking a Real number and sending it to the Function where I divide it by 100000.0 and do other math on it. I noticed in monitor mode the constant actually had a large random looking number in it.
To troubleshoot it, I Replaced the constant with an address to one of my DB's (shared).
I noticed also in a different FB that it did not work and it seems the internal temp registers do not transfer to the next network. Is there a trick to that too?
Lance