Lightburn keeps sending my machine out of bounds

Please look at the link to a video I have made it will show all my issues

Sainsmart prover 3040 upgrade form 3018

https://drive.google.com/drive/folders/1RtVVWtdr7r1AkTjsv_h0Dk4dmkizVzmx

ok

Starting stream

$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=0

$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=50.000

$121=10.000

$122=10.000

$130=500.000

$131=400.000

$132=100.000

Stream completed in 0:00

The first test I’d recommend is draw a 20mm square near home and the origin.
2022-04-20_16-59-59 20mm by 20mm box near origin

Then Frame it to see if it’s about the right size.
This can confirm if it’s a position problem or an axis calibration problem.

Your X axis lead-screw looks considerably steeper than mine. :slight_smile:

hi mate yes i run the 20mm box seem to be ok
what do you mean about the X axis lead-screw?

1 Like

Saw your video. Seems to me an offset issue. I tend not to think it’s a calibration issue since you can frame your perimeter correctly using current position.

Can you home and then run these commands in Console and return results?

$I
$$
$#
?
1 Like

hi mate sorry for delay yes here they are

this is as start up
ok

Starting stream

$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=0

$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=50.000

$121=10.000

$122=10.000

$130=500.000

$131=400.000

$132=100.000

Stream completed in 0:00

ok

$I

$$

$#

?

[VER:1.1f.20170801:]

[OPT:V,15,128]

Target buffer size found

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=0

$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=50.000

$121=10.000

$122=10.000

$130=500.000

$131=400.000

$132=100.000

ok

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

[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

ok

This indicates that you’re working in a negative coordinate system which could be creating issues.

Run these commands in Console:

$10=0
G10 L2 P1 X-499 Y-399

Power cycle then test.

hi mate we have spoken before on here sorry for not replying back for some reason i cant find the thread

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:00

<Idle|MPos:2.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:00

$10=0

ok

G10 L2 P1 X-499 Y-399

ok

ok

Starting stream

$0=10

$1=25

$2=0

$3=2

$4=0

$5=0

$6=0

$10=0

$11=0.010

$12=0.002

$13=0

$20=0

$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=50.000

$121=10.000

$122=10.000

$130=500.000

$131=400.000

$132=100.000

Stream completed in 0:00

after power cycle

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

Starting stream

ALARM:1

Hard limit triggered. Machine position is likely lost due to sudden and immediate halt. Re-homing is highly recommended.

On or near line 4:

Stream completed in 0:00

[MSG:Reset to continue]

[MSG:Pgm End]

ok

Grbl 1.1f [’$’ for help]

[MSG:Check Limits]

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

[MSG:Caution: Unlocked]

ok

ok

Starting stream

$0=10

$1=25

$2=0

$3=2

$4=0

$5=0

$6=0

$10=0

$11=0.010

$12=0.002

$13=0

$20=0

$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=50.000

$121=10.000

$122=10.000

$130=500.000

$131=400.000

$132=100.000

Stream completed in 0:00

i tried to do set laser position in the centre of my work and it hit the switch straight away ?

Can you home and then run ? in console and return results?

Also, confirm that home is lower-left on workspace, yes?

i can home but what do you mean run?

also i have spoken with sainsmart they have confirm that the homing is set as top left on this machine

so i homed it then drawn a 20x20mm box on absolute coordinates which worked

Starting stream

Stream completed in 0:00

ok

ok

ok

Starting stream

Layer C00

[MSG:Pgm End]

Stream completed in 0:35

Starting stream

$0=10

$1=25

$2=0

$3=2

$4=0

$5=0

$6=0

$10=0

$11=0.010

$12=0.002

$13=0

$20=0

$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=50.000

$121=10.000

$122=10.000

$130=500.000

$131=400.000

$132=100.000

Stream completed in 0:00

I wanted you to enter ? into the Console.

I thought I saw the machine homing to the front left of the bed in the video. Is that not the case?

Also please confirm that your bed size is 500 mm wide by 400 mm tall.

hi mate sorry yes front left

sorry about misunderstanding on the (?)

this is after homing
?

<Idle|WPos:0.000,0.000,-1.000|FS:0,0|WCO:-499.000,-399.000,0.000>

ok

in the screenshot above the outer box is as far as my machine will go before hitting switches

my maximum travel is 260mm left to right
and 316mm up and down
sorry don’t know which it is x or y

Hmm… in that case I do wonder if @JohnJohn was on the right track about calibration. I don’t understand how you were able to use current position for the perimeter then.

Change these to:

$100=80
$101=80
$102=80

Rehome and retest limits. Then draw a square with specific dimensions like 100x100mm. Then measure the burned dimensions.

We may want to fix your max travel dimensions and the offset later since your size in GRBL is currently 500x400 mm.

hi mate tried to rehome and got this message

ok

ok

ok

$100=80

ok

$101=80

ok

$102=80

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.1f [’$’ for help]

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

[MSG:Caution: Unlocked]

ok

it went really slowly trying to the z up and stopped

Something is not lining up for me. Let’s start again. Let’s put the steps/mm back to original.

$100=800
$101=800
$102=800

Rehome.

Then type this into console:

G0 X10 Y10
?

Can you return the result? This should have made the laser head move 10 mm right and 10 mm up. Is that what happened?

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.1f [‘$’ for help]

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

[MSG:Caution: Unlocked]

ok

$100=800

ok

$101=800

ok

ok

$102=800

ok

ok

G0 X10 Y10

ok

?

<Idle|WPos:10.000,10.000,-1.000|FS:0,0|WCO:-499.000,-399.000,0.000>

ok

yes it moved on both axis

If you now do this:

G90
G0 X260 Y316

Does this take you to the top right corner?

1 Like

yes top right

So what exactly is not working now? under what circumstances does it not function correclty?

in all fairness the issue seems to be ok right now but not sure what we have done to change it? i have just used center finder that worked set laser position works these didn’t work before :smiley: