Yeah, I expected there to still be plenty of issues with it right now. I ran one of my sample parts through the post, but since I didn't change the feedrate throughout the three or four ops I didn't see that "F XYZ" line come up. There's probably more in there waiting to be found. : )
So I understand the change you made there, but not sure why you pulled out the Z axis feed rate calls in onLinear( )? From everything I see you need to specify a separate feed rate for X & Z. Otherwise it will use the default (50mm/min I think). I'll take another look at the feedrate code that I put in there. My crappy controller doesn't let me specify feeds in IPR, only IPM so that's what I have set right now. Let me swap over to IPR and see what I get here. According to the manual, "There are four kinds of FEED RATES: (A) INCH/REV range 4 digits Unit = 0.001 Inch, (B) MM/REV range 4 digits Unit = 0.01 MM, (C) INCH/MIN range 4 digits Unit = 0.1 Inch, (D) MM/MIN range 4 digits Unit = 1MM.
Regarding the ARC, I can't really see an easy way of you making the "ARC 1 F n" canned cycle work with Fusion. I don't think there's an option in there to support canned cycles for arcs? Fusion is going to handle the roughing and finishing for you by outputting individual arcs for each pass. So we need to force n to be 01 as that value is the number of passes to take -- looks like you've changed the post to put the feedrate in there instead. According to the manual, if you specify the "F" parameter then it will leave material for a finish pass and that amount needs to be specified with an additional line of "FIN= xxxx"
Ok... just found the feed problem, the feedFormat was setup to not take decimal places for mm and only 1 for inch. Try changing to this:
var feedFormat = new Format({decimals
unit == MM ? 3 : 4), forceDecimal:true, trim:false});
Dave