Page 1 of 2 12 LastLast
Results 1 to 12 of 16

Thread: SmoothStepper + SuperPID

  1. #1
    Registered
    Join Date
    Sep 2010
    Location
    US
    Posts
    514
    Downloads
    0
    Uploads
    0

    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
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,295
    Downloads
    0
    Uploads
    0
    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

    Mach3 2010 Screenset
    http://home.comcast.net/~cncwoodworker/2010.html

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


  3. #3
    Registered
    Join Date
    Sep 2010
    Location
    US
    Posts
    514
    Downloads
    0
    Uploads
    0
    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
    Registered
    Join Date
    Sep 2010
    Location
    US
    Posts
    514
    Downloads
    0
    Uploads
    0
    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.
    Last edited by jharvey407; 02-25-2012 at 08:54 AM.


  • #5
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,295
    Downloads
    0
    Uploads
    0
    If you adjust the spindle override slider, does the rpm change?
    Try typing S15000 in the MDI. Does that change?
    Gerry

    Mach3 2010 Screenset
    http://home.comcast.net/~cncwoodworker/2010.html

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


  • #6
    Registered
    Join Date
    Sep 2010
    Location
    US
    Posts
    514
    Downloads
    0
    Uploads
    0
    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
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,295
    Downloads
    0
    Uploads
    0
    Do you have "Use Spindle Motor Output" and "PWM Control" checked on the Spindle Setup Tab?
    Gerry

    Mach3 2010 Screenset
    http://home.comcast.net/~cncwoodworker/2010.html

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


  • #8
    Registered
    Join Date
    Sep 2010
    Location
    US
    Posts
    514
    Downloads
    0
    Uploads
    0
    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
    Registered
    Join Date
    Sep 2010
    Location
    US
    Posts
    514
    Downloads
    0
    Uploads
    0

    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
    Registered
    Join Date
    Feb 2007
    Location
    canada
    Posts
    669
    Downloads
    0
    Uploads
    0
    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.
    Manufacturer of CNC routers and Viper Servo Drives
    www.LarkenCNC.com and www.Viperservo.com


  • #11
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,295
    Downloads
    0
    Uploads
    0
    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

    Mach3 2010 Screenset
    http://home.comcast.net/~cncwoodworker/2010.html

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


  • #12
    Community Moderator Al_The_Man's Avatar
    Join Date
    Dec 2003
    Location
    Canada
    Posts
    18,952
    Downloads
    0
    Uploads
    0
    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 (Skype Avail).

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


  • Page 1 of 2 12 LastLast

    Similar Threads

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

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.