Robot Variables
Last updated
Last updated
Usually scripts are just a part of a structurated robot program. For this reason, when developing a script, sometimes you need to access variables that are not define inside the script, but in some other part of the program.
In order to run and test correctly scripts that use variables defined outside of the script scope you can use the Variables Tool Window.
With the Variables Tool Window you can add, edit and remove global variables, which will be then available inside your script.
Proceed as follow to define a variable:
Choose variable name and set an intialization value.
Optionally you can define the variable as a System Variable. System variables are defined inside the robot at system level and are shared by all programs, while simple Global Variables are defined inside a specific program.
OK.
System variables correspond to Universal Robots Installation Variables.
Click on Add to add a new variable.