- Posts: 27
- Thank you received: 0
External Pause/Resume Button & Manual Tool Change
10 years 10 months ago #66438
by russtuff
External Pause/Resume Button & Manual Tool Change was created by russtuff
Right now I have an external button for pause/resume (just got it working, awesome) but when it comes to manual tool changes I still have to hit enter on the keyboard. Is there any way to have this work on the same button?
Once I get my cycle start and e-stop buttons wired up I'm going to be out of inputs on my CNC4PC BOB (my spindle and limit/home switches are the last two input pins).
My pause/resume is from this excellent post by BigJohnT: forum.linuxcnc.org/forum/47-hal-examples...tton-using-one-input
Once I get my cycle start and e-stop buttons wired up I'm going to be out of inputs on my CNC4PC BOB (my spindle and limit/home switches are the last two input pins).
My pause/resume is from this excellent post by BigJohnT: forum.linuxcnc.org/forum/47-hal-examples...tton-using-one-input
Please Log in to join the conversation.
10 years 10 months ago #66490
by andypugh
It certainly is possible, as that is how my machine works. (it's a touchscreen so hitting "enter" was really quite hard)
There is a HAL pin created by hal_manualtoolchange that has the same effect as hitting enter or clicking the dialog.
The pin is called hal_manualtoolchange.change_button.
Replied by andypugh on topic External Pause/Resume Button & Manual Tool Change
rusmannx wrote: Right now I have an external button for pause/resume (just got it working, awesome) but when it comes to manual tool changes I still have to hit enter on the keyboard. Is there any way to have this work on the same button?
It certainly is possible, as that is how my machine works. (it's a touchscreen so hitting "enter" was really quite hard)
There is a HAL pin created by hal_manualtoolchange that has the same effect as hitting enter or clicking the dialog.
The pin is called hal_manualtoolchange.change_button.
Please Log in to join the conversation.
7 years 5 months ago #134443
by phoenix
Replied by phoenix on topic External Pause/Resume Button & Manual Tool Change
this conf is working but i want two saprate pause and resume buttons externally
Please Log in to join the conversation.
7 years 5 months ago #134450
by pl7i92
Replied by pl7i92 on topic External Pause/Resume Button & Manual Tool Change
then you use a OR logic
you can have many Or in ligic steps
gnipsel.com/linuxcnc/hal/or2.html
named or2 logic is a better reding
loadrt or2 or2.btn-ext-a,or2.btn-ext-b ....
addf or2.btn-ext-a servo-thread
addf or2.btn-ext-b servo-thread
net button-1 or2.btn-ext-a.in0 <= your-pin
net button-2 or2.btn-ext-a.in1 <= your-pin
net pause halui.program.pause <= or2.btn-ext-a.out
you can have many Or in ligic steps
gnipsel.com/linuxcnc/hal/or2.html
named or2 logic is a better reding
loadrt or2 or2.btn-ext-a,or2.btn-ext-b ....
addf or2.btn-ext-a servo-thread
addf or2.btn-ext-b servo-thread
net button-1 or2.btn-ext-a.in0 <= your-pin
net button-2 or2.btn-ext-a.in1 <= your-pin
net pause halui.program.pause <= or2.btn-ext-a.out
Please Log in to join the conversation.
Time to create page: 0.221 seconds
