Hello Guest it is June 17, 2025, 10:28:03 PM

Author Topic: Mach3 issue with RPM scaling ( I think ).  (Read 2146 times)

0 Members and 1 Guest are viewing this topic.

Mach3 issue with RPM scaling ( I think ).
« on: February 11, 2025, 02:28:54 PM »
I've recently converted my CNC from a Huanyang VFD+Spindle ( RS485 ) to a 0-10v controlled spindle.

I'm using Mach3 with a Smoothstepper USS and C11G v8.2 interface.

After much re-learning and updating ( this CNC has been running since 2009 or so without being touched much ) I have finally gotten the Smoothstepper and Mach3 speaking to each other ( per latest USS suggested configuration ) and I'm getting the proper pulse train on Pin 14 however it seems to be off by 2 orders of magnitude.

In motor tuning I have it set for 1000 Steps per Unit and 1500 Steps per Minute.  This gives me the proper 25khz at "full speed". 
I have Spindle one set up for Minimum 0 Maximum 12000 Ratio 1.

If I turn the spindle on, 10rpm = 1v 6rpm = 5v and 120rpm = 10v and anything over 120rpm stays 10v.

This seems like its just a simple scaling issue but if so I'm having no luck finding it.  Any changes I make to motor tuning and I no longer get the proper frequency on Pin 14.

Hopefully this is simple and someone has an idea?

Thanks!

  -Tom
Re: Mach3 issue with RPM scaling ( I think ).
« Reply #1 on: February 12, 2025, 03:24:51 AM »
I think you need to configure pwm not steps/unit! And unless the ss has suitable pulse smoothing built in you will need at least an rc filter and an op amp to generate 0 - 10v from the pwm output.
Re: Mach3 issue with RPM scaling ( I think ).
« Reply #2 on: February 12, 2025, 11:21:09 AM »
No, the C11G v8.2 interface is quite specific in that it takes a pulse train and not PWM.  I went down that road already.  Whatever is causing my issue *also* affects PWM however.  Max pulse width is hit by 120rpm.

Offline Graham Waterworth

*
  • *
  •  2,783 2,783
  • Yorkshire Dales, England
Without engineers the world stops
Re: Mach3 issue with RPM scaling ( I think ).
« Reply #4 on: February 13, 2025, 10:48:45 AM »
I had already read the specific manual section for setting up the smooth stepper.  It didn't help.

I did however find my problem.

I still had an old linearity.dat file from my prior VFD.

Removed that and my scaling issue went away.