Use push button to start and stop a program

As a 100% newbee (followed Core training, but still missing some experience) I have run into a issue with our UR5e.

We want to start the program (That puts screws in a device and which works fine) with a single push of the start button.
With the stop button we want to stop the program.

Both buttons are pulse switches connected to the I/O inuts. DI4 and DI5

What would be a good procedure to get it work?

Any help is welcome as I am stuck and need to have machine running any soon.

Many thanks in advance
Ronald

If it works for you, I would set up the program to not actually stop but repeat indefinitely.
Then, in the start of your program, you can Wait for a variable to become True.

In a Thread, you will then set this variable to either False or True respectively according to which button has been pressed last.

This will, however, finish the sequence before the robot will come to a stop.

Does this make sense to you? And will it work for you? :slight_smile:

In the installation tab / E/A-Settings, you can configure your digital Inputs as “Programm start” and “Programm stop” or “Programm pause”.

Thanks, will try and let you know outcome of it,

Thanks will try this and let you know outcome.

Hi The Pause function works now fine, program holds. But when I push Start agin it does not work
I checkec I/O and it gets the signal from start button (High when pushed)

Not sure what to do next.
Any idea?

I tested it and came to the same result. Pasue and Stop works, but start does not work. I have no idea to fix that.

Make sure you’re using the latest software update. It seems there have been some issues with these functions in some recent versions, but it should be fixed now. :slight_smile:

I tested it with the 5.17 software. Can’t update, because a URCap does not work with the newer onces.

Then you should program a start/stop function in your sequence instead. :slight_smile: It’s not too difficult, as I explain earlier.

If you need to stop the robot immediately with a push of the stop button, then it will be a little different, though.

The robot must be in remote control mode to have the start button start the program. Otherwise it will only start with the on-screen controls.