Hello Guest it is April 13, 2021, 07:04:17 AM

Author Topic: Mach 3 auto zero Z macro Bug?  (Read 355 times)

0 Members and 1 Guest are viewing this topic.

Mach 3 auto zero Z macro Bug?
« on: October 03, 2020, 04:06:26 PM »
Hi i make my own macro to get tool height and i see some wierd happend
 when debug my script i see something wierd sometime , and thats probaly happend sometimes normal z zero script too , i have broken some mill bits.
when macro call
Code "G90 G31 Z" &somenumber somenumber is just example 

While IsMoving() ' Wait for probe move to finish
Wend

testvar = GetVar(2002) ' Read the touch point
getvar (2002) return total wrong value example my dro say -9 and testvar is -15 and even i change height of touch it still -15 when i shutdown mach 3 and start again then i get correct testvar value , is it bug or bad macro code ?but after shutdown and restart mach3 macro work correct

Offline reuelt

*
  •  487 487
    • View Profile
Re: Mach 3 auto zero Z macro Bug?
« Reply #1 on: October 03, 2020, 06:19:24 PM »
try
replacing
getver(2002)
with
GetOemDro(802)
"the gift of God is eternal life through Jesus Christ our Lord"