Industry Online Support
Technical Forum
3/28/2013 7:48 AM | |
Joined: 10/7/2005 Last visit: 10/9/2024 Posts: 3024 Rating: (1054)
|
Hello Mohammed Kamran my advise is to stay way clear of ALL blocks from the "S5-S7 conversion" library. For one, there is really no need to use these anymore as S7 has most of the functions available as inbuilt commands (certainly in your case, simply replace the Function call with the multiplication and division instructions). More importantly though, these "S5 legacy" blocksuse MB200 to MB 255 as scratchflags which can lead to unintended consequences in the S7 program if not being considered (FC65&66 use "only" MB200 up to MB207 which can be seen in the X-ref when you add these Blocks to the project). While scratchflags usage was the norm in S5 days, they have no place anymore in an S7 program as far as I'm concerned (where TEMP variables are availablefor this purpose). I hope this helps |
Cheers |
|
Follow us on