585,760 active members*
3,659 visitors online*
Register for free
Login
IndustryArena Forum > Mechanical Engineering > Mechanical Calculations/Engineering Design > Getting confused about the maximum step frequency that is needed for my machine
Results 1 to 8 of 8
  1. #1
    Join Date
    Jul 2016
    Posts
    14

    Getting confused about the maximum step frequency that is needed for my machine

    I'm trying to get some basic theory right about the maximum step frequency that my software should output. I got some formulas from here and lets say I want my machine to move at the rate of 60mm/s and needs 80 steps to travel 1mm. This means my step rate is 60 * 80 = 4800 steps per second. Does this mean that the step frequency is 4.8Khz? Each step would have a pulse on and off time and how would that be accounted?

  2. #2
    Join Date
    Dec 2013
    Posts
    5717

    Re: Getting confused about the maximum step frequency that is needed for my machine

    Yes, the frequency would be 4.8kHz. Normally the output from the computer is a 50% duty cycle square wave, but could be a PWM looking signal with a variable duty cycle.
    Jim Dawson
    Sandy, Oregon, USA

  3. #3
    Join Date
    Nov 2008
    Posts
    110

    Re: Getting confused about the maximum step frequency that is needed for my machine

    Quote Originally Posted by Jim Dawson View Post
    Yes, the frequency would be 4.8kHz. Normally the output from the computer is a 50% duty cycle square wave, but could be a PWM looking signal with a variable duty cycle.
    I don't know how today's software behaves but 10years ago mach and linuxcnc outputed series of short spikes - not a 50% square. I designed and built breakout board with optoisolation only to discover that transoptors selected for step frequency (20kHz) were way to slow for step pulses.

  4. #4
    Join Date
    Jan 2005
    Posts
    1943

    Re: Getting confused about the maximum step frequency that is needed for my machine

    Quote Originally Posted by grg12 View Post
    I don't know how today's software behaves but 10years ago mach and linuxcnc outputed series of short spikes - not a 50% square. I designed and built breakout board with optoisolation only to discover that transoptors selected for step frequency (20kHz) were way to slow for step pulses.
    LinuxCNC has used square wave forat least 10 years. I know this for a fact because i used an oscilloscope to view the wave firm when i started my first mil and that was over 10 years ago. I cannot imagine it being anything but a square wave even far before this because it would actually be harder to make the output a spike than a square wave.

    Sent from my RS988 using Tapatalk

  5. #5
    Join Date
    Nov 2008
    Posts
    110

    Re: Getting confused about the maximum step frequency that is needed for my machine

    Quote Originally Posted by 109jb View Post
    LinuxCNC has used square wave forat least 10 years. I know this for a fact because i used an oscilloscope to view the wave firm when i started my first mil and that was over 10 years ago. I cannot imagine it being anything but a square wave even far before this because it would actually be harder to make the output a spike than a square wave.

    Sent from my RS988 using Tapatalk
    I must admit i didn't measure linuxcnc - just mach.
    Generating spikes is easier that square wave - all you need to create spike is to set and immediately clear port. For square wave you need to calculate how long the port should stay on, and shedule port clear on next kernel clock cycle - at maximum speed you need double kernel frequency.

  6. #6
    Join Date
    Mar 2003
    Posts
    35538

    Re: Getting confused about the maximum step frequency that is needed for my machine

    Did you try adjusting the pulse width in Mach3 when you tested?
    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)

  7. #7
    Join Date
    Nov 2008
    Posts
    110

    Re: Getting confused about the maximum step frequency that is needed for my machine

    Quote Originally Posted by ger21 View Post
    Did you try adjusting the pulse width in Mach3 when you tested?
    Yes - but even with max value pulses were too short for my hardware - eventually i scrapped the board and build new one with faster optocouplers. "Slow" board used cheap LTV827 optocouplers, "fast" HCPL2630. Since then i dont have any problems with signal quality ☺

  8. #8
    Join Date
    Mar 2003
    Posts
    35538

    Re: Getting confused about the maximum step frequency that is needed for my machine

    Many people mistakenly believe that the max is 5us (Mach3 displays 0-5), but you can actually set it to 15 or 20us, maybe even higher. You can also use Sherline mode, which gives a 40us pulse width.

    Also, the quality of pulses can vary greatly from PC to PC. Some PC's will be much better than others.
    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)

Similar Threads

  1. trumpf trulaser 5060 (cool line 1) Maximum Frequency Exceeded
    By trulaser23132323 in forum Laser Engraving / Cutting Machine General Topics
    Replies: 1
    Last Post: 03-30-2018, 09:58 AM
  2. trumpf trulaser 5060 (cool line 1) Maximum Frequency Exceeded
    By trulaser23132323 in forum Laser Engraving / Cutting Machine General Topics
    Replies: 0
    Last Post: 06-16-2017, 07:44 PM
  3. Replies: 4
    Last Post: 05-29-2015, 05:15 PM
  4. Confused about maximum voltage for hobbycnc.com steppers/driverboard
    By aperion in forum Stepper Motors / Drives
    Replies: 3
    Last Post: 03-10-2014, 05:57 AM
  5. pic and maximum step frequency
    By niclatrique in forum PIC Programing / Design
    Replies: 4
    Last Post: 11-03-2006, 03:15 AM

Tags for this Thread

Posting Permissions

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