Don2015 Posted June 3, 2015 Report Share Posted June 3, 2015 Hi, Could the compiler check for duplicate coils in a subroutine, that would really help. Thanks, Don Quote Link to comment Share on other sites More sharing options...
Michael_P Posted June 3, 2015 Report Share Posted June 3, 2015 Hi Don, This does not check for this as it is a legal condition. if you are interested about one unique bit you can select (Ctrl+F) enter the bit or coil in question and confirm it is not present twice in the same routine shown in the results in the output window at the bottom of the software. Hope this helps Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted June 3, 2015 MVP 2022 Report Share Posted June 3, 2015 Try the "Project Optimizer" under the Build menu. Quote Link to comment Share on other sites More sharing options...
Don2015 Posted June 3, 2015 Author Report Share Posted June 3, 2015 Hi Flex727, Well it looks like if I ever run into a problem, I'll run project optimizer first to see if I have any duplicate coils in the same subroutine. I personally don't put duplicate coils in the same subroutine. I may have duplicate coils but each one is in a different subroutine that is only ran when a certain display is showing. Thanks, Don Quote Link to comment Share on other sites More sharing options...
Kikis Posted June 4, 2015 Report Share Posted June 4, 2015 Generally i think it's better to assign a unique bit in every subroutine and then "OR" them in another subroutine which runs unconditionally. This way the code is much "cleaner" and it's more easy to troubleshoot. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.