I know that for "Rapid To Toolchange" this is the standard code...
[DELETE][BLKNUM][CANCELTLO]
[DELETE][BLKNUM] G28[U0][W0][SPINSTOP][COOLANT OFF]
[SECOND_LEG]
"Second Leg" sends it to "Rapid to Toolchgange 2" which, if your resolved rapids are set right will make the 2nd axis move (i.e. in your toolchange you specify Move X first, Z will be in the second leg to the toolchange move).
I dont know if you can force it to make X first or Z first moves when approaching the part. In all of the PCI's that Steve Harrison has written, he forces a Rapid to a Z and then Rapid to an X for his pre-position of the cut.
I think that may be the only solution. Do a Rapid to the X, Then Rapid to the Z (or which ever order you want it output).
Mike Mattera
Tips For Mfg
Tips For Manufacturing Training CD's, DVD's for Mastercam, SolidWorks, Inventor, G-Code Training & More
http://www.tipsforcadcam.com