Automatic pause when spindle is started

More
11 years 2 months ago #61840 by gaeldk
Hello,

It takes some time for my spindle to reach the desire rotation speed. So I have to manually ad a G4 P10 on every file that is generated from my CAM tool.
Is there a way to tell LinuxCNC to always wait for X secodns when the spindle is started before starting to move ?

Than you !

Please Log in or Create an account to join the conversation.

More
11 years 2 months ago #61841 by Delron
I used the "Spindle at Speed" Function. Like this.


net spindle-cmd <= motion.spindle-speed-out => pwmgen.0.value
net spindle-on <= motion.spindle-on => pwmgen.0.enable
net spindle-pwm <= pwmgen.0.pwm => parport.1.pin-16-out
setp pwmgen.0.pwm-freq 50.0
setp pwmgen.0.scale 30050.0
setp pwmgen.0.offset 0.000998336106489
net spindle-at-speed => motion.spindle-at-speed
setp parport.1.pin-17-out-invert 1
net spindle-on => parport.1.pin-17-out

Please Log in or Create an account to join the conversation.

More
11 years 2 months ago #61855 by gaeldk
Thank you that is probably it but not sure where this must be entered...
Nor the action of each individual line (like the value for freq, scale, offset...)

I need to study this somewhere.

Please Log in or Create an account to join the conversation.

More
11 years 2 months ago - 11 years 2 months ago #61860 by Rick G
Might look here...
linuxcnc.org/docs/html/gcode/m-code.html...53-Feed-Stop-Control

You might also use a user defined M code to start the spindle with a pause, call a sub that turns the spindle on and adds a delay.
Often the g code output of the cam can be modified, if so you can add the delay there or cause spindle on to call a sub.

Rick G
Last edit: 11 years 2 months ago by Rick G.

Please Log in or Create an account to join the conversation.

More
11 years 2 months ago #61864 by Delron

gaeldk wrote: Thank you that is probably it but not sure where this must be entered...
Nor the action of each individual line (like the value for freq, scale, offset...)

I need to study this somewhere.


So long as you have feedback (tack) from your spindle, you can use this. Or like Rick said, manually adding a pause in the g-code. I did that at first but still managed to crash a bit or two when I forgot to flip the switch on the spindle.

More info here; linuxcnc.org/docs/html/examples/spindle.html

Please Log in or Create an account to join the conversation.

More
11 years 2 months ago #61865 by gaeldk
Hello,

I have actually no feedback from the spindle. So I need to put 10 seconds regardless and this should be OK.

Please Log in or Create an account to join the conversation.

Time to create page: 0.165 seconds
Powered by Kunena Forum