Having a nightmare with homing and limit switches

Wanted you to go through this cycle again. But perhaps don’t go to the full extreme corners. The readings from your previous pass were odd.

First do a homing cycle. Then perform the following steps. Only use jogging controls within LB:

  1. Type ? in Console. Capture the output.
  2. Move to back-right corner. Type ? in Console. Capture the output.
  3. Move to front-right corner. Type ? in Console. Capture the output.
  4. Move to front-left corner. Type ? in Console. Capture the output.

hi mate sorry for late reply lb wouldnt let me for some reason im a new user

ok

?

<Idle|MPos:-499.000,-399.000,-1.000|Bf:15,127|FS:0,0|WCO:-231.000,-231.000,-87.367>

ok

Waiting for connection…

Grbl 1.1f [’$’ for help]

[MSG:’$H’|’$X’ to unlock]

error:9

G-code locked out during alarm or jog state.

[MSG:Caution: Unlocked]

ok

[VER:1.1f.20170801:]

[OPT:V,15,128]

Target buffer size found

ok

?

<Idle|MPos:0.000,0.000,0.000|Bf:15,127|FS:0,0|WCO:-231.000,-231.000,-87.367>

ok

Waiting for connection…

Grbl 1.1f [’$’ for help]

[MSG:’$H’|’$X’ to unlock]

error:9

G-code locked out during alarm or jog state.

[MSG:Caution: Unlocked]

ok

[VER:1.1f.20170801:]

[OPT:V,15,128]

Target buffer size found

ok

?

<Idle|MPos:0.000,0.000,0.000|Bf:15,127|FS:0,0|WCO:-231.000,-231.000,-87.367>

ok

Waiting for connection…

Grbl 1.1f [’$’ for help]

[MSG:’$H’|’$X’ to unlock]

error:9

G-code locked out during alarm or jog state.

[MSG:Caution: Unlocked]

ok

[VER:1.1f.20170801:]

[OPT:V,15,128]

Target buffer size found

ok

?

<Idle|MPos:0.000,0.000,0.000|Bf:15,127|FS:0,0|WCO:-231.000,-231.000,-87.367>

ok

Hmm… I’m not liking those results. And not sure what to do with them.

The MPos is the coordinates that the machine believes it’s at. The last 3 are all showing that the machine believes it’s at 0,0. That shouldn’t be the case.

Let’s do this. Let’s remove your offsets and see if that changes anything. It shouldn’t but your offsets are kind of odd.

Enter these into Console. One at a time.

G10 L2 P1 X0 Y0 Z0
G10 L2 P2 X0 Y0 Z0

After that home again and enter into Console:

$#

Then repeat this procedure:

  1. Type ? in Console. Capture the output.
  2. Move to back-right corner. Type ? in Console. Capture the output.
  3. Move to front-right corner. Type ? in Console. Capture the output.
  4. Move to front-left corner. Type ? in Console. Capture the output.

ok

G10 L2 P1 X0 Y0 Z0

ok

G10 L2 P2 X0 Y0 Z0

ok
<Idle|MPos:18.244,30.453,-31.000|Bf:15,127|FS:0,0|WCO:0.000,0.000,0.000>

ok
ok

Waiting for connection…

Grbl 1.1f [‘$’ for help]

[MSG:‘$H’|‘$X’ to unlock]

error:9

G-code locked out during alarm or jog state.

[MSG:Caution: Unlocked]

ok

[VER:1.1f.20170801:]

[OPT:V,15,128]

Target buffer size found

ok

?

<Idle|MPos:0.000,0.000,0.000|Bf:15,127|FS:0,0|WCO:0.000,0.000,0.000>

ok

Waiting for connection…

Grbl 1.1f [‘$’ for help]

[MSG:‘$H’|‘$X’ to unlock]

error:9

G-code locked out during alarm or jog state.

[MSG:Caution: Unlocked]

ok

[VER:1.1f.20170801:]

[OPT:V,15,128]

Target buffer size found

ok

?

<Idle|MPos:0.000,0.000,0.000|Bf:15,127|FS:0,0|WCO:0.000,0.000,0.000>

ok

Waiting for connection…

Grbl 1.1f [‘$’ for help]

[MSG:‘$H’|‘$X’ to unlock]

error:9

G-code locked out during alarm or jog state.

[MSG:Caution: Unlocked]

ok

[VER:1.1f.20170801:]

[OPT:V,15,128]

Target buffer size found

ok

?

<Idle|MPos:0.000,0.000,0.000|Bf:15,127|FS:0,0|WCO:0.000,0.000,0.000>

ok

thanks for all this mate

sorry buddy i missed a step out here it is

ok

G10 L2 P1 X0 Y0 Z0

ok

G10 L2 P2 X0 Y0 Z0

ok

$#

[G54:0.000,0.000,0.000]

[G55:0.000,0.000,0.000]

[G56:0.000,0.000,0.000]

[G57:0.000,0.000,0.000]

[G58:0.000,0.000,0.000]

[G59:0.000,0.000,0.000]

[G28:0.000,0.000,0.000]

[G30:0.000,0.000,0.000]

[G92:0.000,0.000,0.000]

[TLO:0.000]

[PRB:0.000,0.000,0.000:0]

ok

?

<Idle|MPos:0.000,0.000,0.000|Bf:15,127|FS:0,0|WCO:0.000,0.000,0.000>

ok

Waiting for connection…

Grbl 1.1f [’$’ for help]

[MSG:’$H’|’$X’ to unlock]

error:9

G-code locked out during alarm or jog state.

[MSG:Caution: Unlocked]

ok

[VER:1.1f.20170801:]

[OPT:V,15,128]

Target buffer size found

ok

?

<Idle|MPos:0.000,0.000,0.000|Bf:15,127|FS:0,0|WCO:0.000,0.000,0.000>

ok

Waiting for connection…

Grbl 1.1f [’$’ for help]

[MSG:’$H’|’$X’ to unlock]

error:9

G-code locked out during alarm or jog state.

[MSG:Caution: Unlocked]

ok

[VER:1.1f.20170801:]

[OPT:V,15,128]

Target buffer size found

ok

?

<Idle|MPos:0.000,0.000,0.000|Bf:15,127|FS:0,0|WCO:0.000,0.000,0.000>

ok

Waiting for connection…

Grbl 1.1f [’$’ for help]

[MSG:’$H’|’$X’ to unlock]

error:9

G-code locked out during alarm or jog state.

[MSG:Caution: Unlocked]

ok

[VER:1.1f.20170801:]

[OPT:V,15,128]

Target buffer size found

ok

?

<Idle|MPos:0.000,0.000,0.000|Bf:15,127|FS:0,0|WCO:0.000,0.000,0.000>

ok

Something is fundamentally wrong. Error 9 is a homing error which I thought we were past.

Try this. Enable Show All in Console.

Then power off the laser. Then power on. Capture everything in Console Output after power on.

Also, can you describe in as much detail as possible what happens after you power on?

Also, it looks like the clearing of the offsets worked so that’s not a factor now.

Hi mate literally nothing happens when i turn laser off and on?

somehow managed to run a burn although the laser isn’t on not sure if that means anything
sorry buddy wish i could tell you more i really appreciate this

Can you still go through the process of capturing the output in Console when you turn on?

Normally your laser should go through a homing cycle when it’s turned on. Curious why that’s not happening. Is this true even if you turn on the machine with the laser head near the center of the bed?

Can you see a light when you push the Fire button in the Move window. If there is no Fire button enable it on Device Settings. Increase power on Fire button up to 5% if you can’t see the light at lower powers. Make sure you wear your protective goggles.

hi mate really sorry about delay my pc blue screen had to get anew one its been murder im not sure were this leaves me now are alll the settings we have done reset?

yes mate can see light and can burn images

Many of the changes made were on the controller itself so should be fine.

Tough situation with the computer. That sucks.

It’s not clear to me why your machine is not homing at startup. If you press the home button in LightBurn does a homing cycle begin?

If you use the jogging control and hit the “get position” button, do you see small changes occur in the position in accordance with the jog? If so, can you work out when you go from a proper position to suddenly 0,0? See if you can map out the relative position of coordinates across the 4 quadrants of your laser bed. Ultimately I’d like to understand the position of the 4 corners so that we can make sure your origin is set correctly and if any offset needs to be configured.

hi mate

yes homing works but also at top left i have turn the homing on start up off as i end up having to jog to the middle to do work and this works if i press home button but regardless of were i set it it always goes back to same place

Do you mean to say it always goes to top left to home no matter where your current position? Of so that’s expected behavior. Homing means you’re reestablishing your laser position.

Have you worked out the coordinate positions of the 4 corners?

hi mate sorry for late reply
yes it will home back left corner im having a real bad time with it i cant burn anything as my machine doesn’t know were it is if i was to add some text bottom left corner it will fire off to beyond the limits of my board hits limit switches so much so 3 of the pins have fell off them
so i homed it just then jogged it and can see the coordinates changing as i move them

get position is blank when i start up i hit home then it goes to x-499.00 y0 z -1.00 u-0.00

https://drive.google.com/file/d/1DKQbs-s6ogaSCrifsexMPXFe_njox1iA/view?usp=drivesdk

Based on the video there’s something wrong with your homing switch setup.

  1. When homing it seems to never actually finish the homing sequence and is jamming the head to the left corner. I couldn’t tell from the video if it was failing on X or Y.
  2. When you tried the framing operation the head stopped after triggering a limit switch.

Questions:

  1. What type of switches do you have? From the video it looked like you might have had an inductive proximity sensor located on the back bottom rail?
  2. Where are the sensors located exactly? Does it actually make sense that the laser is trying to home back left? Are there sensors at those locations?
  3. Did the sensors come with the laser from factory or you added these? Similarly were these pre-wired or you wired them?

Try to respond systematically to each question as different responses can lead to different diagnoses.

Hi mate that one at the back just before the video yje metal clip fell of it they are being hit every time I have ordered some more from Amazon the ones that are on we’re the standard ones when I brought the machine and were already place din that location

Genmitsu 6PCS Micro Limit Switches with 1M 3 Pin Cable for 3018-PROVer/3018-MX3/3018-PROVer Mach3 https://www.amazon.co.uk/dp/B08P1D6WTR/ref=cm_sw_r_apan_glt_i_G5FSZ8WQXZ5506AWFHKP?_encoding=UTF8&psc=1

All the 3 of the sensors activate when in homing it goes to one then comes away about 1mm then goes back in slightly prior to the back bottom one falling off :joy: it didn’t seem much of a issue

Just seems like the machine thinks I have a bigger bed then what I have got

I also tried to reduce the size of my work area 100x100 it still went out of bounds

Just a thought in the devices set up it says to enter my bed size in mm would lightburn be in a different measurement?

I really don’t know what to do I will look in instructions of when I got the machine see if there is any troubleshooting with the switches also I’ll have a look make sure that the wires are connected correctly

This defines the known size of your working area in the controller. However, this should really only come into play for soft limits which are disabled in your controller ($20=0).

A search of your machine reveals that it’s supposed to have a working area of 260 x 155 x 35mm.

To address in grbl configuration:

$130=260
$131=155
$132=35

Enable soft-limits with:

$20=1

Make sure that Working Size is defined correctly in Device Settings. It should be Width of 260 mm and Height of 155 mm.

Also, you have your origin set for top/back-left. I’m fairly certain that your machine is meant to have origin at front/bottom-left even with it homing to the back left. Do your jogging controls work in the direction that you expect?

Okay, that wasn’t apparent from the video… seemed like it was jamming up against it. Was surprised it didn’t go into error condition.

The error when you attempted to frame is a hard-limit error. That means a switch was triggered. Do you know which one was triggered?

All GRBL configurations should be in mm. In LightBurn, the work area dynamically switches units based on what you have selected for presentation. If you have selected inches it will show in inches. If you have selected mm it will show in mm. It will list the units there so there should be no question about what it expects. For configuration I recommend you stick to mm. You can switch back to inches if you like after that.

ok so directions left and right always work correctly and the z but sometimes the bed movement switches i have no clue why and i don’t change any settings sometimes up goes down and visa versa

i have limit switches coming today ill fit them i don’t know nearly anything about this it may well of been jamming really not sure what its supposed to do and not supposed to do

i massively appreciate all this time your giving me

i have inputted them grbl settings here are the results now

Waiting for connection…

Grbl 1.1f [’$’ for help]

[MSG:’$H’|’$X’ to unlock]

error:9

G-code locked out during alarm or jog state.

[MSG:Caution: Unlocked]

ok

[VER:1.1f.20170801:]

[OPT:V,15,128]

Target buffer size found

ok

<Idle|MPos:0.000,0.000,0.000|Bf:15,127|FS:0,0|WCO:0.000,0.000,0.000>

ok

Starting stream

[MSG:Pgm End]

Stream completed in 0:01

<Idle|MPos:-5.000,0.000,0.000|Bf:15,127|FS:0,0|WCO:0.000,0.000,0.000>

ok

Starting stream

[MSG:Pgm End]

Stream completed in 0:01

<Idle|MPos:-5.000,-5.000,0.000|Bf:15,127|FS:0,0|WCO:0.000,0.000,0.000>

ok

Starting stream

[MSG:Pgm End]

Stream completed in 0:01

<Idle|MPos:-5.000,-10.000,0.000|Bf:15,127|FS:0,0|WCO:0.000,0.000,0.000>

ok

Starting stream

[MSG:Pgm End]

Stream completed in 0:01

Waiting for connection…

Grbl 1.1f [’$’ for help]

[MSG:’$H’|’$X’ to unlock]

error:9

G-code locked out during alarm or jog state.

[MSG:Caution: Unlocked]

ok

[VER:1.1f.20170801:]

[OPT:V,15,128]

Target buffer size found

ok

$130=260

ok

131=155

error:1

G-code words consist of a letter and a value. Letter was not found.

ok

131=155

error:1

G-code words consist of a letter and a value. Letter was not found.

$131=155

ok

$132=35

ok

$20=1

ok

$$

$0=10

$1=25

$2=0

$3=2

$4=0

$5=0

$6=0

$10=3

$11=0.010

$12=0.002

$13=0

$20=1

$21=1

$22=1

$23=3

$24=25.000

$25=500.000

$26=250

$27=1.000

$30=255

$31=0

$32=1

$100=800.000

$101=800.000

$102=800.000

$110=2000.000

$111=2000.000

$112=600.000

$120=10.000

$121=10.000

$122=10.000

$130=260.000

$131=155.000

$132=35.000

ok

hi mate this box is coming up n it wont let me frame or go to any location either this message in console when i try to “set laser position”
Starting stream

ALARM:2

G-code motion target exceeds machine travel. Machine position safely retained. Alarm may be unlocked. (Right-click the ‘Devices’ button to reset the connection)

On or near line 2:

Stream completed in 0:00

[MSG:Reset to continue]

ok

Grbl 1.1f [’$’ for help]

[MSG:’$H’|’$X’ to unlock]

[MSG:Caution: Unlocked]

ok

it also wont let me jog now

Grbl 1.1f [’$’ for help]

[MSG:’$H’|’$X’ to unlock]

[MSG:Caution: Unlocked]

ok

$x

ok

<Idle|MPos:0.000,0.000,0.000|Bf:15,127|FS:0,0|WCO:0.000,0.000,0.000>

ok

Starting stream

ALARM:2

G-code motion target exceeds machine travel. Machine position safely retained. Alarm may be unlocked. (Right-click the ‘Devices’ button to reset the connection)

On or near line 2:

Stream completed in 0:00

[MSG:Reset to continue]

ok

Grbl 1.1f [’$’ for help]

[MSG:’$H’|’$X’ to unlock]

[MSG:Caution: Unlocked]

ok