emery

M01 is a standard for optional Stop

M00 is a standard for program Stop

Just use the standard T1M6 for a tool change The T command is the tool number the M6 is the tool change command

Tool offset you would want G43 H1 Z---

At the end of you program before a tool change you need the Z to move up before a X Y move

G28 Z--- or a G0Z---
Then a X Y move this needs to be on a separate line

For a manual Tool change use a G28 X---Y--- or a G0 X---- Y----