Gmoccapy Tool Change Dialog
- electrosteam
- Offline
- Senior Member
-
Less
More
- Posts: 76
- Thank you received: 5
11 May 2025 05:26 #328188
by electrosteam
Gmoccapy Tool Change Dialog was created by electrosteam
Still on the learning path of Gmoccapy.
Now trying to get the Tool Table to work.
I do not have a tool changer in operation, just manual.
On my Axis GUI, "Tn M6" initiates a pop-up dialog box with a prompt to accept tool number "n", and Continue.
Gmoccapy does not, it just stalls without an error declared.
Dug into the Hal files for Axis and Gmoccapy.
Discovered a Section " ... Use external manual tool change dialog ..." in the Axis file but not in the Gmoccapy file.
Perhaps I entered an incorrect response in the PnCConf Wizard when I generated my Gmoccapy install.
But, my searching found old posts that suggested inclusion of this section in the gmoccapy_postgui.hal file.
My Axis postgui.hal file is empty.
My gmoccapy_postgui.hal contains similar entries, but with differences.
This is my gmoccapy_postgui.hal file:
# ---manual tool change signals to gmoccapy's dialog---
net tool-change-request => gmoccapy.toolchange-change
net tool-change-confirmed <= gmoccapy.toolchange-changed
net tool-number => gmoccapy.toolchange-number
Is this correct ?
Is there anything else I should do to get the Tool Change Dialog working ?
John.
Now trying to get the Tool Table to work.
I do not have a tool changer in operation, just manual.
On my Axis GUI, "Tn M6" initiates a pop-up dialog box with a prompt to accept tool number "n", and Continue.
Gmoccapy does not, it just stalls without an error declared.
Dug into the Hal files for Axis and Gmoccapy.
Discovered a Section " ... Use external manual tool change dialog ..." in the Axis file but not in the Gmoccapy file.
Perhaps I entered an incorrect response in the PnCConf Wizard when I generated my Gmoccapy install.
But, my searching found old posts that suggested inclusion of this section in the gmoccapy_postgui.hal file.
My Axis postgui.hal file is empty.
My gmoccapy_postgui.hal contains similar entries, but with differences.
This is my gmoccapy_postgui.hal file:
# ---manual tool change signals to gmoccapy's dialog---
net tool-change-request => gmoccapy.toolchange-change
net tool-change-confirmed <= gmoccapy.toolchange-changed
net tool-number => gmoccapy.toolchange-number
Is this correct ?
Is there anything else I should do to get the Tool Change Dialog working ?
John.
Please Log in or Create an account to join the conversation.
- Wischi
- Offline
- Senior Member
-
Less
More
- Posts: 40
- Thank you received: 3
11 May 2025 09:10 #328192
by Wischi
Replied by Wischi on topic Gmoccapy Tool Change Dialog
Take a look at:
www.linuxcnc.org/docs/html//gui/gmoccapy...l#_tool_related_pins
It seems that you are missing the iocontrol connections. Putting these into the postgui file is correct.
www.linuxcnc.org/docs/html//gui/gmoccapy...l#_tool_related_pins
It seems that you are missing the iocontrol connections. Putting these into the postgui file is correct.
Please Log in or Create an account to join the conversation.
- electrosteam
- Offline
- Senior Member
-
Less
More
- Posts: 76
- Thank you received: 5
11 May 2025 20:34 #328228
by electrosteam
Replied by electrosteam on topic Gmoccapy Tool Change Dialog
Thanks for that, I will review the documentation and try implementation later today.
John
John
Please Log in or Create an account to join the conversation.
- electrosteam
- Offline
- Senior Member
-
Less
More
- Posts: 76
- Thank you received: 5
12 May 2025 10:12 #328262
by electrosteam
Replied by electrosteam on topic Gmoccapy Tool Change Dialog
Well, I have been trying for a couple of hours to get this to work.
Not sure just what should be in gm.hal versus gmoccapy_postgui.hal.
Can someone please post a working solution for both hal files ?
John.
Not sure just what should be in gm.hal versus gmoccapy_postgui.hal.
Can someone please post a working solution for both hal files ?
John.
Please Log in or Create an account to join the conversation.
- Wischi
- Offline
- Senior Member
-
Less
More
- Posts: 40
- Thank you received: 3
12 May 2025 12:09 #328269
by Wischi
Replied by Wischi on topic Gmoccapy Tool Change Dialog
Please post your gm.hal and gmoccapy_postgui.hal so we can have a look. The gmoocapy_postgui.hal should include the lines from the documentation.
Please Log in or Create an account to join the conversation.
- electrosteam
- Offline
- Senior Member
-
Less
More
- Posts: 76
- Thank you received: 5
12 May 2025 21:20 #328312
by electrosteam
Replied by electrosteam on topic Gmoccapy Tool Change Dialog
Files attached.
Please Log in or Create an account to join the conversation.
- Wischi
- Offline
- Senior Member
-
Less
More
- Posts: 40
- Thank you received: 3
13 May 2025 06:07 #328348
by Wischi
Replied by Wischi on topic Gmoccapy Tool Change Dialog
Postgui file looks fine.
You can remove this block from the gm.hal:
It is not connected to anything but it will remove the popup in the right hand corner when starting linuxcnc. You don't need it anymore because you use the gmoccapy tool change dialog.
Check your ini config file if it includes this line under [HAL], if not add it:
You can remove this block from the gm.hal:
loadusr -W hal_manualtoolchangenet tool-change-request => hal_manualtoolchange.change
net tool-change-confirmed <= hal_manualtoolchange.changed
net tool-number => hal_manualtoolchange.number
It is not connected to anything but it will remove the popup in the right hand corner when starting linuxcnc. You don't need it anymore because you use the gmoccapy tool change dialog.
Check your ini config file if it includes this line under [HAL], if not add it:
POSTGUI_HALFILE = gmoccapy_postgui.hal
Please Log in or Create an account to join the conversation.
- electrosteam
- Offline
- Senior Member
-
Less
More
- Posts: 76
- Thank you received: 5
13 May 2025 07:26 #328354
by electrosteam
Replied by electrosteam on topic Gmoccapy Tool Change Dialog
Thanks Wischi, now works like it should.
I had not thought to go back to the ini file ! Getting old !
Not sure what you meant by "popup in the right hand corner".
My install starts clean without a pop-up.
I do get a warning when the code reaches the tool change that the bell is not connected (it isn't).
I will soon get a bell, or de-select it.
I had not thought to go back to the ini file ! Getting old !
Not sure what you meant by "popup in the right hand corner".
My install starts clean without a pop-up.
I do get a warning when the code reaches the tool change that the bell is not connected (it isn't).
I will soon get a bell, or de-select it.
Please Log in or Create an account to join the conversation.
Moderators: newbynobi, HansU
Time to create page: 0.104 seconds