585,949 active members*
4,166 visitors online*
Register for free
Login
Page 1 of 2 12
Results 1 to 20 of 22
  1. #1
    Join Date
    Sep 2010
    Posts
    528

    SmoothStepper + SuperPID

    I installed my SmoothStepper today, and everything is working properly, except my SuperPID. The router turn on with M3 but only runs at the lowest speed and does not seem to be receiving the PWM signal from Mach3.

    Here is what I have.

    SmoothStepper + C10 BOB from CNC4PC + SuperPID

    Everything was working fine before I installed the SmoothStepper.

    I'm sure it must be a configuration error.

    Any ideas what I should be looking at? I need to get this machine up and running for a job Monday morning.

    Thanks,
    James

  2. #2
    Join Date
    Mar 2003
    Posts
    35538
    I don't use a Smoothstepper, but looking in the manual, it appears there's a checkbox to enable PWM. So you have it checked? Page 22
    http://warp9td.com/documentation/Smo...ManualV1.0.pdf
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  3. #3
    Join Date
    Sep 2010
    Posts
    528
    Quote Originally Posted by ger21 View Post
    I don't use a Smoothstepper, but looking in the manual, it appears there's a checkbox to enable PWM. So you have it checked? Page 22
    http://warp9td.com/documentation/Smo...ManualV1.0.pdf
    Yes it is checked. I left the base hz at 1000.

  4. #4
    Join Date
    Sep 2010
    Posts
    528
    Here is some more info. I opened the data monitor window. In the spindle box, the PWM mode checkbox is checked. With the spindle off, the ratio is 0, Vel is 0 and ACC is 0.

    Currently in Mach my spindle speed is set to 16000. When I use the M3 command or the Spindle start button on the screen the spindle starts and runs at 5000 rpm according to the display on the SuperPID. The data window reports ratio is 0.5315, Vel is 2283039, Acc 0.

    Any thoughts on what might be the problem?

    To me it seems that the pulses are not reaching the SuperPID. I will continue trouble shooting and check back in a bit.

  5. #5
    Join Date
    Mar 2003
    Posts
    35538
    If you adjust the spindle override slider, does the rpm change?
    Try typing S15000 in the MDI. Does that change?
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  6. #6
    Join Date
    Sep 2010
    Posts
    528
    Quote Originally Posted by ger21 View Post
    If you adjust the spindle override slider, does the rpm change?
    Try typing S15000 in the MDI. Does that change?
    The actual speed of the spindle remains at 5000 rpm regardless of S command or spindle speed override.

    Can you verify my Mach setup?

    Motor Outputs - Spindle - Step Pin# - 1
    Motor Outputs - Spindle - Dir Pin# - 0

    Output Signals - Output #1 - Port# - 1 - Pin Number - 14

    Spindle Setup - Relay Control - Disable - Unchecked - Output # - 1

    This has been working before the addition of the SmoothStepper. I am reading through the Mach manual right now to verify the setup.

    **** A new development ****

    I just switched the Step Pin to LowActive - now the router runs at full speed with no control instead of min speed with no controll.

  7. #7
    Join Date
    Mar 2003
    Posts
    35538
    Do you have "Use Spindle Motor Output" and "PWM Control" checked on the Spindle Setup Tab?
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  8. #8
    Join Date
    Sep 2010
    Posts
    528
    Quote Originally Posted by ger21 View Post
    Do you have "Use Spindle Motor Output" and "PWM Control" checked on the Spindle Setup Tab?
    Yes. PWMBase Freq. 35. Kernel Speed 35000 Hz.

  9. #9
    Join Date
    Sep 2010
    Posts
    528

    AHA!!!

    I'm on the right track now.

    On a whim I decided to put a value in the Spindle Motor Movement Profile. I just slid the Velocity slider up a bit, ending up with the random In's per min of 534180.

    The spindle is now responding to PWM control.

    At this point I have no idea how the Spindle Profile will affect the PWM control so I'll do some experimenting and report back.

  10. #10
    Join Date
    Feb 2007
    Posts
    966
    Is it documented anywhere how to setup the PWM for Mach3?

    It sort of works, but its non-linear at the bottom and does't seem to respond to the min and max rpm right.

    I wonder why he put a min pwm setting, since for PWM it should be able to go from 0-100% linearly.

  11. #11
    Join Date
    Mar 2003
    Posts
    35538
    It is linear from 0-100%.
    The minimum setting is a safety to prevent you from running your spindle too slow.

    PWM Control

    A PWM signal is a digital signal, a "square" wave where the percentage of the time the
    signal is high specifies the percentage of the full speed of the motor at which it should run So, suppose you have a motor and PWM drive with maximum speed of 3000 rpm then
    figure 4.12 would run the motor at 3000 x 0.2 = 600 RPM. Similarly the signal in figure
    4.13 would run it at 1500 RPM.

    Mach3 has to make a trade off in how many different widths of pulse it can produce again how high a frequency the square wave can be. If the frequency is 5 Hz the Mach3 running with a 25000 Hz kernel speed can output 5000 different speeds. Moving to 10Hz reduces this to 2500 different speeds but this still amounts to a resolution of one or two RPM.

    A low frequency of square wave increases the time that it will take for the motor drive to notice that a speed change has been requested. Between 5 and 10 Hz gives a good compromise. The chosen frequency is entered in the PWMBase Freq box.

    Many drives and motors have a minimum speed. Typically because the cooling fan is very inefficient at low speeds whereas high torque and current might still be demanded. The Minimum PWM % box allows you to set the percentage of maximum speed at which Mach will stop outputting the PWM signal.

    You should be aware that the PWM drive electronics may also have a minimum speed setting and that Mach3 pulley configuration (see section x.x) allows you to set minimum speeds. Typically you should aim to set the pulley limit slightly higher than the Minimum PWM % or hardware limit as this will clip the speed and/or give a sensible error message rather than just stopping it.
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  12. #12
    Join Date
    Dec 2003
    Posts
    24221
    What was the reason going PWM I wonder? There is an option for step/dir spindle, the signal has to be converted to analog for SuperPID and VFD's anyway.
    A frequency to analogue circuit I would think is the simpler way to go?
    Al.
    CNC, Mechatronics Integration and Custom Machine Design

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.

  13. #13
    Join Date
    Feb 2007
    Posts
    966
    Quote Originally Posted by Al_The_Man View Post
    What was the reason going PWM I wonder? There is an option for step/dir spindle, the signal has to be converted to analog for SuperPID and VFD's anyway.
    A frequency to analogue circuit I would think is the simpler way to go?
    Al.
    I'd say the 0-10 V is much simpler than a Step/dir and takes a lot less cpu overhead in the controller. Also decoding step/dir takes a lot more circuitry.
    But using PWM instead of an DAC only takes 1 pin on the bob. A DAC would need 8 or 16 bits.

  14. #14
    Join Date
    Dec 2003
    Posts
    24221
    I have used a one chip LM2917 circuit.
    Al.
    CNC, Mechatronics Integration and Custom Machine Design

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.

  15. #15
    Join Date
    Oct 2005
    Posts
    2392
    Quote Originally Posted by Larken View Post
    Is it documented anywhere how to setup the PWM for Mach3?

    It sort of works, but its non-linear at the bottom and does't seem to respond to the min and max rpm right.
    ...
    Sorry for the late reply, I only just saw this thread (I don't normally check this area of the forum).

    Please check your pulley min and max in mach3 and set them to 0 and 30000 RPM. That should give RPM quite linear for initial testing, which you can then tweak later if needed.

    Also please check your SuperPID is not set to "Knob" mode, if it is, then the display will show a "K" in the top right. The SuperPID instruction PDF explains about the difference with SuperPID "Mach3" mode and "Knob" mode.

    Quote Originally Posted by Larken View Post
    ...
    I wonder why he put a min pwm setting, since for PWM it should be able to go from 0-100% linearly.
    As Ger21 said the 5000 RPM minimum speed is to ensure safe router operation, but does not affect linearity of the control signal.

    Quote Originally Posted by Al_The_Man
    What was the reason going PWM I wonder? There is an option for step/dir spindle, the signal has to be converted to analog for SuperPID and VFD's anyway.
    A frequency to analogue circuit I would think is the simpler way to go?
    ...
    It was mainly about reliability and simplicity, which in my book go hand in hand. I was originally trained in heavy industry electronics, where reliability is critical, and I also did a lot of years in electronics repair, seeing where the world's best designers in the big compaines failed and I had to fix and redesign their failures. My designs are often seen as simplistic but it is for very good reason; reliability and ease of maintenance.

    In the case of the PWM input the SuperPID already had a rugged analogue input (used for the speed control pot) so adding the PWM input meant a very simple and reliable addition, coupled with additional analogue filtering. If the PWM signal glitches or fails short term (like a PC glitch or windows interrupt) it will be covered by the hardware filtering and cause very little effect on the SuperPID speed. Sometimes a rugged analogue control system is better than a digital step or frequency signal or serial comms signal.

    And thank you everyone for helping answer the SuperPID tech support questions!

  16. #16
    Join Date
    Dec 2003
    Posts
    24221
    Quote Originally Posted by RomanLini View Post
    In the case of the PWM input the SuperPID already had a rugged analogue input (used for the speed control pot) so adding the PWM input meant a very simple and reliable addition, coupled with additional analogue filtering. If the PWM signal glitches or fails short term (like a PC glitch or windows interrupt) it will be covered by the hardware filtering and cause very little effect on the SuperPID speed. Sometimes a rugged analogue control system is better than a digital step or frequency signal or serial comms signal.
    I was really commenting on BOB's that have PWM to analogue spindle for VFD and S-PID convertors, and wondered why most use PWM to analogue rather than step to analogue (frequency to voltage) convertors?
    Al.
    CNC, Mechatronics Integration and Custom Machine Design

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.

  17. #17
    Join Date
    Sep 2011
    Posts
    281
    Thanks to this thread, I finally got my SuperPID, ethernet Smoothstepper and G540 to play nice with full control... yeah!. Trick for me, was to setup the spindle in motor tuning properly. Once that was done, setting up the pulley for about 26000 seems to achieved a fairly lineaar speed.
    Colten Edwards http://www.cncsigns.ca

  18. #18
    Join Date
    Oct 2013
    Posts
    14
    Quote Originally Posted by cd_edwards View Post
    Thanks to this thread, I finally got my SuperPID, ethernet Smoothstepper and G540 to play nice with full control... yeah!. Trick for me, was to setup the spindle in motor tuning properly. Once that was done, setting up the pulley for about 26000 seems to achieved a fairly lineaar speed.
    I echo your comment except my ratios seem to be way off. As much as 60% on the low rpm's (m3s3000 returns S-PID of 5000rpm). I stopped at 10,000rpm and the difference between M3S10000 setting and SuperPid2 display (and actual router rpm) is 17.65%. S-PID reads 11,765

    Anyone have any ideas on altering the ratios?

  19. #19
    Join Date
    Mar 2003
    Posts
    35538
    Go to your profile folder in Mach3\macros\ and delete the file Linearity.dat (While Mach3 is NOT running). This will remove any possible calibration settings that may be causing the issue.
    Also, normally, the pulley max should be set to 30,000.
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  20. #20
    Join Date
    Oct 2013
    Posts
    14
    Thanks Gerry. That seemed to work right away once I restarted mach3. I hit the rest, then the spindle and it took the minimum of 5000 rpm...assuming from the SuperPID.
    As soon as I entered an M3 number it went back to the same readings.

    Spindle Pulley Selection is on pulley 5. Min 0 Max 30000

    Tried deleting the linearity file again and received the exact same result.

Page 1 of 2 12

Similar Threads

  1. Gecko G540 and SuperPid?
    By jjacstcy in forum DIY CNC Router Table Machines
    Replies: 10
    Last Post: 11-04-2011, 08:39 PM
  2. superpid
    By daniellyall in forum Gecko Drives
    Replies: 0
    Last Post: 10-08-2011, 01:41 AM
  3. g540 / superpid / mach3
    By daniellyall in forum Gecko Drives
    Replies: 1
    Last Post: 10-03-2011, 09:15 PM
  4. What next?Should i try Smoothstepper?
    By sylvester1073 in forum Controller Cards
    Replies: 11
    Last Post: 12-28-2010, 01:19 AM
  5. Anyone tried a Smoothstepper?
    By Ranscon in forum CNC Machine Related Electronics
    Replies: 3
    Last Post: 03-07-2009, 07:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •