I have grbl cnc and my z axis limit not working and homing fail x and y limit working perfectly
$0=10 (step pulse, usec)
$1=25 (step idle delay, msec)
$2=0 (step port invert mask:00000000)
$3=6 (dir port invert mask:00000110)
$4=0 (step enable invert, bool)
$5=0 (limit pins invert, bool)
$6=0 (probe pin invert, bool)
$10=3 (status report mask:00000011)
$11=0.020 (junction deviation, mm)
$12=0.002 (arc tolerance, mm)
$13=0 (report inches, bool)
$20=0 (soft limits, bool)
$21=1 (hard limits, bool)
$22=1 (homing cycle, bool)
$23=1 (homing dir invert mask:00000001)
$24=50.000 (homing feed, mm/min)
$25=160 (homing seek, mm/min)
$26=250 (homing debounce, msec)
$27=3 (homing pull-off, mm)
$100=160 (x, step/mm)
$101=160 (y, step/mm)
$102=24 (z, step/mm)
$110=150 (x max rate, mm/min)
$111=150 (y max rate, mm/min)
$112=24 (z max rate, mm/min)
$120=50.000 (x accel, mm/sec^2)
$121=50.000 (y accel, mm/sec^2)
$122=50.000 (z accel, mm/sec^2)
$130=225.000 (x max travel, mm)
$131=125.000 (y max travel, mm)
$132=170.000 (z max travel, mm)
There were some pin changes that affect the Z homing switch.
Read through this thread completely to determine the best solution for your situation.
Swap Z-limit from Pin11 to Pin12 instead if you are running GRBL v0.9 or higher.
there is a problem…when i pressed the limit switch the motor stopped working but its not accepting the next feed to move in another direction. in short , its actually blocking the whole machine . what to do ?
You need to clear the alarm state caused by the limit switch. In GRBL you can do that by sending a “$X” command.