- Posts: 310
- Thank you received: 0
Prevent spindle start if a certain tool is selected?
Please Log in to join the conversation.
This way, when the probe is plugged in, the spindle cannot start.
Please Log in to join the conversation.
spindle.N.inhibit - (bit, in) When this bit is TRUE, the spindle speed is set to 0.
Please Log in to join the conversation.
- The Feral Engineer
- Offline
- Senior Member
-
- Posts: 79
- Thank you received: 0
Please Log in to join the conversation.
- The Feral Engineer
- Offline
- Senior Member
-
- Posts: 79
- Thank you received: 0
Please Log in to join the conversation.
cmorley wrote: there is even a HAL pin for it:
spindle.N.inhibit - (bit, in) When this bit is TRUE, the spindle speed is set to 0.
Hi
I actually facing the same things i like to make spindle impossible to rotate if touch probe NPN NC is dected as connected, i have also think about using toolnumber or using both.
For now i dislike the spindle.N.inhibit because they work like a pause so spindle M3 M4 are not canceled.
Beter imo to cancel operation than only lock.
I Have for now do nothing for this but i use a similar scenario from my toolchanger using this signal but i did not remenber if this stop only gcode execution or also the spindle.
net tool-program-abort toolchanger.program-abort => halui.abort
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
- Posts: 22012
- Thank you received: 3
I do not think the clasicladder is the way of doing this, hal is better in my opinion.BodybyBostonCream wrote: i'm actually trying to use spindle.0.inhibit right now in classicladder and the spindle is still coming on even with it set to true. I'm using a sim, though, so i'm not sure if that makes a difference.
Spindle has another pin that should be possible to use
spindle-on
and
motion.spindle-on
Pulling that down should disable spindle.
Please Log in to join the conversation.
if Probe.input = 1 and (spindle.0.on or spindle.0.orient or Tool =1)
Then toggle halui.abort and display warning to user
Please Log in to join the conversation.
tommylight wrote:
I do not think the clasicladder is the way of doing this, hal is better in my opinion.BodybyBostonCream wrote: i'm actually trying to use spindle.0.inhibit right now in classicladder and the spindle is still coming on even with it set to true. I'm using a sim, though, so i'm not sure if that makes a difference.
Spindle has another pin that should be possible to use
spindle-on
and
motion.spindle-on
Pulling that down should disable spindle.
Well i think this is a possible dangerous way to do this using only bypass for spindle-on because if you now remove the probe the spindle start directly
motion.spindle-on is imo not the best option, for me the best is use halui.abort : machine stay on and ready for next things vs machine is like closed. (and if you try to send message to user after motion.spindle-on altering to 0 this not possible.
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
- Posts: 22012
- Thank you received: 3
I have to agree, that does not sound good.alkabal wrote:
Well i think this is a possible dangerous way to do this using only bypass for spindle-on because if you now remove the probe the spindle start directly
Please Log in to join the conversation.
