Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Pandy on September 06, 2022, 08:37:53 PM

Title: PWM Spindle Speed off by a factor of 100
Post by: Pandy on September 06, 2022, 08:37:53 PM
I just purchased a LMS 3990 mini mil that’s had a CNC conversion done using an ESS board, MX3660 stepper driver, and a LMS 4213 CNC spindle speed controller. The issue I have is that regardless of the Spindle RPM I set in mach 3, my machine is at full speed until I set it below ~15rpm. If I set the RPM between 0-15 the spindle speed changes, almost as is the PWM signal is off by a factor 100 or 200. Any ideas?
Title: Re: PWM Spindle Speed off by a factor of 100
Post by: JohnHaine on September 07, 2022, 01:36:45 AM
What are your M3 config settings on the PWM output?  I can't see any recommendations in the 4213 instructions.
Title: Re: PWM Spindle Speed off by a factor of 100
Post by: Graham Waterworth on September 08, 2022, 06:56:38 PM
Have you set the min and max values in the spindle pulley section and selected pulley 1
Title: Re: PWM Spindle Speed off by a factor of 100
Post by: Pandy on September 08, 2022, 09:34:13 PM
Sorry for the late response everyone. I have attached screenshots of my settings. Yesterday I measured the voltage coming from the Leadshine to the mill, when I set the RPM to 3 in Mach3 the signal voltage was about 1v, 15rpm was 6v, 20rpm was 8v, and 25rpm was 10v. Any RPM I set between 25-2500 was still reading 10v. Very weird, definitely some variable a couple decimal places off somewhere.
Title: Re: PWM Spindle Speed off by a factor of 100
Post by: JohnHaine on September 09, 2022, 03:43:14 AM
Your pwm base frequency is very low at 5hz.  Try increasing it to 100.
Title: Re: PWM Spindle Speed off by a factor of 100
Post by: Graham Waterworth on September 14, 2022, 12:21:25 PM
Have you set your pulley speeds