hy rdnck
here it is :
Code:
OFCZ ( feed 4 syncro C&Z : LV01=diameter LV02=|dZ| LV03=|dC| LV04=f_G95 )
LV05=129600*LV02*LV02
LV00=SQRT[[LV05+250000*LV03*LV03]/[LV05+LV01*LV01*LV03*LV03*9.8696044]]*LV04
RTS ( . . . . . . . . . . . . . . . . . . . . . . . . . . . . . )
that procedure returns feed for syncro C&Z, while X is constant; it is ok for your code
please note that dC and dZ should be passed away in absolute value; however, even if this is omited, there are no worries, because those values are computed inside calculations at their square value : LV02*LV02 will eliminate dZ sign issues, and same, LV03*LV03 will fix dC sign issues
i can make it deliver feed in degrees/minute ( or rpm ), as you wish
to go this way, i may ask for draw and machinig aspects
also M15 / M16 is not there
you may not issue a direct feed on C axis without specifing default rotation, unless :
... default machine state does the job ( that is M15 )
... part is simetrical, and really does not matter if you go one way or another ( your code is like this ); in this case, however, caution to recut, thus chips falling down or in front of the tool
kindly !