- Posts: 44
- Thank you received: 0
read tool table from Gcode
5 years 5 months ago #208328
by rogerxue
read tool table from Gcode was created 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
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 to join the conversation.
5 years 5 months ago #208380
by bevins
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.
Replied by bevins on topic read tool table from Gcode
rogerxue wrote: 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 to join the conversation.
Time to create page: 0.066 seconds
