I have a part that was drawn in CAD using splines. I usually manually program the lathe, but in this case I asked machine shop next door if I could use their MasterCAM computer to do the G-Code so it would easily calculate the numerous points for the curves. Using line segments, it's hundreds of lines... using arcs, it's just a few lines. So I would very much like to use arcs, but I can't get it to work.
Here are the pieces of code giving me trouble:
G0 X-.0581 Z.1 M8
G1 Z-.0001 F.01
G3
X.2063 Z-.0659 I-.0113 K-.1882
X.4118 Z-.2626 I-.3746 K-.321
X.485 Z-.531 I-.9267 K-.263
G1 Z-1.2813
G0 X.485 Z-.5 M8
G1 Z-1.2966 F.01
G3
X.4853 Z-1.3179 I-1.6749 K-.0213
X.3592 Z-1.7732 I-1.6751
G2
X.2263 Z-2.0382 I.8545 K-.355
X.3549 Z-2.3975 I.7712 K-.0474
X.4513 Z-2.5056 I2.2617 K.9436
G0 X.564
I highlighted the line it's failing on above. Now, the post the other shop uses outputs R parameters with the arcs, my Okuma uses I and K. I first used NCPlot to convert the R's to I and K, didn't work. Then I tried another post for Fanuc that did output I and K and that didn't work either. I noticed the values MasterCAM output was the same as the numbers NCPlot gave me when converting from R's to I's and K's.
Anyone have any ideas why this is failing on my Okuma w/the OSP5000? I don't have the error in front of me but it's the parameters of the G3 it doesn't like.
Here are the pieces of code giving me trouble:
G0 X-.0581 Z.1 M8
G1 Z-.0001 F.01
G3
X.2063 Z-.0659 I-.0113 K-.1882
X.4118 Z-.2626 I-.3746 K-.321
X.485 Z-.531 I-.9267 K-.263
G1 Z-1.2813
G0 X.485 Z-.5 M8
G1 Z-1.2966 F.01
G3
X.4853 Z-1.3179 I-1.6749 K-.0213
X.3592 Z-1.7732 I-1.6751
G2
X.2263 Z-2.0382 I.8545 K-.355
X.3549 Z-2.3975 I.7712 K-.0474
X.4513 Z-2.5056 I2.2617 K.9436
G0 X.564
I highlighted the line it's failing on above. Now, the post the other shop uses outputs R parameters with the arcs, my Okuma uses I and K. I first used NCPlot to convert the R's to I and K, didn't work. Then I tried another post for Fanuc that did output I and K and that didn't work either. I noticed the values MasterCAM output was the same as the numbers NCPlot gave me when converting from R's to I's and K's.
Anyone have any ideas why this is failing on my Okuma w/the OSP5000? I don't have the error in front of me but it's the parameters of the G3 it doesn't like.