Author Topic: Cutting circle  (Read 13872 times)

0 Members and 1 Guest are viewing this topic.

Offline Jimster

  • Active Member
  • Posts: 173
    • View Profile
Cutting circle
« on: January 20, 2014, 08:46:01 AM »
Hi Guys,
I'm using solidcam to generate my gcode. I've noticed that my circles and arc's are not very smooth. As a simple test I create a circle and generated gcode to go around the perimeter.
Does this code look ok to you, can you see why my part looks like it's been cut from lots of straight lines rather than one smooth radius??

Code: [Select]
( MCV-OP ) (20-JAN-2014)
(SUBROUTINES: O2 .. O0)         
G90 G17
G80 G49 G40
G91 G28 Z0
N1 M6 T1
(TOOL -1- MILL DIA 6.0 R0. MM )
G90 G00 G40 G54
G43 H1 D31 G0 X-2.374 Y59.937 Z50. S1000 M3
   X-2.374 Y59.937 Z10.
G1 Z-10. F33
   X-2.265 Y60.719 F100
G2 X-2.238 Y60.882 R3.
G1 X-1.691 Y63.683
G2 X-1.655 Y63.844 R3.
G1 X-0.955 Y66.608
G2 X-0.91 Y66.767 R3.
G1 X-0.058 Y69.493
G2 X-0.004 Y69.649 R3.
G1 X0.997 Y72.322
G2 X1.059 Y72.475 R3.
G1 X2.204 Y75.086
G2 X2.275 Y75.236 R3.
G1 X3.565 Y77.785
G2 X3.644 Y77.931 R3.
G1 X5.07 Y80.4
G2 X5.156 Y80.541 R3.
G1 X6.718 Y82.931
G2 X6.812 Y83.067 R3.
G1 X8.501 Y85.366
G2 X8.603 Y85.496 R3.
G1 X10.418 Y87.7
G2 X10.527 Y87.825 R3.
G1 X12.456 Y89.921
G2 X12.57 Y90.038 R3.
G1 X12.775 Y90.238
   X12.777 Y90.24
   X14.621 Y92.033
G2 X14.742 Y92.145 R3.
G1 X16.893 Y94.019
G2 X17.021 Y94.124 R3.
G1 X19.275 Y95.878
G2 X19.408 Y95.976 R3.
G1 X21.751 Y97.6
G2 X21.89 Y97.691 R3.
G1 X24.321 Y99.185
G2 X24.464 Y99.268 R3.
G1 X26.975 Y100.627
G2 X27.122 Y100.701 R3.
G1 X29.702 Y101.919
G2 X29.854 Y101.985 R3.
G1 X32.497 Y103.059
G2 X32.652 Y103.117 R3.
G1 X35.351 Y104.044
G2 X35.509 Y104.093 R3.
G1 X38.255 Y104.869
G2 X38.415 Y104.91 R3.
G1 X41.2 Y105.534
G2 X41.362 Y105.566 R3.
G1 X44.177 Y106.035
G2 X44.341 Y106.058 R3.
G1 X47.174 Y106.372
G2 X47.339 Y106.385 R3.
G1 X50.188 Y106.543
G2 X50.354 Y106.547 R3.
G1 X53.213
G2 X53.379 Y106.543 R3.
G1 X56.229 Y106.385
G2 X56.393 Y106.372 R3.
G1 X59.228 Y106.058
G2 X59.392 Y106.035 R3.
G1 X62.206 Y105.565
G2 X62.368 Y105.534 R3.
G1 X65.152 Y104.91
G2 X65.312 Y104.869 R3.
G1 X68.058 Y104.093
G2 X68.216 Y104.044 R3.
G1 X70.916 Y103.117
G2 X71.07 Y103.059 R3.
G1 X73.714 Y101.985
G2 X73.865 Y101.919 R3.
G1 X76.445 Y100.701
G2 X76.593 Y100.627 R3.
G1 X79.105 Y99.267
G2 X79.248 Y99.184 R3.
G1 X81.678 Y97.691
G2 X81.816 Y97.6 R3.
G1 X84.161 Y95.974
G2 X84.295 Y95.876 R3.
G1 X86.547 Y94.123
G2 X86.674 Y94.018 R3.
G1 X88.825 Y92.145
G2 X88.947 Y92.033 R3.
G1 X90.993 Y90.043
G2 X91.108 Y89.924 R3.
G1 X93.041 Y87.824
G2 X93.15 Y87.7 R3.
G1 X94.964 Y85.497
G2 X95.065 Y85.366 R3.
G1 X96.756 Y83.067
G2 X96.85 Y82.931 R3.
G1 X98.41 Y80.542
G2 X98.497 Y80.401 R3.
G1 X99.923 Y77.931
G2 X100.002 Y77.785 R3.
G1 X101.291 Y75.238
G2 X101.362 Y75.089 R3.
G1 X102.508 Y72.476
G2 X102.57 Y72.323 R3.
G1 X103.571 Y69.65
G2 X103.625 Y69.493 R3.
G1 X104.477 Y66.767
G2 X104.522 Y66.608 R3.
G1 X105.222 Y63.844
G2 X105.258 Y63.683 R3.
G1 X105.805 Y60.882
G2 X105.832 Y60.719 R3.
G1 X106.224 Y57.895
G2 X106.242 Y57.731 R3.
G1 X106.478 Y54.881
G2 X106.487 Y54.716 R3.
G1 X106.566 Y51.866
G2 X106.566 Y51.701 R3.
G1 X106.487 Y48.851
G2 X106.478 Y48.686 R3.
G1 X106.242 Y45.837
G2 X106.224 Y45.672 R3.
G1 X105.832 Y42.848
G2 X105.805 Y42.685 R3.
G1 X105.258 Y39.884
G2 X105.222 Y39.723 R3.
G1 X104.522 Y36.959
   X104.481 Y36.813
   X104.465 Y36.76
   X104.461 Y36.747
   X103.625 Y34.074
G2 X103.571 Y33.918 R3.
G1 X102.57 Y31.245
G2 X102.508 Y31.092 R3.
G1 X101.363 Y28.481
G2 X101.292 Y28.332 R3.
G1 X100.002 Y25.782
G2 X99.923 Y25.636 R3.
G1 X98.498 Y23.167
G2 X98.411 Y23.026 R3.
G1 X96.85 Y20.636
G2 X96.756 Y20.5 R3.
G1 X95.066 Y18.201
G2 X94.964 Y18.071 R3.
G1 X93.149 Y15.867
G2 X93.041 Y15.742 R3.
G1 X91.106 Y13.641
G2 X90.991 Y13.523 R3.
G1 X88.992 Y11.578
   X88.977 Y11.564
   X88.927 Y11.515
   X88.82 Y11.417
   X86.674 Y9.549
G2 X86.546 Y9.443 R3.
G1 X84.292 Y7.689
G2 X84.159 Y7.592 R3.
G1 X81.816 Y5.967
G2 X81.678 Y5.876 R3.
G1 X79.248 Y4.383
G2 X79.105 Y4.3 R3.
G1 X76.593 Y2.941
G2 X76.445 Y2.866 R3.
G1 X73.865 Y1.648
G2 X73.714 Y1.582 R3.
G1 X71.07 Y0.508
G2 X70.916 Y0.451 R3.
G1 X68.216 Y-0.476
G2 X68.058 Y-0.526 R3.
G1 X65.312 Y-1.302
G2 X65.152 Y-1.343 R3.
G1 X62.368 Y-1.967
G2 X62.206 Y-1.998 R3.
G1 X59.39 Y-2.468
G2 X59.226 Y-2.491 R3.
G1 X56.393 Y-2.805
G2 X56.229 Y-2.818 R3.
G1 X53.379 Y-2.976
G2 X53.213 Y-2.98 R3.
G1 X50.354
G2 X50.188 Y-2.976 R3.
G1 X47.339 Y-2.818
G2 X47.174 Y-2.805 R3.
G1 X44.341 Y-2.491
G2 X44.177 Y-2.468 R3.
G1 X41.362 Y-1.999
G2 X41.2 Y-1.967 R3.
G1 X38.415 Y-1.343
G2 X38.255 Y-1.302 R3.
G1 X35.509 Y-0.526
G2 X35.351 Y-0.476 R3.
G1 X32.652 Y0.451
G2 X32.497 Y0.508 R3.
G1 X29.853 Y1.582
G2 X29.702 Y1.649 R3.
G1 X27.122 Y2.866
G2 X26.975 Y2.941 R3.
G1 X24.464 Y4.299
G2 X24.321 Y4.382 R3.
G1 X21.889 Y5.876
G2 X21.751 Y5.967 R3.
G1 X19.406 Y7.593
G2 X19.273 Y7.691 R3.
G1 X17.02 Y9.444
G2 X16.893 Y9.549 R3.
G1 X14.741 Y11.423
G2 X14.62 Y11.535 R3.
G1 X12.576 Y13.523
G2 X12.461 Y13.641 R3.
G1 X10.526 Y15.743
G2 X10.418 Y15.867 R3.
G1 X8.603 Y18.07
G2 X8.502 Y18.201 R3.
G1 X6.812 Y20.5
G2 X6.717 Y20.636 R3.
G1 X5.156 Y23.026
G2 X5.07 Y23.167 R3.
G1 X3.644 Y25.636
G2 X3.565 Y25.782 R3.
G1 X2.275 Y28.332
G2 X2.204 Y28.481 R3.
G1 X1.06 Y31.091
G2 X0.997 Y31.244 R3.
G1 X-0.004 Y33.918
G2 X-0.057 Y34.074 R3.
G1 X-0.909 Y36.798
G2 X-0.954 Y36.957 R3.
G1 X-1.655 Y39.723
G2 X-1.691 Y39.884 R3.
G1 X-2.238 Y42.685
G2 X-2.265 Y42.848 R3.
G1 X-2.657 Y45.672
G2 X-2.675 Y45.837 R3.
G1 X-2.911 Y48.686
G2 X-2.92 Y48.851 R3.
G1 X-2.989 Y51.339
   X-2.999 Y51.701
G2 X-2.999 Y51.866 R3.
G1 X-2.92 Y54.716
G2 X-2.911 Y54.881 R3.
G1 X-2.675 Y57.731
G2 X-2.657 Y57.895 R3.
G1 X-2.374 Y59.937
G0 Z10.

Offline Jimster

  • Active Member
  • Posts: 173
    • View Profile
Re: Cutting circle
« Reply #1 on: January 20, 2014, 12:51:21 PM »
just realised I posted this in the wrong section, could a moderator move it for me please?

Offline Jimster

  • Active Member
  • Posts: 173
    • View Profile
Re: Cutting circle
« Reply #2 on: January 20, 2014, 04:39:53 PM »
I'm far from a gcode expert, but am I correct in thinking there should not be the G1 codes listed?

Offline cncalex

  • Active Member
  • Posts: 244
    • View Profile
Re: Cutting circle
« Reply #3 on: January 20, 2014, 05:34:19 PM »
Hi Jimster,
I assume the circle that you created in Cad is just a circle.
In this case the postprocessor should give out a nice circle in the G-Code. That depends on the PP settings and of course the cam settings.
More powerful Cams like Solidcam has various settings. I am not familar with SC , I think to contact the people there could help.

just a thought

Offline Jimster

  • Active Member
  • Posts: 173
    • View Profile
Re: Cutting circle
« Reply #4 on: January 21, 2014, 05:31:55 AM »
Yes it's just a circle I created in solidWorks,, then extruded it 10mm. I also think this must be a PP issue.

Offline Tweakie.CNC

  • Global Moderator
  • *
  • Posts: 7,646
  • Super Kitty
    • View Profile
    • Tweakie.CNC
Re: Cutting circle
« Reply #5 on: January 21, 2014, 05:58:05 AM »

Most of the CAD / CAM software that I use has the option for an Arc Tangent Curve (straight lines) or Arcs (true circle) post processors so I think you are on the right track and should look at your PP.

Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.

Offline Jimster

  • Active Member
  • Posts: 173
    • View Profile
Re: Cutting circle
« Reply #6 on: January 22, 2014, 11:46:55 AM »
Thanks for the help guys. I've now resolved this problem. It was a problem with solidcam setting. I increased the resolution and all is perfect now

Offline Machinehead57

  • Active Member
  • Posts: 48
    • View Profile
Re: Cutting circle
« Reply #7 on: March 14, 2014, 11:16:35 PM »
Jimster precessing this at a higher resolution will give you better results but isn't the best way plus is more confusing if you are trying to learn Gcode.
This producing short lines then arcs to acomplish a task that will require thousands of lines of code to produce.
Your circle can be produced in a few lines useing I and J word with your X,Y. This makes an actual arc like a compass from a center point.
This code will produce a 6" circle 3" from a corner at .100" deep. The one line number N45 produces the circle the other lines just tells it where and how deep.

N05 F15
N10 G00 Z0.5
N15 G00 X5.75 Y3
N20 G00 Z1
N25 G00 Z0.5
N30 G00 X5.75 Y3
N35 G01 Z0.9 F15
N40 G01 Z-0.1 F5
N45 G03 X5.75 Y3 I-2.75 J0 F15
N50 G00 Z0.5
N55 G00 X3 Y3
N60 M30

Good luck

I have this ultimate set of tools I can fix it.

Offline Jimster

  • Active Member
  • Posts: 173
    • View Profile
Re: Cutting circle
« Reply #8 on: March 17, 2014, 07:50:52 AM »
Thanks for the info Steve. I am learning a bit more each day

Offline Okcsmurf

  • Active Member
  • Posts: 3
    • View Profile
Re: Cutting circle
« Reply #9 on: September 16, 2018, 07:31:19 PM »
does someone have a gcode to cut a circle 1 inch od?