Homing fail/could not find limit switch

I am brand new to laser and have a PLH3D added on to my CNC. I am getting this error in lightburn. Any suggestion on how to fix this problem would be greatly appreciated. My hard limits and homing cycle are set to true.

Target buffer size found
ok
ALARM:9
Homing fail. Could not find limit switch within search distance. Defined as 1.5 * max_travel on search and 5 * pulloff on locate phases.
ok
Grbl 1.1g [‘$’ for help]
[MSG:‘$H’|‘$X’ to unlock]
[MSG:Caution: Unlocked]
ok

1 Like

following. This lead to my computer not reading the port at all even in the device manager.

You’ve got a very successful troubleshooting thread going.

Because this is a new set up with a CNC device the approach to troubleshooting has to start further back.

GRBL 1.1g is an unusual release. Are the Build Options revealed in the Console window when it connects in LightBurn?

Alarm 9 tells us a few things.

Homing was attempted.
The controller stopped trying to reach the limit switch after counting out 1.5x the max travel in one of the homing directions.

or.

The engrave head pulled off from the switch 5 times and the switch didn’t deactivate.

Please repeat the homing operation and confirm that the engrave head moved toward the limit switches and watch to see if the switches are triggered and if the engraver pulls back from them.

I hope this is what you mean by build option appearing in the console window when lightburn connects. I am brand new to this.
$32=1

$100=199.100

$101=199.100

$102=199.100

$110=4000.000

$111=4000.000

$112=4000.000

$120=700.000

$121=700.000

$122=700.000

$130=810.000

$131=730.000

$132=90.000

ok

Ok, I tried re homing and watching and my laser does not move at all. and then that error comes up. I have my laser positioned at the corner of my board.

The GRBL build options would have been shared before this report. In LightBurn you can scroll the text in the Console window and roll it back to find earlier messages.

The codes next to the dollar sign are Machine Settings, and it’s also really helpful to know these.

All the dollar-20’s are related to homing so, if you’re willing please scroll back and capture the whole report and copy/paste it like you did above.

2023-05-24_09-34-01 forum 100975 build options

The GRBL build options are the settings that are ‘Baked in’ when the Firmware is set up and written. V is for Variable Spindle and that’s what’s used to drive the laser.

Some of the GRBL build options are related to homing. If those options weren’t built in, it’s best to shut off Auto Homing on Startup. I’m fairly certain that was ‘the cause’ in the example above but I need to know specifically for your device.

The Machine Settings should also offer information about the switches and switch behavior. :slight_smile:

$20=0
$21=1
$22=1
$23=3
$24=100.000
$25=1000.000
$26=250
$27=5.000

I have made sure that my S value max and my $30 match. I think I have made sure my work space is offset because it was a negative workspace.

1 Like

[VER:1.1g.20181112:LEADMACHINE1010LASER]

[OPT:V,15,128]
maybe this helps I have a PLH3D 6w laser that is attached to my CNC that is an Openbuilds Lead 1010 black box.

1 Like

$22=1 shows that homing is enabled.

Do you have limit switches installed on your device and does the motion you observe while homing generally proceed toward the switches?

This is the power scale for your laser. If these mismatched it may indicate that some of the other settings are incorrect.

Please confirm that the switches are present.

This is a pretty big machine. :slight_smile:

if the laser moves toward the switches and doesn’t make it the $100, $101 may not be scaled correctly.

I do have limit switches. The S value and $30 did not match in the beginning. The laser wont move at all, but it is communicating with Lightburn because I can hit the fire button and it will fire. I put in the size of my laser as 863mm as Xaxis because it measures 34 inches between the rails and 990 as my Y axis because it’s 39 inches long. Hope that makes sense. I could move it using openbuilds control before I put in the offset for the workspace, now it won’t move using it. When I try to move it in Lightburn using the arrows I can see the value of X and Y change and they are neg numbers. If any of this helps. I will be glad to do any suggestions you have because I have some craft shows coming up soon and need this working. Thank so much for you help!!

1 Like

Could this be the same problem as in:

Wherein we found the controller is trying to home the non-existent Z axis, failing, and refusing to continue.

If so, then you must recompile GRBL with Z axis homing disabled.

Not sure because I have a Z axis.

Another good idea down in flames! :grin:

The $100 and $101 are = to 199.100. This is what is in the console. The last time I was able to move my laser I moved it to the left front corner of my board. I tried to set an offset for my workspace by putting in this G10 L2 P1 -584 -584 I used 584 because I have a honeycomb grid and that is the measurement for it. Maybe this is where I messed up? Any way when I hit the X direction(the one to the right of the home) the value at the top says -171.05 the Y value is -175.34 and the Z is 348.96

Waiting for connection…
Grbl 1.1g [‘$’ for help]
[MSG:‘$H’|‘$X’ to unlock]
error:9
G-code locked out during alarm or jog state.
[MSG:Caution: Unlocked]
ok
[VER:1.1g.20181112:LEADMACHINE1010LASER]
[OPT:V,15,128]
Target buffer size found
ok
Waiting for connection…
Waiting for connection…
Grbl 1.1g [‘$’ for help]
[MSG:‘$H’|‘$X’ to unlock]
error:9
G-code locked out during alarm or jog state.
[MSG:Caution: Unlocked]
ok
[VER:1.1g.20181112:LEADMACHINE1010LASER]
[OPT:V,15,128]
Target buffer size found
ok
<Idle|WPos:-271.050,-175.344,348.925|FS:0,0|WCO:271.050,175.344,-348.925>
ok
Starting stream
[MSG:Pgm End]
Stream completed in 0:00
<Idle|WPos:-271.050,-165.344,348.925|FS:0,0|WCO:271.050,175.344,-348.925>
ok
Starting stream
[MSG:Pgm End]
Stream completed in 0:00
<Idle|WPos:-271.050,-175.344,348.925|FS:0,0|WCO:271.050,175.344,-348.925>
ok
Starting stream
[MSG:Pgm End]
Stream completed in 0:00
<Idle|WPos:-261.050,-175.344,348.925|FS:0,0|WCO:271.050,175.344,-348.925>
ok
Starting stream
[MSG:Pgm End]
Stream completed in 0:00
<Idle|WPos:-251.050,-175.344,348.925|FS:0,0|WCO:271.050,175.344,-348.925>
ok
Starting stream
[MSG:Pgm End]
Stream completed in 0:00
Starting stream
[MSG:Pgm End]
Stream completed in 0:04
ok
ok
ok
ok
ok
$$
$0=10
$1=255
$2=0
$3=4
$4=1
$5=0
$6=0
$10=0
$11=0.020
$12=0.002
$13=0
$20=0
$21=1
$22=1
$23=3
$24=100.000
$25=1000.000
$26=250
$27=5.000
$30=1000
$31=0
$32=1
$100=199.100
$101=199.100
$102=199.100
$110=4000.000
$111=4000.000
$112=4000.000
$120=700.000
$121=700.000
$122=700.000
$130=810.000
$131=730.000
$132=90.000
ok
$0=10
$1=255
$2=0
$3=4
$4=1
$5=0
$6=0
$10=0
$11=0.020
$12=0.002
$13=0
$20=0
$21=1
$22=1
$23=3
$24=100.000
$25=1000.000
$26=250
$27=5.000
$30=1000
$31=0
$32=1
$100=199.100
$101=199.100
$102=199.100
$110=4000.000
$111=4000.000
$112=4000.000
$120=700.000
$121=700.000
$122=700.000
$130=810.000
$131=730.000
$132=90.000
ok
$0=10
$1=255
$2=0
$3=4
$4=1
$5=0
$6=0
$10=0
$11=0.020
$12=0.002
$13=0
$20=0
$21=1
$22=1
$23=3
$24=100.000
$25=1000.000
$26=250
$27=5.000
$30=1000
$31=0
$32=1
$100=199.100
$101=199.100
$102=199.100
$110=4000.000
$111=4000.000
$112=4000.000
$120=700.000
$121=700.000
$122=700.000
$130=810.000
$131=730.000
$132=90.000
ok
ok
$0=10
$1=255
$2=0
$3=4
$4=1
$5=0
$6=0
$10=0
$11=0.020
$12=0.002
$13=0
$20=0
$21=0
$22=1
$23=3
$24=100.000
$25=1000.000
$26=250
$27=5.000
$30=1000
$31=0
$32=1
$100=199.100
$101=199.100
$102=199.100
$110=4000.000
$111=4000.000
$112=4000.000
$120=700.000
$121=700.000
$122=700.000
$130=810.000
$131=730.000
$132=90.000
ok
$H
ALARM:9
Homing fail. Could not find limit switch within search distance. Defined as 1.5 * max_travel on search and 5 * pulloff on locate phases.
ok
Grbl 1.1g [‘$’ for help]
[MSG:‘$H’|‘$X’ to unlock]
[MSG:Caution: Unlocked]
ok
$0=10
$1=255
$2=0
$3=4
$4=1
$5=0
$6=0
$10=0
$11=0.020
$12=0.002
$13=0
$20=0
$21=0
$22=1
$23=3
$24=100.000
$25=1000.000
$26=250
$27=5.000
$30=1000
$31=0
$32=1
$100=199.100
$101=199.100
$102=199.100
$110=4000.000
$111=4000.000
$112=4000.000
$120=700.000
$121=700.000
$122=700.000
$130=810.000
$131=730.000
$132=90.000
ok
Waiting for connection…
Grbl 1.1g [‘$’ for help]
[MSG:‘$H’|‘$X’ to unlock]
error:9
G-code locked out during alarm or jog state.
[MSG:Caution: Unlocked]
ok
[VER:1.1g.20181112:LEADMACHINE1010LASER]
[OPT:V,15,128]
Target buffer size found
ok
$0=10
$1=255
$2=0
$3=4
$4=1
$5=0
$6=0
$10=0
$11=0.020
$12=0.002
$13=0
$20=0
$21=0
$22=1
$23=3
$24=100.000
$25=1000.000
$26=250
$27=5.000
$30=1000
$31=0
$32=1
$100=199.100
$101=199.100
$102=199.100
$110=4000.000
$111=4000.000
$112=4000.000
$120=700.000
$121=700.000
$122=700.000
$130=810.000
$131=730.000
$132=90.000
ok
<Idle|WPos:-271.050,-175.344,348.925|FS:0,0|WCO:271.050,175.344,-348.925>
ok
Starting stream
[MSG:Pgm End]
Stream completed in 0:00
<Idle|WPos:-261.050,-175.344,348.925|FS:0,0|WCO:271.050,175.344,-348.925>
ok
Starting stream
[MSG:Pgm End]
Stream completed in 0:00
<Idle|WPos:-251.050,-175.344,348.925|FS:0,0|WCO:271.050,175.344,-348.925>
ok
Starting stream
[MSG:Pgm End]
Stream completed in 0:00
<Idle|WPos:-241.050,-175.344,348.925|FS:0,0|WCO:271.050,175.344,-348.925>
ok
Starting stream
[MSG:Pgm End]
Stream completed in 0:00
<Idle|WPos:-231.050,-175.344,348.925|FS:0,0|WCO:271.050,175.344,-348.925>
ok
Starting stream
[MSG:Pgm End]
Stream completed in 0:00
<Idle|WPos:-221.050,-175.344,348.925|FS:0,0|WCO:271.050,175.344,-348.925>
ok
Starting stream
[MSG:Pgm End]
Stream completed in 0:00
<Idle|WPos:-211.050,-175.344,348.925|FS:0,0|WCO:271.050,175.344,-348.925>
ok
Starting stream
[MSG:Pgm End]
Stream completed in 0:00
<Idle|WPos:-201.050,-175.344,348.925|FS:0,0|WCO:271.050,175.344,-348.925>
ok
Starting stream
[MSG:Pgm End]
Stream completed in 0:00
<Idle|WPos:-191.050,-175.344,348.925|FS:0,0|WCO:271.050,175.344,-348.925>
ok
Starting stream
[MSG:Pgm End]
Stream completed in 0:00
<Idle|WPos:-181.050,-175.344,348.925|FS:0,0|WCO:271.050,175.344,-348.925>
ok
Starting stream
[MSG:Pgm End]
Stream completed in 0:00