Hello Guest it is December 06, 2021, 12:02:20 AM

Author Topic: how to get Z position while moving  (Read 1807 times)

0 Members and 1 Guest are viewing this topic.

how to get Z position while moving
« on: July 06, 2012, 01:21:52 AM »
code "G53 Z60"
while ismoving()
 if active(input4) then --like a prob
  z=GetoemDRO(802)  ---get Z current position( also I try getdro(2))
 end if
I want to get the a Z position while Z is moving, but finally I always get the last stop position  Z=60, why?
thank you!!

Offline Graham Waterworth

  • *
  •  2,423 2,423
  • Yorkshire Dales, England
    • View Profile
Re: how to get Z position while moving
« Reply #1 on: July 06, 2012, 04:31:11 AM »
The G31 command is used to detect the probe touch, Search the forum for G31 and you will find many examples of touch probe code.

Here is just one of many:-

« Last Edit: July 06, 2012, 04:33:59 AM by Graham Waterworth »
Without engineers the world stops