Jump to content

Divide application in subrutines


Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.