Two main issues:
Getting the outputted feed rate for the rotary table to have a "D" feed command and second to get that feed rate converted to degrees per minute.
I have an old mill running a Servo II controller and programming with Mastercam V9, the post on the V9 post file is MPSERVO1. The post has the formulas for letter priority (PFR) and also the conversion for feedrate deg/min (pfcalc_deg) just not sure how to know if they are switched on. I have no real pressing urgency as this mill sits in our maintenance shop but I am trying to learn fourth axis programming for my own kicks. Any help would be appreciated.
We are open 24hrs. - just not in a row.
So this is an example of what I am getting:
N174 X.4552 Z.043
N176 X.48 Z0. C270. F2000.
N178 X.4552 Z.043 F15.64
N180 X.4303 Z.086
The feed move after the C270. needs to be D2000. The max move for an F command is 500 and the max move for a D command is 2000 (degrees per minute) so it errors out in the controller for maximum "F" move speed.
A sample from the post:
#Feedrate Priority (determined in pfr postblock):
#Axis combination Feed command
# XY F
# XZ, YZ, XYZ F
# XC, YC, XYC F
# XZC, YZC, XYZC F
# Z E
# C D
# CZ E
pfr #Output feedrate
if (xout = 0 & yout = 0 & zout = 1), pfeedz #Z feedrate
if (xout = 0 & yout = 0 & zout = 0 & cout = 1), pfeedc # C feedrate
if zfeedonly <> 1 & cfeedonly <> 1, feed # if C axis or Z axis feed not output
zfeedonly = 0
cfeedonly = 0
xout = 0
yout = 0
cout = 0
zout = 0
I don't know if this helps or not. There is to many lines of code to manually change all the feedrates for what I trying to do. Thanks in advance.
We are open 24hrs. - just not in a row.