Buy your K40 accessories at https://SuperGerbil.com
You need to log in to create posts and topics.

Help with settings

I've been working on getting my mini geribil set up with Laserweb but have a few problems.  I'm not sure which of all these are related or how but:

1. When I home the K40, the y axis seems to work fine, but the x axis will only tick back maybe a couple mm.  I'm new to all this so I'm not sure if this is related but when I jog the laser head back to the home position manually it seems to ignore the limit switches, which are mechanical.

2. In the settings I moved the offset of the machine to -200 for the x axis.  Is this right?, it looks right but seemingly every G Code I generate says that it is out of machine bounds and may halt.

3. Somewhere in the begenning of a job it likes to stop and give a check door warning.  Not sure how to get rid of this, I have nothing plugged into the safety door plug on the gerbil currently.

4. I get error 1 & 2 very often as well.


I have just a few times gotten through a job without any errors stopping me.  Could someone also please post the gerbil settings for me as well?


Thank you so much in advance for any help

Okay it seems that your limit switches have a bigger hysteresis distance than configured by default (2.5mm).

Set $27 to something like 4mm and see if that works for you (if it does than try to mimise the pull off switch distance as much as possible to avoid loss of working area). If that still cuase problems than increase it even further like 5mm until it works (e.g. homing is successful) .

If homing fails then test the limit switches (Normally open or normally closed) and configure the limit switch invert setting $5. See the blog about setting for all details What are $ Settings ?

Cheers, Paul awesome.tech

CNCjs 1.9.15 [Grbl]
Connected to COM324 with a baud rate of 115200
Grbl 1.1f ['$' for help]
client> $$
$0=10 (Step pulse time, microseconds)
$1=255 (Step idle delay, milliseconds)
$2=0 (Step pulse invert, mask)
$3=1 (Step direction invert, mask)
$4=0 (Invert step enable pin, boolean)
$5=1 (Invert limit pins, boolean)
$6=0 (Invert probe pin, boolean)
$7=0 (ATC M6, pulse/ff , just for CNC )
$8=100 (ATC Tool Td, milliseconds just for CNC )
$9=100 (ATC M6 Td, milliseconds, just for CNC)
$10=31 (Status report options, mask)
$11=0.010 (Junction deviation, millimeters)
$12=0.002 (Arc tolerance, millimeters)
$13=0 (Report in inches, boolean)
$19=0 (Softstart, milliseconds, just for CNC spindles)
$20=0 (Soft limits enable, boolean)
$21=0 (Hard limits enable, boolean)
$22=1 (Homing cycle enable, boolean)
$23=3 (Homing direction invert, mask)
$24=2000.000 (Homing locate feed rate, mm/min)
$25=2000.000 (Homing search seek rate, mm/min)
$26=250 (Homing switch debounce delay, milliseconds)
$27=2.500 (Homing switch pull-off distance, millimeters)
$28=5 (Spindle freq. 0 to 15) - 5 = 1000kHz
$30=1000 (Maximum spindle speed, RPM)
$31=1 (Minimum spindle speed, RPM)
$32=1 (Laser-mode enable, boolean)
$100=157.000 (X-axis travel resolution, step/mm)
$101=157.000 (Y-axis travel resolution, step/mm)
$102=160.000 (Z-axis travel resolution, step/mm)
$103=160.000 (a:stp/mm)
$104=160.000 (b:stp/mm)
$110=12000.000 (X-axis maximum rate, mm/min)
$111=5000.000 (Y-axis maximum rate, mm/min)
$112=5000.000 (Z-axis maximum rate, mm/min)
$113=5000.000 (a:mm/min)
$114=5000.000 (b:mm/min)
$120=8000.000 (X-axis acceleration, mm/sec^2)
$121=3000.000 (Y-axis acceleration, mm/sec^2)
$122=3000.000 (Z-axis acceleration, mm/sec^2)
$123=3000.000 (a:mm/s^2)
$124=3000.000 (b:mm/s^2)
$130=230.000 (X-axis maximum travel, millimeters)
(x:mm max)
$131=320.000 (Y-axis maximum travel, millimeters)
(y:mm max)
$132=200.000 (Z-axis maximum travel, millimeters)
(z:mm max)
$133=200.000 (a:mm max)
$134=200.000 (b:mm max)

Cheers, Paul awesome.tech

Awesome thank you for the info!  I did play around with the pull off setting and had eventually brought it past 5mm but it still did the same thing.


Any idea why I am getting multiple 'check door' errors?

Hi, There are additional pins on the mini gerbil for pause, resume and door. If these are not connected, you should not get any 'check door' messages. If you have connected it (for example to put a switch under the lid of the k40 door) then it might pick up electrical noise. Use a 100nF cap in parallel with the switch.

If you have not connected any door switch then I suspect a floating K40 earth. Check the connection between middle safety prong of your mains plug and the chassis of the k40 with an Ohm meter. It should conduct (less than 1 Ohm). If not, then the chassis is floating and correct (life hazzard!!!!). Let us know what you found.

Cheers, Paul awesome.tech

Fixed it!  Turns out the y axis limit switch had a loose connection, but seems to be all good now. Settings were easy to set up once I got that working

Thank you so much for all your help Paul

Hey Paul

I got a couple things I still am trying to smooth out.  The laser turns on as it is making its way to the job site, and I frequently get error 2 & 11, bad number format and line overflow.  All my settings look as they should, as well as the G Code, to my limited understanding.

These are communication issues. Either replace the USB cable for a shorter one, make sure you have a grounded k40 chassis or you could set the jumper on the board from ext5v to usb5v. If that does not help, have a look at your computer specs (performance, swap with another more powerful pc and see if that improves) and/or close down some programs and see if that helps. Pls let me know your findings and I might be able to hint to a solution.

Cheers, Paul

Cheers, Paul awesome.tech

Thanks for your quick reply Paul!  Fixed it!


I confirmed it was grounded and also replaced the usb cable with a new beefier one but the problems kept up.  I then was going through my settings again to post them and realized I had "$30=1000 (Maximum spindle speed, RPM)" as '=0', which not sure why the hell I had done that but.. I flipped that back up to 1000 and bam! everything seems to be perfect now.


For any other dull crayons out there looking for a sharpener this has seemingly fixed my check door, error 2, 11, and no error mid job stalls, as well as a host of other random issues.  It has been working great now no issues with LaserWeb CNCjs LightBurn.


Stoked I didn't give up, I learned a lot.  I'll be sure to post my Catan board when I slice that sucker up

Great to hear that it's solved!

Cheers Paul

Cheers, Paul awesome.tech
Buy your K40 accessories at https://SuperGerbil.com

Forum Registration