. .
  1. #1
    Neale's Avatar
    Lives in Plymouth, United Kingdom. Last Activity: 3 Hours Ago Has been a member for 9-10 years. Has a total post count of 1,726. Received thanks 295 times, giving thanks to others 11 times.
    I've been trying to track down a problem for someone. It seems that on their machine, the spindle delay setting in mach3/config/etc was being ignored and the machine would start into the first cut before the spindle was up to speed. Researching this, I came across a feature that I hadn't seen before, and which seems to be working well on my own machine. Wouldn't it be nice if the spin-up delay could be spindle-speed sensitive, i.e. don't use a fixed delay but use a variable delay based on requested spindle speed? Of course, the ideal would be to use the "spindle up to speed" output from the VFD to pause Mach3, but that needs a bit more work...

    Instead, try this replacement for the out-of-the-box M3 macro (m3.m1s).

    ---
    DoSpinCW()
    code "g4 P"&nFmt((2+5*(getrpm()/10000)),2)
    ---

    This one uses parameters that work for me, but you can tune them to suit your own machine. The "nFmt" command generates a number in string format that is passed to the G4 "pause" command. The number is built from two parts. The first "2" is a fixed minimum delay. The "5" is the number of tenth-seconds per 1000RPM additional delay. With the numbers here, that means a delay of 7sec for 10000RPM, and a delay of 14sec for my spindle's max of 24KRPM. Not a big saving, but if you can do it, why not?

    The original idea came from a post on a forum that said that they had found it in some Tormach code. Just trying to acknowledge my sources!

  2. #2
    Thanks for this. I'm going to try this with UCCNC.
    Gerry
    ______________________________________________
    UCCNC 2022 Screenset

    Mach3 2010 Screenset

    JointCAM - CAM for Woodworking Joints

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. cant get spindle to work with Mach3
    By Bucks in forum Chinese Machines
    Replies: 16
    Last Post: 01-10-2017, 09:53 PM
  2. So Nearly there - Mach3 and VFD Spindle Speed.
    By davegrennan in forum Artsoft Mach (3 & 4)
    Replies: 11
    Last Post: 11-04-2015, 12:30 AM
  3. Replies: 5
    Last Post: 29-09-2014, 02:42 PM
  4. Driving a Chinese spindle VFD from mach3
    By jcb121 in forum Tool & Tooling Technology
    Replies: 5
    Last Post: 14-08-2013, 10:35 AM
  5. Replies: 1
    Last Post: 25-12-2010, 06:05 PM

Bookmarks

Posting Permissions

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