Macro automatic tool length
10 Nov 2024 23:22 - 10 Nov 2024 23:23 #314221
by greg23_78
Macro automatic tool length was created by greg23_78
I need your help because I'm completely lost when it comes to programming my macro for automatic tool length.
I'm aware that there are several solutions for setting my tool length, but I'm going round in circles.
I have an ATC spindle and a tool setter that is fixed and doesn't move.
i use AXIS and i wouldn't use probe panel
I would like to do my macro with the solution where in my tool table the Z offset data is the exact tool length (tool + ISO20).
the set-up procedure would be :
1 - I touch my martyr plate / set 0 / and I trigger my tool setter
conclusion: i know the height of my tool setter
2 - I touch my spindle without tool to trigger my tool setter
conclusion: I know the machine coordinate of my Z axis for a contact between the spindle and my tool setter
procedure for a job :
1- I choose any tool (which has been calculated with the tool setter) by activating tool compensation T3 M6 G43
2-touch my workpiece and touch off = 0
3-start program
question :
what would be my equation to calculate the tool length.?G10 L1 P#<_tool> Z.........
i know, i think is very easy but my brain is block with that ...
I'm aware that there are several solutions for setting my tool length, but I'm going round in circles.
I have an ATC spindle and a tool setter that is fixed and doesn't move.
i use AXIS and i wouldn't use probe panel
I would like to do my macro with the solution where in my tool table the Z offset data is the exact tool length (tool + ISO20).
the set-up procedure would be :
1 - I touch my martyr plate / set 0 / and I trigger my tool setter
conclusion: i know the height of my tool setter
2 - I touch my spindle without tool to trigger my tool setter
conclusion: I know the machine coordinate of my Z axis for a contact between the spindle and my tool setter
procedure for a job :
1- I choose any tool (which has been calculated with the tool setter) by activating tool compensation T3 M6 G43
2-touch my workpiece and touch off = 0
3-start program
question :
what would be my equation to calculate the tool length.?G10 L1 P#<_tool> Z.........
i know, i think is very easy but my brain is block with that ...
Last edit: 10 Nov 2024 23:23 by greg23_78.
Please Log in or Create an account to join the conversation.
11 Nov 2024 11:14 #314232
by MaHa
Replied by MaHa on topic Macro automatic tool length
As G38.n returns results in current coordinate system, how to get absolute G53 values.
This calculates G53 distance to toolseter. Can be used to touch off spindle or tool
#<h_ts> = trigger point of toolseter, distance to table
Touch off spindle on toolsetter, get G53 distance spindle to table surface:
This shouln't change much, if there is a good repetition with homing Z. So this 2 results can be set as ini parameter, or placed in the probing routine.
Touch off Tool, cancel toollength G49
Touch off workpiece 0, apply G43
This calculates G53 distance to toolseter. Can be used to touch off spindle or tool
[#5063 + #[5203 + [#5220 * 20]]]
#<h_ts> = trigger point of toolseter, distance to table
Touch off spindle on toolsetter, get G53 distance spindle to table surface:
#<table_s> = [ABS[#5063 + #[5203 + [#5220 * 20]]] + #<h_ts>]
This shouln't change much, if there is a good repetition with homing Z. So this 2 results can be set as ini parameter, or placed in the probing routine.
Touch off Tool, cancel toollength G49
#<TOOL_L> = ABS[#<table_s> - [#5063 + #[5203 + [#5220 * 20]]]]
G10 L1 P#5400 Z#<TOOL_L>
Touch off workpiece 0, apply G43
The following user(s) said Thank You: Aciera
Please Log in or Create an account to join the conversation.
11 Nov 2024 18:57 #314271
by wusel0464
Replied by wusel0464 on topic Macro automatic tool length
Hello,
maybe the link will help.
forum.linuxcnc.org/qtvcp/39423-qtdragon-...-tool-change?start=0
Best regards, Frank.
maybe the link will help.
forum.linuxcnc.org/qtvcp/39423-qtdragon-...-tool-change?start=0
Best regards, Frank.
Please Log in or Create an account to join the conversation.
Time to create page: 0.119 seconds