Hi Graham,
Thanks for your reply.
Now when I run the program with your mods it does the following.
Initial set up with tool 0 and x set to 0.
Cycle Start to run program -
'Press cycle start after tool change' line 20 - DRO X=0
'Press cycle start after tool change' line 40 - X moves to X=7.95 DRO X=+7.95
Once cycle start is pressed X axis moves to X=0 and X=0 shown on DRO
Z moves to Z=0
Spindle stops
Z moves to Z=15
At T0300 X DRO = -7.933
Press cycle start X moves, X DRO = -3.96
Second time and subsequent runs of the program the X readings are slightly different.
Cycle Start to run program -
DRO X=-3.96
'Press cycle start after tool change' line 20 - X moves to X=-1.98 DRO X=-1.98
'Press cycle start after tool change' line 40 -Xmoves to X7.95 DRO X=7.94
Once cycle start is pressed X axis moves to X=0
Z moves to Z=0
Spindle stops
Z moves to Z=15
At T0300 X DRO = -7.933
Press cycle start X moves, X DRO = -3.96
I hope you can help ! I'm lost with this one.
Hi Hood,
The M6Start.m1s macro has this -
tool = GetSelectedTool()
SetCurrentTool( tool )
Cheers,
Derek.
what happens if you change your code to this :-
Graham