signal tool change complete with physical panel button

More
5 years 6 months ago #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
5 years 6 months ago #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
5 years 6 months ago #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
5 years 6 months ago #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
Code:
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
5 years 6 months ago #205971 by cmorley
can you post all your config files?

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

More
5 years 6 months ago #206333 by sliptonic

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

Moderators: newbynobi, HansU
Time to create page: 0.308 seconds
Powered by Kunena Forum