Hello Guest it is August 24, 2019, 10:17:57 AM

Author Topic: Mach3 Auto Z Won't Retract  (Read 4456 times)

0 Members and 1 Guest are viewing this topic.

Mach3 Auto Z Won't Retract
« on: April 24, 2016, 12:02:34 AM »
Having problems getting the Auto Z and touch plate/probe to retract.

Any ideas?  I am not a programmer and am lost...

What needs to go here:

Code "G0 Z" &Retract+PlateThickness 'put the Z retract height you want here

My retract is 0.10"
My PlateThickness is 0.787402"

Thank you

Offline kolias

*
  •  1,011 1,011
    • View Profile
Re: Mach3 Auto Z Won't Retract
« Reply #1 on: April 24, 2016, 12:42:36 AM »
I use the following script and its working well on my cnc router

Message( "Auto Zeroing..." )
If IsSuchSignal (22) Then
code "G31 Z-2 F20"
While IsMoving()
Wend
Call SetDRO( 2, .125 )
code "G1 Z1"
End If

On the line Call SetDRO( 2, .125 )
replace the .125 with your plate thicknes
Nicolas
Re: Mach3 Auto Z Won't Retract
« Reply #2 on: April 24, 2016, 01:44:27 AM »
Thanks, it still does not retract at all though... yours pulls back?

Offline kolias

*
  •  1,011 1,011
    • View Profile
Re: Mach3 Auto Z Won't Retract
« Reply #3 on: April 24, 2016, 07:27:54 AM »
Yes mine retracts too

You should provide more info if you want others to give you a hand like is it a new install, machine type, BOB type etc. Look at this thread for a problem I had with my Z, perhaps you may find it helpful

http://www.machsupport.com/forum/index.php/topic,32054.0.html
Nicolas

Offline ger21

*
  • *
  •  6,288 6,288
    • View Profile
    • The CNC Woodworker
Re: Mach3 Auto Z Won't Retract
« Reply #4 on: April 24, 2016, 08:19:48 AM »
Your missing lines earlier in your code that should say:
PlateThickness = 0.787402
Retract = 0.1

Or, you could just use:

Code "G0 Z0.878402"
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: Mach3 Auto Z Won't Retract
« Reply #5 on: April 24, 2016, 01:10:27 PM »
Quote
Your missing lines earlier in your code that should say:
PlateThickness = 0.787402
Retract = 0.1

Or, you could just use:

Code "G0 Z0.878402"

Thanks, I actually had these lines in the code and played with them for an hour before coming in here for help.  I had it all set up a couple weeks ago but bought a Vista MPG and set that up.  I upgraded to Windows 10 before realizing Mach3 would not run with Windows 10.  I tried to uninstall and reinstall Mach3 on 10, then realized I lost all my Mach3 codes I did.  Really wish I remembered to copy the Auto Z code. I swear I am going though the same thing but it does no retract for some reason.  I get it to put the plate thickness in the DRO and to say "Z is Zeroed" in the window, but the bit sits touching the plate.  In the diagnostic screen the "green" light stays lit as well unless I manually back the bit off.

I will try again in a bit, not sure what I am missing.

Offline ger21

*
  • *
  •  6,288 6,288
    • View Profile
    • The CNC Woodworker
Re: Mach3 Auto Z Won't Retract
« Reply #6 on: April 24, 2016, 01:36:13 PM »
You need to show the entire code, but it's probably not reading your plate thickness DRO.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: Mach3 Auto Z Won't Retract
« Reply #7 on: April 24, 2016, 08:23:07 PM »
Thanks,

I have been trying basically different things with this code: It was the original one I had working  before I tweaked things and forgot what I did...

CurrentFeed = GetOemDRO(818) 'Get the current feedrate to return to later
PlateThickness =  0.787402
Retract = 0.10

If GetOemLed (825)=0 Then 'Check to see if the probe is already grounded or faulty
DoOEMButton (1010) 'zero the Z axis so the probe move will start from here
Code "G4 P2" ' this delay gives me time to get from computer to hold probe in place
Code "G31Z-1 F4" 'probing move, can set the feed rate here as well as how far to move
While IsMoving() 'wait while it happens
Wend
ZProbePos = GetVar(2002) 'get the axact point the probe was hit
Code "G1 Z1" &ZProbePos 'go back to that point, always a very small amount of overrun
While IsMoving ()
Wend
Call SetDro (2, .887402) 'set the Z axis DRO to whatever is set as plate thickness
Code "G4 P0.25" 'Pause for Dro to update.
Code "G0 Z.887402"  'put the Z retract height you want here
Code "(Z axis is now zeroed)" 'puts this message in the status bar
Code "F" &CurrentFeed 'Returns to prior feed rate
Else
Code "(Z-Plate is grounded, check connection and try again)" 'this goes in the status bar if aplicable
Exit Sub
End If

Offline ger21

*
  • *
  •  6,288 6,288
    • View Profile
    • The CNC Woodworker
Re: Mach3 Auto Z Won't Retract
« Reply #8 on: April 24, 2016, 09:24:57 PM »
Call SetDro (2, .787402) 'set the Z axis DRO to whatever is set as plate thickness
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: Mach3 Auto Z Won't Retract
« Reply #9 on: April 25, 2016, 12:57:15 AM »
I have tried that, just did again... 

I have tried every combination of numbers in those key areas, took out code and put it back in with no luck.

The DRO reading will change but the Z will not pull back off the probe plate.

Is the top part Retract = .10 the only thing telling it to retract?

TIA