Machsupport Forum
Mach Discussion => Mach4 General Discussion => Topic started by: Wallerawang on May 23, 2016, 03:42:34 AM
-
Hi Guys
Could someone please let me know what is the method for setting the Spindle Speed Range - I can see it on the diagnostics page but is there a method for normal use on the run page. I have a Charter Oak clone RF45 with a six speed gearbox and will need to change ranges after some tool changes. Is there an "M" code or something?
Thanks
Steve
-
This is usually done with M41 and above. But it is REALLY machine specific (manual, automatic, number of ranges, etc..) so we don't provide any scripts for it. For example, a Haas only has low high gears on the spindle, thus, they only use M41 and M42.
You will have to create M41-46 macro scripts on your system that does the right thing.
Called in G code like this:
M41 (select spindle range #1)
S1200
M03
If the spindle ranges are set manually, you will want the machine to prompt you to change ranges. Also, a bit of code to check if it is already in the correct range might be nice to keep unnecessary prompting from happening.
Steve
-
Thanks Steve, I'll have to put some thought into this.
Regards
Steve