ah, ok.......
I am ASSUMING..... that you want to "Home" the A ONCE per user session? It would be best to use Machs Native homing routines.
in which case you don't need any macro, just pipe your home switch to mach3.
on the other hand, if your doing this for each time you call the "A" axis before going to find the tool, you can again use a Hybrid version of the Homing routine.
Note you will need to bring in the homing input inside of Ports and Pins and set it's port and pin number to be your A axis home.
'M6Start.m1s
DoOEMButton(1025) 'This will Re-Ref (or Ref), you A axis only.
Code "G1 A-10 F6" 'If you need to move some distance, after your homing to "line up" your first slot, then put in then change this amount to what you need.
While IsMoving() 'Old school wait till it finishes moving.
Wend
DoOEMButton(1011) 'If you want to "Zero" your A axis at the main tool slot, so that from this point on, you can have your the rest of your ATC code move to
'tool slots based on Tool Slot 1, being your A=0 degrees.
'The rest of your ATC code for moving to new positions here.
'scott