Machsupport Forum

Third party software and hardware support forums. => SmoothStepper USB => Topic started by: Repmo on November 12, 2008, 07:41:36 AM

Title: PWM output for spindle
Post by: Repmo on November 12, 2008, 07:41:36 AM
I run milling CNC with mach3, smooth stepper and C25 breakout board

I try to setup PWM output for my spindle on my smooth stepper board....

I was connect scope on my output #14 port 1, and I do not see pulse....
 
I had setup output #14 like X axis motor for testing my output and  I see good and stable pulse on my scoop, but if I setup for spindle, it do not work

I had setup port on motor output page, in spindle line, and check PWM in spindle setup, all setup seem good,
I had try to setup spindle with step/direction and It do not work, I had same problem...

:(
Title: Re: PWM output for spindle
Post by: Hood on November 12, 2008, 07:47:07 AM
Are you checking the PWM in the smoothstepper config?
Hood
Title: Re: PWM output for spindle
Post by: Repmo on November 12, 2008, 08:32:49 AM
PWM was checked and base frequency is 7 HZ
Title: Re: PWM output for spindle
Post by: Hood on November 12, 2008, 08:47:34 AM
Have you tried changing the spindle frequency in the SS config page? (not the base frequency)
Hood
Title: Re: PWM output for spindle
Post by: Repmo on November 12, 2008, 08:01:11 PM
no, I will try it
Title: Re: PWM output for spindle
Post by: Repmo on November 15, 2008, 09:57:14 AM
I had try other port speed (128, 256 and 1 ghz) without change  
:(
Title: Re: PWM output for spindle
Post by: Hood on November 15, 2008, 01:15:36 PM
Might be best to email support at Warp9
Hood
Title: Re: PWM output for spindle
Post by: Repmo on November 15, 2008, 04:30:32 PM
okay!
Title: Re: PWM output for spindle
Post by: Hood on November 15, 2008, 05:38:04 PM
Repmo
 when you said about the Base Frequency, were you talking about the one in the SmoothStepper config or in Mach? It needs to be the one in the SS Config.
Hood
Title: Re: PWM output for spindle
Post by: Repmo on November 15, 2008, 10:23:37 PM
I had setup 7 hz for both
Title: Re: PWM output for spindle
Post by: Warp9TD on November 16, 2008, 12:08:09 AM
Hi Repmo,

It always makes me happy when I see that someone has a scope!

Let me describe the parameters you need to set.  Maybe one of the following things is not right in your configuration.  I should have a section on this in the manual.  I think the spindle software needs some attention, so I will update the manual as soon as I get that cleared up.

First start with Mach's Ports & Pins config.

Select the Motor Outputs tab.

Select the Spindle setup tab.

Motor Tuning

For PWM it is a little different than Step & Direction.  This software needs to be cleaned up in the SS.  For now, please follow these directions because they will work:

For PWM:


For Step & Direction:


Config -> Spindle Pulleys


SmoothStepper Config (Under PlugIn Control)

For PWM:


For Step & Direction:


Please contact me at support @ warp9td.com if you are still having trouble.  Please let me know which version of the plugin you are using, which version of Mach, and if you provide you XML that will help a lot.

Thanks,

Greg
Title: Re: PWM output for spindle
Post by: Repmo on November 16, 2008, 10:42:38 PM
I use PWM mode,
In Motor tuning, I try to change step/unit, velocity and accell to setup at 1000, 60 and 1.....  and when I retun in motor tuning, My change was reseted to 2000, 417 and 4, I 'm not able to change, I change value, push on save current setup and close window, when I return the new value was forget....

for the other change, it was good but my pwm output does'nt work

Mach 3  r2.63
SS beta2 ver 0.015me

Fred
Title: Re: PWM output for spindle
Post by: Hood on November 17, 2008, 03:47:37 AM
Your version of Mach is old, update to the latest lockdown and see how that goes.
Hood
Title: Re: PWM output for spindle
Post by: Repmo on November 17, 2008, 06:40:02 PM
My problem was repair with  Mach 3 upgrade
My spindle run good

tank
Fred
Title: Re: PWM output for spindle
Post by: Hood on November 18, 2008, 03:16:06 PM
excellent news :)
Hood
Title: Re: PWM output for spindle
Post by: wildgrav on March 31, 2009, 04:46:17 AM
Hi Guys

I am trying to setup a YASKAWA V7 VFD. I have a SS and C23 board. Attached posts describe below Select the Motor Outputs tab.

Enable the spindle
Assign port numbers
Assign pin numbers

The C23 has a 0-10 analogue output which is preset to pin 14. Can someone explain why we need a step and dirtection pin to run the spindle. What pins are relevant to control the voltage.  There is the ability to assign pins in the spindle setup and motor outputs. I'm very confused.

Regards

Noel
Title: Re: PWM output for spindle
Post by: cncstep on April 14, 2009, 02:49:05 PM
I have made such board, for a basis have taken this scheme: http://cncrouter.ru/images/lathe.gif
+ two relays for inclusion of a spindle and change of a direction of rotation.
Title: Re: PWM output for spindle
Post by: wildgrav on April 14, 2009, 06:55:58 PM
Got it sorted. I didn't realize that the step pin = voltage  0-10 and direction pin goes to the relay. works a treat now

Noel
Title: Re: PWM output for spindle
Post by: cncstep on April 15, 2009, 05:08:13 AM
The frequency converter operates turns of a spindle, and understands an external signal 0-10V, thus 0v it is the minimal turns and 10V maximal (it is installed in the frequency converter). SS have no output 0-10V therefore has made this board to convert frequency of a signal step in a voltage 0-10V. 

Sergey
Title: Re: PWM output for spindle
Post by: wildgrav on April 15, 2009, 05:46:59 AM
Yep
I have a CNC4PC c23 attached to the SS
Title: Re: PWM output for spindle
Post by: Peter Homann on April 20, 2009, 12:03:48 AM
Hi,

I don't know if this has been mentioned, but you also need to do to the motor tuning tab for the spindle and set the acceleration to a reasonable value. If you don't do this, the default acceleration value  is so low that it takes forever to get to a measurable value.

Cheers,

Peter.
Title: Re: PWM output for spindle
Post by: Repmo on April 24, 2009, 07:05:55 AM
for 0-10 volt, use 1 output on SS, connect it on optocoupler, transistor side of opto, supply on drive reference 10 volt and drive signal, in serie with 1 diode and add 1 small capacitor.... 

the SS will generate PWM pulse for charging or discharge capacitor  may be 2-8 volt....    in your drive you probably had calibration function for setup minimum and maximum Input signal....
Title: Re: PWM output for spindle
Post by: hunserv on September 07, 2009, 01:45:17 AM
Hello Sergey, I`d have some questions:

For Spindle Speed Control, are you using the upper-left section of that schematics?
Does it give a linear output signal?
How do you set up MACH for this? Step/DIR spindle control? (and what frequencies/speeds)
For DIR I assume a separate relay can be used which is not drawn in the scematics, right?


I have made such board, for a basis have taken this scheme: http://cncrouter.ru/images/lathe.gif
+ two relays for inclusion of a spindle and change of a direction of rotation.
Title: Re: PWM output for spindle
Post by: hunserv on September 07, 2009, 01:47:18 AM
For PWM spindle speed anyway does someone know what Base Freq values can be set reasonably for the SS???
I need in fact 0-10V control, but for low PWM freq. as 10Hz, I`d need at least a 3rd order filter and some more components to have a relatively good spindle speed response on the command values...
Title: Re: PWM output for spindle
Post by: hunserv on December 25, 2009, 02:56:12 PM
So I built my PWM-Analog converter of active filters, with adustable amplification for better calibration.
Now as I use it I had another question raised:

Does anyone how the PWM resolution changes with PWM frequency?
(Separately for PP output and for SS output)
Title: Re: PWM output for spindle
Post by: Bill Anderson on July 05, 2012, 01:35:11 PM
>>Config -> Spindle Pulleys

  >>  Select a pulley
   >> Choose min and max RPM, and a ratio so that spindle feedback calculates the correct RPM for display

Measuring the spindle pulley RPM my value is higher than the mach3 speed. Spindle rpm 654, Mach3 500. If I adjust the spindle ratio to reflect the commanded speed and the spindle speed remains unchanged how is that going to affect threading? I would think that threads would be mangled.
Title: Re: PWM output for spindle
Post by: iphlex on July 29, 2013, 08:46:02 AM
Hi, does anyone have any experience on the hardware-wireing and software setup for PWM with the Rockwell Allen-Bradley Powerflex4M inverter?
i'm also using C25 and Smoothstepper, i can control it through an external switch right now just to turn it on and off. will i need other hardware like a charge pump to set this up or could it be hooked up as is? THANKS!
Title: Re: PWM output for spindle
Post by: slowtwitch on October 06, 2013, 07:38:07 AM
Hi Repmo,


Motor Tuning


For Step & Direction:

  • Set "Steps Per" to the maximum step frequency.  This is the frequency that will produce the maximum speed of the spindle motor.


Thanks,

Greg


Hello, How is the maximum step frequency determined for an AC spindle ??? 

thanks

pete