Thread: Mach3 spindle spin-up delay
Hybrid View
-
22-11-2017 #1
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!
-
22-11-2017 #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
-
cant get spindle to work with Mach3
By Bucks in forum Chinese MachinesReplies: 16Last Post: 01-10-2017, 09:53 PM -
So Nearly there - Mach3 and VFD Spindle Speed.
By davegrennan in forum Artsoft Mach (3 & 4)Replies: 11Last Post: 11-04-2015, 12:30 AM -
TB6560 controller Runs spindle on power up When Mach3 plunges spindle stops
By RoyT in forum Spindles & Drive MotorsReplies: 5Last Post: 29-09-2014, 02:42 PM -
Driving a Chinese spindle VFD from mach3
By jcb121 in forum Tool & Tooling TechnologyReplies: 5Last Post: 14-08-2013, 10:35 AM -
My apologies to "Andy" for the delay ... internet connection problem
By ali hedi in forum General DiscussionReplies: 1Last Post: 25-12-2010, 06:05 PM
Bookmarks