Hi Gary:
I'm leaving in a couple days for Alaska, and wont be back for a couple weeks, so Ill
check it out then.
As to Spindle Speeds.. What I was describin
g is what you do when a S word is called
for it terms of setting the duty cycle..Il
l elucidate
...

Here is what I have for your spindle speed setting script.. Ill display just
the lines that set the Spindle speed when it see's a S word in the Gcode.
global SpindleSp
eed = function( speed )
....
....
zerotohun
dred = (speed / 25000) * 100;
SpindleDe
vice.SetP
WM( 2, zerotohun
dred );
speed is whatever your Gcode called for S word..
It seems, like most of us you have a minimum speed..
so the easiest way to handle it is as in ..
zerotohun
dred = (speed / 25000) * 100;
SpindleDe
vice.SetP
WM( 2, zerotohun
dred );
The above assumes your max speed is at S25000 which then
translate
s to 100.0 as a PWM setting, if you change 25000
to your actual max speed call this will then be accurate.
To check for a minimum you simple do this..
if( speed < 700 ) speed = 700;
zerotohun
dred = (speed / 25000) * 100;
if( zerotohun
dred > 100) zerotohun
dred = 100;
SpindleDe
vice.SetP
WM( 2, zerotohun
dred );
So if the user enter S400, it will be translate
d to S700
If he enters S56780 , the duty cycle will only be set
to 100, so max speed.
SO the only number you need to figure out to make the above work
is the 25000 number, its probably more like 6000 for you. Just change the
25000 up or down until your upper S word is accurate. If the max your
spindle can do at 5 volts is 6680 RPM, just keep raising or lowering
25000 in the script until a call of S6680 is correct.
As you say, Auggie doesnt read the speed so its all a matter of simply
scaling the users Sword to the proper duty cycle as above.. The 700
can be adjusted to whatever minimum speed actually makes the
spindle turn close to that speed. This isnt unusual at all, most
spindle have no low end and are not very linear in control.
Art