svenhb / GRBL-Plotter

A GCode sender (not only for lasers or plotters) for up to two GRBL controller. SVG, DXF, HPGL import. 6 axis DRO.
https://grbl-plotter.de/
GNU General Public License v3.0
647 stars 172 forks source link

Pen Up/Down via stepper #395

Closed Marmadoc closed 2 months ago

Marmadoc commented 2 months ago

I consider to switch from servo to stepper. I have few questions related to g-code generation Z-Axis

  1. line 16 G00 Z2 - I understand that it is PU. Z2 is from setup - but what exactly is this number? it is mm? or steps? or ... it is rapid movement related to GRBL #112 - correct?

  2. Line 17 - M3 S100 - why this line is needed - and what is s number related to.

  3. Line 18 - G04 P1 - delay - it use only once in the code. With stepper Pen Up/Dow delay after each pen movement delay is not needed?

  4. Line 22 - G01 Z-2.00 F1000 (PD) - if #112 is set to 1000 - what is different between code in line 16 and this one?

  5. Line 23 - G01 X47.222 Y32.501 F800 - why here feed is reduced?

  6. Last one - svg drag and drop into GRBL is OK. But when I like to reload this file or open different file I have to close program and open it again. Any different way?

svenhb commented 2 months ago

1) by default it is mm, you can change the units via G20/G21: https://linuxcnc.org/docs/html/gcode/g-code.html#gcode:g20-g21 see also https://grbl-plotter.de/index.php?id=form-setup-1#import-parameter 2) To switch on the spindle of the router 3) Wait 1 second to reach spindle speed - see my setup below to avoid spindle 4) Line 16 is pen-up before the first move, line 22 is pen down to start drawing 5) line 22 uses feed-rate for z axis, line 23 uses feedrate for xy axis - check https://grbl-plotter.de/index.php?id=form-setup-3 6) What exactly happens? You can reload via menu, via right click on 2D view. Take care of file loading options, if you want to add new content to current content: https://grbl-plotter.de/index.php?id=form-setup-4#file-loading

image image image

To not use the spindle ans get rid of 2) and 3): image

Marmadoc commented 2 months ago

All Make sense. Right click on 2D view it was really hidden gem. Thank You

svenhb commented 2 months ago

Note: after streaming the gcode of an imported graphic, the last used file is the gcode file, not the graphic - any change in import parameters have no effect on "reload"....