kikep Posted November 9, 2016 Report Share Posted November 9, 2016 I have a project but going big and the ladder send me error code exceed limit so i separate in subrutins but now the activation coils doesnt work some sample to do that or how i can check if the subrutine is ejecuting or not. Quote Link to comment Share on other sites More sharing options...
Cam Posted November 10, 2016 Report Share Posted November 10, 2016 You can add a increment MI to the subroutine in a new net to verify that it is being called and executed. When you go in to online mode it should increment everytime the subroutine is called. Also use the find MB feature to verify that you aren't accidentally resetting the coils somewhere else in the project. Quote Link to comment Share on other sites More sharing options...
Kikis Posted November 10, 2016 Report Share Posted November 10, 2016 Hello, Make sure that the sub-routines are called within the main routine of your program. Quote Link to comment Share on other sites More sharing options...
kikep Posted November 11, 2016 Author Report Share Posted November 11, 2016 Thanks for your replay and going to implement the options your talking about , I don't know how to work with subroutine called when some event happen or how to have a subroutine running always like the application is running as one routine. On help i don't see something about that for that i feel confuse. thanks to all. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted November 11, 2016 MVP 2022 Report Share Posted November 11, 2016 If you want to post your code we can have a look at it. Joe T. Quote Link to comment Share on other sites More sharing options...
cantcliff Posted November 14, 2016 Report Share Posted November 14, 2016 As you have no logic in your !Main Module to prevent running the subroutine, the subroutine will run every scan. The easiest way for me, I assign a binary element to the HMI screens and link a coil to it with a bit of a blink logic, so I know that particular subroutine is running every time. 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.