InPos関数

ロボットの位置決め状態を返します。

書式
InPos

戻り値

  • 位置決めが完了した場合: True
  • ロボット動作中: False

参照
CurPos, FindPos, WaitPos

InPos関数使用例

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