數控編程簡單點的圖片
Ⅰ 數控車床 車圓弧 下面這圖 怎麼編寫程序
………
G0 X6 Z0;
G01 X10 Z-2 F0.1;
Z-20;
G02 X20 Z-25 R5;
Z-35;
G03 X34 W-7 R7;
Z-52;
X60 Z-62;
Z-82;
………..
我是根據法那科系統編寫的程序,只編寫了精車的程序,前後也都省掉了,還有就是沒有加小數點,要看你的系統是否要加小數點,根據你的實際情況,再稍作改動即刻!
Ⅱ 數控車床簡單編程(見圖)
假設毛坯是φ30的圓鋼,法那科系統的數控車床,建立如圖工件坐標系
程序編寫如下:
M03S500;
T0101;
G00X32 Z0 M08;
G01X28Z0F1;
Z-37;
G00X30Z0;
G01X24;
Z-32;
G00X30Z0;
G01X20;
G00X30Z0
G01X16;
Z-14;
G00X30Z0;
G01X14;
Z-14;
X20Z-22;
G00X30Z0;
X0Z0;
G03X14Z-7R7;
G00X32Z0;
M09;
M05;
M30;
Ⅲ 數控銑床編程加工一個圖案
這是一副一箭穿心的圖案!!!
%
G40G80
G91G30Z0
G30XY0
N0020 G55 G90X42.87 Y-1.
N35 S3000 M03
N40 G0 G43 Z12. H1
N50 G1 Z12.1200.
N55 G3 X42.18 Y.47 I-90.578 J-41.627
N60 G1 X42.18 Y.47 Z12.
N65 Z12.
N70 G0 X38.58 Y-40.43
N75 G1 Z0. F1200.
N80 X38.985 Y-40.96
N85 X39.414 Y-41.578
N90 X39.875 Y-42.291
N95 X40.379 Y-43.107
N100 X40.934 Y-44.032
N105 X41.555 Y-45.077
N110 X42.263 Y-46.261
N115 X43.083 Y-47.598
N120 X44.023 Y-49.062
N125 X45.065 Y-50.577
N130 X46.123 Y-51.987
N135 X47.129 Y-53.203
N140 X48.077 Y-54.236
N145 X48.969 Y-55.109
N150 X49.82 Y-55.855
N155 X50.652 Y-56.502
N160 X51.488 Y-57.076
N165 X52.343 Y-57.586
N170 X53.222 Y-58.04
N175 X54.137 Y-58.445
N180 X55.092 Y-58.801
N185 X56.086 Y-59.107
N190 X57.117 Y-59.361
N195 X58.184 Y-59.558
N200 X59.278 Y-59.697
N205 X60.391 Y-59.774
N210 X61.518 Y-59.787
N215 X62.646 Y-59.737
N220 X63.766 Y-59.624
N225 X64.867 Y-59.45
N230 X65.94 Y-59.217
N235 X66.973 Y-58.929
N240 X67.959 Y-58.593
N245 X68.894 Y-58.212
N250 X69.773 Y-57.792
N255 X70.596 Y-57.335
N260 X71.37 Y-56.841
N265 X72.099 Y-56.308
N270 X72.792 Y-55.732
N275 X73.456 Y-55.106
N280 X74.095 Y-54.425
N285 X74.713 Y-53.679
N290 X75.315 Y-52.86
N295 X75.897 Y-51.959
N300 X76.461 Y-50.968
N305 X77.007 Y-49.868
N310 X77.536 Y-48.64
N315 X78.045 Y-47.263
N320 X78.533 Y-45.701
N325 X78.996 Y-43.919
N330 X79.426 Y-41.88
N335 X79.815 Y-39.549
N340 X80.154 Y-36.896
N345 X80.438 Y-33.901
N350 X80.675 Y-30.583
N355 X80.876 Y-27.028
N360 X81.039 Y-23.175
N365 X81.133 Y-18.885
N370 X81.11 Y-14.319
N375 X80.934 Y-9.743
N380 X80.606 Y-5.403
N385 X80.138 Y-1.306
N390 X79.511 Y2.783
N395 X78.695 Y7.043
N400 X77.667 Y11.542
N405 X76.398 Y16.321
N410 X74.871 Y21.37
N415 X73.08 Y26.65
N420 X71.073 Y31.989
N425 X68.94 Y37.154
N430 X66.78 Y41.96
N435 X64.699 Y46.261
N440 X62.741 Y50.015
N445 X60.887 Y53.286
N450 X59.116 Y56.149
N455 X57.414 Y58.669
N460 X55.758 Y60.913
N465 X54.128 Y62.934
N470 X52.513 Y64.766
N475 X50.901 Y66.439
N480 X49.278 Y67.978
N485 X47.636 Y69.397
N490 X45.973 Y70.705
N495 X44.279 Y71.914
N500 X42.544 Y73.034
N505 X40.76 Y74.07
N510 X38.915 Y73.151
N515 X37.109 Y72.145
N520 X35.337 Y71.049
N525 X33.589 Y69.854
N530 X31.858 Y68.55
N535 X30.14 Y67.131
N540 X28.424 Y65.582
N545 X26.698 Y63.879
N550 X24.951 Y61.999
N555 X23.167 Y59.91
N560 X21.332 Y57.571
N565 X19.431 Y54.939
N570 X17.419 Y51.921
N575 X15.23 Y48.373
N580 X12.847 Y44.237
N585 X10.378 Y39.672
N590 X7.965 Y34.867
N595 X5.74 Y30.038
N600 X3.781 Y25.369
N605 X2.067 Y20.859
N610 X.565 Y16.462
N615 X-.742 Y12.159
N620 X-1.853 Y7.974
N625 X-2.773 Y3.929
N630 X-3.523 Y-.046
N635 X-4.125 Y-4.082
N640 X-4.591 Y-8.301
N645 X-4.908 Y-12.665
N650 X-5.075 Y-17.054
N655 X-5.108 Y-21.347
N660 X-5.036 Y-25.414
N665 X-4.894 Y-29.155
N670 X-4.705 Y-32.577
N675 X-4.459 Y-35.698
N680 X-4.144 Y-38.539
N685 X-3.76 Y-41.12
N690 X-3.331 Y-41.659
N695 X-2.878 Y-42.287
N700 X-2.388 Y-43.012
N705 X-1.852 Y-43.845
N710 X-1.258 Y-44.793
N715 X-.592 Y-45.866
N720 X.166 Y-47.081
N725 X1.039 Y-48.443
N730 X2.037 Y-49.931
N735 X3.136 Y-51.463
N740 X4.244 Y-52.882
N745 X5.303 Y-54.113
N750 X6.3 Y-55.158
N755 X7.235 Y-56.038
N760 X8.126 Y-56.788
N765 X8.997 Y-57.44
N770 X9.871 Y-58.014
N775 X10.76 Y-58.521
N780 X11.673 Y-58.97
N785 X12.619 Y-59.367
N790 X13.604 Y-59.714
N795 X14.627 Y-60.008
N800 X15.692 Y-60.248
N805 X16.791 Y-60.431
N810 X17.916 Y-60.552
N815 X19.062 Y-60.61
N820 X20.219 Y-60.604
N825 X21.376 Y-60.531
N830 X22.525 Y-60.394
N835 X23.655 Y-60.195
N840 X24.754 Y-59.935
N845 X25.815 Y-59.62
N850 X26.827 Y-59.255
N855 X27.78 Y-58.847
N860 X28.671 Y-58.402
N865 X29.507 Y-57.921
N870 X30.291 Y-57.404
N875 X31.031 Y-56.847
N880 X31.735 Y-56.245
N885 X32.408 Y-55.592
N890 X33.058 Y-54.881
N895 X33.685 Y-54.104
N900 X34.291 Y-53.256
N905 X34.875 Y-52.327
N910 X35.44 Y-51.303
N915 X35.983 Y-50.174
N920 X36.504 Y-48.92
N925 X37.003 Y-47.513
N930 X37.477 Y-45.925
N935 X37.921 Y-44.117
N940 X38.329 Y-42.044
N945 X38.688 Y-39.661
N950 X38.989 Y-36.935
N955 X39.222 Y-33.852
N960 X39.388 Y-30.442
N965 X39.503 Y-26.764
N970 X39.56 Y-22.856
N975 X39.533 Y-18.594
N980 X39.381 Y-13.941
N985 X39.071 Y-9.13
N990 X38.595 Y-4.351
N995 X37.96 Y.292
N1000 X37.155 Y4.913
N1005 X36.154 Y9.656
N1010 X34.95 Y14.515
N1015 X33.552 Y19.433
N1020 X31.95 Y24.417
N1025 X30.122 Y29.499
N1030 X28.071 Y34.632
N1035 X25.854 Y39.68
N1040 X23.562 Y44.49
N1045 X21.328 Y48.863
N1050 X19.241 Y52.668
N1055 X17.282 Y55.964
N1060 X15.418 Y58.846
N1065 X13.625 Y61.388
N1070 X11.885 Y63.649
N1075 X10.175 Y65.684
N1080 X8.483 Y67.528
N1085 X6.796 Y69.21
N1090 X5.1 Y70.755
N1095 X3.386 Y72.177
N1100 X1.652 Y73.487
N1105 X-.113 Y74.695
N1110 X-1.918 Y75.811
N1115 X-3.77 Y76.84
N1120 X-5.669 Y75.843
N1125 X-7.524 Y74.757
N1130 X-9.343 Y73.577
N1135 X-11.132 Y72.294
N1140 X-12.9 Y70.9
N1145 X-14.652 Y69.385
N1150 X-16.393 Y67.737
N1155 X-18.138 Y65.932
N1160 X-19.9 Y63.943
N1165 X-21.693 Y61.737
N1170 X-23.546 Y59.249
N1175 X-25.49 Y56.406
N1180 X-27.544 Y53.145
N1185 X-29.719 Y49.427
N1190 X-32.017 Y45.256
N1195 X-34.308 Y40.864
N1200 X-36.387 Y36.572
N1205 X-38.186 Y32.498
N1210 X-39.742 Y28.562
N1215 X-41.105 Y24.659
N1220 X-42.356 Y20.598
N1225 X-43.557 Y16.144
N1230 X-44.726 Y11.119
N1235 X-45.825 Y5.546
N1240 X-46.81 Y-.421
N1245 X-47.603 Y-6.319
N1250 X-48.159 Y-11.826
N1255 X-48.495 Y-16.864
N1260 X-48.651 Y-21.432
N1265 X-48.668 Y-25.587
N1270 X-48.581 Y-29.442
N1275 X-48.411 Y-33.033
N1280 X-48.161 Y-36.317
N1285 X-47.834 Y-39.249
N1290 X-47.444 Y-41.805
N1295 X-47.007 Y-44.029
N1300 X-46.529 Y-45.982
N1305 X-46.019 Y-47.708
N1310 X-45.483 Y-49.242
N1315 X-44.922 Y-50.614
N1320 X-44.342 Y-51.847
N1325 X-43.741 Y-52.961
N1330 X-43.121 Y-53.973
N1335 X-42.482 Y-54.893
N1340 X-41.825 Y-55.732
N1345 X-41.146 Y-56.5
N1350 X-40.446 Y-57.204
N1355 X-39.722 Y-57.848
N1360 X-38.967 Y-58.442
N1365 X-38.175 Y-58.989
N1370 X-37.339 Y-59.493
N1375 X-36.452 Y-59.957
N1380 X-35.513 Y-60.382
N1385 X-34.517 Y-60.764
N1390 X-33.466 Y-61.1
N1395 X-32.369 Y-61.382
N1400 X-31.239 Y-61.607
N1405 X-30.083 Y-61.769
N1410 X-28.911 Y-61.867
N1415 X-27.736 Y-61.9
N1420 X-26.565 Y-61.867
N1425 X-25.406 Y-61.769
N1430 X-24.27 Y-61.608
N1435 X-23.161 Y-61.386
N1440 X-22.087 Y-61.107
N1445 X-21.056 Y-60.774
N1450 X-20.065 Y-60.391
N1455 X-19.111 Y-59.956
N1460 X-18.19 Y-59.468
N1465 X-17.292 Y-58.92
N1470 X-16.407 Y-58.301
N1475 X-15.525 Y-57.602
N1480 X-14.628 Y-56.803
N1485 X-13.689 Y-55.872
N1490 X-12.69 Y-54.769
N1495 X-11.629 Y-53.47
N1500 X-10.521 Y-51.977
N1505 X-9.421 Y-50.357
N1510 X-8.427 Y-48.786
N1515 X-7.567 Y-47.357
N1520 X-6.824 Y-46.087
N1525 X-6.175 Y-44.965
N1530 X-5.598 Y-43.975
N1535 X-5.08 Y-43.105
N1540 X-4.609 Y-42.346
N1545 X-4.173 Y-41.687
N1550 X-3.76 Y-41.12
N1555 Z12.
N1560 G0 X-114.824 Y-10.44
N1565 G1 Z0. F1200.
N1570 X-108.566 Y0.
N1575 X-114.824 Y10.44
N1580 Z12.
N1585 G0 X-104.568 Y-10.44
N1590 G1 Z0. F1200.
N1595 X-98.48 Y0.
N1600 X-104.568 Y10.44
N1605 Z12.
N1610 G0 X110.648 Y-7.18
N1615 G1 Z0. F1200.
N1620 X121.095 Y0.
N1625 X110.648 Y7.18
N1630 X118.775 Y0.
N1635 X110.648 Y-7.18
N1640 Z12.
N1645 G0 X121.095 Y0.
N1650 G1 Z0. F1200.
N1655 X-115.035
N1660 X-124.258 Y10.44
N1665 X-93.838
N1670 X-87.58 Y0.
N1675 X-93.838 Y-10.44
N1680 X-124.258
N1685 X-115.035 Y0.
N1690 Z12.
N1695 M30
%
Ⅳ 數控圖片編程大全
數控車床編程基礎簡介1.公制(米制)與英制編程
數控車床使用的長度單位量綱有公制(米制)和英制兩種,由專用的指令代碼設定長度單位量綱,如FANUC-0TC系統用G20表示使用英制單位量綱,G21表示使用公制(米制)單位量綱。系統通電開機後,機床自動處於公制尺寸狀態。
2.直徑編程和半徑編程
(1)直徑編程:採用直徑編程時,數控程序中X軸的坐標值即為零件圖上的直徑值。
(2)半徑編程:採用半徑編程,數控程序中X軸的坐標值為零件圖上的半徑值。考慮使用上的方便,一般採用直徑編程。CNC系統預設的編程方式為直徑編程。
a)直徑編程
b)半徑編程
圖1 數控車削編程分類
a) A:(30.0,80.0),B:(40.0,60.0)
b) A:(15.0,80.0),B:(20.0,60.0)
3.車床的前置刀架與後置刀架
數控車床刀架布置有兩種形式:如圖2所示
圖2 車床的前置刀架與後置刀架
(1)前置刀架。前置刀架位於Z軸的前面,與傳統卧式車床刀架的布置形式一樣,刀架導軌為水平導軌,使用四工位電動刀架;
(2)後置刀架。後置刀架位於Z軸的後面,刀架的導軌位置與正平面傾斜,這樣的結構形式便於觀察刀具的切削過程、切屑容易排除、後置空間大,可以設計更多工位的刀架,一般多功能的數控車床都設計為後置刀架。
4.刀尖半徑補償
在數控車削編程中為了編程方便,把刀尖看作為一個尖點,數控程序中刀具的運動軌跡即為該假想尖點的運動軌跡。(如圖3所示)
圖3 假想刀尖與刀尖半徑
數控系統中引入了刀尖半徑補償: 在數控程序編寫完成後,將已知刀尖半徑值輸入刀具補償表中,程序運行時數控系統會自動根據對應刀尖半徑值對刀具的實際運動軌跡進行補償。
數控加工中一般都使用可轉位刀片,每種刀片的刀尖圓角半徑是一定的,選定了刀片的型號,對應刀片的刀尖圓角半徑值即可確定。
刀尖圓弧半徑補償指令:
指令格式 G41(G42、G43)G01(G00)X(U)_Z(W)
指令功能 G41為刀尖圓弧半徑左補償;
G42為刀尖圓弧半徑右補償;
G40是取消刀尖圓弧半徑補償。
指令說明 順著刀具運動方向看,刀具在工件的左邊為刀尖圓弧半徑左補償;刀具在工件的右邊為刀尖圓弧半徑右補償。只有通過刀具的直線運動才能建立和取消刀尖圓弧半徑補償。
5.數控機床的初始狀態
初始狀態: 指數控機床通電後具有的狀態,也稱為數控系統內部默認的狀態,一般設定絕對坐標方式編程、使用米制長度單位量綱、取消刀具補償、主軸和切削液泵停止工作等狀態作為數控機床的初始狀態。 不過數控編程是最重要的。 目前國內這內技術人才。真正重要的不多。不過這個學會。很有用的。 然後編程學會。把CAD精通下。 因為CAD畫圖出來。它精確之後。 你數控編程才好。
Ⅳ 數控銑床編程實例 簡單
毛坯為70㎜×70㎜×18㎜板材,六面已粗加工過,要求數控銑出如圖2-23所示的槽,工件材料為45鋼。
選擇機床設備:根據零件圖樣要求,選用經濟型數控銑床即可達到要求。故選用XKN7125型數控立式銑床。
選擇刀具:現採用φ10㎜的平底立銑刀,定義為T01,並把該刀具的直徑輸入刀具參數表中。
確定切削用量:切削用量的具體數值應根據該機床性能、相關的手冊並結合實際經驗確定,詳見加工程序。
確定工件坐標系和對刀點:在XOY平面內確定以工件中心為工件原點,Z方向以工件表面為工件原點,建立工件坐標系,如圖2-23所示。 採用手動對刀方法(操作與前面介紹的數控銑床對刀方法相同)把點O作為對刀點。
編寫程序:按該機床規定的指令代碼和程序段格式,把加工零件的全部工藝過程編寫成程序清單。 考慮到加工圖示的槽,深為4㎜,每次切深為2㎜,分二次加工完,則為編程方便,同時減少指令條數,可採用子程序。
Ⅵ 數控編程G73指令
1、復合型內外圓車削循環:指令格式如圖片,第一行代碼: G71 U2 R1 f0.15。
Ⅶ 數控車床編程實例帶圖的
G99(每轉進給)
G0 X200 Z100(快速移動到安全位)
T0101(換1號外圓刀,執行1號刀補)
M03 S500(開啟主軸正轉,速度500R/MIN)
G0 X112 Z2(快速接近工件毛坯)
G71 U3 R0.5 F0.2(G71軸向精車循環加工,U3每次吃刀3MM單邊,退刀0.5MM,速度0.2MM/R)
G71 P1 Q2 U0 W0(P1程序開始階段,Q2程序結束階段,U0——X軸不留精加工餘量,W0——Z軸不留精加工餘量)
N1 G0 X30(循環開始以後的第一階段)
G1 Z-50
X90
Z-70
X110
N2 Z-140(循環結束的最後一階段)
G0 X200 Z100(快速移動至安全換刀位)
T0202(換2號刀螺牙刀,執行2號刀補)
G0 X200 Z100 S300(快速移動至安全位,轉速改為300R/MIN)
X30 Z4(快速定位至螺牙循環開始位置)
G92 X29.8 Z-48 F1.5(車螺牙,X軸牙底徑29.8,Z牙長48MM,牙距1.5MM)
X29.6
X29.4
X29.2
X29
X28.8
X28.6
X28.4
X28.3
X28.2
X28.1
X28.05
G0 X200 Z100(快速移動至安全換刀位置)
T0303(換3號割刀,執行3號刀補)
G0 X200 Z100 S200(快速定位,轉速200R/MIN)
X110 Z-84(移動至割槽循環開始位置)
G75 R0.5 F0.08(G75割槽循環,R——每次退刀0.5MM,F——每轉進給0.08MM)
G75 X60 Z-120 P6000 Q4000(槽底徑60MM,Z軸最大深度120MM,P——每次切入6MM,Z軸移動量)
M09(關水泵)
G0 X200 Z100 M05(快速移動至換刀安全位,關閉主軸)
T0101(換1號刀)
M30(程序結束)
Ⅷ 數控銑削簡單圖案編程
數控銑削培搭正簡單圖案編程:
G54G0Z50M3S800
X0Y0X-100Y-110Z5
G1Z-35F200
G41Y-100D1
G40X0Y0X0Y-110Z5
G1Z-25G41Y-100D1Y0
G2I100J0
G1Y110Z5
D1X50X100Y0X50Y-86.603X-50X-100Y0X-42.265Y100Z5
G0Z50
G40X0Y0X-61.237Y-110Z5
G1Z-10G41Y-100D1Y61.237
G40X0Y0M5M30
含義
隨著數控技術的發展,先進的數控系統不僅向用戶編程提供了一般的准備功能和輔助功能,而且為編程枝消提供了擴展數控功能的手段。FANUC6M數控系統的參數編程,應用靈活,形式自由,具備計算機高級語言的表達式、邏輯運算及類似的程序流程,使加工程序簡練易懂,實現普通編程難以實現的配悔功能。
以上內容參考:網路-數控編程