Hi there,
I am currently using a custom G-code on our lathe to safely call up a tool and turn on spindle, coolant etc.
Here is the calling code:
G800 T0101 X1.7 Z.05 S500. M8
I would like to be able to program in the tool nose radius and tool tip direction using the system variables. So based off of the tool offset value (TXXXX) in the calling G-code it could automatically set the correct tool nose radius and tool tip vector from the program.
Something like this:
Where
V = tool tip vector
R = tool nose radius
G800 T0101 X1.7 Z.05 S500. M8 V3. R.032
I have considered automatically assigning a tool offset value based on the turret pos which I think I could get to work, but would like to be able to leave Turret position and offset in calling program if possible.
I am not sure if there is a way to do this?
Any ideas / help appreciated.
Thanks
The possibility of assigning tool nose radius and tool tip direction might depend on the capabilities of your CNC controller. Some controllers allow for more advanced parameter handling within macros. If your controller has advanced macro B capabilities, you could assign the values in a system macro as you’ve described, but older controllers might require manual input tunnel rush.