You can create position variables associated with a tag for robots and tool devices to use
as targets for robot motions. You can assign a single tag to a position variable or multiple
tags in the form of an array.
Tags used in position variables can only link to an object defined in a local
representation or the parent cell’s representation. Using a representation from the parent
cell requires that the local representation is aggregated from the parent cell
representation. Multiple device's tasks can use the same position variable if owned by the
same control device. However, you cannot use the same tag position variable with more than
one control device, or in another representation.
Tag groups used for position variables need a resource and motion group assigned to them.
If a resource is in only one motion group, it gets assigned to the tag group when selecting
the resource. For devices in multiple motion groups, you must select the motion group to
assign. By default, the coordinates of a tag group are relative to the cell origin.
Recommendation:
Creating and assigning an object frame relative to the tag used as a
variable can help simplify logic expressions and ensure consistent simulation
results.
When associating an individual tag with a position variable, the name of the variable
becomes the name of the tag. The position variable and tag assume a unique name if a
variable with the same name already exists. Changing the name of the tag updates all
variable references to the new name. Similarly, moving a tag changes the default value of
the variable to the tag's new position during simulation.
Tag position variables used in an array can still be the target of a robot motion, and
addressed individually. However, position variable arrays do not inherit their name from the
tags assigned. Instead, the variable name persists and displays as var[1], var[2], etc. for
each array position. You cannot update the name of a tag in a position variable array.
Making the array larger adds empty indexes, and making the array smaller unlinks any objects
from the removed elements.
You can change the robot assigned to a tag group corresponding to a position variable. When
selecting a new robot invalid data gets removed, and missing data gets added based on the
current state of the new robot in simulation. Configuration values from the old robot not
applicable to the new robot initialize to the new robot's current configuration. Invalid
turn values also update based on the new robot's current turn values. For motion groups
containing the same tool devices, reordering the device list to match the old robot
preserves auxiliary axis data when assigning a new robot. For axes not in the old motion
group, new auxiliary axis values initialize to the device's current values.
Deleting a position variable unlinks any previously linked objects. See also Creating Position Variables and Expressions Used by Flow Control.