Hi, I know this topic has come up a couple of times, but I have not been able to resolve my problem with previously posted information, hence this post.
It's a bit long-winded, but I wanted to explain all the background so that the issue makes sense - please bear with me...
Basically, I am trying to control the power output of a CO2 laser using the PWM capabilities of Mach3.
In the ideal case, S commands embedded in the G code would enable me to directly modulate the laser power (e.g. to select between acrylic engrave and acrylic cut in the same job).
I have set Mach3 up based on the information given by Art and others (spindle output enabled, PWM frequency and minimum set, PWM output on step pin of spindle motor output, pulley speeds set up correctly). I have intentionally not enabled the laser option, as this generates a continuous pulse output - my system does not require a constant tickle input.
Now, when I look at the voltage on the spindle motor step output usin an oscilloscope, I do NOT see a smooth PWM signal as I enter Sxx to change the spindle speed. In fact, I only get four discrete states - off, about 30% PWM, about 45%, and about 55%. I know why this is - the manual explains the compromise between kernel speed (100k in this case), PWM base frequency (20kHz input, gets reduced to 16666Hz by Mach on input) and number of possible PWM steps.
I cannot reduce the PWM base frequency, as this directly affects the laser power output and pulse frequency, giving rise to visible discrete spots on the workpiece, which is not acceptable. I also don't want to slow down the x/y speeds (increased processing time).
My problem: I would be very happy with 3 different PWM settings (off, engrave, cut), as long as it is possible to preset the available PWM pulse widths (e.g. 10%, 50%). Is this possible? If so, how?
Thank you very much for any suggestions, and Season's Greetings to all of you out there in MachLand!
Ilya