14.3 Variables
14.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 per-
sisted together with the robot installation (see 13.10). Installation variables keep their
value after the robot and control box has been rebooted.
Regular program variables: These are available to the running program only and their values are lost
as soon as the program is stopped.
Variable types:
bool A boolean variable whose value is either True or False.
int A whole number in the range from −2147483648 to 2147483647 (32 bit).
float A floating point number (decimal) (32 bit).
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.
14.4 Command: Empty
Version 3.10
Copyright © 2009–2019 by Universal Robots A/S. All rights reserved.
II-73 CB3