591
VB and the development of wizards / Re: macro to call g54 and g55, etc
« on: December 28, 2019, 03:04:37 AM »
witch toolchange macro depends on your Settings Config->General Config->Tool Change
if Stop spindle. Wait for cycle Start is selected M6Start.m1s will be excecute when M6 is called in GCode and M6End.M1s
will be started after pressing Cycles Start after Toolchange is fineshed.
if Auto Tool Changer is selected only M6Start.M1s will be exceuted.
in one of this macro you can do your own code, f.e.
if Stop spindle. Wait for cycle Start is selected M6Start.m1s will be excecute when M6 is called in GCode and M6End.M1s
will be started after pressing Cycles Start after Toolchange is fineshed.
if Auto Tool Changer is selected only M6Start.M1s will be exceuted.
in one of this macro you can do your own code, f.e.
Code: [Select]
'get new tool number
newtool = GetSelectedTool()
'select Offset by toolnumber
If newtool = 1 then
Code "G54"
Else
Code "G55"
End If