Hello Guest it is October 01, 2020, 09:32:59 AM

### Author Topic: Spindle speed not correcting spindle speed with ESS and C23 board  (Read 7268 times)

0 Members and 1 Guest are viewing this topic.

#### mike^3

• 117
##### Re: Spindle speed not correcting spindle speed with ESS and C23 board
« Reply #30 on: November 15, 2015, 08:03:30 PM »
How would I change the speed file? Any examples?

#### mike^3

• 117
##### Re: Spindle speed not correcting spindle speed with ESS and C23 board
« Reply #31 on: November 15, 2015, 08:10:45 PM »
Good point, I'll u check the averaging,..

#### Hood

• 25,846
• Carnoustie, Scotland
##### Re: Spindle speed not correcting spindle speed with ESS and C23 board
« Reply #32 on: November 15, 2015, 08:18:30 PM »
open the spindlespeed.m1s macro for the profile you are using and edit the script.
If you will only be using a certain range of RPM's then it will be easy enough.
For example  something like

If  GetRPM() = 100 then
SetSpinSpeed( 150)
End If

If  GetRPM() = 150 then
SetSpinSpeed( 200)
End If

etc etc

Hood

#### mike^3

• 117
##### Re: Spindle speed not correcting spindle speed with ESS and C23 board
« Reply #33 on: November 15, 2015, 08:34:28 PM »
Thanks I will try it

#### Hood

• 25,846
• Carnoustie, Scotland
##### Re: Spindle speed not correcting spindle speed with ESS and C23 board
« Reply #34 on: November 15, 2015, 08:34:48 PM »
Something like this should work if your command will not be exact but rather it would be within a range.

If  GetRPM()  >100  And GetRPM() <150 Then
rpm = 150
End If

If  GetRPM()  >149  And GetRPM() <200 Then
rpm =  250
End If

If  GetRPM()  >199  And GetRPM() <300 Then
rpm = 300
End If

SetSpinSpeed( rpm)

#### BR549

• 6,932
##### Re: Spindle speed not correcting spindle speed with ESS and C23 board
« Reply #35 on: November 15, 2015, 08:34:54 PM »
IF indeed mach3 is still controlling  teh spindle which I don't think it does then Art wrote an article describing exactly how to get teh Output linear. He wrote it many years agao AND it worked great. I could get teh RPM +/- 2-3 rpm across teh entire range of RPM with a Step/dir spindle controller.

I see if I can find it and post it again. It is probably on this site allready. Just have to look.

(;-) TP

#### BR549

• 6,932
##### Re: Spindle speed not correcting spindle speed with ESS and C23 board
« Reply #36 on: November 15, 2015, 08:37:17 PM »
Here is teh link to Arts article on calibrating a step/dir spindle.

http://www.machsupport.com/forum/index.php/topic,18580.0.html

#### Hood

• 25,846
• Carnoustie, Scotland
##### Re: Spindle speed not correcting spindle speed with ESS and C23 board
« Reply #37 on: November 15, 2015, 08:37:25 PM »
Just looked at the first example I gave, likely it would not work as it would likely progress through the macro and set the spindle speed higher each time.

You would need to do it like the second example, ie only have one line that actually sets the commanded speed, that line being the
SetSpinSpeed(rpm)

Hood

#### mike^3

• 117
##### Re: Spindle speed not correcting spindle speed with ESS and C23 board
« Reply #38 on: November 15, 2015, 08:38:28 PM »
Thanks hood I'll try that as well.

Thanks tp! That article would be great if we can find it

#### mike^3

• 117
##### Re: Spindle speed not correcting spindle speed with ESS and C23 board
« Reply #39 on: November 15, 2015, 08:39:12 PM »
Thanks tp and hood I'll try both and get back with ya guys