Forum Posts

clbcrain914
Feb 18, 2022
In Custom Macro
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
0
1
13
clbcrain914
More actions