Heitor Posted March 21, 2019 Report Share Posted March 21, 2019 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. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted March 21, 2019 MVP 2022 Report Share Posted March 21, 2019 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. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted March 22, 2019 MVP 2022 Report Share Posted March 22, 2019 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. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Ausman Posted March 22, 2019 MVP 2022 Report Share Posted March 22, 2019 Ahhhhh. Joe is in destructo mode today. Watched a sci-fi last night/today, did we? ☢️ 🎆 🤣 cheers, Aus Quote Link to comment Share on other sites More sharing options...
Heitor Posted March 22, 2019 Author Report Share Posted March 22, 2019 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. Quote Link to comment Share on other sites More sharing options...
Heitor Posted March 22, 2019 Author Report Share Posted March 22, 2019 LADDER MAQUINA DE CURA V2.vlp Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted March 24, 2019 MVP 2022 Report Share Posted March 24, 2019 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: This is the right way to do it: 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 Quote Link to comment Share on other sites More sharing options...
Heitor Posted March 25, 2019 Author Report Share Posted March 25, 2019 Thank you Joe. Quote Link to comment Share on other sites More sharing options...
Heitor Posted April 5, 2019 Author Report Share Posted April 5, 2019 I need change the start-up display. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted April 7, 2019 MVP 2022 Report Share Posted April 7, 2019 Use a NO contact of SB2 in the main routine to call the display you want. Joe T. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.