How can i define global variable that remains on its value when i turn off the robot? Is that possible? Thanks, and nice week.
Go to Installation and Variables. These variables are stored and saved in the controller between programs and restarts.
UR has free online courses on how to program their robots. You should go take a look at these, as they will explain the basic principles such as this.