search

BA1

9/27/2554

การเขียนโปรแกรม G CODES M CODES

ตัวอย่างโปรแกรม

%
O5001
(00-003612 REV 1 SITE 2)
(* Date  : 07/08/11)
 G00 G53 Z0.0 Y0.0 G40 M19
N1 T01 M06 (12MM ROUGH ENDMILL)

 G55 G90
 G43 Z50.0 H01 X-115.423 Y110.047 S10000 M3 T02
 G0 Z2.0  M8
 G1 Z0.5 F3000
 X-117.544 Y107.926 D01 G41
 X-110.473 Y100.854
 G3 X-106.23 Y99.097 I4.243 J4.243
 G1 X106.23
 G2 X124.23 Y81.097 I0.0 J-18.0
 G1 Y-81.097
 G2 X106.23 Y-99.097 I-18.0 J0.0
 G1 X-106.23
 G2 X-124.23 Y-81.097 I0.0 J18.0
 G1 Y81.097
 G2 X-106.23 Y99.097 I18.0 J0.0
 G3 X-101.988 Y100.854 I0.0 J6.0
 G1 X-94.917 Y107.926
 X-97.038 Y110.047 G40
 G0 Z5.0
 X-116.923 Y98.047
 G1 Z0.5
 X-119.044 Y95.926 D01 G41
 X-111.973 Y88.854
 G3 X-107.73 Y87.097 I4.243 J4.243
 G1 X106.23
 G2 X112.23 Y81.097 I0.0 J-6.0
 G1 Y-81.097
 G2 X106.23 Y-87.097 I-6.0 J0.0
 G1 X-106.23
 G2 X-112.23 Y-81.097 I0.0 J6.0
 G1 Y82.597
 G3 X-113.988 Y86.84 I-6.0 J0.0
 G1 X-121.059 Y93.911
 X-123.18 Y91.789 G40
 G0 Z5.0
 Z20.0
 X-123.848 Y108.547
 Z2.0
 G1 Z-9.0
 X-125.969 Y106.426 D01 G41
 X-118.898 Y99.354
 G3 X-114.656 Y97.597 I4.242 J4.243
 G1 X114.656
 G2 X122.73 Y89.522 I0.0 J-8.075
 G1 Y-89.522
 G2 X114.656 Y-97.597 I-8.074 J0.0
 G1 X-114.656
 G2 X-122.73 Y-89.522 I0.0 J8.075
 G1 Y89.522
 G2 X-114.656 Y97.597 I8.074 J0.0
 G3 X-110.413 Y99.354 I0.0 J6.0
 G1 X-103.342 Y106.426
 X-105.463 Y108.547 G40
 G0 Z20.0
 X0.0 Y74.602
 Z7.0
 G1 Z5.0
 X-101.374 Z4.208
 Y-74.602 Z3.042
 X101.374 Z1.458
 Y74.602 Z0.292
 X0.0 Z-0.5
 X-101.374 Z-1.292
 Y-74.602 Z-2.458
 X101.374 Z-4.042
 Y74.602 Z-5.208
 X0.0 Z-6.2
 X-101.374
 Y-74.602
 X101.374
 Y74.602
 X0.0
 G0 Z20.0
 G53 Z0.0 M19
 M01
N2 T02 M06 (12MM ENDMILL)
 G55 G90
 G43 Z50.0 H02 X-113.923 Y108.047 S8000 M3 T06
 G0 Z2.0  M8
 G1 Z0.0 F2000
 X-116.044 Y105.926 D02 G41
 X-108.973 Y98.854
 G3 X-104.73 Y97.097 I4.243 J4.243
 G1 X104.73
 G2 X122.23 Y79.597 I0.0 J-17.5
 G1 Y-79.597
 G2 X104.73 Y-97.097 I-17.5 J0.0
 G1 X-104.73
 G2 X-122.23 Y-79.597 I0.0 J17.5
 G1 Y79.597
 G2 X-104.73 Y97.097 I17.5 J0.0
 G3 X-100.488 Y98.854 I0.0 J6.0
 G1 X-93.417 Y105.926
 X-95.538 Y108.047 G40
 G0 Z2.0
 X-115.423 Y96.547
 G1 Z0.0
 X-117.544 Y94.426 D02 G41
 X-110.473 Y87.354
 G3 X-106.23 Y85.597 I4.243 J4.243
 G1 X104.73
 G2 X110.73 Y79.597 I0.0 J-6.0
 G1 Y-79.597
 G2 X104.73 Y-85.597 I-6.0 J0.0
 G1 X-104.73
 G2 X-110.73 Y-79.597 I0.0 J6.0
 G1 Y81.097
 G3 X-112.488 Y85.34 I-6.0 J0.0
 G1 X-119.559 Y92.411
 X-121.68 Y90.289 G40
 G0 Z2.0
 X-123.848 Y108.047
 G1 Z-9.0
 X-125.969 Y105.926 D02 G41
 X-118.898 Y98.854
 G3 X-114.656 Y97.097 I4.242 J4.243
 G1 X114.656
 G2 X122.23 Y89.522 I0.0 J-7.575
 G1 Y-89.522
 G2 X114.656 Y-97.097 I-7.574 J0.0
 G1 X-114.656
 G2 X-122.23 Y-89.522 I0.0 J7.575
 G1 Y89.522
 G2 X-114.656 Y97.097 I7.574 J0.0
 G3 X-110.413 Y98.854 I0.0 J6.0
 G1 X-103.342 Y105.926
 X-105.463 Y108.047 G40
 G0 Z2.0
 G53 Z0.0 M19
 M01
N6 T06 M06 (R 1.5 X 6 MM)
 G55 G90
 G43 Z50.0 H06 X-118.789 Y96.181 S10000 M3 T08
 G0 Z2.0  M8
 G1 Z-1.5 F2000
 X-119.451 Y94.835 D06 G41
 X-117.657 Y93.952
 G3 X-116.129 Y93.853 I0.883 J1.795
 G2 X-114.656 Y94.097 I1.473 J-4.331
 G1 X114.656
 G2 X119.23 Y89.522 I0.0 J-4.575
 G1 Y-89.522
 G2 X114.656 Y-94.097 I-4.574 J0.0
 G1 X-114.656
 G2 X-119.23 Y-89.522 I0.0 J4.575
 G1 Y89.522
 G2 X-114.656 Y94.097 I4.574 J0.0
 G1 X-113.156
 G3 X-111.741 Y94.683 I0.0 J2.0
 G1 X-110.327 Y96.097
 X-111.388 Y97.158 G40
 G0 Z2.0
 G53 Z0.0 M19
 M01
N8 T08 M06 (3MM HM END MILL)
 G55 G90
 G43 Z50.0 H08 X-105.827 Y77.329 S10000 M3 T09
 G0 Z2.0  M8
 G1 Z-0.51 F2000
 X-118.656
 Y76.443
 X-105.906
 G0 Z2.0
 Y69.557
 G1 Z-0.51
 X-118.656
 Y68.67
 X-105.906
 G0 Z2.0
 Y61.784
 G1 Z-0.51
 X-118.656
 Y60.898
 X-105.906
 G0 Z2.0
 Y54.012
 G1 Z-0.51
 X-118.656
 Y53.125
 X-105.906
 G0 Z2.0
 Y46.239
 G1 Z-0.51
 X-118.656
 Y45.353
 X-105.906
 G0 Z2.0
 Y38.467
 G1 Z-0.51
 X-118.656
 Y37.581
 X-105.906
 G0 Z2.0
 Y30.695
 G1 Z-0.51
 X-118.656
 Y29.808
 X-105.906
 G0 Z2.0
 Y22.922
 G1 Z-0.51
 X-118.656
 Y22.036
 X-105.906
 G0 Z2.0
 Y15.15
 G1 Z-0.51
 X-118.656
 Y14.263
 X-105.906
 G0 Z2.0
 Y7.377
 G1 Z-0.51
 X-118.656
 Y6.491
 X-105.906
 G0 Z2.0
 Y-0.395
 G1 Z-0.51
 X-118.656
 Y-1.281
 X-105.906
 G0 Z2.0
 Y-8.167
 G1 Z-0.51
 X-118.656
 Y-9.054
 X-105.906
 G0 Z2.0
 Y-15.94
 G1 Z-0.51
 X-118.656
 Y-16.826
 X-105.906
 G0 Z2.0
 Y-23.712
 G1 Z-0.51
 X-118.656
 Y-24.599
 X-105.906
 G0 Z2.0
 Y-31.485
 G1 Z-0.51
 X-118.656
 Y-32.371
 X-105.906
 G0 Z2.0
 Y-39.257
 G1 Z-0.51
 X-118.656
 Y-40.143
 X-105.906
 G0 Z2.0
 Y-47.029
 G1 Z-0.51
 X-118.656
 Y-47.916
 X-105.906
 G0 Z2.0
 Y-54.802
 G1 Z-0.51
 X-118.656
 Y-55.688
 X-105.906
 G0 Z2.0
 Y-62.574
 G1 Z-0.51
 X-118.656
 Y-63.461
 X-105.906
 G0 Z2.0
 Y-70.347
 G1 Z-0.51
 X-118.656
 Y-71.233
 X-105.906
 G0 Z2.0
 Y-78.119
 G1 Z-0.51
 X-118.656
 Y-79.005
 X-105.223
 G0 Z2.0
 X105.223
 G1 Z-0.51
 X118.656
 Y-78.119
 X105.906
 G0 Z2.0
 Y-71.233
 G1 Z-0.51
 X118.656
 Y-70.347
 X105.906
 G0 Z2.0
 Y-63.461
 G1 Z-0.51
 X118.656
 Y-62.574
 X105.906
 G0 Z2.0
 Y-55.688
 G1 Z-0.51
 X118.656
 Y-54.802
 X105.906
 G0 Z2.0
 Y-47.916
 G1 Z-0.51
 X118.656
 Y-47.029
 X105.906
 G0 Z2.0
 Y-40.143
 G1 Z-0.51
 X118.656
 Y-39.257
 X105.906
 G0 Z2.0
 Y-32.371
 G1 Z-0.51
 X118.656
 Y-31.485
 X105.906
 G0 Z2.0
 Y-24.599
 G1 Z-0.51
 X118.656
 Y-23.712
 X105.906
 G0 Z2.0
 Y-16.826
 G1 Z-0.51
 X118.656
 Y-15.94
 X105.906
 G0 Z2.0
 Y-9.054
 G1 Z-0.51
 X118.656
 Y-8.167
 X105.906
 G0 Z2.0
 Y-1.281
 G1 Z-0.51
 X118.656
 Y-0.395
 X105.906
 G0 Z2.0
 Y6.491
 G1 Z-0.51
 X118.656
 Y7.377
 X105.906
 G0 Z2.0
 Y14.263
 G1 Z-0.51
 X118.656
 Y15.15
 X105.906
 G0 Z2.0
 Y22.036
 G1 Z-0.51
 X118.656
 Y22.922
 X105.906
 G0 Z2.0
 Y29.808
 G1 Z-0.51
 X118.656
 Y30.695
 X105.906
 G0 Z2.0
 Y37.581
 G1 Z-0.51
 X118.656
 Y38.467
 X105.906
 G0 Z2.0
 Y45.353
 G1 Z-0.51
 X118.656
 Y46.239
 X105.906
 G0 Z2.0
 Y53.125
 G1 Z-0.51
 X118.656
 Y54.012
 X105.906
 G0 Z2.0
 Y60.898
 G1 Z-0.51
 X118.656
 Y61.784
 X105.906
 G0 Z2.0
 Y68.67
 G1 Z-0.51
 X118.656
 Y69.557
 X105.906
 G0 Z2.0
 Y76.443
 G1 Z-0.51
 X118.656
 Y77.329
 X105.827
 G0 Z2.0
 G53 Z0.0 M19
 M01
N9 T09 M06 (12MM X 18.8 DG ENDMILL)
 G55 G90
 G43 Z50.0 H09 X7.996 Y75.935 S6000 M3 T07
 G0 Z2.0  M8
 G1 Z-6.0 F1500
 X8.153 Y78.931 D09 G41
 X5.157 Y79.088
 G3 X5.0 Y79.092 I-0.157 J-2.996
 G1 X-104.699
 G3 X-105.864 Y77.927 I0.0 J-1.165
 G1 Y-77.927
 G3 X-104.699 Y-79.092 I1.165 J0.0
 G1 X104.699
 G3 X105.864 Y-77.927 I0.0 J1.165
 G1 Y77.927
 G3 X104.699 Y79.092 I-1.165 J0.0
 G1 X-5.0
 G3 X-5.157 Y79.088 I0.0 J-3.0
 G1 X-8.153 Y78.931
 X-7.996 Y75.935 G40
 G0 Z2.0
 G53 Z0.0  M19
 M01
N7 T07 M06 (6MM ROUGH ENDMILL)
 G55 G90
 G43 Z50.0 H07 X1.414 Y76.602 S10000 M3 T08
 G0 Z2.0  M8
 Z2.0
 G1 Z-6.2 F500
 Z-9.X0.707 Y77.309
 G3 X0.0 Y77.602 I-0.707 J-0.707
 G1 X-104.374F2000
 Y-77.602
 X104.374
 Y77.602
 X0.0
 G3 X-0.707 Y77.309 I0.0 J-1.0
 G1 X-1.414 Y76.602
 G0 Z20.0
 G53 Z0.0 M19
 M00
 (CLAMP OUTSIDE)
N10 T08 M06 (3MM HM END MILL)
 G55 G90
 G43 Z50.0 H08 X1.414 Y78.102 S10000 M3 T01
 G0 Z2.0  M8
 G1 Z0.0 F1200
 X0.707 Y78.809
 G3 X0.0 Y79.102 I-0.707 J-0.707
 G1 X-104.699 Z-1.064
 G17 G94 G3 X-105.874 Y77.927 Z-1.083 I0.0 J-1.175 K0.075
 G1 Y-77.927 Z-2.667
 G3 X-104.699 Y-79.102 Z-2.686 I1.175 J0.0 K0.075
 G1 X104.699 Z-4.814
 G3 X105.874 Y-77.927 Z-4.833 I0.0 J1.175 K0.075
 G1 Y77.927 Z-6.417
 G3 X104.699 Y79.102 Z-6.436 I-1.175 J0.0 K0.075
 G1 X49.192 Z-7.0
 X0.0
 X-104.699
 G3 X-105.874 Y77.927 I0.0 J-1.175
 G1 Y-77.927
 G3 X-104.699 Y-79.102 I1.175 J0.0
 G1 X104.699
 G3 X105.874 Y-77.927 I0.0 J1.175
 G1 Y77.927
 G3 X104.699 Y79.102 I-1.175 J0.0
 G1 X49.192
 G3 X48.485 Y78.809 I0.0 J-1.0
 G1 X47.778 Y78.102
 G0 Z2.0
 X0.884 Y78.072
 G1 Z0.0
 X1.414 Y78.602 D08 G41
 X0.707 Y79.309
 G3 X0.0 Y79.602 I-0.707 J-0.707
 G1 X-104.699 Z-1.272
 G3 X-106.374 Y77.927 Z-1.304 I0.0 J-1.675 K0.128
 G1 Y-77.927 Z-3.196
 G3 X-104.699 Y-79.602 Z-3.228 I1.675 J0.0 K0.128
 G1 X104.699 Z-5.772
 G3 X106.374 Y-77.927 Z-5.804 I0.0 J1.675 K0.128
 G1 Y77.927 Z-7.696
 G3 X104.699 Y79.602 Z-7.728 I-1.675 J0.0 K0.128
 G1 X0.0 Z-9.0
 X-104.699
 G3 X-106.374 Y77.927 I0.0 J-1.675
 G1 Y-77.927
 G3 X-104.699 Y-79.602 I1.675 J0.0
 G1 X104.699
 G3 X106.374 Y-77.927 I0.0 J1.675
 G1 Y77.927
 G3 X104.699 Y79.602 I-1.675 J0.0
 G1 X0.0
 G3 X-0.707 Y79.309 I0.0 J-1.0
 G1 X-1.414 Y78.602
 X-0.884 Y78.072 G40
 G0 Z2.0
 G00 Z50.0 M09
 G53Z0.M19
 M01
 T11 M06 (12MM X 18.8 DG ENDMILL)
 G55 G90
 G43 Z50.0 H09 X7.996 Y75.935 S6000 M3 T01
 G0 Z2.0  M8
 G1 Z-6.0 F1500
 X8.153 Y78.931 D09 G41
 X5.157 Y79.088
 G3 X5.0 Y79.092 I-0.157 J-2.996
 G1 X-104.699
 G3 X-105.864 Y77.927 I0.0 J-1.165
 G1 Y-77.927
 G3 X-104.699 Y-79.092 I1.165 J0.0
 G1 X104.699
 G3 X105.864 Y-77.927 I0.0 J1.165
 G1 Y77.927
 G3 X104.699 Y79.092 I-1.165 J0.0
 G1 X-5.0
 G3 X-5.157 Y79.088 I0.0 J-3.0
 G1 X-8.153 Y78.931
 X-7.996 Y75.935 G40
 G0 Z2.0
 G53 Z0.0  M19
 M30
%

ไม่มีความคิดเห็น:

แสดงความคิดเห็น