Hello, how are you? I have built a machine that has 7 heads,
I would like to know if you can create a macro that when reading a tool change in g code, the macro calls the offset in the X and Y axes of that tool.
I tried but I don't understand any programming and
I've seen videos of machines doing it but I can't.
I only have this macro M6 star but it does not work well for me
Thank you
attentively
'get new tool number
newtool = GetSelectedTool()
'select Offset by toolnumber
If newtool = 1 Then
Code "G54"
Else
Code "G55"
End If
If newtool = 2 Then
Code "G55"
Else
Code "G56"
End If
If newtool = 3 Then
Code "G56"
Else
Code "G57"
End If