VMC related HAL questions.
31 Dec 2015 09:13 #67587
by thewho
Replied by thewho on topic VMC related HAL questions.
Yay, I can activate outputs from MDI
But I also noted that I need to home the spindle(?) because where it's at when I start linuxcnc is going to be 0 deg. And that is no problem unless someone (me) rotates the spindle by hand when the machine is turned off..
Any ideas?
But I also noted that I need to home the spindle(?) because where it's at when I start linuxcnc is going to be 0 deg. And that is no problem unless someone (me) rotates the spindle by hand when the machine is turned off..
Any ideas?
Please Log in or Create an account to join the conversation.
31 Dec 2015 14:52 #67595
by andypugh
Ah, yes, you have just reminded me of something else on my list of things to do when I get round to it.
I intend to add the spindle to the homing sequence.
sourceforge.net/p/emc/mailman/message/34441533/
What is required is to set the spindle-index-enable to true, then rotate the spindle until it goes false.
Until this is added to the homing sequence I think it will have to be done by cunning and guile.
The spindle-index-enable signal can be set true in the HAL file:(assuming that the spindle index enable signal is called spindle-index-enable)
You then need to ensure that the spindle rotates once through index to reset the encoder.
Adding a sequence of fixed direction moves to the toolchange G-code is probably the best way to do this.
Note that this won't necessarily work properly if the motion.spindle-orient-mode pin is not netted to the orient.0.mode pin. I forgot to do that in the sample HAL file.
Replied by andypugh on topic VMC related HAL questions.
Yay, I can activate outputs from MDI
But I also noted that I need to home the spindle(?) because where it's at when I start linuxcnc is going to be 0 deg. And that is no problem unless someone (me) rotates the spindle by hand when the machine is turned off..
Any ideas?
Ah, yes, you have just reminded me of something else on my list of things to do when I get round to it.
I intend to add the spindle to the homing sequence.
sourceforge.net/p/emc/mailman/message/34441533/
What is required is to set the spindle-index-enable to true, then rotate the spindle until it goes false.
Until this is added to the homing sequence I think it will have to be done by cunning and guile.
The spindle-index-enable signal can be set true in the HAL file:
sets spindle-index-enable 1
You then need to ensure that the spindle rotates once through index to reset the encoder.
Adding a sequence of fixed direction moves to the toolchange G-code is probably the best way to do this.
O900 IF [<_tool_in_spindle> EQ 0]
M19 R180 P1
M19 R 0 P1
O900 ENDIF
Note that this won't necessarily work properly if the motion.spindle-orient-mode pin is not netted to the orient.0.mode pin. I forgot to do that in the sample HAL file.
Please Log in or Create an account to join the conversation.
02 Jan 2016 21:49 #67725
by thewho
Replied by thewho on topic VMC related HAL questions.
It's working!
I finally learned the basics of hal and got the spindle orient routine to work really good. I had to limit the output so that I could get a fast response without excessive overshoot.
There is still work to be done in the subroutine but I'm really close to being satisfied with it
I finally learned the basics of hal and got the spindle orient routine to work really good. I had to limit the output so that I could get a fast response without excessive overshoot.
There is still work to be done in the subroutine but I'm really close to being satisfied with it
Please Log in or Create an account to join the conversation.
19 Jan 2016 17:49 #68772
by Jake
Replied by Jake on topic VMC related HAL questions.
Did anybody know who it was? I tried to search the user name and came up with nothing.
That is the same machine I have
That is the same machine I have
Please Log in or Create an account to join the conversation.
23 Jan 2016 13:13 #68961
by thewho
Replied by thewho on topic VMC related HAL questions.
What are you talking about Jake?
Today I'm running the first parts on the machine and found something that I have overlooked previously.
If tool in spindle is the required one it still does a toolchange.
I don't want to screw something up (did enough of that two days ago) so I'm asking before I try anything
Will this work?
Today I'm running the first parts on the machine and found something that I have overlooked previously.
If tool in spindle is the required one it still does a toolchange.
I don't want to screw something up (did enough of that two days ago) so I'm asking before I try anything
Will this work?
IF [#<tool_in_spindle> EQ #<selected_tool>]
o<toolchange> endsub [1]
ENDIF
Please Log in or Create an account to join the conversation.
23 Jan 2016 13:30 #68963
by Jake
My post missed the quote the first time. That video is the same machine as mine. I tried to search his name but couldn't come up with anything. I'm curious how he approached getting the tool changer working on his.
Replied by Jake on topic VMC related HAL questions.
Do you know who this is?
I think it is Awetmore
My post missed the quote the first time. That video is the same machine as mine. I tried to search his name but couldn't come up with anything. I'm curious how he approached getting the tool changer working on his.
Please Log in or Create an account to join the conversation.
23 Jan 2016 13:42 #68965
by andypugh
You probably always want to do the tool retract, just so the approach move is always the same.
Replied by andypugh on topic VMC related HAL questions.
Today I'm running the first parts on the machine and found something that I have overlooked previously.
If tool in spindle is the required one it still does a toolchange.
You probably always want to do the tool retract, just so the approach move is always the same.
Please Log in or Create an account to join the conversation.
19 Dec 2016 03:43 - 19 Dec 2016 03:52 #84395
by Jake
Replied by Jake on topic VMC related HAL questions.
.
Last edit: 19 Dec 2016 03:52 by Jake.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19209
- Thank you received: 6438
19 Dec 2016 05:43 #84398
by tommylight
Replied by tommylight on topic VMC related HAL questions.
Well it is 5:42 AM here and i have not slept yet, but that sure looks like a dot.
Or am i missing something ?
Or am i missing something ?
Please Log in or Create an account to join the conversation.
19 Dec 2016 12:37 #84407
by Jake
resubscribing to the topic so it shows up in my topics. The new software flushed all that on me.
Replied by Jake on topic VMC related HAL questions.
Well it is 5:42 AM here and i have not slept yet, but that sure looks like a dot.
Or am i missing something ?
resubscribing to the topic so it shows up in my topics. The new software flushed all that on me.
Please Log in or Create an account to join the conversation.
Time to create page: 0.150 seconds