signal tool change complete with physical panel button

More
11 Apr 2021 23:59 #205685 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

Please Log in or Create an account to join the conversation.

More
12 Apr 2021 00:24 #205687 by cmorley
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.

Please Log in or Create an account to join the conversation.

More
14 Apr 2021 23:18 #205948 by sliptonic
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.

More
14 Apr 2021 23:44 #205953 by pippin88
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
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.

More
15 Apr 2021 01:55 #205971 by cmorley
can you post all your config files?

Please Log in or Create an account to join the conversation.

More
18 Apr 2021 20:15 #206333 by sliptonic

Please Log in or Create an account to join the conversation.

More
18 Apr 2021 23:16 #206343 by cmorley
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.

Please Log in or Create an account to join the conversation.

More
28 Apr 2021 22:53 #207340 by sliptonic
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

Please Log in or Create an account to join the conversation.

More
29 Apr 2021 21:37 #207414 by newbynobi
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

Please Log in or Create an account to join the conversation.

Moderators: newbynobi
Time to create page: 0.099 seconds
Powered by Kunena Forum