31
General Mach Discussion / Zeroing Z
« on: June 30, 2011, 09:46:17 PM »
I want to go to the Z limit switch and then set G54 Z to zero.
It does not consistently work. If I run the macro twice it sets zero, just once it will not set zero.
I added the dwells figuring it needed time. Still does not work.
In desperation I post.
DoButton( 24 )
Code "G04 P2"
SetVar(5223,0)
Code "G04 P2"
DoButton( 23 )
DoButton( 22 )
DoButton( 25 )
TIA,
Dan
It does not consistently work. If I run the macro twice it sets zero, just once it will not set zero.
I added the dwells figuring it needed time. Still does not work.
In desperation I post.
DoButton( 24 )
Code "G04 P2"
SetVar(5223,0)
Code "G04 P2"
DoButton( 23 )
DoButton( 22 )
DoButton( 25 )
TIA,
Dan