Z axis homing/limit switch not working properly

I have not used homing switches for a long time and am setting them up again, since last used I have added a new linear Z I have started at setting up the machine again but when the Z axis trips the switch it does not travel on to the X and Y
I have tried tripping the switch by hand and found that when it stops the Z travel if I press the switch again it travels on as normal to the X and Y, I have tried another new switch and that is the same, I am using Larry’s version of grbl 1.0c, and looked at the $10 and it reads $10=115, is that right

You may need to adjust your homing pull-off ($27).

Change it to like 3 and see if that corrects it.

2 Likes

Thank’s Justin, I tried that and it made no difference, I am holding the switch in my hand for now and clicking once stops travel as it should, but it freezes there, and if I click again it carries on, like using a mouse, I have been looking through the forum for a fix but can’t seem to find one, is it possible to home the X and Y and leave the Z

Now it wont move at all, the motor is trying to turn the acme rod but it wont turn, it jogs fine, everything is free and moves okay, I have taken the motor off and it works fine and I can turn the acme rod by hand, I don’t know what to try next

Do you understand the homing process?

It moves to the switch and triggers it, moves away from the switch until it releases and then moves back again to trigger it.

So you having to click twice is exactly how it’s supposed to be.

If it’s not moving then it sees the switch immediately triggered meaning something is broken.

1 Like

Thank you, so as it is not moving at all now, it obviously sees the switch as triggered, I will do some more searching to find out what is broken

Show status
ok
$132=100.000 (z max travel, mm)
$131=790.000 (y max travel, mm)
$130=790.000 (x max travel, mm)
$122=50.000 (z accel, mm/sec^2)
$121=500.000 (y accel, mm/sec^2)
$120=500.000 (x accel, mm/sec^2)
$112=500.000 (z max rate, mm/min)
$111=8000.000 (y max rate, mm/min)
$110=8000.000 (x max rate, mm/min)
$102=188.976 (z, step/mm)
$101=40.000 (y, step/mm)
$100=40.000 (x, step/mm)
$32=0 (laser mode, bool)
$31=0. (rpm min)
$30=1. (rpm max)
$27=1.000 (homing pull-off, mm)
$26=250 (homing debounce, msec)
$25=0.000 (homing seek, mm/min)
$24=0.000 (homing feed, mm/min)
$23=3 (homing dir invert mask:00000011)
$22=1 (homing cycle, bool)
$21=0 (hard limits, bool)
$20=0 (soft limits, bool)
$13=1 (report inches, bool)
$12=0.002 (arc tolerance, mm)
$11=0.020 (junction deviation, mm)
$10=115 (status report mask:01110011)
$6=0 (probe pin invert, bool)
$5=0 (limit pins invert, bool)
$4=0 (step enable invert, bool)
$3=3 (dir port invert mask:00000011)
$2=0 (step port invert mask:00000000)
$1=255 (step idle delay, msec)
$0=10 (step pulse, usec)
$$
ok
$132=100.000 (z max travel, mm)
$131=790.000 (y max travel, mm)
$130=790.000 (x max travel, mm)
$122=50.000 (z accel, mm/sec^2)
$121=500.000 (y accel, mm/sec^2)
$120=500.000 (x accel, mm/sec^2)
$112=500.000 (z max rate, mm/min)
$111=8000.000 (y max rate, mm/min)
$110=8000.000 (x max rate, mm/min)
$102=188.976 (z, step/mm)
$101=40.000 (y, step/mm)
$100=40.000 (x, step/mm)
$32=0 (laser mode, bool)
$31=0. (rpm min)
$30=1. (rpm max)
$27=1.000 (homing pull-off, mm)
$26=250 (homing debounce, msec)
$25=0.000 (homing seek, mm/min)
$24=0.000 (homing feed, mm/min)
$23=3 (homing dir invert mask:00000011)
$22=1 (homing cycle, bool)
$21=0 (hard limits, bool)
$20=0 (soft limits, bool)
$13=1 (report inches, bool)
$12=0.002 (arc tolerance, mm)
$11=0.020 (junction deviation, mm)
$10=115 (status report mask:01110011)
$6=0 (probe pin invert, bool)
$5=0 (limit pins invert, bool)
$4=0 (step enable invert, bool)
$3=3 (dir port invert mask:00000011)
$2=0 (step port invert mask:00000000)
$1=255 (step idle delay, msec)
$0=10 (step pulse, usec)
ok
[1.0c.20151109 J Tech 9/1/2017 Dwell Step Time 1ms user info: ]
$$
$I
[’$H’|’$X’ to unlock]
modified by Larry Mayberry

Should $21=0 be set to $21=1

I have tried changing $21=0 to $21=1 but that did not work, are the other settings okay

Thank you Phil, do I need to change any settings

$24 and $25 are the settings for your homing feedrate and seek rate. Those should not be zero.
Did you recently update firmware?
Have you calibrated your Z-AXIS steps per mm?

Thank you Neil, yes I did recently update the firmware from 1.1f to Larrys 1.0c as recommended because I have a laser, I have calibrated the Z axis, what should $24 and $25 be set at

Thank you Phil, I have been reading up on homing and set grbl like this,homing is working okay but it’s slow, is it supposed to be slow to stop crashing

$132=100.000 (z max travel, mm)
$131=790.000 (y max travel, mm)
$130=790.000 (x max travel, mm)
$122=50.000 (z accel, mm/sec^2)
$121=500.000 (y accel, mm/sec^2)
$120=500.000 (x accel, mm/sec^2)
$112=500.000 (z max rate, mm/min)
$111=8000.000 (y max rate, mm/min)
$110=8000.000 (x max rate, mm/min)
$102=377.952 (z, step/mm)
$101=40.000 (y, step/mm)
$100=40.000 (x, step/mm)
$32=0 (laser mode, bool)
$31=0. (rpm min)
$30=1. (rpm max)
$27=1.000 (homing pull-off, mm)
$26=250 (homing debounce, msec)
$25=500.000 (homing seek, mm/min)
$24=25.000 (homing feed, mm/min)
$23=3 (homing dir invert mask:00000011)
$22=1 (homing cycle, bool)
$21=1 (hard limits, bool)
$20=1 (soft limits, bool)
$13=1 (report inches, bool)
$12=0.002 (arc tolerance, mm)
$11=0.020 (junction deviation, mm)
$10=115 (status report mask:01110011)
$6=0 (probe pin invert, bool)
$5=0 (limit pins invert, bool)
$4=0 (step enable invert, bool)
$3=3 (dir port invert mask:00000011)
$2=0 (step port invert mask:00000000)
$1=255 (step idle delay, msec)
$0=10 (step pulse, usec)
$$
ok

I use $25=1500, as long as the machine stop before actual smashing the switch it is fine, it is the second “tap” ($24) that provide the precision.

Thank you Haldor, I will try $25-1500 when I am back in the workshop, I also need to try $6=1 instead of $6=0 as my probe does not work since I installed grbl version 1.0c

1.0c should work fine. Can you give us more information about how the failure occurs.

Best to turn hard limits off.

What software are you using to send your G-code to the X-carve?

Thank’s Phil, I am reading about setting G28 at the moment

1 Like

Thank you Larry, okay I will turn hard limits off, I use V-carve desktop to send the G-code, I have just got Pic sender and all the other Pic software but I am still reading how to use it
the probe did work fine but when I connect the clip and touch the plate to the collett, it turns green, as it always did and when I take it away to place it on the work it goes back to red again, it always stayed green before and I could then probe, I have checked all the wiring and it seems to be okay

If you are using vectric vcarve desktop, that program produces G-code. You have to use an alternate program to send the G-code to the Xcarve. Something like PicSender.

Talking about green and red “dots” is something that comes from Easel. You can use Easel to send your g-code, but it’s not optimal.

Using Vectric Vcarve Desktop and PicSender is all that you need to produce and send g-code.

You don’t have to use Easel at all.

Thank’s Phil I will try all that