InPos Function
Returns the position status of the specified robot.
Syntax
InPos
Return Values
- True if position has been completed successfully
- Otherwise False
See Also
CurPos, FindPos, WaitPos
InPos Function Example
Function main
P0 = XY(0, -100, 0, 0)
P1 = XY(0, 100, 0, 0)
Xqt MonitorPosition
Do
Jump P0
Wait .5
Jump P1
Wait .5
Loop
Fend
Function MonitorPosition
Boolean oldInPos, pos
Do
Pos = InPos
If pos <> oldInPos Then
Print "InPos = ", pos
EndIf
oldInPos = pos
Loop
Fend