Returns a Location object that contains the latched position of a robot.
…latch_object.Location( type )
Prerequisites
Requires that the Encoder Latching or Advanced Controls or Conveyor Tracking License be installed on the controller.
Parameters
type
A required numeric expression that specifies the type of Location object to be returned. A 0 value indicates the Location, contains Cartesian position and orientation information. l indicates the Location and contains a set of axis position values. Consistent with the location_object.Type property.
Remarks
Returns the latched robot position and orientation as a new Location object of the specified type. This Location object may then be used like any other Location object. All the axes of the robot are latched simultaneously, so the total robot position at the time of the latch is consistent. If a single latched angle is of interest, the latch_object.Angle property is more efficient since it does not create a Location.
Examples
Dim lat As Latch
Dim lpos As Location
lat = Latch.Result(1) ' Get next latched value
lpos = lat.Location(0) ' Cartesian Location
Console.WriteLine("Latched X: " & CStr(lpos.X))
See Also