Jump to content

Recommended Posts

Hi, good morning.

I need help about the HMI. How can i insert condition or confirmation when  click in a button? The user go choose " Yes or not" for confirmation.

Thank you.

:)

Share this post


Link to post
Share on other sites

You should have a Hide bit on the confirmation button which is Set at power up. Have logic when pressing the original button to Reset the Hide bit for the confirmation button. Pressing the confirmation button will then Set the Hide condition again.

Share this post


Link to post
Share on other sites

If you post your program I'll hack one in for you.

"Do you want to blow up the world?"

"Confirm YES" and "Well, not today" buttons will appear.

You can then look at how I did it.

Joe T.

Share this post


Link to post
Share on other sites

Ahhhhh.  Joe is in destructo mode today.  Watched a sci-fi last night/today, did we?   ☢️  🎆     🤣  

cheers, Aus

Share this post


Link to post
Share on other sites

My process is a machine of cure UV. I use LDR's for monitor the lamps. Sometimes the user go reset the hour cont for exchange the lamps and maintenance. 

When the user click in button the " RESET_L1" i need a condition, a confirmation if  user have assurance of action, " Yes or not". 

If "YES", confirm the action.

If 'NOT", return the previous page.

I will post the program for understand better.

Share this post


Link to post
Share on other sites

First of all, you've got too many logical statements in each network, and you've done it throughout your program.  It can cause the program to compile in a way that is not predictable.

This is wrong:

image.png.08e760cce0b3b1201c3b8cf06b1463c3.png

This is the right way to do it:

image.png.33cdf2ac6de960345d5e1c8a5a2f46e5.png

Notice there's only one output per network.  There is no limit on the number of networks you have.  Now you may come back and say "It compiles without errors so I'm going to leave it alone".  Yes, it probably will compile but go back to my first statement - it may not operate the way you think it should.  There are other posts on this forum where that is exactly what happened.  I can't force you to go back and separate all your networks but I obviously highly recommend it.

Enough criticism - on to your question.

Use each reset button to set a bit, and then call the confirmation display.  The Yes and No buttons continue or cancel the reset operation and return.  I've added a subroutine called "Confirm Reset" and a display to your project for the first reset.  You can do the rest.

Take a look and let us know if it's what you're looking for.

Joe T.

   

 

 

 

LADDERMAQUINADECURAV2 JT.vlp

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...