Robot.LastProfile Property

Returns a Profile Object whose properties are equal to those of the currently executing motion or the last executed motion if no motion is active.

...Robot.LastProfile ( robot )

Prerequisites

None

Parameters

robot

An optional numeric expression that specifies the robot to be accessed (1-n).  If this value is 0 or unspecified, the Selected robot will be accessed.

Remarks

This property extracts a copy of the motion Profile parameters that were specified for the currently executing motion of a Robot or the last motion if no motion is now in progress.  The extracted values are returned in a Profile Object.

If the previous motion was interrupted due to an error, this property, in combination with the Dest or DestAngles properties, is very useful for retrying the motion.

Examples

Dim Profile1 As Profile
Profile1 = Robot.LastProfile() ' Reads last Profile utilized

See Also

Robot Class |Robot.Dest | Robot.DestAngles