- Posts: 121
- Thank you received: 0
Linuxcnc locks up on T1 M6 (Manual Tool Change)
- MakingStuff
- Topic Author
- Offline
- Premium Member
-
Less
More
5 years 9 months ago #196166
by MakingStuff
Linuxcnc locks up on T1 M6 (Manual Tool Change) was created 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 to join the conversation.
5 years 9 months ago #196168
by andypugh
Replied by andypugh on topic Linuxcnc locks up on T1 M6 (Manual Tool Change)
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
linuxcnc.org/docs/html/man/man1/iocontrol.1.html
linuxcnc.org/docs/html/man/man1/hal_manualtoolchange.1.html
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
Code:
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
Please Log in to join the conversation.
- MakingStuff
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 121
- Thank you received: 0
5 years 9 months ago #196215
by MakingStuff
Replied by MakingStuff on topic Linuxcnc locks up on T1 M6 (Manual Tool Change)
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.
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 to join the conversation.
5 years 9 months ago #196220
by andypugh
Replied by andypugh on topic Linuxcnc locks up on T1 M6 (Manual Tool Change)
Is my reply any more helpful now that I have fixed the miss-matched code tags?
Please Log in to join the conversation.
- MakingStuff
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 121
- Thank you received: 0
5 years 9 months ago #196247
by MakingStuff
Replied by MakingStuff on topic Linuxcnc locks up on T1 M6 (Manual Tool Change)
Yes i understand it now. I made your changes and I get the error Pin: hal_manualtoolchange.change does not exist.
Please Log in to join the conversation.
5 years 9 months ago #196248
by andypugh
Replied by andypugh on topic Linuxcnc locks up on T1 M6 (Manual Tool Change)
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
Have a look at the sim configs to see how to do that, for example:
github.com/LinuxCNC/linuxcnc/blob/43ac97...manualtoolchange.hal
Please Log in to join the conversation.
- MakingStuff
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 121
- Thank you received: 0
5 years 9 months ago #196252
by MakingStuff
Replied by MakingStuff on topic Linuxcnc locks up on T1 M6 (Manual Tool Change)
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
Thanks for your help.
Bob
Please Log in to join the conversation.
7 months 2 days ago #344904
by Jaragua
Replied by Jaragua on topic Linuxcnc locks up on T1 M6 (Manual Tool Change)
Tem que colocar abaixo do link do código mais essas linhas:
net tool-prepare iocontrol.0.tool-prepare iocontrol.0.tool-prepared
net tool-prepare iocontrol.0.tool-prepare iocontrol.0.tool-prepared
Please Log in to join the conversation.
Time to create page: 0.093 seconds
