Jump to content
kikep

Divide application in subrutines

Recommended Posts

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.

errorsubrut.png

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...