You should also make sure that the A axis is defined as rotary,calibrated in degrees and not linear units, and put in a small diameter value. I'm not familiar with MastercamX5, but if it generates 4-axis code, use either a Mach3 4-axis postprocessor in your preferred style of units, or a generic Fanuc post if Mach3 isn't listed.