Thingiverse

Drawbot Inkscape GCode Exporter plugin by jbooblian
by Thingiverse
Last crawled date: 4 years, 5 months ago
This is a modified version of the J Tech Photonics Laser Tool plugin for Inkscape that utilises the same laser power-on delay in the moment immediately after a stroke is drawn, while the servo is lifting the pen, to prevent additional pen-marks at the end of the stroke.
For an example image of the difference this makes see this image. Before on the left and after on the right: https://www.julianbutler.com/Art/Plotter/i-4KP9wjM/A
Here are two example snippets of GCode showing the difference this change makes... I've annotated it to make it clearer with '<----' etc
Original GCode produced by the laser.py:
G1 F5000 <--- linear move, feed rate 5000
G1 X74.0287 Y91.9385 <--- coordinates of next stroke start position
G4 P0 <--- pause for 0 seconds
M03 S30 <--- pen down command [laser on]
G4 P0.150000 <--- laser power-on delay [time for the pen to come down]
G1 F3000.000000 <--- linear move, feed rate 3000
G1 X89.4738 Y76.492 <--- stroke coordinate end position
G4 P0 <--- pause for 0 seconds
M05 S0 <--- pen up command [laser power-off]
Modified version produces this:
G1 F5000 <--- linear move, feed rate 5000
G1 X74.0287 Y91.9385 <--- coordinates of next stroke start position
G4 P0 <--- pause for 0 seconds
M03 S30 <--- pen down command [laser on]
G4 P0.150000 <--- laser power-on delay [time for the pen to come down]
G1 F3000.000000 <--- linear move, feed rate 3000
G1 X89.4738 Y76.492 <--- stroke coordinate end position
G4 P0 <--- pause for 0 seconds
M05 S0 <--- pen up command [laser power-off]G4 P0.150000 <--- laser power-on delay [time for the pen to come up this time]
Note: the model uploaded is just a stand-in to make this a valid remix [even though it's only really for a python file]
For an example image of the difference this makes see this image. Before on the left and after on the right: https://www.julianbutler.com/Art/Plotter/i-4KP9wjM/A
Here are two example snippets of GCode showing the difference this change makes... I've annotated it to make it clearer with '<----' etc
Original GCode produced by the laser.py:
G1 F5000 <--- linear move, feed rate 5000
G1 X74.0287 Y91.9385 <--- coordinates of next stroke start position
G4 P0 <--- pause for 0 seconds
M03 S30 <--- pen down command [laser on]
G4 P0.150000 <--- laser power-on delay [time for the pen to come down]
G1 F3000.000000 <--- linear move, feed rate 3000
G1 X89.4738 Y76.492 <--- stroke coordinate end position
G4 P0 <--- pause for 0 seconds
M05 S0 <--- pen up command [laser power-off]
Modified version produces this:
G1 F5000 <--- linear move, feed rate 5000
G1 X74.0287 Y91.9385 <--- coordinates of next stroke start position
G4 P0 <--- pause for 0 seconds
M03 S30 <--- pen down command [laser on]
G4 P0.150000 <--- laser power-on delay [time for the pen to come down]
G1 F3000.000000 <--- linear move, feed rate 3000
G1 X89.4738 Y76.492 <--- stroke coordinate end position
G4 P0 <--- pause for 0 seconds
M05 S0 <--- pen up command [laser power-off]G4 P0.150000 <--- laser power-on delay [time for the pen to come up this time]
Note: the model uploaded is just a stand-in to make this a valid remix [even though it's only really for a python file]