Hello!
Help me, please...
I have emc2 and 2 problems:
1. How I can switch on spindle brake when I turn reverse spindle (m3 to m4)?
2. How I can make that if I change tool, spindle doesn't off?
Thanks a bunch for your help
Printable View
Hello!
Help me, please...
I have emc2 and 2 problems:
1. How I can switch on spindle brake when I turn reverse spindle (m3 to m4)?
2. How I can make that if I change tool, spindle doesn't off?
Thanks a bunch for your help
Normally with CNC controlled M3/M4/M5 spindle with a brake, there has to be a method such as provided by drives and VFD's for zero-speed output, likewise Up-to-speed output.
The first is in order to allow the brake to be applied, the second so that tool motion does not occur until the spindle rpm is up to the programmed value.
Al.
I would imagine you want to but the brake on only for a few seconds.
these are the HAL pins for spindle :
motion.spindle-brake OUT bit
TRUE when the spindle brake should be applied
motion.spindle-forward OUT bit
TRUE when the spindle should rotate forward
motion.spindle-reverse OUT bit
TRUE when the spindle should rotate backward
motion.spindle-on OUT bit
TRUE when spindle should rotate
I am not sure how spindle brake is set up to work - maybe it it only applies when the spindle in programmed off. Do you use these pins?
As far as having the spindle continue to run that is an option being worked on and I think it is in the CVS (unreleased) version but not in a released version. so you have to wait till it is or download the CVS version.
So I asked the developers of EMC and unfortunately there is no direct way to do this. The brake pin is set only when the spindle is turned off. If you switch from m3 to m4 the direction changes immediately, no brake, no wait. They way you could do this is use classicladder/HAL component to monitor the three pins and set 'motion.feed-hold IN bit' true while you apply the brake and switch directions. umm kinda a hack but you could...
Thanks very much!
I had a positive result with 'motion.feed-hold IN bit' yesterday!
No direct way, but it is working.
What about the second question?
"How I can make that if I change tool, spindle doesn't off?"
Do you have any good ideas?
Nothing you can do about The spindle unless you download the TRUNK version of EMC from 'CVC. Look Here about downloading:
http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?CVS
http://wiki.linuxcnc.org/cgi-bin/emc...ource_with_CVS
Or wait till 2.2.7 is released I'm pretty sure it will be able to do that.
Ok!
Thanks!