TargetOK Function
Returns a status indicating whether or not the PTP (Point to Point) motion from the current position to a target position is possible.
Syntax
TargetOK(targetPos)
Parameters
- targetPos
- Specify the target coordinates in point data to check if the operation is possible.
Return Values
True if is it possible to move to the target position from the current position, otherwise False.
Description
Use TargetOK to verify that a target position and orientation can be reached before actually moving to it. The motion trajectory to the target point is not considered.
See Also
CurPos, FindPos, InPos, WaitPos
TargetOK Function Example
If TargetOK(P1) Then
Go P1
EndIf
If TargetOK(P10 /L /F) Then
Go P10 /L /F
EndIf