Jump to content

How to reset a Start button?


Recommended Posts

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

Link to comment

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

Link to comment
  • 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.