MKFirmware / MK4duo

MK4duo Firmware Printers 3D for Arduino and Arduino due
http://www.marlinkimbra.it
GNU General Public License v3.0
206 stars 118 forks source link

G7 Laser raster - laser always on #781

Open Th3c0pyright opened 4 years ago

Th3c0pyright commented 4 years ago

Issue description

I have a k40 laser. I need to engrave rubber stamps. I have created two simple scripts, the first convert any image to G0 and G1 code but I found that this method generate a lot of lines with large images and is less accurate. The second script that I've created generate from an image the G7 commands. I need to engrave black pixels and not engrave the white ones.

The input image is: out

GCode generated: out.gcode.txt

When I print this gcode the printer engrave any pixel. What i can do or what I need to edit in the code to engrave only black pixel and turn off the laser when there are the white ones.

Firmware version

MK4duo 4.3.9

My setup

Arduino Mega +Ramps 1.4 - K40 Laser (with only one cable for the laser, my printer is old and the intensity is manual)

The printer is like this: co2k4