Prevent spindle start if a certain tool is selected?
- JetForMe
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 305
- Thank you received: 16
24 Oct 2020 04:46 #187065
by JetForMe
Prevent spindle start if a certain tool is selected? was created by JetForMe
Is there any way to prevent the spindle from starting (via any possible mechanism like M3/M4 or clicking spindle start buttons in the UI) if a particular tool is selected (e.g. my Haimer probe)?
Please Log in or Create an account to join the conversation.
- Henk
- Offline
- Platinum Member
Less
More
- Posts: 395
- Thank you received: 80
24 Oct 2020 04:54 #187066
by Henk
Replied by Henk on topic Prevent spindle start if a certain tool is selected?
If the probe is wired with the contact in a normally closed mode, you can use the probe signal to interlock the spindle enable.
This way, when the probe is plugged in, the spindle cannot start.
This way, when the probe is plugged in, the spindle cannot start.
Please Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
Less
More
- Posts: 7766
- Thank you received: 2055
24 Oct 2020 05:55 #187068
by cmorley
Replied by cmorley on topic Prevent spindle start if a certain tool is selected?
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.
spindle.N.inhibit - (bit, in) When this bit is TRUE, the spindle speed is set to 0.
Please Log in or Create an account to join the conversation.
- The Feral Engineer
- Offline
- Senior Member
Less
More
- Posts: 79
- Thank you received: 22
16 Dec 2020 19:32 - 16 Dec 2020 19:33 #192162
by The Feral Engineer
Replied by The Feral Engineer on topic Prevent spindle start if a certain tool is selected?
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.
Last edit: 16 Dec 2020 19:33 by The Feral Engineer.
Please Log in or Create an account to join the conversation.
- The Feral Engineer
- Offline
- Senior Member
Less
More
- Posts: 79
- Thank you received: 22
16 Dec 2020 19:38 #192164
by The Feral Engineer
Replied by The Feral Engineer on topic Prevent spindle start if a certain tool is selected?
okay, i see it now. when i use halconfig to check out my spindle.0.on, with the inhibit circuit, it doesn't turn on.
Please Log in or Create an account to join the conversation.
- alkabal
- Offline
- Platinum Member
Less
More
- Posts: 476
- Thank you received: 52
16 Dec 2020 19:51 - 16 Dec 2020 20:19 #192171
by alkabal
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
Replied by alkabal on topic Prevent spindle start if a certain tool is selected?
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
Last edit: 16 Dec 2020 20:19 by alkabal.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19430
- Thank you received: 6517
16 Dec 2020 20:22 #192177
by tommylight
Spindle has another pin that should be possible to use
spindle-on
and
motion.spindle-on
Pulling that down should disable spindle.
Replied by tommylight on topic Prevent spindle start if a certain tool is selected?
I do not think the clasicladder is the way of doing this, hal is better in my opinion.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 or Create an account to join the conversation.
- alkabal
- Offline
- Platinum Member
Less
More
- Posts: 476
- Thank you received: 52
16 Dec 2020 20:26 - 16 Dec 2020 20:42 #192180
by alkabal
Replied by alkabal on topic Prevent spindle start if a certain tool is selected?
Well i think about using a logic like this
if Probe.input = 1 and (spindle.0.on or spindle.0.orient or Tool =1)
Then toggle halui.abort and display warning to user
if Probe.input = 1 and (spindle.0.on or spindle.0.orient or Tool =1)
Then toggle halui.abort and display warning to user
Last edit: 16 Dec 2020 20:42 by alkabal.
Please Log in or Create an account to join the conversation.
- alkabal
- Offline
- Platinum Member
Less
More
- Posts: 476
- Thank you received: 52
16 Dec 2020 20:28 - 16 Dec 2020 20:30 #192182
by alkabal
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.
Replied by alkabal on topic Prevent spindle start if a certain tool is selected?
I do not think the clasicladder is the way of doing this, hal is better in my opinion.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.
Last edit: 16 Dec 2020 20:30 by alkabal.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19430
- Thank you received: 6517
16 Dec 2020 20:41 #192186
by tommylight
Replied by tommylight on topic Prevent spindle start if a certain tool is selected?
I have to agree, that does not sound good.
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 or Create an account to join the conversation.
Time to create page: 0.113 seconds