Changes all of the axes positions values stored in an Angles Location Object.
location_object.Angles(axis_1, ..., axis_12)
Prerequisites
None
Parameters
axis_1,…,axis_12
Up to 12 optional numeric expressions that specifies the new position value for each of the robot axes. If an expression is not specified, the corresponding axis position will default to a value of 0. Each value is in units of millimeters or degrees as appropriate for the axes.
Remarks
An Angles Location Object stores the position of the robot as a set of axes position values. For generality, a Location Object always contains 12 axes positions although the trajectory generation task will only make use of one value for each axis configured for the robot. The Angles method sets the values of all of the axes positions in the location_object. Any unspecified positions are set to 0. To read or write individual axis positions, the Angle property should be utilized. As a convenience, independent of the initial Type of the location_object, at the conclusion of this operation, the location_objectType will be set to indicate it is an Angles Location Object.
Examples
Dim loc1 As New Location ' Create new Location with default values
Dim ang As Double
loc1.Angles(-21.5, 23.2, 10) ' Set loc1 to Angles type and define
ang = loc1.Angle(2) ' ang will be set to 23.2
loc1.Angle(2) *= 2 ' Position of axis 2 will be 46.4
See Also