Assuming you're using the stock MPFAN post:
In "Rotary Axis Settings", set 0 in "rot_on_x" (see attached screenshot).
In "Start of File and Toolchange Setup", remove $ from "pheader$" or delete 18 or so lines after it (see attached screenshot).
I suggest you check your code every time you change the post. Also remember to backup the original post.