External Pause/Resume Button & Manual Tool Change
05 Dec 2015 05:43 #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 or Create an account to join the conversation.
06 Dec 2015 01:20 #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
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 or Create an account to join the conversation.
21 May 2019 05:23 #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 or Create an account to join the conversation.
21 May 2019 06:46 #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 or Create an account to join the conversation.
Time to create page: 0.069 seconds