Jump to content

Recommended Posts

I haven't been able to find a good answer to this in the documentation or through the forum search.

 

If I'm using an HMI screen to run a subroutine as 'While Display,' will the  '! Main Subroutine' still scan every cycle or does the 'While Display' take precedence and skip '! Main' at that point?

 

Much appreciated.

Link to comment
Share on other sites

  • MVP 2023

Great question - and the answer I expected. On that same subject, subroutines run in the order they are called in the Main Routine. Where does the "While Displayed" routine fall in that order - at the beginning of the Main Routine, the end, or somewhere in the middle?

Link to comment
Share on other sites

Great question - and the answer I expected. On that same subject, subroutines run in the order they are called in the Main Routine. Where does the "While Displayed" routine fall in that order - at the beginning of the Main Routine, the end, or somewhere in the middle?

 

It was the answer I was hoping for, as I had already planned the logic around that but wanted to make sure before anything with live.

 

I'd love to see the answer to your question as it may lead some insight into some problems a  co-worker is having as well.

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