read tool table from Gcode

More
08 May 2021 18:37 #208328 by rogerxue
Hi I had an issue that If the machine is not homed, if you try to do MDI T1 M6, it will throw error and stop. At this point if you check _current_tool is still 0, but the _current_pocket is already changed to the pocket correspond to T1.

I did a remap on M6, so I want to add a check logic to make sure the current pocket and current tool match.

Is there a way to read the tool table in G code?

thanks

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

More
09 May 2021 15:03 #208380 by bevins
Replied by bevins on topic read tool table from Gcode

Hi I had an issue that If the machine is not homed, if you try to do MDI T1 M6, it will throw error and stop. At this point if you check _current_tool is still 0, but the _current_pocket is already changed to the pocket correspond to T1.

I did a remap on M6, so I want to add a check logic to make sure the current pocket and current tool match.

Is there a way to read the tool table in G code?

thanks


Thats becasue linuxcnc doesnt keep track of pockets when shutdown. When you start linuxcnc pocket will equal -1 which equates to no pocket selected, pocket 0.

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

Time to create page: 0.361 seconds
Powered by Kunena Forum