RecoverPos Function
Returns the position where a robot was in when safeguard was open.
This is for the experienced and you need to understand the command specification before use.
Syntax
RecoverPos ( [ robotNumber ] )
Parameters
- robotNumber
- Integer value that specifies a robot number. If omitted, the current robot number is used.
Return Values
Returns the position the specified robot was in when the safeguard was open.
In the case where the safeguard was not open or the robot has completed the recovery, the coordinates of the returned point data are 0.
Description
This function returns the robot recovery position when using the Cont or Recover commands.
See Also
AbortMotion, Cont, Recover, Recover Function, RealPos
RecoverPos Function Example
If the straight distance of recovery is less than 10 mm, it executes recovery. If more than 10 mm, it finishes the program.
If Dist(RecoverPos, RealPos) < 10 Then
Recover All
Else
Quit All
EndIf