Machsupport Forum
Third party software and hardware support forums. => SmoothStepper USB => Topic started 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...
:(
-
Are you checking the PWM in the smoothstepper config?
Hood
-
PWM was checked and base frequency is 7 HZ
-
Have you tried changing the spindle frequency in the SS config page? (not the base frequency)
Hood
-
no, I will try it
-
I had try other port speed (128, 256 and 1 ghz) without change
:(
-
Might be best to email support at Warp9
Hood
-
okay!
-
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
-
I had setup 7 hz for both
-
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.
- Enable the spindle
- Assign port numbers
- Assign pin numbers
Select the Spindle setup tab.
- Check the box that says "Use Spindle Motor Output"
- The other check and edit boxes do not apply to the SmoothStepper.
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:
- Set "Steps Per" to 1000 (you can adjust this later to adjust the acceleration)
- Set "Velocity" to 60 (This only has an effect on some calculations Mach does. It has no effect on the actual output from the SS)
- Set "Accel" to 1 (The accel is calculated as "Steps Per" * "Accel", so just adjust "Steps Per" to get the accel results that work well)
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.
- Set "Velocity" to 60. This is a magic number that allows you to enter the max step frequency for "Steps Per".
- Set "Accel" to whatever value gives you the acceleration you want.
Config -> Spindle Pulleys
- Select a pulley
- Choose min and max RPM, and a ratio so that spindle feedback calculates the correct RPM for display
SmoothStepper Config (Under PlugIn Control)
For PWM:
- Check the box for PWM
- Select a base frequency for PWM (in Hz)
For Step & Direction:
- Check the box for Step & Direction
- Select a step pulse width. Make sure the frequency that was selected in Motor Tuning is not too fast for this pulse width. Otherwise the signal will never transition. For example, for a max step frequency of 25 kHz, the maximum pulse width is 40 microseconds. At 25 kHz, the waveform would be 100% duty cycle if the pulse width is 40 us.
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
-
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
-
Your version of Mach is old, update to the latest lockdown and see how that goes.
Hood
-
My problem was repair with Mach 3 upgrade
My spindle run good
tank
Fred
-
excellent news :)
Hood
-
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
-
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.
-
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
-
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
-
Yep
I have a CNC4PC c23 attached to the SS
-
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.
-
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....
-
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.
-
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...
-
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)
-
>>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.
-
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!
-
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