Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

S7 Function Block Question

Status
Not open for further replies.

snydl0ga

Industrial
May 26, 2004
12
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top