Page 1 of 1

Laser Power

Posted: Wed Jun 19, 2024 6:21 pm
by CA Allen
Hi Tom,
I'm trying to designate the spindle speed in my c programs to control the power of my laser via pmw.
I've edited the scale factor to 13, to give 5khz, but I'm not sure on the code or where to put it to make it synchonize with the trajectory plotter in the tool setup screen. I'm trying to code it to 0, off to 100% pwm from the 255 and set that as my s, spindle speed.
how does this apply to the VAR in the tool setup screen??
Please help.
I've attached the code I've pieced together so far.

Re: Laser Power

Posted: Wed Jun 19, 2024 10:28 pm
by TomKerekes
Hi Allen,

The code looks reasonable. The C Program would be configured to Execute as the Action to be performed by S with a VAR of 113.

See KMotionCNC Tool Setup | M0 - M30 | S