Hello Guest it is June 13, 2024, 09:31:33 PM

Author Topic: Mach 3 auto zero Z macro Bug?  (Read 1135 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

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

  •  520 520
    • View Profile
Re: Mach 3 auto zero Z macro Bug?
« Reply #1 on: October 03, 2020, 06:19:24 PM »
"the gift of God is eternal life through Jesus Christ our Lord"