10/24/2009 2:24 PM | |
Joined: 10/7/2005 Last visit: 11/30/2023 Posts: 2997 Rating:
|
Hello Data viewer your problem is caused by using MW0 as FC105's "RET_VAL" output parameter and MD0 as FC105's"OUT" output parameter. You need to bear in mind that S7 addressing is BYTEWISE organised which means the following in your case: MW0 is "made up" of MB0 & MB 1. MD0 is "made up" of MB0 & MB1 & MB2 & MB 3. What will happen in your case is that FC105 will properly scale the AI and write a properly formatted REAL value into the "OUT" output parameter (MD0 in your case).FC105 will then write a decimal "0" value into the"RET_VAL" output (MW0) will will corrupt the REAL value format in MD0. Please check too why you use a variable named "Motor 1 Start" for the "bipolar" input of FC105, this does not make too much sense to me. I hope this helps. |
Cheers |
|
This contribution was helpful to
1 thankful Users |
Follow us on