Jump to content

How to reset a Start button?


Recommended Posts

Posted

Hello,

I have a "start button" that is connected in a True/False case Structure (See attached picture). When the button is pressed it sends a "True" signal and the timer inside the case structure counts to 30". When the 30" is reached the structure gives a "True" signal out for the program to stop.

The problem is that when I start the program again, the "start button" will start at the pressed position. How can I make the "start button" to always start at the unpressed position?

Thank you in advance,

post-20867-0-19507500-1305037422_thumb.j

Posted

The simplest method is to create a local variable (Right mouse button on the control --> Create --> local variable). Either wire it off your true statement (add the negate), or put a false constant inside the loop and wire it to the local variable outside it.

Hope this helps

Posted

Set your boolean value to default at False and call the method "Default Values >> Reinitialize All to Default" when you start your program.

This method has the benefit of reinitializing all your controls/indicators to their default value with one call.

post-10515-0-02558900-1305039300_thumb.p

  • Like 1
Posted

Have you considered just using a latched boolean? Boolean controls that are "latched" reset themselves to the default value after they are read once on the diagram.

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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...

Important Information

By using this site, you agree to our Terms of Use.