Thank you Tweakie
Will this work?
'ATC Home
Code("M7")         'Unlock tool changer turret
Sleep(1000)               'Wait to unlock
SingleVerify(3)         'Home A axis, 3 = A axis
 
Sleep(20000)         'Wait for some time
Code("M9")       'Lock tool changer turret
Sleep(1000)               'Allow to lock
Then I put it into the macro folder, but how do I assigne a G code or buttom?
Gaute