We have some big tools and would need to create a custom M06 macro where the spindle moves away from the door before it closes. M22, M23 open and closes the door and that works fine but when M06 is called it changes tool and closes the door immediately.
This should replace M06 in O9001 tool changer macro but M241 and M249 doesn't work.
M09
M19
M241 (ATC 1 CYCLE)
G91G28Y-200 (MOVE AWAY)
M23 (CLOSE DOOR)
M249 (POT MAG SIDE)
Is there a parameter or code to enable those M-codes? Or is there a better way to do it?