What angle does M19 orient to?+−
To whatever orientation position the machine is set up with, which is a builder setting and not a constant of the code. On many machines it matches the position needed for the tool change. If you need a particular angle, check it dry with an indicator or a mark before you trust it.
How do I program a particular angle?+−
It depends on the control. On Haas with a vector spindle, with M19 P for whole degrees and M19 R for decimals. On Siemens, with SPOS=45. On Heidenhain, with cycle 13. On many Fanucs it cannot be done from the program and you have to work with the fixed position of the machine.
Is M19 the same as having a C axis?+−
No. M19 puts the spindle at a point and holds it there; the C axis turns the spindle into another axis, able to interpolate with X, Y and Z to mill slots, contours or hole patterns. Orienting is a position; the C axis is controlled motion.
Why does the machine orient the spindle on every tool change?+−
Because the drive keys of the spindle have to fit the slots in the holder. If the spindle stopped in any old position, the taper would not go in or it would go in forced. That orientation is done by the machine on its own during the M06, with nothing to write.
How is the orientation cancelled?+−
With any new spindle command: an M03, an M04 or an M05 release the position. No specific cancel code is needed. What you do have to remember is to write it, because while the spindle is oriented it does not turn.