Sets and gets the position of a single robot axis, in units of millimeters or degrees, to and from an Angles Location Object.
location_object.Angle(axis) =<new_numeric_value>
-or-
...location_object.Angle(axis)
Prerequisites
The location_object must be an Angles Location Object.
Parameters
axis
A required numeric expression that specifies the number of the axis to be accessed. This value can range from 1 for the first axis up to a maximum value of 12.
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 Angle property allows a program to access and manipulate individual axis position values. To set all of the axes positions at one time, the Angles method should be utilized.
If the location_object is not of the Angles type, accessing the Angle property will generate an error.
Examples
Dim loc1 As New Location ' Create new Location set to default values
Dim ang As Double
loc1.Angles(-21.5, 23.2, 10) ' Set loc1 to Angles type and define position
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