LinuxCNC stalls on manual toolchange routine

More
17 Jul 2024 07:46 - 17 Jul 2024 07:48 #305458 by Raksop
Hi there,
I'm currently facing some problems with my LinuxCNC setup. I have remapped the M6 command to run my macro for measuring my tool length. However, it's only working the first time the macro (messen.ngc) is called. This means:
  • The machine gets switched on and homed
  • The first tool is inserted (for example, T1) and measured with the macro
  • The zero point of the workpiece is set
  • Another tool is called via T2 M6 (MDI)
  • The machine moves to the manual tool change position and waits for the tool change
  • Upon confirmation of the tool change, the machine starts moving (to the position of the tool length sensor) and then immediately stops without fault.
I really don't know what to do anymore. LinuxCNC isn't throwing any exceptions on the Gmoccapy screen or in the terminal. It would be really nice if someone could help me out. I'm running the following setup:
  • HP ProDesk 600 G1
  • i3 4160
  • 8GB RAM
  • Mesa 7i95
Thank you very much and best regards,
Raksop
Attachments:
Last edit: 17 Jul 2024 07:48 by Raksop.

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

More
21 Jul 2024 11:04 #305773 by andypugh
Replied by andypugh on topic LinuxCNC stalls on manual toolchange routine
Try adding some debugging lines to the tool change routine.
Things like

(DEBUG, Starting toolchange, 1800 = #1800)

Just to be sure that the toolchange routine is being called, and that what you see is not just a preprogrammed tool change position.

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

More
22 Jul 2024 06:50 - 22 Jul 2024 06:51 #305836 by Raksop
I added some debug lines to the code and did the same procedure.
First tool call works and the machine stalls on the second tool call after the tool change is confirmed.
On the screenshoot u can see that the machine called the toolchange macro.
 
Attachments:
Last edit: 22 Jul 2024 06:51 by Raksop.

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

Time to create page: 0.051 seconds
Powered by Kunena Forum