Hi, I have a set of lathe tools ganged parallel to my Y axis and need some help with my m6 start and end macro's. I have a separate screen with all the tool y offsets that i can type in. The problem I'm having is that the machine is going to the last tool called and the way I'm getting around this by double entering the m6 t0101 m6 t0101 the first move goes the tool change position waits for cycle start then goes to the last tool called the second m6 t0101 it goes to the tool change position the after cycle start goes to the correct tool position. in general config I have it set on stop spindle,wait for cycle start. My VB skills are very limited so any information would be gratefully appreciated
Regards
Dale
M6 START
tool = GetSelectedTool()
SetCurrentTool( tool )
code "G0"
code "G53 Z" & GetOEMDRO(1202)
code "G53 X" & GetOEMDRO(1200) & " Y" & GetOEMDRO(1201)
M6 END
Option Explicit
Dim Tool As Integer
Tool = GetCurrentTool()
Code( "G0 Y" & GetUserDRO(1000+Tool) )