LONGER RAY 5 20W G-code exceeds machine travel?

My new Longer Ray5 20w will not burn but in a specific area. it will work in one small area and does not recognize the entire workspace. not sure what to do. i have limit switches installed and it will not home without crashing. any ideas out there would be great!!!

Does it crash where the limit switches are located?
Does the controller know limit switches are installed (parameter $22=1)?

It typically crashes into the front rail. if laser is in upper left quadrant then it returns to the limit switch fine. i have never told it there are limit switches since they work great (sometimes)

This is because there are only two. Software and controller parameters are what keeps it off the rails where there are no switches.

What is the advertized workarea of your laser?
What is the set size of the Lightburn workarea?

And, enter $$ in the Console window. Copy the list of $nn lines and paste in your reply.

both advertised and actual are 850x850
$0=10

$1=25

$2=0

$3=1

$4=0

$5=1

$6=0

$10=1

$11=0.010

$12=0.002

$13=0

$20=1

$21=1

$22=1

$23=3

$24=200.000

$25=2000.000

$26=250.000

$27=3.000

$28=1000.000

$30=1000.000

$31=0.000

$32=1

$38=1

$39=1

$40=250

$41=40

$42=1300

$43=5

$44=1

$45=1

$50=1

$70=15

$71=180.000

$72=1500

$100=80.000

$101=80.000

$102=250.000

$103=100.000

$104=100.000

$105=100.000

$110=6000.000

$111=6000.000

$112=1000.000

$113=1000.000

$114=1000.000

$115=1000.000

$120=500.000

$121=500.000

$122=10.000

$123=200.000

$124=200.000

$125=200.000

$130=400.000

$131=365.000

$132=200.000

$133=300.000

$134=300.000

$135=300.000

ok

[MSG:Start mDNS with hostname:http://mks_grbl.local/]

[MSG:HTTP Started]

[MSG:TELNET Started 8080]