Hello, I’m new here in the Lightburn Forum, so I’ll try to clarify my problem(s):
First, I have the Anycubic Mega Pro with laser attachment (1500mW), Marlin Firmware v1.2.9. I have been etching with only the sd card on bmp files for a while, and now the sd card reader on the machine no longer reads any bmp files. Have formatted to FAT32 twice. I think the sd card reader on the Mega Pro is kaput. So I got the Lightburn Software v1.2.04, on a 30 day trial. I have read the old forums related to this machine and problems to fix and one of them suggested using the Knutwurst firmware Marlin v1.4.4 (which i haven’t yet) and replacing M106 to G6…
Problem: I imported the bmp file (pendant 5) which is only a text image, simple. I checked the preview window how it will be lasered and it checked fine. Saved the gcode, opened notepad, replaced M106 to G6, saved again. Clicked run gcode which opened the saved gcode and instead of etching the words, it etched the outlines and the shadows around it. It looked like it was etching what the preview window showed as laser transverse movement instead of laser burn. In other words, i got white letters and black shadow outlines. Am i missing anything from the Lightburn software?
As for the Marlin Profile, this one does not activate the laser, only the G6, (ex. M106 S0, replaced with G6 S0, meaning laser power at 0%) however one of the member mentioned that we have to add a G4 P0 before every G6 command, which is a time-consuming work.
The lightburn forum mentioned this situation on Any Cubic Mega Pro / Combo in Community Laser Talk created on October 2020. The owner/developer named Oz was part of the conversation. It was about 35 responses or so.
I found the link, read it, and edited your response to include the Hyperlink.
The most interesting part of your output is the two longer traverse (slightly diagonal) lines are not engraved. I imagine they are handled by the ‘fast whitespace’ traverse and acting correctly.
I agree that the horizontal scanning behavior is backwards to what was demonstrated in the preview window.
I see two Possibilities and one possibly missing test.
The S0 through S255 are backwards, so the laser module is receiving an inverted PWM signal and making G6 S0 behave as full on (equivalent to S255) and G6 S255 is behaving as full off (equal to S0). The inverted PWM signal is not unheard of.
The recommended cure for this (the explanation, and how to invert the signal in the commented code) can be found here: Configuring Marlin | Marlin Firmware. If you have the source code it’s less work than the find and replace you’ve done so far.
Intercept and invert the signal with a hardware hack.
Hardware Hacks that might work could include a chip to invert the signal or a reasonably simple transistor circuit to invert the signal Depending on how the laser is powered and controlled. A small stand-alone board to allow the spindle signal to be interpreted properly might solve it.
Test: Did you also test with M3 as an alternate Code to replace M106 or G6?
If M3 is enabled in your firmware you may have what you need. The Use of M3 is also in the Spindle / laser section of the Configuring Marlin Link above.
If you’re willing to share your GCode, I might see an easy option.
If the file resists uploading here, change the file extension to .txt and drag and drop or use the upload button (the up-arrow & flat desktop computer Icon / top middle of the reply box.).
I got the firmware v1.2.9 from Anycubic, which is a Zip file and after that, there was only one file, .hex and the hyperlink from the old forum that you just added, one of the members shared the source file, a .rar, which in turn has alot of .ccp, .ino and .h files. To tell the truth, I just learning.
The fast whitespace is at 7800 mm/min, but its still the same whether I turn on the fast whitespace scan or not. As for that number (7800), i was just following the instructions from another of your forum: Starting Step for Anycubic Mega Pro on Lightburn Software Questions. Of couse the program was from v1.0.06, so the new program i have has some additions that was not shown on Lightburn v1.0.06.
I think I found out why it did the negative outline etching… Might have been the Image Mode set as Threshold on Cut/Layer Setting. I started fiddling with the Image Mode, tried Greyscale, since the laser is a diode, not CO2. It did etch the words without being negative, but not cleanly. I didn’t have time to add G4 P0 on every G6 commands. I did, however, added G4 P0 before every G6 commands on doing Vector outline cut with threshold on image mode because the G6 commands are few. The vector outline cuts came out well. After finding that out, I face-palmed myself. Although, i turned off the cut optimization selections, as it may or may not have improved that and i changed the bmp image to trace bitmap (for vector) and converted the bitmap again (for raster). I’d like to know more about those settings though. I’ll see if i can finish putting the G4 P0 before every G6 on notepad program and maybe show you the result…
Ok, I figured out how to quickly implement the G4 P0 (dwell/ms i think) on the notepad. All i had to do is type:
G4 P0
G6
And then select the words and copy for future paste. Go on Find/Replace, Find M106, replace all G6, and find all G6 and simply right click one of the shaded G6 and paste the G4 P0 G6 i showed on above, and on lightburn, run gcode and click the file that was saved. I tested 2 image modes: Jarvis and Greyscale and this is the result with the G4 P0 commands before every G6 commands.
@Vanilar23 I see it. I have passed this information and links on to the documentation team this morning. If you have emailed support, I’ll gather that too and add it to the process.