8/4/2010 7:52 AM | |
Joined: 10/7/2005 Last visit: 6/1/2023 Posts: 2966 Rating:
|
Hello lambertws I (IN) or Q (OUT) Parameter declaration for S5 FBserved only a "cosmetic" purpose (I's where displayedon the left side and Q's on the right side if the FB was called in LAD or FBD). Read as well aswrite access would work equally well with I (IN) or Q (OUT) Parameters inside the FB (unlike S7 where the general "Golden Rule" is to only do read access to IN's ,only write access to OUT's and use IN_OUT's if both is required). As only read access takes place, I would change the "CODE" Parameter to an IN in your converted S7 FC. As for the functionality of your logic: If F100.0 is 0it setsit to 1 and transfers the value in the "CODE" parameter to QB32. If F100.0 is1it does nothing. I hope this helps |
Cheers |
|
This contribution was helpful to
1 thankful Users |
Follow us on