Welcome! Log In Create A New Profile

Advanced

LaserBot Set Units to Inches/MM

Posted by rfresh737 
LaserBot Set Units to Inches/MM
March 24, 2017 06: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!
VDX
Re: LaserBot Set Units to Inches/MM
March 24, 2017 06:58PM
... AFAIK "G20" will only set inches and "G21" millimeters as coordinates base.

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


Viktor
--------
Aufruf zum Projekt "Müll-freie Meere" - [reprap.org] -- Deutsche Facebook-Gruppe - [www.facebook.com]

Call for the project "garbage-free seas" - [reprap.org]
Re: LaserBot Set Units to Inches/MM
March 24, 2017 07: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.
VDX
Re: LaserBot Set Units to Inches/MM
March 24, 2017 07: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


Viktor
--------
Aufruf zum Projekt "Müll-freie Meere" - [reprap.org] -- Deutsche Facebook-Gruppe - [www.facebook.com]

Call for the project "garbage-free seas" - [reprap.org]
Re: LaserBot Set Units to Inches/MM
March 27, 2017 08: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:

G91
G21
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
M30
Re: LaserBot Set Units to Inches/MM
March 29, 2017 01:40PM
Resolved!

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