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.
Laser Power
Moderators: TomKerekes, dynomotion
Laser Power
- Attachments
-
- laser spindle test.c.txt
- (902 Bytes) Downloaded 110 times
- TomKerekes
- Posts: 2676
- Joined: Mon Dec 04, 2017 1:49 am
Re: Laser Power
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
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
Regards,
Tom Kerekes
Dynomotion, Inc.
Tom Kerekes
Dynomotion, Inc.