Welcome! Log In Create A New Profile


LaserBot Set Units to Inches/MM

Posted by rfresh737 
LaserBot Set Units to Inches/MM
March 24, 2017 03:17PM
I've got a laserBot and I'm trying to get my CAM software to work with it.

In my Visual Studio debugger, I see that G20 and G21 are not recognized by the laserBot MegaPi Marlin firmware. I can't google anywhere and find what g-code words they are using for these two settings?

Thanks for any help!
Re: LaserBot Set Units to Inches/MM
March 24, 2017 03:58PM
... AFAIK "G20" will only set inches and "G21" millimeters as coordinates base.

As most firmwares use millimeters, you can remove them ...

Re: LaserBot Set Units to Inches/MM
March 24, 2017 04:02PM
My CAM software needs to support Inches. I've since found out that laserBot/MegaPi/Marlin firmware is always defaulted to MM and if I want inches, I have to do the conversion from inches to mm in code. I find that hard to believe since Marlin, by default, does support G20 and G21 g-code words. I guess laserBot is designed to never work in inches. That just amazes me.
Re: LaserBot Set Units to Inches/MM
March 24, 2017 04:45PM
... I'm using Marlin4Due and no functions for G20/G21 found ... so only meant for MM.

But my CAM (a modified Pronterface variant) has different import filters/plugins for common CNC-formats, which I've programmed together with my wife ... so no problem to add metric/imperial conversions by need winking smiley

Re: LaserBot Set Units to Inches/MM
March 27, 2017 05:11PM
I've compiled Marlin 1.1.0 RC-8 with the 'flipped Axis' branch.

With this version I've tested that G90/G91 and G20/G21 work OK.

The current problem I'm having is that I can only send single line g-code commands to the laserBot machine. If I try to send the following, only the first line executes:

G01 X0000.0000 Y0005.0000 Z0000.0000 F3400
M4 P128
G02 X0005.0000 Y0005.0000 I0005.0000 J0000.0000 F850
G02 X0005.0000 Y-0005.0000 I0000.0000 J-0005.0000 F850
G02 X-0005.0000 Y-0005.0000 I-0005.0000 J0000.0000 F850
G02 X-0005.0000 Y0005.0000 I0000.0000 J0005.0000 F850 ( pass 1 )
M4 P0
G01 X0012.0000 Y-0005.0000 Z0000.0000 F3400
Re: LaserBot Set Units to Inches/MM
March 29, 2017 10:40AM

I flashed Marlin 1.1.0 RC-8 and now my BenCutLaser CAM software is working with the laserBot...!!!

G20/G21 and G90/G91 and Arcs and Circles are working fine.
Sorry, only registered users may post in this forum.

Click here to login