Its just another mcode, its up to the controller and drive to know what to do with it.
Like the sync codes that keep the gantry and Turning Center working hand in hand and the mcodes to control added blowoff outputs.
I had to add flip stations and a turnaround mcodes to produce these odd shaped parts. On the gantry side it Does a Side A-A to Side B-B process cycle.
so while it is machining the second part side A it is doing a rotate and flip of the first part for side B machining.
One gang style tooling machine and one turret style system. So the machining is reversed for each machine due to the tool locations.
Both machines needed ladder editing and hardware upgrades.
Fun project. One machine used T04 the other uses T0404 for tool changes Its all about the controller.
One cuts using M03 the the other M04 and of course the X dimensions are reversed. Had to keep the tooling standard as they were special grinds and stroke limitations in X.
And you can have spindle orientation in mach4 too, just have to have a means to move and check the rotary position and then write a script. Helps to have a spindle brake and a way to spin and blow the jaws and part off before load & unloading. I love automation and walk away manufacturing.