585,919 active members*
4,141 visitors online*
Register for free
Login
Page 1 of 2 12
Results 1 to 20 of 23
  1. #1
    Join Date
    Mar 2008
    Posts
    3

    Elliptical interpolation

    I would like to use elliptical interpolation in my Hitachi Seiki VA Machining running under Fanuc 6M-B.
    Is there a G-code for this ?
    If not, how should I proceed ?

    Thanks,
    Pramod Kotwal

  2. #2
    Join Date
    Oct 2009
    Posts
    78
    Quote Originally Posted by pramodkotwal View Post
    I would like to use elliptical interpolation in my Hitachi Seiki VA Machining running under Fanuc 6M-B.
    Is there a G-code for this ?
    If not, how should I proceed ?

    Thanks,
    Pramod Kotwal
    Perhaps you should use CAD/CAM to generate an elliptical tool path.

    Ron

  3. #3
    Join Date
    Oct 2012
    Posts
    21
    I have this software for ellipses. Saves money on a big CAD CAM system if you don't already have one. CNC Mate :: Engineers Calculator
    Ben
    http://www.cncapplications.co.uk

  4. #4
    Join Date
    Jan 2005
    Posts
    1943
    Do you need a true and perfect ellipse? If not, you can approximate an ellipse with 4 arcs. That is how paper draftsmen used to do it. If you search Google for "4 arc ellipse" it will bring up the technique.

  5. #5
    Join Date
    Jul 2003
    Posts
    1220
    Attached is a VB program which will generate GCode for an ellipse.
    Attached Files Attached Files

  6. #6
    Join Date
    Jan 2015
    Posts
    7

    Re: Elliptical interpolation

    Greetings!

    I badly need help for generating G codes(G03) for a CNC 2-axis lathe for turning a ellipse out of a rod. The Rod dia is 12 mm and the ellipse (Full Ellipse) size is 11.5 mm height and 20 mm width. The G-code required is for the section shown in the attachment. The start point is at 0,0 and continues in the Z- axis till 10 mm (Half width of the ellipse). Any help would be appreciated.



    Attachment 263986

    Thanks in Advance.

  7. #7
    Join Date
    Jul 2003
    Posts
    1220

    Re: Elliptical interpolation

    Hi I'm a mill user and don't know lathe programming, but here is a suggestion for a start. Check before running.

    G01 X0 Z0
    G03 X-0.008 Z-0.349 R15.2271
    G03 X-0.062 Z-1.045 R17.1512
    G03 X-0.174 Z-1.736 R19.3102
    G03 X-0.342 Z-2.419 R18.7294
    G03 X-0.562 Z-3.09 R18.0439
    G03 X-0.838 Z-3.746 R16.782
    G03 X-1.164 Z-4.384 R13.9492
    G03 X-1.54 Z-5. R13.8463
    G03 X-1.966 Z-5.592 R14.6919
    G03 X-2.438 Z-6.157 R11.3843
    G03 X-2.954 Z-6.691 R9.9005
    G03 X-3.512 Z-7.193 R8.9369
    G03 X-4.108 Z-7.66 R7.7523
    G03 X-4.74 Z-8.09 R7.7858
    G03 X-5.406 Z-8.48 R7.4939
    G03 X-6.102 Z-8.829 R5.7312
    G03 X-6.822 Z-9.135 R4.7587
    G03 X-7.566 Z-9.397 R4.7233
    G03 X-8.33 Z-9.613 R4.2145
    G03 X-9.11 Z-9.781 R3.8193
    G03 X-9.9 Z-9.903 R3.6358
    G03 X-10.698 Z-9.976 R3.7419
    G03 X-11.5 Z-10. R3.3543

  8. #8
    Join Date
    Jan 2015
    Posts
    7

    Re: Elliptical interpolation

    Quote Originally Posted by Kiwi View Post
    Hi I'm a mill user and don't know lathe programming, but here is a suggestion for a start. Check before running.

    G01 X0 Z0
    G03 X-0.008 Z-0.349 R15.2271
    G03 X-0.062 Z-1.045 R17.1512
    G03 X-0.174 Z-1.736 R19.3102
    G03 X-0.342 Z-2.419 R18.7294
    G03 X-0.562 Z-3.09 R18.0439
    G03 X-0.838 Z-3.746 R16.782
    G03 X-1.164 Z-4.384 R13.9492
    G03 X-1.54 Z-5. R13.8463
    G03 X-1.966 Z-5.592 R14.6919
    G03 X-2.438 Z-6.157 R11.3843
    G03 X-2.954 Z-6.691 R9.9005
    G03 X-3.512 Z-7.193 R8.9369
    G03 X-4.108 Z-7.66 R7.7523
    G03 X-4.74 Z-8.09 R7.7858
    G03 X-5.406 Z-8.48 R7.4939
    G03 X-6.102 Z-8.829 R5.7312
    G03 X-6.822 Z-9.135 R4.7587
    G03 X-7.566 Z-9.397 R4.7233
    G03 X-8.33 Z-9.613 R4.2145
    G03 X-9.11 Z-9.781 R3.8193
    G03 X-9.9 Z-9.903 R3.6358
    G03 X-10.698 Z-9.976 R3.7419
    G03 X-11.5 Z-10. R3.3543

    Hi,

    Thanks for the reply. I am specifically looking for X, Z, I , K value type of stuff. Secondly, can you recompute the values ? The total height of the ellipse is 11.5 mm and width is 20 mm. The required size is for half ellipse: height 11.5 mm and width 10 mm only. Your code is showing total height of the ellipse as 23 mm.

    Thanks in advance.

  9. #9
    Join Date
    Jul 2003
    Posts
    1220

    Re: Elliptical interpolation

    Hi
    I thought I read somewhere the X was a diameter figure.
    Try this.
    G01 X0 Z0
    G03 X-0.004 Z-0.349 I-15.2271 K0.
    G03 X-0.031 Z-1.045 I-17.1483 K-0.3167
    G03 X-0.087 Z-1.736 I-19.272 K-1.2141
    G03 X-0.171 Z-2.419 I-18.6282 K-1.9444
    G03 X-0.281 Z-3.09 I-17.8581 K-2.583
    G03 X-0.419 Z-3.746 I-16.4883 K-3.1261
    G03 X-0.582 Z-4.384 I-13.5928 K-3.133
    G03 X-0.77 Z-5. I-13.3337 K-3.7327
    G03 X-0.983 Z-5.592 I-13.9276 K-4.6768
    G03 X-1.219 Z-6.157 I-10.6189 K-4.1037
    G03 X-1.477 Z-6.691 I-9.0396 K-4.0381
    G03 X-1.756 Z-7.193 I-7.947 K-4.0882
    G03 X-2.054 Z-7.66 I-6.68 K-3.934
    G03 X-2.37 Z-8.09 I-6.4282 K-4.3929
    G03 X-2.703 Z-8.48 I-5.8622 K-4.6683
    G03 X-3.051 Z-8.829 I-4.2286 K-3.8685
    G03 X-3.411 Z-9.135 I-3.2582 K-3.4684
    G03 X-3.783 Z-9.397 I-2.9026 K-3.7262
    G03 X-4.165 Z-9.613 I-2.2626 K-3.5557
    G03 X-4.555 Z-9.781 I-1.7037 K-3.4183
    G03 X-4.95 Z-9.903 I-1.2687 K-3.4073
    G03 X-5.349 Z-9.976 I-0.8719 K-3.6389
    G03 X-5.75 Z-10. I-0.4005 K-3.3303

  10. #10
    Join Date
    Jan 2015
    Posts
    7

    Re: Elliptical interpolation

    Hi,

    When I open the G-Code in jviewer or SketchNC, I am seeing the following instead of a curved line

    Attachment 264068
    Click image for larger version. 

Name:	SketchNC.JPG 
Views:	9 
Size:	106.9 KB 
ID:	264070

    Is this ok or is some post processing required on the G-Code ?

    Thanks in advance.

  11. #11
    Join Date
    Jul 2003
    Posts
    1220

    Re: Elliptical interpolation

    Hi
    Is your software able to check arcing on the XZ plane?
    I may not have converted the IJK correct to suit your XZ plane.
    I don't have software to check for paths on XZ plane or for a cnc lathe.
    Try this. I've changed the X to positive

    G01 X0. Z0.
    G03 X0.004 Z-0.349 Z0. I-15.2271 K-0.
    G03 X0.031 Z-1.045 I-17.1483 K-0.3167
    G03 X0.087 Z-1.736 I-19.272 K-1.2141
    G03 X0.171 Z-2.419 I-18.6282 K-1.9444
    G03 X0.281 Z-3.09 I-17.8581 K-2.583
    G03 X0.419 Z-3.746 I-16.4883 K-3.1261
    G03 X0.582 Z-4.384 I-13.5928 K-3.133
    G03 X0.77 Z-5. I-13.3337 K-3.7327
    G03 X0.983 Z-5.592 I-13.9276 K-4.6768
    G03 X1.219 Z-6.157 I-10.6189 K-4.1037
    G03 X1.477 Z-6.691 I-9.0396 K-4.0381
    G03 X1.756 Z-7.193 I-7.947 K-4.0882
    G03 X2.054 Z-7.66 I-6.68 K-3.934
    G03 X2.37 Z-8.09 I-6.4282 K-4.3929
    G03 X2.703 Z-8.48 I-5.8622 K-4.6683
    G03 X3.051 Z-8.829 I-4.2286 K-3.8685
    G03 X3.411 Z-9.135 I-3.2582 K-3.4684
    G03 X3.783 Z-9.397 I-2.9026 K-3.7262
    G03 X4.165 Z-9.613 I-2.2626 K-3.5557
    G03 X4.555 Z-9.781 I-1.7037 K-3.4183
    G03 X4.95 Z-9.903 I-1.2687 K-3.4073
    G03 X5.349 Z-9.976 I-0.8719 K-3.6389
    G03 X5.75 Z-10. I-0.4005 K-3.3303

  12. #12
    Join Date
    Jan 2015
    Posts
    7

    Re: Elliptical interpolation

    Quote Originally Posted by Kiwi View Post
    Hi
    Is your software able to check arcing on the XZ plane?
    I may not have converted the IJK correct to suit your XZ plane.
    I don't have software to check for paths on XZ plane or for a cnc lathe.
    Try this. I've changed the X to positive

    G01 X0. Z0.
    G03 X0.004 Z-0.349 Z0. I-15.2271 K-0.
    G03 X0.031 Z-1.045 I-17.1483 K-0.3167
    G03 X0.087 Z-1.736 I-19.272 K-1.2141
    G03 X0.171 Z-2.419 I-18.6282 K-1.9444
    G03 X0.281 Z-3.09 I-17.8581 K-2.583
    G03 X0.419 Z-3.746 I-16.4883 K-3.1261
    G03 X0.582 Z-4.384 I-13.5928 K-3.133
    G03 X0.77 Z-5. I-13.3337 K-3.7327
    G03 X0.983 Z-5.592 I-13.9276 K-4.6768
    G03 X1.219 Z-6.157 I-10.6189 K-4.1037
    G03 X1.477 Z-6.691 I-9.0396 K-4.0381
    G03 X1.756 Z-7.193 I-7.947 K-4.0882
    G03 X2.054 Z-7.66 I-6.68 K-3.934
    G03 X2.37 Z-8.09 I-6.4282 K-4.3929
    G03 X2.703 Z-8.48 I-5.8622 K-4.6683
    G03 X3.051 Z-8.829 I-4.2286 K-3.8685
    G03 X3.411 Z-9.135 I-3.2582 K-3.4684
    G03 X3.783 Z-9.397 I-2.9026 K-3.7262
    G03 X4.165 Z-9.613 I-2.2626 K-3.5557
    G03 X4.555 Z-9.781 I-1.7037 K-3.4183
    G03 X4.95 Z-9.903 I-1.2687 K-3.4073
    G03 X5.349 Z-9.976 I-0.8719 K-3.6389
    G03 X5.75 Z-10. I-0.4005 K-3.3303
    Hi,

    I used the G-Code in the software. The Ellipse curve is fine but there is one final issue - The Ellipse section is reverse. It needs to be rotated by 180 degrees (Clockwise). Can you do me one final favor by rotating it ? I need the ellipse section in the +X,-Z sector (as seen in the image attached by me in previous post)

    Thanks in advance.

  13. #13
    Join Date
    Jul 2003
    Posts
    1220

    Re: Elliptical interpolation

    Sorry about that. Give this a try.

    G01 X0 Z0
    G03 X0.024 Z-0.401 I-3.3543 K0.0005
    G03 X0.097 Z-0.8 I-3.7119 K-0.4729
    G03 X0.219 Z-1.195 I-3.5293 K-0.8737
    G03 X0.387 Z-1.585 I-3.5863 K-1.3137
    G03 X0.603 Z-1.967 I-3.7717 K-1.8806
    G03 X0.865 Z-2.339 I-3.9882 K-2.5306
    G03 X1.171 Z-2.699 I-3.7744 K-2.8982
    G03 X1.52 Z-3.047 I-4.2175 K-3.8806
    G03 X1.91 Z-3.38 I-5.0583 K-5.5292
    G03 X2.34 Z-3.696 I-4.8229 K-6.1122
    G03 X2.807 Z-3.994 I-4.401 K-6.382
    G03 X3.309 Z-4.273 I-4.5902 K-7.668
    G03 X3.843 Z-4.531 I-4.5721 K-8.7816
    G03 X4.408 Z-4.767 I-4.6687 K-10.3829
    G03 X5. Z-4.98 I-5.2688 K-13.7146
    G03 X5.616 Z-5.168 I-4.3487 K-13.1457
    G03 X6.254 Z-5.331 I-3.771 K-13.4298
    G03 X6.91 Z-5.469 I-3.7821 K-16.3503
    G03 X7.581 Z-5.579 I-3.254 K-17.7481
    G03 X8.264 Z-5.663 I-2.6274 K-18.5442
    G03 X8.955 Z-5.719 I-1.9051 K-19.216
    G03 X9.651 Z-5.746 I-1.0127 K-17.1213
    G03 X10. Z-5.75 I-0.349 K-15.2231

  14. #14
    Join Date
    Jan 2015
    Posts
    7

    Re: Elliptical interpolation

    Quote Originally Posted by Kiwi View Post
    Sorry about that. Give this a try.

    G01 X0 Z0
    G03 X0.024 Z-0.401 I-3.3543 K0.0005
    G03 X0.097 Z-0.8 I-3.7119 K-0.4729
    G03 X0.219 Z-1.195 I-3.5293 K-0.8737
    G03 X0.387 Z-1.585 I-3.5863 K-1.3137
    G03 X0.603 Z-1.967 I-3.7717 K-1.8806
    G03 X0.865 Z-2.339 I-3.9882 K-2.5306
    G03 X1.171 Z-2.699 I-3.7744 K-2.8982
    G03 X1.52 Z-3.047 I-4.2175 K-3.8806
    G03 X1.91 Z-3.38 I-5.0583 K-5.5292
    G03 X2.34 Z-3.696 I-4.8229 K-6.1122
    G03 X2.807 Z-3.994 I-4.401 K-6.382
    G03 X3.309 Z-4.273 I-4.5902 K-7.668
    G03 X3.843 Z-4.531 I-4.5721 K-8.7816
    G03 X4.408 Z-4.767 I-4.6687 K-10.3829
    G03 X5. Z-4.98 I-5.2688 K-13.7146
    G03 X5.616 Z-5.168 I-4.3487 K-13.1457
    G03 X6.254 Z-5.331 I-3.771 K-13.4298
    G03 X6.91 Z-5.469 I-3.7821 K-16.3503
    G03 X7.581 Z-5.579 I-3.254 K-17.7481
    G03 X8.264 Z-5.663 I-2.6274 K-18.5442
    G03 X8.955 Z-5.719 I-1.9051 K-19.216
    G03 X9.651 Z-5.746 I-1.0127 K-17.1213
    G03 X10. Z-5.75 I-0.349 K-15.2231
    Hi,

    Sorry, I was not clear in my post. Your G-Code is correct but there is a little modification required. The movement in the -Z axis is 10 mm and +X axis is 5.75 mm. When I plot your G-Code, the ellipse curve is reverse. Image attached below -
    Attachment 264220

    The ellipse section needed by me is highlighted by the green box in the image below -

    Click image for larger version. 

Name:	Ellipse_Needed.JPG 
Views:	4 
Size:	29.0 KB 
ID:	264222

    Thanks in advance.

  15. #15
    Join Date
    Jul 2003
    Posts
    1220

    Re: Elliptical interpolation

    I didn't know there could be so many wrong answers.
    I don't know why the curve is the wrong way around.
    You may need to change the I/K positive/negative. (watch first line, I is different to others.)
    Try this version.

    G01 X0. Z0.
    G03 X0.401 Z-0.024 I0.0005 K-3.3543
    G03 X0.8 Z-0.097 I-0.4729 K-3.7119
    G03 X1.195 Z-0.219 I-0.8737 K-3.5293
    G03 X1.585 Z-0.387 I-1.3137 K-3.5863
    G03 X1.967 Z-0.603 I-1.8806 K-3.7717
    G03 X2.339 Z-0.865 I-2.5306 K-3.9882
    G03 X2.699 Z-1.171 I-2.8982 K-3.7744
    G03 X3.047 Z-1.52 I-3.8806 K-4.2175
    G03 X3.38 Z-1.91 I-5.5292 K-5.0583
    G03 X3.696 Z-2.34 I-6.1122 K-4.8229
    G03 X3.994 Z-2.807 I-6.382 K-4.401
    G03 X4.273 Z-3.309 I-7.668 K-4.5902
    G03 X4.531 Z-3.843 I-8.7816 K-4.5721
    G03 X4.767 Z-4.408 I-10.3829 K-4.6687
    G03 X4.98 Z-5. I-13.7146 K-5.2688
    G03 X5.168 Z-5.616 I-13.1457 K-4.3487
    G03 X5.331 Z-6.254 I-13.4298 K-3.771
    G03 X5.469 Z-6.91 I-16.3503 K-3.7821
    G03 X5.579 Z-7.581 I-17.7481 K-3.254
    G03 X5.663 Z-8.264 I-18.5442 K-2.6274
    G03 X5.719 Z-8.955 I-19.216 K-1.9051
    G03 X5.746 Z-9.651 I-17.1213 K-1.0127
    G03 X5.75 Z-10. I-15.2231 K-0.349

  16. #16
    Join Date
    Jan 2009
    Posts
    103

    Re: Elliptical interpolation

    You could use line segments for the path and it should look smooth enough.
    Try this:

    G1 Z0 X0.
    Z-0.0015 X0.1004
    Z-0.0061 X0.2007
    Z-0.0137 X0.3009
    Z-0.0244 X0.4011
    Z-0.0381 X0.5011
    Z-0.0548 X0.601
    Z-0.0745 X0.7007
    Z-0.0973 X0.8002
    Z-0.1231 X0.8995
    Z-0.1519 X0.9985
    Z-0.1837 X1.0972
    Z-0.2185 X1.1955
    Z-0.2563 X1.2935
    Z-0.297 X1.3911
    Z-0.3407 X1.4882
    Z-0.3874 X1.5849
    Z-0.437 X1.6811
    Z-0.4894 X1.7768
    Z-0.5448 X1.872
    Z-0.6031 X1.9666
    Z-0.6642 X2.0606
    Z-0.7282 X2.154
    Z-0.795 X2.2467
    Z-0.8645 X2.3387
    Z-0.9369 X2.4301
    Z-1.0121 X2.5206
    Z-1.0899 X2.6104
    Z-1.1705 X2.6995
    Z-1.2538 X2.7877
    Z-1.3397 X2.875
    Z-1.4283 X2.9615
    Z-1.5195 X3.047
    Z-1.6133 X3.1317
    Z-1.7096 X3.2154
    Z-1.8085 X3.2981
    Z-1.9098 X3.3798
    Z-2.0136 X3.4604
    Z-2.1199 X3.5401
    Z-2.2285 X3.6186
    Z-2.3396 X3.696
    Z-2.4529 X3.7723
    Z-2.5686 X3.8475
    Z-2.6865 X3.9215
    Z-2.8066 X3.9943
    Z-2.9289 X4.0659
    Z-3.0534 X4.1362
    Z-3.18 X4.2053
    Z-3.3087 X4.2731
    Z-3.4394 X4.3396
    Z-3.5721 X4.4048
    Z-3.7068 X4.4686
    Z-3.8434 X4.5311
    Z-3.9818 X4.5922
    Z-4.1221 X4.6518
    Z-4.2642 X4.7101
    Z-4.4081 X4.767
    Z-4.5536 X4.8224
    Z-4.7008 X4.8763
    Z-4.8496 X4.9287
    Z-5.0 X4.9796
    Z-5.1519 X5.0291
    Z-5.3053 X5.0769
    Z-5.4601 X5.1233
    Z-5.6163 X5.1681
    Z-5.7738 X5.2113
    Z-5.9326 X5.2529
    Z-6.0927 X5.2929
    Z-6.2539 X5.3313
    Z-6.4163 X5.3681
    Z-6.5798 X5.4032
    Z-6.7443 X5.4367
    Z-6.9098 X5.4686
    Z-7.0763 X5.4988
    Z-7.2436 X5.5273
    Z-7.4118 X5.5541
    Z-7.5808 X5.5792
    Z-7.7505 X5.6026
    Z-7.9209 X5.6243
    Z-8.0919 X5.6444
    Z-8.2635 X5.6626
    Z-8.4357 X5.6792
    Z-8.6083 X5.694
    Z-8.7813 X5.7071
    Z-8.9547 X5.7185
    Z-9.1284 X5.7281
    Z-9.3024 X5.736
    Z-9.4766 X5.7421
    Z-9.651 X5.7465
    Z-9.8255 X5.7491
    Z-10.0 X5.75

    code is for x(radius) not diameter.

  17. #17
    Join Date
    Jan 2009
    Posts
    103

    Re: Elliptical interpolation

    The above code will only cut accurately with a sharp tool

    this path is for using a 1.25mm corner rad.

    (1.25 CORNER RAD. INSERT)
    G1X-0.394Z0.
    X-0.2875Z-.002
    X-0.175Z-.007
    X-0.0625Z-.015
    X0.0495Z-.027
    X0.161Z-.043
    X0.273Z-.061
    X0.384Z-.083
    X0.495Z-.109
    X0.6055Z-.137
    X0.7155Z-.169
    X0.8255Z-.205
    X0.934Z-.243
    X1.0425Z-.285
    X1.15Z-.33
    X1.2575Z-.378
    X1.3635Z-.429
    X1.469Z-.484
    X1.5735Z-.541
    X1.6775Z-.602
    X1.7805Z-.665
    X1.8825Z-.731
    X1.984Z-.801
    X2.084Z-.873
    X2.1835Z-.948
    X2.282Z-1.026
    X2.3795Z-1.107
    X2.4755Z-1.19
    X2.571Z-1.277
    X2.6655Z-1.366
    X2.7585Z-1.457
    X2.8505Z-1.552
    X2.9415Z-1.649
    X3.031Z-1.748
    X3.12Z-1.85
    X3.207Z-1.955
    X3.2935Z-2.062
    X3.3785Z-2.171
    X3.462Z-2.283
    X3.545Z-2.397
    X3.626Z-2.514
    X3.706Z-2.632
    X3.7845Z-2.753
    X3.862Z-2.876
    X3.938Z-3.002
    X4.0125Z-3.13
    X4.086Z-3.259
    X4.158Z-3.391
    X4.2285Z-3.525
    X4.2975Z-3.66
    X4.365Z-3.798
    X4.431Z-3.938
    X4.496Z-4.079
    X4.5595Z-4.223
    X4.621Z-4.368
    X4.681Z-4.515
    X4.74Z-4.663
    X4.797Z-4.814
    X4.853Z-4.966
    X4.907Z-5.119
    X4.959Z-5.274
    X5.01Z-5.43
    X5.0595Z-5.588
    X5.107Z-5.748
    X5.153Z-5.908
    X5.1975Z-6.07
    X5.2405Z-6.233
    X5.2815Z-6.398
    X5.321Z-6.563
    X5.3585Z-6.73
    X5.3945Z-6.898
    X5.429Z-7.067
    X5.462Z-7.236
    X5.493Z-7.407
    X5.522Z-7.579
    X5.5495Z-7.751
    X5.575Z-7.924
    X5.599Z-8.098
    X5.6215Z-8.272
    X5.642Z-8.447
    X5.6605Z-8.623
    X5.6775Z-8.799
    X5.6925Z-8.976
    X5.706Z-9.153
    X5.718Z-9.331
    X5.7275Z-9.508
    X5.7355Z-9.686
    X5.742Z-9.865
    X5.7465Z-10.043
    X5.749Z-10.221
    X5.75Z-10.398

    hope that helps

  18. #18
    Join Date
    Jan 2015
    Posts
    7

    Re: Elliptical interpolation

    Quote Originally Posted by mcode View Post
    You could use line segments for the path and it should look smooth enough.
    Try this:

    G1 Z0 X0.
    Z-0.0015 X0.1004
    Z-0.0061 X0.2007
    Z-0.0137 X0.3009
    Z-0.0244 X0.4011
    Z-0.0381 X0.5011
    Z-0.0548 X0.601
    Z-0.0745 X0.7007
    Z-0.0973 X0.8002
    Z-0.1231 X0.8995
    Z-0.1519 X0.9985
    Z-0.1837 X1.0972
    Z-0.2185 X1.1955
    Z-0.2563 X1.2935
    Z-0.297 X1.3911
    Z-0.3407 X1.4882
    Z-0.3874 X1.5849
    Z-0.437 X1.6811
    Z-0.4894 X1.7768
    Z-0.5448 X1.872
    Z-0.6031 X1.9666
    Z-0.6642 X2.0606
    Z-0.7282 X2.154
    Z-0.795 X2.2467
    Z-0.8645 X2.3387
    Z-0.9369 X2.4301
    Z-1.0121 X2.5206
    Z-1.0899 X2.6104
    Z-1.1705 X2.6995
    Z-1.2538 X2.7877
    Z-1.3397 X2.875
    Z-1.4283 X2.9615
    Z-1.5195 X3.047
    Z-1.6133 X3.1317
    Z-1.7096 X3.2154
    Z-1.8085 X3.2981
    Z-1.9098 X3.3798
    Z-2.0136 X3.4604
    Z-2.1199 X3.5401
    Z-2.2285 X3.6186
    Z-2.3396 X3.696
    Z-2.4529 X3.7723
    Z-2.5686 X3.8475
    Z-2.6865 X3.9215
    Z-2.8066 X3.9943
    Z-2.9289 X4.0659
    Z-3.0534 X4.1362
    Z-3.18 X4.2053
    Z-3.3087 X4.2731
    Z-3.4394 X4.3396
    Z-3.5721 X4.4048
    Z-3.7068 X4.4686
    Z-3.8434 X4.5311
    Z-3.9818 X4.5922
    Z-4.1221 X4.6518
    Z-4.2642 X4.7101
    Z-4.4081 X4.767
    Z-4.5536 X4.8224
    Z-4.7008 X4.8763
    Z-4.8496 X4.9287
    Z-5.0 X4.9796
    Z-5.1519 X5.0291
    Z-5.3053 X5.0769
    Z-5.4601 X5.1233
    Z-5.6163 X5.1681
    Z-5.7738 X5.2113
    Z-5.9326 X5.2529
    Z-6.0927 X5.2929
    Z-6.2539 X5.3313
    Z-6.4163 X5.3681
    Z-6.5798 X5.4032
    Z-6.7443 X5.4367
    Z-6.9098 X5.4686
    Z-7.0763 X5.4988
    Z-7.2436 X5.5273
    Z-7.4118 X5.5541
    Z-7.5808 X5.5792
    Z-7.7505 X5.6026
    Z-7.9209 X5.6243
    Z-8.0919 X5.6444
    Z-8.2635 X5.6626
    Z-8.4357 X5.6792
    Z-8.6083 X5.694
    Z-8.7813 X5.7071
    Z-8.9547 X5.7185
    Z-9.1284 X5.7281
    Z-9.3024 X5.736
    Z-9.4766 X5.7421
    Z-9.651 X5.7465
    Z-9.8255 X5.7491
    Z-10.0 X5.75

    code is for x(radius) not diameter.
    Hello,

    Thanks for the G-Code. Can you re-send the same suitable for diameter of 11.5 mm as the CNC Lathe operator accepts diameter only and does not know how to key in radius.

    Thanks in advance.

  19. #19
    Join Date
    Jan 2009
    Posts
    103

    Re: Elliptical interpolation

    Here ya go

    G1 Z0 X0
    Z-0.0015 X0.2008
    Z-0.0061 X0.4014
    Z-0.0137 X0.6018
    Z-0.0244 X0.8022
    Z-0.0381 X1.0022
    Z-0.0548 X1.202
    Z-0.0745 X1.4014
    Z-0.0973 X1.6004
    Z-0.1231 X1.799
    Z-0.1519 X1.997
    Z-0.1837 X2.1944
    Z-0.2185 X2.391
    Z-0.2563 X2.587
    Z-0.297 X2.7822
    Z-0.3407 X2.9764
    Z-0.3874 X3.1698
    Z-0.437 X3.3622
    Z-0.4894 X3.5536
    Z-0.5448 X3.744
    Z-0.6031 X3.9332
    Z-0.6642 X4.1212
    Z-0.7282 X4.308
    Z-0.795 X4.4934
    Z-0.8645 X4.6774
    Z-0.9369 X4.8602
    Z-1.0121 X5.0412
    Z-1.0899 X5.2208
    Z-1.1705 X5.399
    Z-1.2538 X5.5754
    Z-1.3397 X5.75
    Z-1.4283 X5.923
    Z-1.5195 X6.094
    Z-1.6133 X6.2634
    Z-1.7096 X6.4308
    Z-1.8085 X6.5962
    Z-1.9098 X6.7596
    Z-2.0136 X6.9208
    Z-2.1199 X7.0802
    Z-2.2285 X7.2372
    Z-2.3396 X7.392
    Z-2.4529 X7.5446
    Z-2.5686 X7.695
    Z-2.6865 X7.843
    Z-2.8066 X7.9886
    Z-2.9289 X8.1318
    Z-3.0534 X8.2724
    Z-3.18 X8.4106
    Z-3.3087 X8.5462
    Z-3.4394 X8.6792
    Z-3.5721 X8.8096
    Z-3.7068 X8.9372
    Z-3.8434 X9.0622
    Z-3.9818 X9.1844
    Z-4.1221 X9.3036
    Z-4.2642 X9.4202
    Z-4.4081 X9.534
    Z-4.5536 X9.6448
    Z-4.7008 X9.7526
    Z-4.8496 X9.8574
    Z-5.0 X9.9592
    Z-5.1519 X10.0582
    Z-5.3053 X10.1538
    Z-5.4601 X10.2466
    Z-5.6163 X10.3362
    Z-5.7738 X10.4226
    Z-5.9326 X10.5058
    Z-6.0927 X10.5858
    Z-6.2539 X10.6626
    Z-6.4163 X10.7362
    Z-6.5798 X10.8064
    Z-6.7443 X10.8734
    Z-6.9098 X10.9372
    Z-7.0763 X10.9976
    Z-7.2436 X11.0546
    Z-7.4118 X11.1082
    Z-7.5808 X11.1584
    Z-7.7505 X11.2052
    Z-7.9209 X11.2486
    Z-8.0919 X11.2888
    Z-8.2635 X11.3252
    Z-8.4357 X11.3584
    Z-8.6083 X11.388
    Z-8.7813 X11.4142
    Z-8.9547 X11.437
    Z-9.1284 X11.4562
    Z-9.3024 X11.472
    Z-9.4766 X11.4842
    Z-9.651 X11.493
    Z-9.8255 X11.4982
    Z-10.0 X11.5

  20. #20
    Join Date
    Jan 2015
    Posts
    7

    Re: Elliptical interpolation

    Hi,

    Should the code be from X-5.75. to X+5.75 while catering to the diameter ?

    (I have no knowledge in CNC Lathe )

    Can you let me know the software being used to generate the G-Code ?

    Thanks in advance.

Page 1 of 2 12

Similar Threads

  1. Arc Interpolation
    By QueueJr in forum Rhinocam
    Replies: 1
    Last Post: 03-21-2014, 07:07 PM
  2. Creating elliptical surfaces/toolpaths
    By BaxterB in forum Mastercam
    Replies: 5
    Last Post: 09-13-2012, 03:07 AM
  3. Beveled Kerf and Elliptical Circles
    By Shanghyd in forum Waterjet General Topics
    Replies: 1
    Last Post: 03-12-2010, 07:27 PM
  4. machining elliptical punch and die
    By ikneb in forum G-Code Programing
    Replies: 3
    Last Post: 07-17-2009, 02:09 PM
  5. interpolation
    By rimcanyon in forum CNC Machine Related Electronics
    Replies: 9
    Last Post: 04-08-2004, 07:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •