Hello Guest it is September 21, 2023, 03:18:15 PM

Author Topic: how to get Z position while moving  (Read 2064 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!!

Online Graham Waterworth

  • *
  •  2,621 2,621
  • 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