Hello Guest it is March 29, 2024, 04:22:42 AM

Author Topic: Auto Tool Zero Z-axis stop??  (Read 6988 times)

0 Members and 1 Guest are viewing this topic.

Auto Tool Zero Z-axis stop??
« on: March 13, 2015, 12:02:43 PM »
Hi,
I'm trying to use this function on my CNC system. I have the VB script and the probe is registering on the diagnostics page as Digitize (which it should). My problem is that my Z-axis seems to keep moving even after receiving the probe input signal. It continues to travel the whole G31Z-whatever distance. I don't really care too much right now about the particulars of the code. I just want to know if the Z-axis is supposed to stop on the probe signal or if it should travel extra for a spring loaded probe? Do I need something like: ZProbePos = DoOEMButton(1003)?

Thanks!

Code:

PlateThickness = GetUserDRO(1151) 'Z-plate thickness DRO

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 "G31Z-10 F50" '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 exact point the probe was hit
Code "G0 Z" &ZProbePos 'go back to that point, always a very small amount of overrun
While IsMoving ()
Wend
Call SetDro (2, PlateThickness) 'set the Z axis DRO to whatever is set as plate thickness
Code "G4 P0.25" 'Pause for Dro to update.
Code "G0 Z5" 'put the Z retract height you want here
Code "(Z axis is now zeroed)" 'puts this message in the status bar
Else
Code "(Z-Plate is grounded, check connection and try again)" 'this goes in the status bar if aplicable
End If

Exit Sub

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: Auto Tool Zero Z-axis stop??
« Reply #1 on: March 13, 2015, 12:44:05 PM »
Yes, it should be stopping.
Gerry

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

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: Auto Tool Zero Z-axis stop??
« Reply #2 on: March 13, 2015, 03:16:52 PM »
Thanks for looking at my post! It was just an electrical issue. I had a faulty wire that worked sometimes but not all the time(Break in the wire).

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Auto Tool Zero Z-axis stop??
« Reply #3 on: March 13, 2015, 06:01:26 PM »
You May want to consider making that circuit Active High. that way IF there is a break the function will NOT activate saving damage to part or machine.

In this case Mach3 would have warned you that the probe was already ACTIVE and would NOT have run the G31.

(;-) TP
« Last Edit: March 13, 2015, 06:03:02 PM by BR549 »
Re: Auto Tool Zero Z-axis stop??
« Reply #4 on: March 16, 2015, 08:23:48 AM »
I would but I use the ESS instead of the parallel port which kind of stops me from using that option.
Re: Auto Tool Zero Z-axis stop??
« Reply #5 on: May 31, 2018, 08:52:58 AM »
Auto tool zero doesn’t stop on probe signal change

I tried few different scripts for Z auto tool zero, but the Z axis doesn’t recognise the Digitize contact and doesn’t retract, but continues to run

My set up is:

Galil DMC-21x3
Mach 3: R3.043.066

In ports & pins: Port is Enabled (#1) with Pin 30.  When the plate is touched, the Digitiser changes status to Green LED.

I tried changing the Pin from 30 to 8 which was High (Green LED) and the script displayed an error message and refused to move the Z suggesting that something somewhere may be working 

Any advise will be appreaciated, thanks

Offline TPS

*
  •  2,501 2,501
    • View Profile
Re: Auto Tool Zero Z-axis stop??
« Reply #6 on: May 31, 2018, 09:06:49 AM »
you have to set in ports&pins->Inputs the Probe to the port and pin your probe is wired to.
than check in dignostic Screen for the digtize ledto go on, when yur probe is hit.
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: Auto Tool Zero Z-axis stop??
« Reply #7 on: May 31, 2018, 09:15:37 AM »
Thanks TPS!  I think I have set in Ports & Pins the correct input and when the contract is made the Green LED in Diagnostics lights up under Digitize. 

Offline TPS

*
  •  2,501 2,501
    • View Profile
Re: Auto Tool Zero Z-axis stop??
« Reply #8 on: May 31, 2018, 09:22:47 AM »
that's what i found in the gali pluging Manual:


The Galil PlugIn is capable of using a probe for various probing
functions. This is accomplished using the Galil high speed position
latch functions. Unfortunately, the latch inputs share general purpose
inputs on the Galil ICM. Galil axes A, B, C, and D use inputs 1, 2, 3,
and 4 and Galil axes E, F, G, and H use inputs 9, 10, 11, and 12 for the
latch inputs.
IMPORTANT!!!! A probe should be wired to ALL latch inputs for any
moving axis on your machine! For example, if you have a 3 axis mill
and you are using Galil axes A, B, and C to drive them, then the probe’s
output should be wired to inputs 1, 2, and 3. This is because the G31
probe command will move in all 3 dimensions. If you have 3 axis mill
with a 4th axis rotary driven from Galil axes A, B, C, and D, then the
probe’s output should be wired to inputs 1, 2, 3, and 4.
When setting up Mach for probing, it is imperative that the “Probe”
signal is enabled in “Ports and Pin” on the “Input Signals” tab and the
port and pin should be mapped to one of the Galil latch input pins. For
example, if your 3 axis mill uses Galil axes A, B, and C to drive Mach
axes X, Y, and Z, then the probe’s output signal should be wired to Galil
inputs 1, 2, and 3 and the Mach Probe signal should be enabled and
mapped to port 1, and one of pins 25, 26, or 27. Which pin is mapped
really does not matter since all of the inputs will be active upon a probe
hit.
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: Auto Tool Zero Z-axis stop??
« Reply #9 on: May 31, 2018, 09:23:26 AM »
Try using 3.043.062
I know that probing doesn't work for some people in .066
Gerry

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

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html