auto tool change macro
Posted: Sat Apr 01, 2017 3:59 am
hello dave,
i am running millturn successfully with a 7 tool gang block and i love it. now i want to automate the tool change for gcode programms i tested before.
in the manual you write that you have to change the m6atc script. i am not familiar with macro programming but i guess in case of a tool block the macro should be quite simple. i think it should be enough if the z axis moves up in machine coordinates to a safe position, lets say z-50.
would the script look like this?
Option Explicit
'********DO NOT remove or change the expand line or the included file contents******************
' MachStdMIll license terms REQUIRE that the copyright and License terms remain a part of this source file
#expand <Masters\Headers\CopyRightAndLicenseNotice>
'**************************************************************************************
' this is a template script for M6ATC.m1s
' This template is installed by MSM into <mach install dir>\MachStdMill\Profile Macro Masters\Templates
'
' the Auto Tool Changer implementer should flesh this template out with appropriate code.
' this script is called from MSMM6start for AutoTC mode
' the script will be looked for by M6Start in the macro dir for the current profile
' i.e. in "<mach install dir>\Macros\<GetActiveProfileName() >\" and the name of the script in that dir must be "M6ATC"
'
' this script is responsible for physically putting GetSelectedTool() into the spindle
' this script should returns when the tool mount is complete
'
' the routine should do all TC operations in G53 coordinates
' Routine is entered with G90 G00 G40
' entry point into the script
G53 Z-50
msgbox "M6ATC was called."
exit sub
would that be correct?
thanks for your help,
michael
i am running millturn successfully with a 7 tool gang block and i love it. now i want to automate the tool change for gcode programms i tested before.
in the manual you write that you have to change the m6atc script. i am not familiar with macro programming but i guess in case of a tool block the macro should be quite simple. i think it should be enough if the z axis moves up in machine coordinates to a safe position, lets say z-50.
would the script look like this?
Option Explicit
'********DO NOT remove or change the expand line or the included file contents******************
' MachStdMIll license terms REQUIRE that the copyright and License terms remain a part of this source file
#expand <Masters\Headers\CopyRightAndLicenseNotice>
'**************************************************************************************
' this is a template script for M6ATC.m1s
' This template is installed by MSM into <mach install dir>\MachStdMill\Profile Macro Masters\Templates
'
' the Auto Tool Changer implementer should flesh this template out with appropriate code.
' this script is called from MSMM6start for AutoTC mode
' the script will be looked for by M6Start in the macro dir for the current profile
' i.e. in "<mach install dir>\Macros\<GetActiveProfileName() >\" and the name of the script in that dir must be "M6ATC"
'
' this script is responsible for physically putting GetSelectedTool() into the spindle
' this script should returns when the tool mount is complete
'
' the routine should do all TC operations in G53 coordinates
' Routine is entered with G90 G00 G40
' entry point into the script
G53 Z-50
msgbox "M6ATC was called."
exit sub
would that be correct?
thanks for your help,
michael