Thank you again.
Ihave made this one and it is working now for me. Maybe you can do this better but it works.
Code”G31 Z-100 F25” ’Down with Z
While IsMoving()
Wend
GetVar(2002)’Hit the probe
Call SetDRO(2,2.000)’Sets the probehigh
Code”G00 Z10.000"’Safehigh
Per