andypugh wrote:You were not kidding about this being less trivial!

Also, after reading this, it looks like remapping is not supported for the modal group 4 codes, which all program stops belong to. And, digging even deeper into Axis internals would be a foolish move. I guess I'll just add a user-defined M-code.
As a side question though: why would you
NOT want to turn the amps OFF when you've stopped the program for good? Sounds like what I'm looking for should have been a default behavior? After all, it does turn spindle and coolant off without additional M9 or M5 upon encountering an M2 or M30. Why not also throw amps into OFF? What am I missing?