Famous_Fella

NA5 HMI - subroutine help

2 posts in this topic

Hi,

In my HMI project I use a subroutine triggered by a button. All it does is check if certain variables are triggered and if the condition is met I use the showpage function to call a popup page.  Because of the update interval between PLC and HMI to 100msec the condition inside the subroutine is not always met although the PLC has completed the job behind the scene. Is there a way to implement a "wait until strategy" instead of the straight "IF...END_IF" I am using now ?

 

Share this post


Link to post
Share on other sites

The easiest thing to do is increase the time your from your button. Latch it ON for a second or two.

If you want "wait until strategy", then have your button SET the trigger bit, then use a Close button on the Pop Up to RSET the bit.

Edited by IO_Rack

Share this post


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