read tool table from Gcode
- rogerxue
- Offline
- Senior Member
Less
More
- Posts: 44
- Thank you received: 1
08 May 2021 18:37 #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 or Create an account to join the conversation.
- bevins
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
09 May 2021 15:03 #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
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.055 seconds