> Would you have an idea how to drive your atc by g code?

It needs to rotate a set number of steps forward to select the next tool, then backwards a few steps to lock it against the ratchet.

> Should be possible with the macro?

No doubt, but the Mk2/4 doesn't have a macro facility (yet)

Adrian.