13.3 Variables
13.3 Variables
A robot program can make use of variables to store and update various values during
runtime. Two kinds of variables are available:
Installation variables: These can be used by multiple programs and their names and
values are persisted together with the robot installation (see 12.10 for further de-
tails);
Regular program variables: These are available to the running program only and their
values are lost as soon as the program is stopped.
The following variable types are available:
bool A boolean variable whose value is either True or False.
int A whole number in the range from −32768 to 32767.
float A floating point number (decimal).
string A sequence of characters.
pose A vector describing the location and orientation in Cartesian space. It is
a combination of a position vector (x, y, z) and a rotation vector (rx, ry, rz)
representing the orientation, written p[x, y, z, rx, ry, rz].
list A sequence of variables.
13.4 Command: Empty
Version 3.1 (rev. 17782)
Copyright © 2009-2015 by Universal Robots A/S. All rights reserved.
II-49 CB3