Automatic pause when spindle is started

More
10 years 8 months ago #70333 by Rubenv
Thanks Todd,

I was thinking of adding another function. I have really searched but there is not allot available on this subject.

I will test tonight!

Ruben

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

More
10 years 8 months ago #70338 by BigJohnT

gaeldk wrote: 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 !


I just put a M0 after my M3 and when my spindle is set I press the run button.

JT

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

More
10 years 8 months ago #70340 by Todd Zuercher
Is there a reason that you did not want to use the "motion.spindle-at-speed" pin? I like the way it works. When this pin is false, Linuxcnc will wait until it is driven true before starting any cutting move (but it will still make a G0 positioning move. It is especially nice if you can get an at speed signal back from your VFD. This way at the beginning of your file you can command a spindle start, then G0 to the first cut, if the spindle is up to speed by the time it gets there, it starts right in, but if it is still accelerating the program will pause, at the first G1(or G2, G3, or other canned function) and wait for the spindle to finish starting. This is how I've set up several machines. If you really can't spare an input to use for the signal from your VFD. You could use the "motion.spindle-at-speed" pin with the time delay component to give the "motion.spindle-at-speed " a true signal X seconds after starting like this:
Code:
loadrt timedelay count=1 addf timedelay.0 servo-thread setp timedelay.0.on-delay 5 net spindle-on => timedelay.0.in net spindle-timer <= timedelay.0.out net spindle-timer => motion.spindle-at-speed
The following user(s) said Thank You: Rubenv

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

More
10 years 8 months ago - 10 years 8 months ago #70807 by Rubenv
Hi Todd

I finally had some time at the CNC. this worked 100%, thanks. it is a bit scary seeing it running on G00 but all good.

Thanks for all the other contributors.

Ruben
Last edit: 10 years 8 months ago by Rubenv.

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

More
6 years 6 months ago #162870 by EvilKnivel
Hello,

I'm looking as well for an automatic pause when spindel starts.... Becuase no input left on Parallel port and currently no R485 comunication....

If I do understand right, this is the solution i'm looking for.
"setp timedelay.0.on-delay 5" do i read this line correct that it waits for 5 seconds?

And the much more important question: Where do I have to add this code?

Does it also pause after a tool change and spindle start?

Regards

Christoph

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

More
6 years 6 months ago #162884 by tommylight
Adding G04 P5 after every M3 should do what you need.
That is in gcode, not in hal or ini.

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

Time to create page: 0.316 seconds
Powered by Kunena Forum