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 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 Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted June 3, 2015 MVP 2023 Report Share Posted June 3, 2015 Try the "Project Optimizer" under the Build menu. 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 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now