Limit Switch doesn't work


I setup the machine yesterday, but I have two issues. I’ll discuss the first one here.
The problem is with limit switches. When I try to run homing sequence, it doesn’t stop after hitting the switch (the motor moves up along Z, but continues to do so after hitting the switch).

I wired things according to the instructions. (PIN 12= Z, PIN 10 = Y, PIN 9 = X).
I can verify that when the switch is not touched, there is a 5V across the contacts, and as soon as the limit switch is pressed, it goes to 0.
I am using Grbl v0.9 (so, Z is suppose to go to pin 12).

Any ideas?



and you made sure that homing was enabled during easel set up?

Yes. Homing is enabled during the setup. It gets stuck during the setup.

Can you post the $$ output from grbl. It would help with the solution to your problem.

You can either use a terminal program or Easel Machine Inspector to get these values.

Grbl 0.9j [’$’ for help]
$0=10 (step pulse, usec)
$1=255 (step idle delay, msec)
$2=0 (step port invert mask:00000000)
$3=3 (dir port invert mask:00000011)
$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=0 (hard limits, bool)
$22=0 (homing cycle, bool)
$23=3 (homing dir invert mask:00000011)
$24=25.000 (homing feed, mm/min)
$25=750.000 (homing seek, mm/min)
$26=250 (homing debounce, msec)
$27=1.000 (homing pull-off, mm)
$100=40.000 (x, step/mm)
$101=40.000 (y, step/mm)
$102=188.976 (z, step/mm)
$110=8000.000 (x max rate, mm/min)
$111=8000.000 (y max rate, mm/min)
$112=500.000 (z max rate, mm/min)
$120=500.000 (x accel, mm/sec^2)
$121=500.000 (y accel, mm/sec^2)
$122=50.000 (z accel, mm/sec^2)
$130=290.000 (x max travel, mm)
$131=290.000 (y max travel, mm)
$132=100.000 (z max travel, mm)

Pretty sure $22=0 means homing is disabled. Should be $22=1

Yep, you need $22=1 to get a homing cycle.

The other grbl parameters look good.