Default Header
(header konnte nicht geladen werden)
(0)| 5/14/2010 9:05 AM | |
|
Joined: 10/7/2005 Last visit: 12/29/2025 Posts: 3052 Rating:
|
Hello NPkumar while thebehaviour that you observed may seems strange, it can actually be expected. The golden rule for FC OUT parameters is that they MUST be assigned (written to) inside the FC every time the FC is called. The fix in your case is either: - Change the OUT to an IN_OUT OR - Leave it as an OUT and find a way toutilise a Coil(=) assignment instead of an S/R (and make sure you execute that command every FC call, i.edo NOT have any jumps over it). You can find out more in the FAQ below and I hope this helps: Why does a function sporadically yield inaccurate return values in OUT parameters and what should you watch for when you assign input and output parameters? |
|
Cheers |
|
This contribution was helpful to
|
|
Follow us on