My Marlin (and I believe Kimbra) use S0 to S100 for power.
@Bryce_Barbato Thank you. Is your Marlin Fork available somewhere?
@Robin_Gantois Can you try 100 as “PWM MAX S VALUE” in LW4?
@Robin_Gantois F200 (200mm/min) is extremly slow. You should try 1000.
For the G0 feed, you could add G0 F6000 (for example) to the “start gcode” in LW4.
And you should not use Fan M106 for the laser PWM out. Instead, use the laser pin configured in https://github.com/MKFirmware/MK4duo/blob/master/MK4duo/src/boards/34.h#L151 and add “M3 S0” to the start gcode.
@cprezzi Yes, but I do not know how to connect the laser to my Ramps board. The D9 pin seemed to me the easiest solution.
@cprezzi I appreciate your help.
ttl red to pin 6 – ttl black to GND?
Power direct to 12v power supply?
Thanks
@Robin_Gantois I’m not a Marlin specialist. You should be able to configure P9 to be used as the laser out pin. But the fan command M106 is wrong, as it’s not able to be changed by S values in G01 commands. Laser does use Spindle commands M3/M5.
@Bryce_Barbato can you hlep Robin with the config?
@Bryce_Barbato Do you use a Ramps board?
If so, how do you connect the laser to the Ramps board?
After 11 weeks of testing and trying both mk4duo with ramps board and gbrl with cnc shield. I finally ended up with marlin again. I have come to the conclusion that the ttl port on my laser does not allow pwm, only on / off. So I need the pwm D9 pin of my ramps to be able to drive 12v with pwm to the laser,
without the ttl port. After a lot of searching, I found a Gcode converter that perfectly converts the gbrl code from laserweb to my needs. I can then send that Gcode to my modified version of octoprint. It works perfectly now.