Results 1 to 10 of 10

Thread: PWM how does it work?

  1. #1
    Site Owner CNCadmin's Avatar
    Join Date
    Mar 2003
    Location
    United States
    Posts
    6,947
    Downloads
    2
    Uploads
    3

    PWM how does it work?

    I hooked up my computer to a oscilloscope today and found that the PWM does not work unless you keep the button pressed for increasing or decreasing the spindle speed. Is that how it's suppose to work? When using the step/dir for spindles control it works properly. So using the PWM if I'm not holding the button down their is not signal going out hence no modulation is occurring. How in the world do I program that into my g-code?
    Thank You,
    Paul G
    Site Owner-Webmaster-
    Administrator
    www.rfqwork.com
    www.cnczone.com
    www.welderzone.com


  2. #2
    Site Owner CNCadmin's Avatar
    Join Date
    Mar 2003
    Location
    United States
    Posts
    6,947
    Downloads
    2
    Uploads
    3
    .
    Thank You,
    Paul G
    Site Owner-Webmaster-
    Administrator
    www.rfqwork.com
    www.cnczone.com
    www.welderzone.com


  3. #3
    Community Moderator Al_The_Man's Avatar
    Join Date
    Dec 2003
    Location
    Canada
    Posts
    18,952
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by CNCadmin
    How in the world do I program that into my g-code?
    Paul, Maybe I am missing something here, but what happens when e.g. S1000 M3 is issued? What is the button you refer to?
    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.


  4. #4
    Site Owner CNCadmin's Avatar
    Join Date
    Mar 2003
    Location
    United States
    Posts
    6,947
    Downloads
    2
    Uploads
    3
    The short cut on the keyboard for increasing or decreasing the spindle speed.
    Thank You,
    Paul G
    Site Owner-Webmaster-
    Administrator
    www.rfqwork.com
    www.cnczone.com
    www.welderzone.com


  • #5
    Registered
    Join Date
    Mar 2005
    Location
    usa
    Posts
    509
    Downloads
    0
    Uploads
    0
    i am guessing but if you have not reached a maximum something ( voltage current speed )
    there is no need to pulse anything, speed could be adjusted by voltage and the current monitored ( and or converted to a power factor) there is all kinds of things that can happen here.


  • #6
    Registered
    Join Date
    Aug 2004
    Location
    US
    Posts
    2,825
    Downloads
    0
    Uploads
    0
    so, I suspect that you're using Mach2? If so, then I seriously doubt that it's monitoring current and voltage. Your PWM is basically an oscillator and it's duty cycle will vary based on how fast you want to go.....at max speed...duty cycle is nearly 100 % at slower speed you'll be able to see the variation you're looking for. Given that, I have no idea how Mach2 handles all of this.


  • #7
    Site Owner CNCadmin's Avatar
    Join Date
    Mar 2003
    Location
    United States
    Posts
    6,947
    Downloads
    2
    Uploads
    3
    I would think that once you depress the spindle button that would send a continual stream of PWM pulses, and increasing or decreasing the "spindle speed" would increase or decrease the pulse width spacing, therfore changing the duty cycle?
    Thank You,
    Paul G
    Site Owner-Webmaster-
    Administrator
    www.rfqwork.com
    www.cnczone.com
    www.welderzone.com


  • #8
    Registered
    Join Date
    Aug 2004
    Location
    US
    Posts
    2,825
    Downloads
    0
    Uploads
    0
    You are correct!


  • #9
    Site Owner CNCadmin's Avatar
    Join Date
    Mar 2003
    Location
    United States
    Posts
    6,947
    Downloads
    2
    Uploads
    3
    Well that ain't happening.
    Thank You,
    Paul G
    Site Owner-Webmaster-
    Administrator
    www.rfqwork.com
    www.cnczone.com
    www.welderzone.com


  • #10
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22,295
    Downloads
    0
    Uploads
    0
    Try emailing art. fenerty@artofcnc.ca
    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)


  • 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.