I guess I should introduce myself first. I'm Frederic, and I'm an entry level CNC programmer and machinist for TXDOT.
We have a Haas VF-2 with a fourth axis, and use MasterCAM X4 for our programming.
I wrote a simple test program that should use the 4th axis for positioning. It looks good, but when I post it I get a number of errors like this one.
07 Jun 2010 07:23:21 AM - <2> - RUN TIME - - Only single-axis rotation is allowed! Angles may be incorrect.
Reviewing the gcode, the angles are incorrect. The TOP toolpath looks OK, but there is no initial A0.0 command, so the program will start wherever the rotary table was left. That's not good.
Next, the Front toolpath runs at A-90.0. That's correct.
The Bottom toolpath is at A-180.0, which is also correct.
Finally, the Back toolpath is at A-180.0, which is incorrect. It should be at A-270.0, or A90.
My best guess is that MasterCAM doesn't know how my rotary table is oriented. The Post file is correct in that regards, but maybe MasterCAM has its own setting that I don't know about.
I've attached my gcode, .err file and .mcx file. I'm sure that this problem is just due to me making a mistake, but I cannot spot the problem. If you can help out, I'd be grateful.
Cheers,
Frederic Scott