Trying to pause and restart the robot program

I am setting and programming my first UR. I am looking for a way to pause the robot program if a digital input is made then resuming the program if a second digital input is made. Do I type script to pause the program based off the digital input? Any information will be greatly appreciated?

In the Installation, you can select certain predefined behaviors for the digital inputs. Pause and Start happen to be 2 of these:

Just set one to Pause program and the other to Start program I believe.

Thank you. I will give that a try.

That does work. What I actually need to do is resume the program from the point that it paused. Is that possible?

I figured it out. I placed the robot in Remote Mode. It worked the way I wanted.