latch_object.Angle Property

Read-only property that returns the latched value of the specified axis angle. Avoids creating a location object.

…latch_object.Angle( axis )

Prerequisites

Requires that the Encoder Latching or Advanced Controls or Conveyor Tracking License be installed on the controller.

Parameters

axis

An optional numeric expression that specifies the angle whose value is returned. If not specified, a default value of 1 is assumed.

Remarks

This property returns the specified angle from a Latch object. It is more efficient than using latch_object.Location(1).Angle(1) since it does not require the creation of an intermediate Location object.

Examples

Dim lat As Latch 
lat = Latch.Result(1) ' Get next latched value
Console.WriteLine("Latched angle 1: " & CStr(lat.Angle(1)))

See Also

Latch Class|latch_object.Location|location_object.Angle