Working on Linear ATC setup editing the G6 macro I have that's included with the 2022 screen set I use.
This line of code in my macro moves the spindle to the tool holder location to drop or pickup the tool.
exec.Code("G00 G53 X" + ToolX[Currenttool] + " Y" + ToolY[Currenttool]);
while(exec.IsMoving()){}
I need to move / offset the spindle -Y 3.00 so its in front of Holder Fork then Drop Z to proper height
then move +Y 3.00 to engage the fork before Releasing clamp and raising Z
I have defined...
double ForkOffsetDrop = -3.00;
double ForkOffsetPick = 3.00;
as the distance I need to clear or engage the Fork Holder
How can I add or subtract my ForkOffsetDrop or ForkOffsetPick to this line so it positions the spindle at the correct coordinate before moving Z
exec.Code("G00 G53 X" + ToolX[Currenttool] + " Y" + ToolY[Currenttool]);
I expect its easy and I just don't know the correct syntax and misplace ( or [ etc. so I get errors with everything I try
Thank You
Ed