Jump to content

Recommended Posts

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.

Link to comment
Share on other sites

  • MVP 2023

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

Link to comment
Share on other sites

  • 2 weeks later...

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