signal tool change complete with physical panel button
11 Apr 2021 23:59 #205685
by sliptonic
signal tool change complete with physical panel button was created by sliptonic
This should be an easy one but I must be missing something.
I do manual toolchanging in gmoccapy. I've been using the on-screen dialog but now I want to wire an indicator and physical switch on the panel.
I have a physical momentary switch wired into my mesa board. HALshow indicates it's working correctly. I just can't figure out exactly what hal connections I need to make to cause a press of the button to complete the tool change.
My first guess was to net toolChangeDone hal_manualtoolchange.change_button <= hm2_5i25.0.7i77.0.0.input-16
but that did nothing.
After all these years, I still consider myself a HAL noob. :-P
I do manual toolchanging in gmoccapy. I've been using the on-screen dialog but now I want to wire an indicator and physical switch on the panel.
I have a physical momentary switch wired into my mesa board. HALshow indicates it's working correctly. I just can't figure out exactly what hal connections I need to make to cause a press of the button to complete the tool change.
My first guess was to net toolChangeDone hal_manualtoolchange.change_button <= hm2_5i25.0.7i77.0.0.input-16
but that did nothing.
After all these years, I still consider myself a HAL noob. :-P
Please Log in or Create an account to join the conversation.
12 Apr 2021 00:24 #205687
by cmorley
Replied by cmorley on topic signal tool change complete with physical panel button
That should be the right pin.
The sim configs for gmoccapy seem not to use manual tool change so I can't confirm with it but I did confirm with Axis.
The sim configs for gmoccapy seem not to use manual tool change so I can't confirm with it but I did confirm with Axis.
Please Log in or Create an account to join the conversation.
14 Apr 2021 23:18 #205948
by sliptonic
Replied by sliptonic on topic signal tool change complete with physical panel button
Manualtoolchange component is loaded in my config but I have no idea if gmoccapy is using it. I only know that setting change_button to true has no effect. Certainly someone has done this already.
Please Log in or Create an account to join the conversation.
14 Apr 2021 23:44 #205953
by pippin88
Replied by pippin88 on topic signal tool change complete with physical panel button
I'm on phone so a bit tricky but:
My lathe uses gmoccapy and has a tool changer turret. My toolchange component uses the following hal pins
I believe iocontrol.0.tool-changed is what you want.
iocontrol.0.tool-changed
(Bit, In) Should be driven TRUE when a tool change is completed.
linuxcnc.org/docs/html/man/man1/iocontrol.1.html
My lathe uses gmoccapy and has a tool changer turret. My toolchange component uses the following hal pins
net tool-change iocontrol.0.tool-change => PC200changer.toolchange
net tool-changed iocontrol.0.tool-changed <= PC200changer.toolchanged
net tool-number iocontrol.0.tool-prep-number => PC200changer.reqtoolnumber
net tool-oldnumber iocontrol.0.tool-number => PC200changer.currenttoolnumber
net tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared
I believe iocontrol.0.tool-changed is what you want.
iocontrol.0.tool-changed
(Bit, In) Should be driven TRUE when a tool change is completed.
linuxcnc.org/docs/html/man/man1/iocontrol.1.html
Please Log in or Create an account to join the conversation.
15 Apr 2021 01:55 #205971
by cmorley
Replied by cmorley on topic signal tool change complete with physical panel button
can you post all your config files?
Please Log in or Create an account to join the conversation.
18 Apr 2021 20:15 #206333
by sliptonic
Replied by sliptonic on topic signal tool change complete with physical panel button
Current configuration is here: github.com/sliptonic/millstone
Please Log in or Create an account to join the conversation.
18 Apr 2021 23:16 #206343
by cmorley
Replied by cmorley on topic signal tool change complete with physical panel button
this config seems to indicate that you are using the GMoccapy builtin tool changer mechanism not the hal_maniaualtoolchange component.
Looks like GMoccapy has no builtin way to externally close the dialog and dwiddle the pins like hal_manualtoolchange does.
Maybe Norbert can advise a work around or point out what i may have missed.
Looks like GMoccapy has no builtin way to externally close the dialog and dwiddle the pins like hal_manualtoolchange does.
Maybe Norbert can advise a work around or point out what i may have missed.
Please Log in or Create an account to join the conversation.
28 Apr 2021 22:53 #207340
by sliptonic
Replied by sliptonic on topic signal tool change complete with physical panel button
I configured it as shown below.
Pushing the button does complete the tool change but doesn't dismiss the gmoccapy dialog. I think this is what you were referring to.
Do @mentions work here? Pinging @newbynobi
#pins for manual tool change
net tool-change gmoccapy.toolchange-change <= iocontrol.0.tool-change
net itool-changed or2.1.in0 <= gmoccapy.toolchange-changed
net etool-changed or2.1.in1 <= hm2_5i25.0.7i77.0.0.input-16
net tool-changed iocontrol.0.tool-changed <= or2.1.out
net tool-prep-number gmoccapy.toolchange-number <= iocontrol.0.tool-prep-number
net tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared
Pushing the button does complete the tool change but doesn't dismiss the gmoccapy dialog. I think this is what you were referring to.
Do @mentions work here? Pinging @newbynobi
#pins for manual tool change
net tool-change gmoccapy.toolchange-change <= iocontrol.0.tool-change
net itool-changed or2.1.in0 <= gmoccapy.toolchange-changed
net etool-changed or2.1.in1 <= hm2_5i25.0.7i77.0.0.input-16
net tool-changed iocontrol.0.tool-changed <= or2.1.out
net tool-prep-number gmoccapy.toolchange-number <= iocontrol.0.tool-prep-number
net tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared
Please Log in or Create an account to join the conversation.
29 Apr 2021 21:37 #207414
by newbynobi
Replied by newbynobi on topic signal tool change complete with physical panel button
Pinging does not work here, but I am watching ;¬}
I may need to add an confirm Hal pin to all dialogs, but will need some time.
I am busy with real important project for my daughter at the moment.
Norbert
I may need to add an confirm Hal pin to all dialogs, but will need some time.
I am busy with real important project for my daughter at the moment.
Norbert
Please Log in or Create an account to join the conversation.
27 Feb 2022 23:34 - 27 Feb 2022 23:34 #235960
by depronman
Replied by depronman on topic signal tool change complete with physical panel button
I asked the same question about 12 months ago and got the answer that there is no HAL pin
A suggestion is to press the enter key on the keyboard to confirm the tool change
I rigged up a 'keyboard hack' to have the 'enter' key on a physical button on my control panel
A suggestion is to press the enter key on the keyboard to confirm the tool change
I rigged up a 'keyboard hack' to have the 'enter' key on a physical button on my control panel
Last edit: 27 Feb 2022 23:34 by depronman.
Please Log in or Create an account to join the conversation.
Time to create page: 0.099 seconds