Mino
April 26, 2016, 6:28pm
1
Hi everyone!
When I execute the homing sequence with Arduino IDE ($H), Z axe moves correctly and the limit switch works. Then X axe moves also correctly and the limit switch works fine, but then, the Y axe moves a little (a few millimeters) and then it stop and the IDE Monitor Serie shows “ALARM: Homing fail”. Anyone can help me, please?
The Grbl settings are:
Grbl 1.0c [’$’ for help]
[’$H’|’$X’ to unlock]
$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=1 (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)
$30=1. (rpm max)
$31=0. (rpm min)
$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=790.000 (x max travel, mm)
$131=790.000 (y max travel, mm)
$132=100.000 (z max travel, mm)
Did you check your wiring connections for that axis, make sure everything is wired for NO, connected properly to the Arduino etc… it’s easy to flip the NO \ NC connections on those switches.
sounds like bad wiring connection or bad switch. but most likely the wiring
Mino
April 26, 2016, 6:52pm
4
Yes, I have checked all connections and everything is ok. It make me crazy…
LarryM
April 26, 2016, 6:53pm
5
You can use this information to determine what grbl sees when the homing switches are pressed.
Since you are using version 1.0c you will not see LIM label, but you will see PINS: in the status report.
If you are having difficulties with your homing switches you can do a quick test with Grbl to see what the state of the homing switches is from Grbl’s point of view. NOTE: In order to use this procedure you need to have grbl Version 0.9j or later installed on your Arduino.
To do so, you use the Grbl status immediate command ? (question mark). This command asks Grbl for its current value of some of its state information. For the purpose of this article we are interested in the homing switch stat…
Mino
April 26, 2016, 7:10pm
6
Thanks Larry! When I use the status immediate command (?) the IDE report me:
Alarm,MPos:1.000,1.000,-1.000,WPos:1.000,1.000,-1.000
ok
I am doing something wrong?
LarryM
April 26, 2016, 7:12pm
7
You need to change $10=19
Mino
April 26, 2016, 7:15pm
8
Just I change it, but still does not work…
LarryM
April 26, 2016, 7:16pm
9
Interesting. Are you using the X-controller?
LarryM
April 26, 2016, 7:19pm
11
Here’s what I get when I do the ? command:
Idle,MPos:0.000,0.000,0.000,WPos:0.000,0.000,0.000,Pin:000||
ok
Mino
April 26, 2016, 7:24pm
13
Just I change it, but still does not work… Now the ? command report me:
Alarm,MPos:1.000,1.000,-1.000,WPos:1.000,1.000,-1.000,Buf:0,RX:1,Pin:010|0|0000
LarryM
April 26, 2016, 7:25pm
14
Yes, it did. The Pin:010 says that your Y axis homing switch is tripped.
Mino
April 26, 2016, 7:30pm
15
But when I do the $H command still report me “Homing fail”. What can I do now?
LarryM
April 26, 2016, 7:33pm
16
You have to determine why your Y axis switch is not working. It is acting like a Normally Closed switch. It could be a wiring error, it could be a defective switch, it could be a defective Arduino.
Try this
Press the Y axis homing switch with your finger and then issue the ? command while you are holding the switch closed.
Post the ? command output here.
Mino
April 26, 2016, 7:39pm
17
While I hold down the Y limit switch, I introduce the ? command and report me the same:
Alarm,MPos:1.000,1.000,-1.000,WPos:1.000,1.000,-1.000,Buf:0,RX:1,Pin:010|0|0000
Mino
April 26, 2016, 7:40pm
18
Sorry, now report me:
Alarm,MPos:1.000,1.000,-1.000,WPos:1.000,1.000,-1.000,Buf:0,RX:1,Pin:011|0|0000
LarryM
April 26, 2016, 7:43pm
19
Most likely is a wiring error.
Can you post a picture of the connector that contains the homing switch wires, that plugs into the gShield?
LarryM
April 26, 2016, 7:48pm
20
It just occurred to me that you most likely held down the X axis switch and not the Y axis.
The X axis moves left and right. The Y axis moves forward and back.
So, the Y axis homing switch is on the left at the near end of the Makerslide, not on the gantry.