51
General Mach Discussion / Re: BigTexBlue Screen.. modify gcode?
« on: November 20, 2014, 07:05:50 AM »
So let me see if I understand how this is working...
**********************************************************************************************************************************
**********************************************************************************************************************************
Code: [Select]
ZNew = GetDro(2) - 6 'Reads the current Z from the DRO(2) or "DRO Z" and subtracts 6" from it. This is the range to search for the touch off plate
Code "G31Z" &ZNew 'Starts the probe headed towards -Z from the current Z
While IsMoving() 'wait for probe move to finish
Wend
ZNew = GetVar(2002) 'Found the touch point and set a variable GetVar(2002) to that touch point called ZNew
Code "G0 Z" &ZNew +.1 'move Z to ZNew + 1"
While IsMoving () 'wait for the process to take place
Wend
Code "F2" 'slow down feed rate to 2 ipm
ZNew = GetDro(2) - .25 'Set variable ZNew = the current Z read from DRO(2) or "DRO Z" and subtracts .25" from it.
'Would this make more sense to be the same as above, ZNew = GetDro(2) - 6 or at least greater than 1" to offset the 1" added to Z from above???
Code "G31Z" &ZNew 'Start another probe headed towards -Z from the current "DRO Z" that has been increased by 1" going -.25
While IsMoving() 'wait for the process to take place
Wend
ZNew = GetVar(2002) 'Found the touch point and set a variable GetVar(2002) to that touch point called ZNew
Code "G0 Z" &ZNew 'Move to GetDro(2) - .25, This should be Z zero I think????
While IsMoving () 'wait for the process to take place
Wend