How to stop spindle 3 mm before end of the line ?
05 Aug 2014 18:46 #49518
by Woj123
How to stop spindle 3 mm before end of the line ? was created by Woj123
Hello everybody,
I am a new user of linuxcnc. I am using ploter cnc that has special pump insted of spindle and I need to stop that pump before ploter will go to the end of the every single line. Let's assume : ploter will go according to the lines, at the beginning of every single line pump would be switched on , if distance to go is 3 mm pump would be switched off and ploter will go to the end of the line. Process will be repeated for every single line
Thank you for help
wojtek
I am a new user of linuxcnc. I am using ploter cnc that has special pump insted of spindle and I need to stop that pump before ploter will go to the end of the every single line. Let's assume : ploter will go according to the lines, at the beginning of every single line pump would be switched on , if distance to go is 3 mm pump would be switched off and ploter will go to the end of the line. Process will be repeated for every single line
Thank you for help
wojtek
Please Log in or Create an account to join the conversation.
05 Aug 2014 18:53 #49520
by BigJohnT
Replied by BigJohnT on topic How to stop spindle 3 mm before end of the line ?
Are you wanting some magic way to turn it off 3mm from the end of each move? Or are you wanting to do this in G code?
JT
JT
Please Log in or Create an account to join the conversation.
05 Aug 2014 19:02 #49522
by Woj123
Replied by Woj123 on topic How to stop spindle 3 mm before end of the line ?
Hi,
Two methods are accepted. I do not only want to divide the line into two
thank you
wojtek
Two methods are accepted. I do not only want to divide the line into two
thank you
wojtek
Please Log in or Create an account to join the conversation.
05 Aug 2014 19:10 #49523
by BigJohnT
Replied by BigJohnT on topic How to stop spindle 3 mm before end of the line ?
I don't understand what you just said, I suspect English is not your native language.
Can you try and expand a bit on what you said?
JT
Can you try and expand a bit on what you said?
JT
Please Log in or Create an account to join the conversation.
05 Aug 2014 19:25 #49525
by Woj123
Replied by Woj123 on topic How to stop spindle 3 mm before end of the line ?
I think we can do that in G code way but every single line must be devided into 2 lines ( one of the line would be 3 mm ) - but I wouldn't like to do that
Please Log in or Create an account to join the conversation.
05 Aug 2014 19:40 #49526
by BigJohnT
Replied by BigJohnT on topic How to stop spindle 3 mm before end of the line ?
I just looked at the 2.6 documents and you can get the current axis position but I don't see a way to get the commanded end point for an axis. There may be another way to stop the spindle than dividing the line but I don't know how.
JT
JT
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
Less
More
- Posts: 5008
- Thank you received: 1441
05 Aug 2014 22:15 #49529
by Todd Zuercher
Replied by Todd Zuercher on topic How to stop spindle 3 mm before end of the line ?
Could you monitor the pin "motion.current-vel" and have your pump shut off when the velocity falls below a certain speed? (assuming it takes 3mm or more to decelerate from your moving velocity to stopped).
Please Log in or Create an account to join the conversation.
05 Aug 2014 22:59 #49530
by alan_3301
Replied by alan_3301 on topic How to stop spindle 3 mm before end of the line ?
I'm not sure what kind of pump you are using, but can it be driven with a stepper motor?
Then use whatever cam software guys for 3d printing use, It will run the pump backwards a few steps before moving to a new line.
Then use whatever cam software guys for 3d printing use, It will run the pump backwards a few steps before moving to a new line.
Please Log in or Create an account to join the conversation.
06 Aug 2014 19:22 #49565
by emcPT
Replied by emcPT on topic How to stop spindle 3 mm before end of the line ?
Maybe you can use the DISTANCE TO GO value.
Not sure that a pin existis for this propose but it would be a solution.
Not sure that a pin existis for this propose but it would be a solution.
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
Less
More
- Posts: 5008
- Thank you received: 1441
06 Aug 2014 19:43 #49566
by Todd Zuercher
Replied by Todd Zuercher on topic How to stop spindle 3 mm before end of the line ?
There is a pin for distance to go (see motion.9) but it is the distance to go for the current line of code. If your line your marking is a series of connected lines, it would shut off at the end of each segment. If that is what you want then there you go.
Please Log in or Create an account to join the conversation.
Time to create page: 0.153 seconds