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 persisted together with the robot installation (see 13.10 for further
details). 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.
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 −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 vec-
tor (rx, ry, rz) representing the orientation, written p[x, y, z, rx,
ry, rz].
list A sequence of variables.
14.4 Command: Empty
Program commands need to be inserted here. Press the Structure button to go
to the structure tab, where the various selectable program lines can be found. A
program cannot run before all lines are specified and defined.
Version 3.4.5
Copyright © 2009–2017 by Universal Robots A/S. All rights reserved.
II-69 CB3