Disable manual tool change dialog

More
3 years 7 months ago #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.

 

Attachment not found

Please Log in to join the conversation.

More
3 years 7 months ago #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 to join the conversation.

More
3 years 7 months ago #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.

 

Attachment not found



 

Please Log in to join the conversation.

More
3 years 7 months ago #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.

Please Log in to join the conversation.

More
3 years 7 months ago #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 to join the conversation.

More
3 years 7 months ago #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 to join the conversation.

More
3 years 6 months ago #269461 by Jeff_in_Wa
Hi there
When I want to disable tool changes, I disable the M6 in the post

You can also remove that line in your gcode in the post editor

Please Log in to join the conversation.

More
3 years 6 months ago #269468 by newbynobi
@Jeff_in_Wa: This is to disable the tool change window, not the tool change itself!

I would try to connect gmoccapy.tool-change with gmoccapy.tool-changed without connected them ti iocontrol.

Norbert

Please Log in to join the conversation.

More
3 years 6 months ago #269544 by MichalHK
Sorry it was my fault. Today I found that I havent connected iocontrol.0.tool-changed pin.
Thanks so much all.

Please Log in to join the conversation.

Time to create page: 0.092 seconds
Powered by Kunena Forum