buildbotics / gimp-laser-plugin

A plugin for Gimp which turns images into GCode for LASERS
GNU General Public License v3.0
19 stars 9 forks source link

G-code output not usable on 3d printer #2

Open Jason55904 opened 2 years ago

Jason55904 commented 2 years ago

I am trying to use this plugin for my 3d printer that has a laser attachment. Some pieces of code are not compatible with this set up.

Some Examples are M3 = M106S(0-255) M5S0 = M107

Spacing is also needed G0X8.75Y0.50S6000 = G0 X8.75 Y0.50 S6000

Instead of varying the feed rates I would like to vary the PWM with M106S(0-255) and each command needs it's own line G0X8.75Y0.50S6000 = G0 F6000 //set move speed to 6mm/sec, this is set once at the beginning M106S255 //set laser to full power G0 X8.75 Y0.50 // move to position

Wish list I would like to add start and end code i.e. I like to set my laser and add G92 X0 Y0 Z0 I'm not sure if these changes could be made but I would greatly appreciate it. Thank you,

Jason55904 commented 2 years ago

an example of the G-code created from the Creality workshop program ---Start--- G90 G0 F3000

M107 G0 X38.9 Y0.0 Z1.0 F3600.0 M106 S180 G1 F360.0 G1 X38.9 Y0.0 Z1.0 ---other G1 commands for the continuing line--- M107 G0 F3600.0 ---Start of next line--- M107 G0 X40.3 Y0.6 Z1.0 F3600.0 M106 S180 G1 F360.0 G1 X40.3 Y0.6 Z1.0 ---ending g-Code--- M107 G0 F3600.0 M107 M107 G0 Z6 F4000 ;end

Honestly the code that it generates has a lot of redundancy but it does work. I'll attach an example of a full file here too.

Jason55904 commented 2 years ago

smile211124.txt