RE: [CAD_CAM_EDM_DRO] Newbie - G COde question
Posted by
Tim Goldstein
on 2000-05-24 08:35:24 UTC
I just had Vector spit this out for me. It is setup for a traditional lathe
layout with Z axis being the length of the bed and X axis controlling the
diameter of the part. It is setup as follows:
Z0 Z0.625
_________)
Sorry for the crappy ASCII art
What it is doing is taking off 0.015" per pass (0.030" on the diam) as a
straight pass down the length and then it roughs the radius at the end of
the pass. After getting it roughed out it goes back for a finish pass that
takes off .005".
(ballend on a 3/4"dia bar End of ball is Z.625)
N10 F5
N11 G00 X-0.380 Z0.704
N12 G01 X-0.365 Z0.704
N13 X-0.365 Z0.360
N14 G02 X-0.380 R0.375 Z0.255
N15 G01 X-0.375 Z0.255
N16 X-0.380 Z0.255
N17 X-0.436 Z0.311
N18 G00 X-0.436 Z0.704
N19 G01 X-0.365 Z0.704
N20 X-0.350 Z0.704
N21 X-0.350 Z0.402
N22 G02 X-0.365 R0.375 Z0.360
N23 G01 X-0.421 Z0.416
N24 G00 X-0.421 Z0.704
N25 G01 X-0.350 Z0.704
N26 X-0.335 Z0.704
N27 X-0.335 Z0.433
N28 G02 X-0.350 R0.375 Z0.402
N29 G01 X-0.406 Z0.458
N30 G00 X-0.406 Z0.704
N31 G01 X-0.335 Z0.704
N32 X-0.320 Z0.704
N33 X-0.320 Z0.458
N34 G02 X-0.335 R0.375 Z0.433
N35 G01 X-0.391 Z0.489
N36 G00 X-0.391 Z0.704
N37 G01 X-0.320 Z0.704
N38 X-0.305 Z0.704
N39 X-0.305 Z0.480
N40 G02 X-0.320 R0.375 Z0.458
N41 G01 X-0.376 Z0.514
N42 G00 X-0.376 Z0.704
N43 G01 X-0.305 Z0.704
N44 X-0.290 Z0.704
N45 X-0.290 Z0.499
N46 G02 X-0.305 R0.375 Z0.480
N47 G01 X-0.361 Z0.536
N48 G00 X-0.361 Z0.704
N49 G01 X-0.290 Z0.704
N50 X-0.275 Z0.704
N51 X-0.275 Z0.515
N52 G02 X-0.290 R0.375 Z0.499
N53 G01 X-0.346 Z0.554
N54 G00 X-0.346 Z0.704
N55 G01 X-0.275 Z0.704
N56 X-0.260 Z0.704
N57 X-0.260 Z0.530
N58 G02 X-0.275 R0.375 Z0.515
N59 G01 X-0.331 Z0.571
N60 G00 X-0.331 Z0.704
N61 G01 X-0.260 Z0.704
N62 X-0.245 Z0.704
N63 X-0.245 Z0.543
N64 G02 X-0.260 R0.375 Z0.530
N65 G01 X-0.316 Z0.586
N66 G00 X-0.316 Z0.704
N67 G01 X-0.245 Z0.704
N68 X-0.230 Z0.704
N69 X-0.230 Z0.555
N70 G02 X-0.245 R0.375 Z0.543
N71 G01 X-0.301 Z0.599
N72 G00 X-0.301 Z0.704
N73 G01 X-0.230 Z0.704
N74 X-0.215 Z0.704
N75 X-0.215 Z0.566
N76 G02 X-0.230 R0.375 Z0.555
N77 G01 X-0.286 Z0.611
N78 G00 X-0.286 Z0.704
N79 G01 X-0.215 Z0.704
N80 X-0.200 Z0.704
N81 X-0.200 Z0.575
N82 G02 X-0.215 R0.375 Z0.566
N83 G01 X-0.271 Z0.621
N84 G00 X-0.271 Z0.704
N85 G01 X-0.200 Z0.704
N86 X-0.185 Z0.704
N87 X-0.185 Z0.584
N88 G02 X-0.200 R0.375 Z0.575
N89 G01 X-0.256 Z0.631
N90 G00 X-0.256 Z0.704
N91 G01 X-0.185 Z0.704
N92 X-0.170 Z0.704
N93 X-0.170 Z0.592
N94 G02 X-0.185 R0.375 Z0.584
N95 G01 X-0.241 Z0.640
N96 G00 X-0.241 Z0.704
N97 G01 X-0.170 Z0.704
N98 X-0.155 Z0.704
N99 X-0.155 Z0.599
N100 G02 X-0.170 R0.375 Z0.592
N101 G01 X-0.226 Z0.647
N102 G00 X-0.226 Z0.704
N103 G01 X-0.155 Z0.704
N104 X-0.140 Z0.704
N105 X-0.140 Z0.605
N106 G02 X-0.155 R0.375 Z0.599
N107 G01 X-0.211 Z0.654
N108 G00 X-0.211 Z0.704
N109 G01 X-0.140 Z0.704
N110 X-0.125 Z0.704
N111 X-0.125 Z0.610
N112 G02 X-0.140 R0.375 Z0.605
N113 G01 X-0.196 Z0.661
N114 G00 X-0.196 Z0.704
N115 G01 X-0.125 Z0.704
N116 X-0.110 Z0.704
N117 X-0.110 Z0.615
N118 G02 X-0.125 R0.375 Z0.610
N119 G01 X-0.181 Z0.666
N120 G00 X-0.181 Z0.704
N121 G01 X-0.110 Z0.704
N122 X-0.095 Z0.704
N123 X-0.095 Z0.619
N124 G02 X-0.110 R0.375 Z0.615
N125 G01 X-0.166 Z0.671
N126 G00 X-0.166 Z0.704
N127 G01 X-0.095 Z0.704
N128 X-0.080 Z0.704
N129 X-0.080 Z0.622
N130 G02 X-0.095 R0.375 Z0.619
N131 G01 X-0.151 Z0.675
N132 G00 X-0.151 Z0.704
N133 G01 X-0.080 Z0.704
N134 X-0.065 Z0.704
N135 X-0.065 Z0.625
N136 G02 X-0.080 R0.375 Z0.622
N137 G01 X-0.136 Z0.678
N138 G00 X-0.136 Z0.704
N139 G01 X-0.065 Z0.704
N140 X-0.050 Z0.704
N141 X-0.050 Z0.627
N142 G02 X-0.065 R0.375 Z0.625
N143 G01 X-0.121 Z0.681
N144 G00 X-0.121 Z0.704
N145 G01 X-0.050 Z0.704
N146 X-0.035 Z0.704
N147 X-0.035 Z0.629
N148 G02 X-0.050 R0.375 Z0.627
N149 G01 X-0.106 Z0.683
N150 G00 X-0.106 Z0.704
N151 G01 X-0.035 Z0.704
N152 X-0.020 Z0.704
N153 X-0.020 Z0.630
N154 G02 X-0.035 R0.375 Z0.629
N155 G01 X-0.091 Z0.684
N156 G00 X-0.091 Z0.704
N157 G01 X-0.020 Z0.704
N158 X-0.005 Z0.704
N159 X-0.005 Z0.630
N160 G02 X-0.020 R0.375 Z0.630
N161 G01 X-0.076 Z0.685
N162 G00 X-0.076 Z0.704
N163 G01 X-0.005 Z0.704
N164 X-0.005 Z0.630
N165 X-0.061 Z0.686
N166 G00 X-0.380 Z0.686
N167 X-0.380 Z0.704
N168 G01 X-0.375 Z0.704
N169 G00 X0.000 Z0.704
N170 G01 X0.000 Z0.625
N171 G02 X-0.375 R0.375 Z0.250
N172 G01 X-0.375 Z0.250
N173 X-0.431 Z0.306
N174 G00 X-0.431 Z0.704
N175 X-0.375 Z0.704
N176 M2
layout with Z axis being the length of the bed and X axis controlling the
diameter of the part. It is setup as follows:
Z0 Z0.625
_________)
Sorry for the crappy ASCII art
What it is doing is taking off 0.015" per pass (0.030" on the diam) as a
straight pass down the length and then it roughs the radius at the end of
the pass. After getting it roughed out it goes back for a finish pass that
takes off .005".
(ballend on a 3/4"dia bar End of ball is Z.625)
N10 F5
N11 G00 X-0.380 Z0.704
N12 G01 X-0.365 Z0.704
N13 X-0.365 Z0.360
N14 G02 X-0.380 R0.375 Z0.255
N15 G01 X-0.375 Z0.255
N16 X-0.380 Z0.255
N17 X-0.436 Z0.311
N18 G00 X-0.436 Z0.704
N19 G01 X-0.365 Z0.704
N20 X-0.350 Z0.704
N21 X-0.350 Z0.402
N22 G02 X-0.365 R0.375 Z0.360
N23 G01 X-0.421 Z0.416
N24 G00 X-0.421 Z0.704
N25 G01 X-0.350 Z0.704
N26 X-0.335 Z0.704
N27 X-0.335 Z0.433
N28 G02 X-0.350 R0.375 Z0.402
N29 G01 X-0.406 Z0.458
N30 G00 X-0.406 Z0.704
N31 G01 X-0.335 Z0.704
N32 X-0.320 Z0.704
N33 X-0.320 Z0.458
N34 G02 X-0.335 R0.375 Z0.433
N35 G01 X-0.391 Z0.489
N36 G00 X-0.391 Z0.704
N37 G01 X-0.320 Z0.704
N38 X-0.305 Z0.704
N39 X-0.305 Z0.480
N40 G02 X-0.320 R0.375 Z0.458
N41 G01 X-0.376 Z0.514
N42 G00 X-0.376 Z0.704
N43 G01 X-0.305 Z0.704
N44 X-0.290 Z0.704
N45 X-0.290 Z0.499
N46 G02 X-0.305 R0.375 Z0.480
N47 G01 X-0.361 Z0.536
N48 G00 X-0.361 Z0.704
N49 G01 X-0.290 Z0.704
N50 X-0.275 Z0.704
N51 X-0.275 Z0.515
N52 G02 X-0.290 R0.375 Z0.499
N53 G01 X-0.346 Z0.554
N54 G00 X-0.346 Z0.704
N55 G01 X-0.275 Z0.704
N56 X-0.260 Z0.704
N57 X-0.260 Z0.530
N58 G02 X-0.275 R0.375 Z0.515
N59 G01 X-0.331 Z0.571
N60 G00 X-0.331 Z0.704
N61 G01 X-0.260 Z0.704
N62 X-0.245 Z0.704
N63 X-0.245 Z0.543
N64 G02 X-0.260 R0.375 Z0.530
N65 G01 X-0.316 Z0.586
N66 G00 X-0.316 Z0.704
N67 G01 X-0.245 Z0.704
N68 X-0.230 Z0.704
N69 X-0.230 Z0.555
N70 G02 X-0.245 R0.375 Z0.543
N71 G01 X-0.301 Z0.599
N72 G00 X-0.301 Z0.704
N73 G01 X-0.230 Z0.704
N74 X-0.215 Z0.704
N75 X-0.215 Z0.566
N76 G02 X-0.230 R0.375 Z0.555
N77 G01 X-0.286 Z0.611
N78 G00 X-0.286 Z0.704
N79 G01 X-0.215 Z0.704
N80 X-0.200 Z0.704
N81 X-0.200 Z0.575
N82 G02 X-0.215 R0.375 Z0.566
N83 G01 X-0.271 Z0.621
N84 G00 X-0.271 Z0.704
N85 G01 X-0.200 Z0.704
N86 X-0.185 Z0.704
N87 X-0.185 Z0.584
N88 G02 X-0.200 R0.375 Z0.575
N89 G01 X-0.256 Z0.631
N90 G00 X-0.256 Z0.704
N91 G01 X-0.185 Z0.704
N92 X-0.170 Z0.704
N93 X-0.170 Z0.592
N94 G02 X-0.185 R0.375 Z0.584
N95 G01 X-0.241 Z0.640
N96 G00 X-0.241 Z0.704
N97 G01 X-0.170 Z0.704
N98 X-0.155 Z0.704
N99 X-0.155 Z0.599
N100 G02 X-0.170 R0.375 Z0.592
N101 G01 X-0.226 Z0.647
N102 G00 X-0.226 Z0.704
N103 G01 X-0.155 Z0.704
N104 X-0.140 Z0.704
N105 X-0.140 Z0.605
N106 G02 X-0.155 R0.375 Z0.599
N107 G01 X-0.211 Z0.654
N108 G00 X-0.211 Z0.704
N109 G01 X-0.140 Z0.704
N110 X-0.125 Z0.704
N111 X-0.125 Z0.610
N112 G02 X-0.140 R0.375 Z0.605
N113 G01 X-0.196 Z0.661
N114 G00 X-0.196 Z0.704
N115 G01 X-0.125 Z0.704
N116 X-0.110 Z0.704
N117 X-0.110 Z0.615
N118 G02 X-0.125 R0.375 Z0.610
N119 G01 X-0.181 Z0.666
N120 G00 X-0.181 Z0.704
N121 G01 X-0.110 Z0.704
N122 X-0.095 Z0.704
N123 X-0.095 Z0.619
N124 G02 X-0.110 R0.375 Z0.615
N125 G01 X-0.166 Z0.671
N126 G00 X-0.166 Z0.704
N127 G01 X-0.095 Z0.704
N128 X-0.080 Z0.704
N129 X-0.080 Z0.622
N130 G02 X-0.095 R0.375 Z0.619
N131 G01 X-0.151 Z0.675
N132 G00 X-0.151 Z0.704
N133 G01 X-0.080 Z0.704
N134 X-0.065 Z0.704
N135 X-0.065 Z0.625
N136 G02 X-0.080 R0.375 Z0.622
N137 G01 X-0.136 Z0.678
N138 G00 X-0.136 Z0.704
N139 G01 X-0.065 Z0.704
N140 X-0.050 Z0.704
N141 X-0.050 Z0.627
N142 G02 X-0.065 R0.375 Z0.625
N143 G01 X-0.121 Z0.681
N144 G00 X-0.121 Z0.704
N145 G01 X-0.050 Z0.704
N146 X-0.035 Z0.704
N147 X-0.035 Z0.629
N148 G02 X-0.050 R0.375 Z0.627
N149 G01 X-0.106 Z0.683
N150 G00 X-0.106 Z0.704
N151 G01 X-0.035 Z0.704
N152 X-0.020 Z0.704
N153 X-0.020 Z0.630
N154 G02 X-0.035 R0.375 Z0.629
N155 G01 X-0.091 Z0.684
N156 G00 X-0.091 Z0.704
N157 G01 X-0.020 Z0.704
N158 X-0.005 Z0.704
N159 X-0.005 Z0.630
N160 G02 X-0.020 R0.375 Z0.630
N161 G01 X-0.076 Z0.685
N162 G00 X-0.076 Z0.704
N163 G01 X-0.005 Z0.704
N164 X-0.005 Z0.630
N165 X-0.061 Z0.686
N166 G00 X-0.380 Z0.686
N167 X-0.380 Z0.704
N168 G01 X-0.375 Z0.704
N169 G00 X0.000 Z0.704
N170 G01 X0.000 Z0.625
N171 G02 X-0.375 R0.375 Z0.250
N172 G01 X-0.375 Z0.250
N173 X-0.431 Z0.306
N174 G00 X-0.431 Z0.704
N175 X-0.375 Z0.704
N176 M2
> -----Original Message-----
> From: dacostad@... [mailto:dacostad@...]
> Sent: Wednesday, May 24, 2000 6:18 AM
> To: CAD_CAM_EDM_DRO@egroups.com
> Subject: [CAD_CAM_EDM_DRO] Newbie - G COde question
>
>
> I have just converted my Sherline lathe to CNC (Progressive Logic)
> and have be learning G Code.
>
> I need some advice from the experts.
>
> I have a 3/4" round aluminium which I wish to round the end on. As
> the maximum acceptable cut on the Sherline is about 0.02" I obviously
> need to take several passes at cutting the curve.
>
> Can anybody give me a clue as to how the G- Code should look?
>
>
> Thanks
>
>
> David Da Costa
>