Linuxcnc locks up on T1 M6 (Manual Tool Change)

More
22 Jan 2021 00:37 #196166 by MakingStuff
When my machine reads a tool change command in g-code, such as T1 M6 it pauses like it should for a manual tool change. However, there is no popup displayed or button in the GUI to press to tell the machine to continue. The only way to get the machine out this paused state is to restart LinuxCNC. Anyone know what I need to do to fix this?

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

More
22 Jan 2021 00:53 - 22 Jan 2021 13:11 #196168 by andypugh
Do you want the pop-up?

There are two handshake loops:

iocontrol.0.tool-prepare => iocontrol.0.tool-prepared
iocontrol.0.tool-change => iocontrol.0.tool-changed

The T-word sets the tool-prepare pin high, and paused until tool-prepared goes high.
M6 does the same to tool-change.

For manual tool change you typically short-circuit prepare and insert hal_manualtoolchange in the change loop
net tool-prep-loop iocontrol.0.tool-prepare => iocontrol.0.tool-prepared
net tool-change-req iocontrol.0.tool-change => hal_manualtoolchange.change
net tool-change-confirm hal_manualtoolchange.changed => iocontrol.0.tool-changed

linuxcnc.org/docs/html/man/man1/iocontrol.1.html
linuxcnc.org/docs/html/man/man1/hal_manualtoolchange.1.html
Last edit: 22 Jan 2021 13:11 by andypugh.

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

More
22 Jan 2021 13:05 #196215 by MakingStuff
Yes I would like the popup or some way to tell the computer to continue processing the g-code.

If I put the two handshake loops in my .hal file, the program doesn't pause at all.
iocontrol.0.tool-prepare => iocontrol.0.tool-prepared
iocontrol.0.tool-change => iocontrol.0.tool-changed

I'm not sure what else to do based on the rest of your reply.

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

More
22 Jan 2021 13:12 #196220 by andypugh
Is my reply any more helpful now that I have fixed the miss-matched code tags?

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

More
22 Jan 2021 17:25 #196247 by MakingStuff
Yes i understand it now. I made your changes and I get the error Pin: hal_manualtoolchange.change does not exist.

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

More
22 Jan 2021 17:32 #196248 by andypugh
I guess that you HAL file doesn't load hal_manualtoolchange then.

Have a look at the sim configs to see how to do that, for example:
github.com/LinuxCNC/linuxcnc/blob/43ac97...manualtoolchange.hal
The following user(s) said Thank You: MakingStuff

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

More
22 Jan 2021 17:59 #196252 by MakingStuff
I got it working. I had "loadusr hal_manualtoolchange" in my hal file and it should have been "loadusr -W hal_manualtoolchange"

Thanks for your help.

Bob

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

Time to create page: 0.273 seconds
Powered by Kunena Forum