Disable manual tool change dialog

More
16 Mar 2023 09:34 - 16 Mar 2023 09:35 #266816 by MichalHK
Hello,

simple question. How I can disable manual tool change dialog in gmoccapy 3.1.3.8?
Im using my own M6 and random tool changer. I have 2 machines one using linuxcnc 2.7 one 2.8.
Code and configuration is same but at 2.8 lcnc is showing this dialog.
I can send hal, ini no problem.

 
Attachments:
Last edit: 16 Mar 2023 09:35 by MichalHK.

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

More
16 Mar 2023 10:45 #266820 by HansU
I guess it's done with disconnecting these pins: linuxcnc.org/docs/2.9/html/gui/gmoccapy.html#_tool_related_pins

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

More
16 Mar 2023 12:04 #266829 by MichalHK
Yes that was first that I check.
Problem is that I dont using this pin in hal. So I think all pins is disconncted.
Another problem is I dont see gmoccapy.toolchange-confirm pin.
Misterious are that I click to gmoccapy.toolchange-change pin in halshow. I see toolchange-change and toolchange-changed pin.

 

 
Attachments:

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

More
16 Mar 2023 13:29 - 16 Mar 2023 13:30 #266835 by HansU

Yes that was first that I check.
Problem is that I dont using this pin in hal. So I think all pins is disconncted.

Sure? Also not in the postgui-halfile? They are connected there by default.
If those pins are not connected, Gmoccapy won't pop up that dialog.

Another problem is I dont see gmoccapy.toolchange-confirm pin.

That's probably because I linked to the 2.9 documentation, sorry. 2.8 does not have that pin.
But that pin is not relevant here.

Misterious are that I click to gmoccapy.toolchange-change pin in halshow. I see toolchange-change and toolchange-changed pin.

Only a little uncertainty in halshow. It just does "halcmd show pin gmoccapy.toolchange-change" which lists you both pins.
Last edit: 16 Mar 2023 13:30 by HansU.

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

More
16 Mar 2023 16:10 #266842 by MichalHK
Yes I checked postgui-halfile list many times. Also check halshow and pins is not connected.
Then edit /usr/bin/gmoccapy line 4422.
There is definition def on_tool_change i simple rewrite it that only set self.halcomp["toolchange-changed"] = true
No show some dialog window atc... simple set variable to true.
Restart Lcnc and nothing happend. Dialog is still there. So I have no idea which code call it.

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

More
16 Mar 2023 17:12 #266847 by HansU
You can try the gmoccapy sim sample configuration.
This config should not show any tool change dialog because the corresponding lines are commented out: github.com/LinuxCNC/linuxcnc/blob/2.8/co...gmoccapy_postgui.hal

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

Moderators: newbynobiHansU
Time to create page: 0.154 seconds
Powered by Kunena Forum