Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: minime on February 20, 2012, 03:09:54 PM
-
I have setup a step and direction spindle, and need the spindle speed tied to the feedrate speed, so as the feedrate speed changes the spindle speed will follow
I have searched for days, and also tried writing a macro but with my limited knowledge of macros I am not getting anywhere, anyone have any idea where to look or know if this even possible to do in Mach?
or have any suggestions on how to approach this?
thanks mini
-
Dont think that would be easy to do I am afraid, or at least cant think how. You can have it the other way around, ie your axis feed per rev.
Hood
-
I have slaved a stepper to a lathe spindle where the spindle was defined as A ( tried both linear and angular setup) such that the feedrate was tied to the rpm or rotary motion.
I will say one thing, a stepper just plane sucks for spindle use.
RICH ;)
-
Thanks for the replys
My actual application is a dispensing head which has a stepper motor, ( mach mill )
I have been trying to acomplish this, with it set up as a spindle,
so it really does not mater which way the relationship is between the feedrate and spindle speed,
as long as they are tied together,
I read that the G95 command is only for lathe? could this work for mill?
my cnc router is currently using 4 axis's for motion with the y slaved to the a, so I don't have that option
-
Why not just move to location and feed at any rate you want to dispense?
Sort of like drilling numerous holes. There were some postings in here on a glue dispensing machine some time ago which you may want to search for.
RICH
-
Easy enough to do , Buld a Brain that monitors the Feerate then divide that by the starting value.
100 Ipm Starting value feedrate
3000 RPM starting value Spindle speed
Actually feedrate 90
90/100 = .9
THen multiply the SSO by the same multiplier.
3000 rpm X.9 = 2700 rpm
This will tie you togther as a percent of change. When the feedrate changes the spindle speed will change the SAME percent of change UP or Down.
I used to have somthing similar that tied the Spindle Speed to the feedrate. IF the spindle BOGGED a bit mach would SLOW the feerate and allow it to catch back up. SOrt of a SPEED control to help keep from overloading the little steppers and loosing steps.
Just a thought(;-) TP
-
Yes G95 works in mill as well.
Hood
-
thanks again for the replies
lots more to try
my main issue is with corners and radius's , I get inconsistant dispensing, ( as the motion is not consistant) even with CV turned on, my thought was to tie spindle speed and feerate together?
-
Well after a few hours of mach3 brain videos, I managed somehow to write some brain code I use the blended feedrate and terminated it to the spindle percentage, it seems to be working, as the feedrate chages the spindle speed follows, really cool to see it work, I still need to do some real world trials and adjustments, but for sure on the right track
thanks for all the help
Mini
-
Please let us know how it works out others might could use the function.
(;-) TP