1. Home
  2. Knowledge Base
  3. Auto load program

Auto load Universal-Robots program.

Notice that the robot might start automatically and therefore make sure a proper risk assessment is conducted.

Application Description:

Load and start a program automatically.

To Auto Initialize and Load and Start a User program there is the Default program menu. In this example below is defined a user program to load – and then defined an Input to be used for Auto Initialize – and then defined an input to be used for starting the program.

Please notice that depending on how the user program is made the program might not start automatically and still shows the “Auto move screen”. Therefore here is an example where there is a Variable Waypoint in a Before Start routine (The Variable pose value can be at the exact same position as the user program home position).

Notice that the default.installation filed is saved two times – once as the programs default.installation file in the same directory as the user program – and also as the robots default.installation file at top level.

The experience is that it is best to have the user program on the robots main file structure for this situation (i.e. not on a USB thumb drive) because the recognition on the USB drive might take some time during boot and then the robot will maybe miss finding the user program file, but if located on the main structure then it can be found early during boot.

Function description:

The settings are configured so if Digital input 0 is True during boot of robot then a Auto initialize will be performed.

And if Digital input 1 is True during boot of robot then a specified default program will be loaded.

Depending of how the user program is made the user program can start automatically if the BeforeStart routine has a variable Waypoint.

I/O table Inputs:

DI0 = Auto Initialize.
DI1 = Load program.

Variable Table:

var_1 = Starting position pose.


How the “Set Default Program” screen looks like before any configuration.



A default user program file is specified in the file structure.

The inputs are configured for their intended use i.e. Digital 0 is set to trigger a Auto Initialize is True during boot. And Digital 1 is set to trigger to start the program execution.



The default.installation file are saved two times i.e. in the same folder as the user program  – and also in the top level of the robot program structure.





Program description:

This small test program is made with a BeforeStart routine that has a variable waypoint and therefore this program can start automatically.

Program code:





Contribute moderator

Disclaimer: While the Zacobria Pte. Ltd. believes that information and guidance provided is correct, parties must rely upon their skill and judgement when making use of them. Zacobria Pte. Ltd. assumes no liability for loss or damage caused by error or omission, whether such an error or omission is the result of negligence or any other cause. Where reference is made to legislation it is not to be considered as legal advice. Any and all such liability is disclaimed.

If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.

By Zacobria Lars Skovsgaard
Accredited 2015-2018 Universal Robots support Centre and Forum.

Also check out the CB3 forum

Was this article helpful?


  1. Is there any way to make the UR go to the “run” tab instead of being in the “program” tab. We are wanting to do this externally if possible. This way operators who do not know the password only ever see the “run” tab. I already have a default program set up for startup I just want to make it also go to the “Run” tab every time on startup as well.

    1. Hi Matt

      Thanks for the question.

      I am not sure if I understand the question correct – if you already have set a default program to run – then the robot can be at the Run screen when it starts up.

      Have you further more considered to apply a System password (User manual section 15.3) so it requires a password to edit the program ?

      But I am not sure what is the meaning of “externally” in your question ?

      By Zacobria Lars Skovsgaard
      Accredited Universal Robots support Centre and Forum.

      Also check out the CB3 forum

  2. Is there any variables that is active while the robot is active. That could be used to initiate codes, scripts or programs. or just any variables thats active in the bakground?

    1. Hi carl

      Thanks for the question.

      The variables that is created in the user program is active while the robot is active.

      I am not aware of any variables that is active in the background, but maybe installation variables can be considered.

      By Zacobria Lars Skovsgaard
      Accredited Universal Robots support Centre and Forum.

      Also check out the CB3 forum

Leave a Reply

Your email address will not be published. Required fields are marked *