G90 G0 X0 Y0 Z0 
EPS = 0.0001
condition = 0
step = 3
stepCnt = 3
endCondition =  step* stepCnt
targetPos =  step * stepCnt

WAIT
G91 G1 F1000
Move:
X = [step] Y  = IC(step)
condition = condition + step 

IF condition >= endCondition THEN 
  GOTO  END
ENDIF

N100 GOTO Move 

N200 END:

WAIT
XPos = DL.motion.axs.X.state.values.ipo.pos

; --- check X position ------
IF ABS(XPos - targetPos) > EPS THEN 
ERROR("Check XPos Failed, Act:" + STR(XPos)  + ", targetPos:"+ STR(targetPos))
ENDIF

YPos = DL.motion.axs.Y.state.values.ipo.pos
IF ABS(YPos - targetPos) > EPS THEN 
ERROR("Check YPos Failed, Act:" + STR(YPos)  + ", targetPos:"+ STR(targetPos))
ENDIF