kikep Posted November 9, 2016 Report 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.
Cam Posted November 10, 2016 Report 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.
Kikis Posted November 10, 2016 Report Posted November 10, 2016 Hello, Make sure that the sub-routines are called within the main routine of your program.
kikep Posted November 11, 2016 Author Report 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.
MVP 2023 Joe Tauser Posted November 11, 2016 MVP 2023 Report Posted November 11, 2016 If you want to post your code we can have a look at it. Joe T.
cantcliff Posted November 14, 2016 Report 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.
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