That got it. With the info in the thread I found a posting on the LightBurn forums from someone trying to make a laser work on his Probotix machine. He had the find/replace strings in the final post.
I was using the spindle pwm pin generated by Stepconf for laser power control. I checked my HAL file and found that the spindle was set up on pwmgen.0 like his example. First try didn't fire the laser so I guessed that the pwmgen for the spindle wasn't active until the spindle was started. I put in a M3 S10 before the first laser power command in the file (an off) and things started working. I haven't decided if I am going to edit the HAL to add another pwmgen just for the laser or if I can find a simple way to always have the pwmgen.0 enabled. is Now I just need to zero in on some parameters for the burn. I was doing a photo of our dog and cat. Dog came out reasonable but the black cat was very light. I think I need to back down the velocity as it is moving over the pure black area too fast to do anything. Dave On Fri, Aug 13, 2021 at 4:34 PM Todd Zuercher <to...@pgrahamdunn.com> wrote: > You might need to use M67 to set the PWM value and M62 to turn it on/off. > > Todd Zuercher > P. Graham Dunn Inc. > 630 Henry Street > Dalton, Ohio 44618 > Phone: (330)828-2105ext. 2031 > > -----Original Message----- > From: Dave Matthews <n36...@gmail.com> > Sent: Friday, August 13, 2021 4:16 PM > To: Enhanced Machine Controller (EMC) <emc-users@lists.sourceforge.net> > Subject: [Emc-users] M62/M63 with a pwm output possible? > > [EXTERNAL EMAIL] Be sure links are safe. > > I recently started playing with lightburn and want to do photos. Using > M3/M5 Sxxx for laser control works fine for following lines but not for > photos. I think that I want to use M62 along with an Sxxx for laser on and > power setting. The laser power is controlled by PWMing the on/off pin. > > Lightburn likes to use M106 and an S number for laser control. I think it > is coming from M106 being used for fan on a Marlin 3d printer board. > Find/Replace M03 in place of the M106 sort of works but It does a laser > on, move, laser off so there is a lot of overburn. > > Sample gcode from Lightburn: > ; Image @ 2500 mm/min, 20% power > M8 > M106 S0 > G0X1.8487 Y0.8204 F0 > ; Layer C01 > M106 S0 > G1X0.041 F98.425 > M106 S20 > G1X0.29 > M106 S0 > G1X0.041 > M106 S0 > > From the docs it looks like M62 would do the job if I can also use the > Sxxx to set the pwm. > > Questions > > - Is it possible to set up the digital pin associated with the M62 to be a > PWM output? > - Is there an example of how to do this? > > Dave > > _______________________________________________ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > > > _______________________________________________ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users > _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users