gnea / grbl

An open source, embedded, high performance g-code-parser and CNC milling controller written in optimized C that will run on a straight Arduino
https://github.com/gnea/grbl/wiki
Other
4.07k stars 1.61k forks source link

grbl config #303

Closed ghost closed 6 years ago

ghost commented 6 years ago

I am very new to cnc so please bear with me. I just got my cnc built and the electronics set up and everything is communicating just fine (at least I think it is). So I thought I would at first use a pen to draw a picture of a basic shape produced through Inkscape and gcodetools. Then I had ugs send the gcode to grbl through a cncsheild connected to arduino. It produced a picture but it was downsized from about 6 x 6 inches to about a half inch square. I spent the afternoon trying to track down where the problem is but am having no luck. I thought it might have something to do with my firmware settings but I don't know. Can anyone recognize where I have erred? Thks Bruce

neilferreri commented 6 years ago

@bwg16 If you jog the machine, does it move the correct distance on each axis?

chamnit commented 6 years ago

Grbl's distance units are millimeters. Make sure that you have configured Grbl correctly. Also, check your g-code to see if it sets inches or millimeters mode (G20 / G21) depending on what it was generated for.

ghost commented 6 years ago

At first only x and y moved correctly. Z was backwards. I fiddled with $3 and it worked it i set it to $3=4. Then all three moved in the right direction

ghost commented 6 years ago

g20 or g21 seem to have the same results

neilferreri commented 6 years ago

Is $13=1?

On Nov 6, 2017 7:42 PM, "bwg16" notifications@github.com wrote:

g20 or g21 seem to have the same results

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gnea/grbl/issues/303#issuecomment-342336873, or mute the thread https://github.com/notifications/unsubscribe-auth/AC1FbsVnr0qUS0P1s8j-FkyduudgG3b4ks5sz6dcgaJpZM4QUFrx .

jahnj0584 commented 6 years ago

youll want to use this to make your parts on size https://nathan7.eu/stuff/RepRapCalculator/RepRapCalculator.html#MotorStuffPrecise

On Mon, Nov 6, 2017 at 8:42 PM, bwg16 notifications@github.com wrote:

g20 or g21 seem to have the same results

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gnea/grbl/issues/303#issuecomment-342336873, or mute the thread https://github.com/notifications/unsubscribe-auth/AQlzDGd9LLCvKdlUDx3BoCBfrhmsv2bOks5sz6dfgaJpZM4QUFrx .

ghost commented 6 years ago

No. $13 is 0

neilferreri commented 6 years ago

Can you post or share a link to your Gcode?

On Nov 6, 2017 8:07 PM, "bwg16" notifications@github.com wrote:

No. $13 is 0

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gnea/grbl/issues/303#issuecomment-342341679, or mute the thread https://github.com/notifications/unsubscribe-auth/AC1FbnAF2e8moZrC5TBf4AgRwDEnj-8uks5sz61lgaJpZM4QUFrx .

ghost commented 6 years ago

spiral_0003.txt

neilferreri commented 6 years ago

Ok, you're gCode's extents are less than 10mm square. The G21 at the start of your code specifies that all units are millimeters. That said, if you change that to a G20, preview your code before you send it. Didn't look like a pen plotter code to me.

On Nov 6, 2017 8:57 PM, "bwg16" notifications@github.com wrote:

spiral_0003.txt https://github.com/gnea/grbl/files/1448310/spiral_0003.txt

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gnea/grbl/issues/303#issuecomment-342350558, or mute the thread https://github.com/notifications/unsubscribe-auth/AC1Fbk6f43wOp3sOugFBG4q_KPjp01gBks5sz7j1gaJpZM4QUFrx .

ghost commented 6 years ago

Thanks but I need to ask. Are those gcode extents set by inkscape or gcodetools or ugs. I don't wnat you to do all the work but if I could just get a start, I'll take it from there.

neilferreri commented 6 years ago

That's coming from inkscape/gcodetools. I haven't used gcodetools, but I've checked it out. I believe there's a scale that shows up on the page when you run it. Your design might have been too small for you to see the scale.

On Nov 6, 2017 9:13 PM, "bwg16" notifications@github.com wrote:

Thanks but I need to ask. Are those gcode extents set by inkscape or gcodetools or ugs. I don't wnat you to do all the work but if I could just get a start, I'll take it from there.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gnea/grbl/issues/303#issuecomment-342353348, or mute the thread https://github.com/notifications/unsubscribe-auth/AC1Fbv4OLnIjlhVeEy4qJKiUUKTkByXPks5sz7zFgaJpZM4QUFrx .

ghost commented 6 years ago

Thanks to you I have a starting point. Gcodetools operates kind of crazily (to me, anyway) but I'll go back and work from there. Thanks again.

neilferreri commented 6 years ago

No problem. If you're just getting started, you might want to look at Easel http://easel.inventables.com/from Inventables. It is super easy to generate basic gcode. Their forums are a great place to get help too.

On Mon, Nov 6, 2017 at 9:24 PM, bwg16 notifications@github.com wrote:

Thanks to you I have a starting point. Gcodetools operates kind of crazily (to me, anyway) but I'll go back and work from there. Thanks again.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gnea/grbl/issues/303#issuecomment-342355134, or mute the thread https://github.com/notifications/unsubscribe-auth/AC1FbjGY21maRXwNEfZFIXY21tysn-TPks5sz79JgaJpZM4QUFrx .

ghost commented 6 years ago

I looked at that but didnt find a driver for linux

neilferreri commented 6 years ago

The driver is only necessary to communicate with the machine. You can export the gCode and use whatever sender you want. I recommend CNCjs as its UI is the most intuitive..

On Mon, Nov 6, 2017 at 9:31 PM, bwg16 notifications@github.com wrote:

I looked at that but didnt find a driver for linux

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gnea/grbl/issues/303#issuecomment-342356334, or mute the thread https://github.com/notifications/unsubscribe-auth/AC1FbgI7q88zj1FSvzcBtXscgOfjlWkVks5sz8D6gaJpZM4QUFrx .

ghost commented 6 years ago

that makes sense . if i can get it to export gcode i can use ugs to send it to grbl

neilferreri commented 6 years ago

Correct

On Nov 6, 2017 9:37 PM, "bwg16" notifications@github.com wrote:

that makes sense . if i can get it to export gcode i can use ugs to send it to grbl

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gnea/grbl/issues/303#issuecomment-342357184, or mute the thread https://github.com/notifications/unsubscribe-auth/AC1FbtyE0ZDBgIH1hprCBD5tChpkfjiFks5sz8JfgaJpZM4QUFrx .

ghost commented 6 years ago

thanks again neil. you have been a BIG help.

biasedlogic commented 6 years ago

I found using either Grbl-plotter or f-engrave (both free software) to get plotter-like g code based on svg picture (f-engrave can also do bitmaps) and Candle to preview it/send to machine to be easiest debugging combo, as each of these programs shows live how big the expected / generated code in real world units will be.

Gcodetools i found to be very temperamental and it's got it's own scaling settings which are completely independent of inkscape dimension units.