Articles Download Safety & Security Forum myUR Go to Main Site

Universal Robots A/S
Energivej 51
DK-5260 Odense S

T: +45 8993 8989
sales@universal-robots.com

 
  • Articles
  • Download
  • Safety & Security
  • Forum
  • myUR
  • Go to Main Site
  • Support
  • Articles
  • Start program from where it was stopped

Start program from where it was stopped

Demonstrates how to make a program that will start from the program section where the program was stopped.

Last modified on Jan 29, 2025

Examples are valid for:

CB3 Software version: 3.1.17336
e-Series Software version: All versions

Note that older or newer software versions may behave differently.

In order to start the program from where it was previously stopped, the program should be split into sections; e.g. a section for picking up a part, and a section for placing a part.

Below photo shows an example of one possibility to start program from where is was stopped e.g. the day before.

If Else Counter

The robot program is divided into a number of sections, in above case 5 sections (0-4). Inside each of these sections, the normal robot program should be placed. An installation variable called “i_prog_tracker” is used to keep track of how far the program has gotten. The reason of using an installation variable, is that it keeps the value even after a reboot of the robot.

In the “section control” folder, the i_prog_tracker variable is increased, as the section is now finished.
A thread is monitoring a digital input, if this Is pressed, a variable “stop_request” is set to true, which makes the program stop/halt after one section is complete.

In the BeforeStart sequence, the operator is asked whether the robot should start from beginning or begin from the section after the last one that was finished.

It should however be noted, that variables that are not installation variables does not sustain their value after a reboot. Therefore variable values that should sustain their value, should be made as installation variables. In e.g. palletizing, the box “Remember traversal position between runs” should be ticked, in order for the robot to remember last position that was palletized from. 

If it is desired, to be able to control the robot sections to be run externally, please refer to the how-to Remote Control Via TCP/IP

Attached files


Program_control_counter_stop.urp

Attached files

Program_control_counter_stop.urp

Related articles

Switch between different TCP in a program
Repeating a Program Section (Loop)
Setting the speed slider inside program
Secondary program
logo

Product

  • UR3e Robot
  • UR5e Robot
  • UR10e Robot
  • UR16e Robot
  • UR20 Robot
  • UR+ Products

Company

  • About us
  • Contact us
  • Careers We're hiring
  • UR merchandise

Training / Resources

  • Academy
  • Technical Resources
  • Articles
  • FAQ

Insights

  • Blog
  • Case stories
  • Content library
  • News centre
  • Podcast
  • Webinars & Events

Get in touch

  • Ask an Expert
  • Schedule a no-cost assessment
  • Find a distributor
  • Customer support

Connect with us

  • LinkedIn
  • Facebook
  • Twitter
  • YouTube
  • Instagram
  • Universal Robots A/S
  • Energivej 51
  • DK-5260 Odense S
  • T: +45 89 93 89 89
  • sales@universal-robots.com
  • US Corporate Office
  • 27-43 Wormwood St.
  • 02210 Boston, MA.
  • +1-844-GO-COBOT
  • ur.na@universal-robots.com
  • Copyright @ Universal Robots 2025
  • Cookie policy
  • Privacy policy
  • Universal Robots A/S
  • Energivej 51
  • DK-5260 Odense S
  • T: +45 89 93 89 89
  • sales@universal-robots.com
  • US Corporate Office
  • 27-43 Wormwood St.
  • 02210 Boston, MA.
  • +1-844-GO-COBOT
  • ur.na@universal-robots.com

Copyright © Universal Robots 2025

Cookie policy
Privacy policy