[{"data":1,"prerenderedAt":1784},["ShallowReactive",2],{"header-article-translation-zh-section-none":3,"wiki-zh-appendix-g-code-commands":4,"wiki-tree-zh":1642},null,{"id":5,"title":6,"body":7,"category":1626,"description":1627,"extension":1628,"locale":1629,"meta":1630,"navigation":1631,"order":1632,"path":1633,"seo":1634,"slug":1635,"source":1636,"stem":1639,"updatedAt":1640,"__hash__":1641},"wiki\u002Fwiki\u002Fzh\u002Fappendix\u002Fg-code-commands.md","G-code 命令表",{"type":8,"value":9,"toc":1554},"minimark",[10,14,19,31,37,43,59,64,87,91,98,103,107,121,125,140,144,151,156,160,171,175,184,188,195,200,204,212,216,225,228,231,235,242,247,251,262,266,273,278,282,290,294,301,306,310,318,320,323,327,334,339,343,354,358,365,370,374,385,387,390,394,405,410,414,425,429,444,448,455,460,464,472,476,483,488,492,503,507,522,524,527,531,538,543,547,558,562,577,579,582,586,593,598,602,613,617,624,629,633,644,646,649,653,660,665,669,680,684,693,697,720,725,729,740,742,745,749,756,761,765,773,777,784,789,793,804,806,809,813,820,825,829,837,841,848,853,857,865,869,876,881,885,892,896,903,908,912,919,923,930,935,939,947,949,952,956,963,968,972,980,984,991,996,1000,1011,1015,1022,1027,1031,1039,1043,1050,1055,1059,1070,1072,1075,1079,1086,1091,1095,1106,1110,1125,1129,1136,1141,1145,1153,1157,1164,1169,1173,1184,1186,1189,1193,1200,1205,1209,1217,1221,1228,1233,1237,1245,1249,1256,1261,1265,1273,1275,1278,1282,1289,1294,1298,1306,1310,1317,1322,1326,1334,1338,1345,1350,1354,1362,1366,1373,1378,1382,1390,1392,1395,1398,1436,1439,1471,1474,1505,1508,1519,1523,1550],[11,12,13],"h2",{"id":13},"运动指令",[15,16,18],"h3",{"id":17},"g0-快速定位","G0 - 快速定位",[20,21,22,26,27],"p",{},[23,24,25],"strong",{},"语法",": ",[28,29,30],"code",{},"G0 X[坐标] Y[坐标] Z[坐标]",[20,32,33,36],{},[23,34,35],{},"功能",": 以最快速度移动到指定位置，不进行加工操作。",[20,38,39,42],{},[23,40,41],{},"说明",":",[44,45,46,50,53,56],"ul",{},[47,48,49],"li",{},"用于快速定位，不切削材料",[47,51,52],{},"移动路径可能不是直线",[47,54,55],{},"在3D可视化中显示为红色路径",[47,57,58],{},"激光模式下自动关闭激光",[20,60,61,42],{},[23,62,63],{},"示例",[65,66,71],"pre",{"className":67,"code":68,"language":69,"meta":70,"style":70},"language-gcode shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","G0 X10 Y20 Z5    ; 快速移动到 (10, 20, 5)\nG0 Z10           ; 仅Z轴快速上升到10mm\n","gcode","",[28,72,73,81],{"__ignoreMap":70},[74,75,78],"span",{"class":76,"line":77},"line",1,[74,79,80],{},"G0 X10 Y20 Z5    ; 快速移动到 (10, 20, 5)\n",[74,82,84],{"class":76,"line":83},2,[74,85,86],{},"G0 Z10           ; 仅Z轴快速上升到10mm\n",[15,88,90],{"id":89},"g1-直线插补","G1 - 直线插补",[20,92,93,26,95],{},[23,94,25],{},[28,96,97],{},"G1 X[坐标] Y[坐标] Z[坐标] F[进给速度] S[激光功率\u002F主轴转速]",[20,99,100,102],{},[23,101,35],{},": 以指定进给速度直线移动到目标位置，可进行加工操作。",[20,104,105,42],{},[23,106,41],{},[44,108,109,112,115,118],{},[47,110,111],{},"用于精确的直线切削或激光雕刻",[47,113,114],{},"在3D可视化中显示为蓝色路径",[47,116,117],{},"激光模式下，S参数控制激光功率",[47,119,120],{},"CNC模式下，S参数控制主轴转速",[20,122,123,42],{},[23,124,63],{},[65,126,128],{"className":67,"code":127,"language":69,"meta":70,"style":70},"G1 X50 Y30 F1000      ; 以1000mm\u002Fmin速度移动到(50,30)\nG1 Z-2 F100 S800      ; 下降到Z-2，激光功率800\n",[28,129,130,135],{"__ignoreMap":70},[74,131,132],{"class":76,"line":77},[74,133,134],{},"G1 X50 Y30 F1000      ; 以1000mm\u002Fmin速度移动到(50,30)\n",[74,136,137],{"class":76,"line":83},[74,138,139],{},"G1 Z-2 F100 S800      ; 下降到Z-2，激光功率800\n",[15,141,143],{"id":142},"g2-顺时针圆弧插补","G2 - 顺时针圆弧插补",[20,145,146,26,148],{},[23,147,25],{},[28,149,150],{},"G2 X[终点X] Y[终点Y] I[圆心X偏移] J[圆心Y偏移] F[进给速度]",[20,152,153,155],{},[23,154,35],{},": 从当前位置到指定终点，沿顺时针方向进行圆弧插补。",[20,157,158,42],{},[23,159,41],{},[44,161,162,165,168],{},[47,163,164],{},"I、J参数表示圆心相对于起点的偏移量",[47,166,167],{},"目前在可视化中按直线处理",[47,169,170],{},"适用于圆弧切削和雕刻",[20,172,173,42],{},[23,174,63],{},[65,176,178],{"className":67,"code":177,"language":69,"meta":70,"style":70},"G2 X20 Y20 I10 J0 F500    ; 顺时针圆弧到(20,20)\n",[28,179,180],{"__ignoreMap":70},[74,181,182],{"class":76,"line":77},[74,183,177],{},[15,185,187],{"id":186},"g3-逆时针圆弧插补","G3 - 逆时针圆弧插补",[20,189,190,26,192],{},[23,191,25],{},[28,193,194],{},"G3 X[终点X] Y[终点Y] I[圆心X偏移] J[圆心Y偏移] F[进给速度]",[20,196,197,199],{},[23,198,35],{},": 从当前位置到指定终点，沿逆时针方向进行圆弧插补。",[20,201,202,42],{},[23,203,41],{},[44,205,206,208,210],{},[47,207,164],{},[47,209,167],{},[47,211,170],{},[20,213,214,42],{},[23,215,63],{},[65,217,219],{"className":67,"code":218,"language":69,"meta":70,"style":70},"G3 X0 Y20 I0 J10 F500     ; 逆时针圆弧到(0,20)\n",[28,220,221],{"__ignoreMap":70},[74,222,223],{"class":76,"line":77},[74,224,218],{},[226,227],"hr",{},[11,229,230],{"id":230},"平面选择指令",[15,232,234],{"id":233},"g17-xy平面选择","G17 - XY平面选择",[20,236,237,26,239],{},[23,238,25],{},[28,240,241],{},"G17",[20,243,244,246],{},[23,245,35],{},": 选择XY平面作为工作平面。",[20,248,249,42],{},[23,250,41],{},[44,252,253,256,259],{},[47,254,255],{},"默认工作平面",[47,257,258],{},"圆弧插补在XY平面进行",[47,260,261],{},"Z轴为垂直轴",[15,263,265],{"id":264},"g18-xz平面选择","G18 - XZ平面选择",[20,267,268,26,270],{},[23,269,25],{},[28,271,272],{},"G18",[20,274,275,277],{},[23,276,35],{},": 选择XZ平面作为工作平面。",[20,279,280,42],{},[23,281,41],{},[44,283,284,287],{},[47,285,286],{},"圆弧插补在XZ平面进行",[47,288,289],{},"Y轴为垂直轴",[15,291,293],{"id":292},"g19-yz平面选择","G19 - YZ平面选择",[20,295,296,26,298],{},[23,297,25],{},[28,299,300],{},"G19",[20,302,303,305],{},[23,304,35],{},": 选择YZ平面作为工作平面。",[20,307,308,42],{},[23,309,41],{},[44,311,312,315],{},[47,313,314],{},"圆弧插补在YZ平面进行",[47,316,317],{},"X轴为垂直轴",[226,319],{},[11,321,322],{"id":322},"单位设置指令",[15,324,326],{"id":325},"g20-英寸单位","G20 - 英寸单位",[20,328,329,26,331],{},[23,330,25],{},[28,332,333],{},"G20",[20,335,336,338],{},[23,337,35],{},": 设置坐标单位为英寸。",[20,340,341,42],{},[23,342,41],{},[44,344,345,348,351],{},[47,346,347],{},"所有后续坐标值按英寸解释",[47,349,350],{},"1英寸 = 25.4毫米",[47,352,353],{},"影响所有坐标和进给速度",[15,355,357],{"id":356},"g21-毫米单位","G21 - 毫米单位",[20,359,360,26,362],{},[23,361,25],{},[28,363,364],{},"G21",[20,366,367,369],{},[23,368,35],{},": 设置坐标单位为毫米。",[20,371,372,42],{},[23,373,41],{},[44,375,376,379,382],{},[47,377,378],{},"默认单位设置",[47,380,381],{},"所有后续坐标值按毫米解释",[47,383,384],{},"推荐使用的单位",[226,386],{},[11,388,389],{"id":389},"归零与复位指令",[15,391,393],{"id":392},"g28-回机械原点","G28 - 回机械原点",[20,395,396,26,398,401,402],{},[23,397,25],{},[28,399,400],{},"G28"," 或 ",[28,403,404],{},"G28 X Y Z",[20,406,407,409],{},[23,408,35],{},": 回到机械原点位置。",[20,411,412,42],{},[23,413,41],{},[44,415,416,419,422],{},[47,417,418],{},"不带参数时，所有轴回到原点(0,0,0)",[47,420,421],{},"带参数时，指定轴回到原点",[47,423,424],{},"执行后当前位置设为(0,0,0)",[20,426,427,42],{},[23,428,63],{},[65,430,432],{"className":67,"code":431,"language":69,"meta":70,"style":70},"G28           ; 所有轴回原点\nG28 Z         ; 仅Z轴回原点\n",[28,433,434,439],{"__ignoreMap":70},[74,435,436],{"class":76,"line":77},[74,437,438],{},"G28           ; 所有轴回原点\n",[74,440,441],{"class":76,"line":83},[74,442,443],{},"G28 Z         ; 仅Z轴回原点\n",[15,445,447],{"id":446},"g30-回预设位置","G30 - 回预设位置",[20,449,450,26,452],{},[23,451,25],{},[28,453,454],{},"G30",[20,456,457,459],{},[23,458,35],{},": 回到预设的参考位置。",[20,461,462,42],{},[23,463,41],{},[44,465,466,469],{},[47,467,468],{},"类似G28，但回到预设位置",[47,470,471],{},"具体位置由机器配置决定",[15,473,475],{"id":474},"g92-设置当前位置","G92 - 设置当前位置",[20,477,478,26,480],{},[23,479,25],{},[28,481,482],{},"G92 X[坐标] Y[坐标] Z[坐标]",[20,484,485,487],{},[23,486,35],{},": 将当前位置设置为指定坐标值。",[20,489,490,42],{},[23,491,41],{},[44,493,494,497,500],{},[47,495,496],{},"不移动机器，仅重新定义当前位置",[47,498,499],{},"用于建立工件坐标系",[47,501,502],{},"影响后续所有坐标计算",[20,504,505,42],{},[23,506,63],{},[65,508,510],{"className":67,"code":509,"language":69,"meta":70,"style":70},"G92 X0 Y0 Z0    ; 将当前位置设为原点\nG92 X10         ; 将当前X位置设为10\n",[28,511,512,517],{"__ignoreMap":70},[74,513,514],{"class":76,"line":77},[74,515,516],{},"G92 X0 Y0 Z0    ; 将当前位置设为原点\n",[74,518,519],{"class":76,"line":83},[74,520,521],{},"G92 X10         ; 将当前X位置设为10\n",[226,523],{},[11,525,526],{"id":526},"暂停指令",[15,528,530],{"id":529},"g4-暂停","G4 - 暂停",[20,532,533,26,535],{},[23,534,25],{},[28,536,537],{},"G4 P[秒数]",[20,539,540,542],{},[23,541,35],{},": 暂停程序执行指定时间。",[20,544,545,42],{},[23,546,41],{},[44,548,549,552,555],{},[47,550,551],{},"P参数指定暂停时间（秒）",[47,553,554],{},"用于等待主轴稳定、冷却等",[47,556,557],{},"不改变当前位置",[20,559,560,42],{},[23,561,63],{},[65,563,565],{"className":67,"code":564,"language":69,"meta":70,"style":70},"G4 P2.5       ; 暂停2.5秒\nG4 P1         ; 暂停1秒\n",[28,566,567,572],{"__ignoreMap":70},[74,568,569],{"class":76,"line":77},[74,570,571],{},"G4 P2.5       ; 暂停2.5秒\n",[74,573,574],{"class":76,"line":83},[74,575,576],{},"G4 P1         ; 暂停1秒\n",[226,578],{},[11,580,581],{"id":581},"坐标模式指令",[15,583,585],{"id":584},"g90-绝对坐标模式","G90 - 绝对坐标模式",[20,587,588,26,590],{},[23,589,25],{},[28,591,592],{},"G90",[20,594,595,597],{},[23,596,35],{},": 设置为绝对坐标模式。",[20,599,600,42],{},[23,601,41],{},[44,603,604,607,610],{},[47,605,606],{},"默认模式",[47,608,609],{},"所有坐标值相对于工件原点",[47,611,612],{},"推荐使用的坐标模式",[15,614,616],{"id":615},"g91-相对坐标模式","G91 - 相对坐标模式",[20,618,619,26,621],{},[23,620,25],{},[28,622,623],{},"G91",[20,625,626,628],{},[23,627,35],{},": 设置为相对坐标模式。",[20,630,631,42],{},[23,632,41],{},[44,634,635,638,641],{},[47,636,637],{},"所有坐标值相对于当前位置",[47,639,640],{},"用于增量移动",[47,642,643],{},"需要谨慎使用",[226,645],{},[11,647,648],{"id":648},"坐标系统选择指令",[15,650,652],{"id":651},"g53-机械坐标系","G53 - 机械坐标系",[20,654,655,26,657],{},[23,656,25],{},[28,658,659],{},"G53",[20,661,662,664],{},[23,663,35],{},": 临时选择机械坐标系。",[20,666,667,42],{},[23,668,41],{},[44,670,671,674,677],{},[47,672,673],{},"仅对当前行有效",[47,675,676],{},"坐标相对于机械原点",[47,678,679],{},"常与G0\u002FG1配合使用",[20,681,682,42],{},[23,683,63],{},[65,685,687],{"className":67,"code":686,"language":69,"meta":70,"style":70},"G0 G53 Z0     ; 在机械坐标系中Z轴回到0位置\n",[28,688,689],{"__ignoreMap":70},[74,690,691],{"class":76,"line":77},[74,692,686],{},[15,694,696],{"id":695},"g54-g59-工件坐标系","G54-G59 - 工件坐标系",[20,698,699,26,701,704,705,704,708,704,711,704,714,704,717],{},[23,700,25],{},[28,702,703],{},"G54"," \u002F ",[28,706,707],{},"G55",[28,709,710],{},"G56",[28,712,713],{},"G57",[28,715,716],{},"G58",[28,718,719],{},"G59",[20,721,722,724],{},[23,723,35],{},": 选择工件坐标系1-6。",[20,726,727,42],{},[23,728,41],{},[44,730,731,734,737],{},[47,732,733],{},"G54为默认工件坐标系",[47,735,736],{},"每个坐标系有独立的原点偏移",[47,738,739],{},"用于多工件加工",[226,741],{},[11,743,744],{"id":744},"进给速率模式指令",[15,746,748],{"id":747},"g93-反时进给模式","G93 - 反时进给模式",[20,750,751,26,753],{},[23,752,25],{},[28,754,755],{},"G93",[20,757,758,760],{},[23,759,35],{},": 设置反时进给模式。",[20,762,763,42],{},[23,764,41],{},[44,766,767,770],{},[47,768,769],{},"F值表示完成该段运动所需时间的倒数",[47,771,772],{},"较少使用的进给模式",[15,774,776],{"id":775},"g94-每分钟进给模式","G94 - 每分钟进给模式",[20,778,779,26,781],{},[23,780,25],{},[28,782,783],{},"G94",[20,785,786,788],{},[23,787,35],{},": 设置每分钟进给模式。",[20,790,791,42],{},[23,792,41],{},[44,794,795,798,801],{},[47,796,797],{},"默认进给模式",[47,799,800],{},"F值表示每分钟的移动距离",[47,802,803],{},"单位：mm\u002Fmin 或 inch\u002Fmin",[226,805],{},[11,807,808],{"id":808},"刀具补偿指令",[15,810,812],{"id":811},"g40-取消刀具补偿","G40 - 取消刀具补偿",[20,814,815,26,817],{},[23,816,25],{},[28,818,819],{},"G40",[20,821,822,824],{},[23,823,35],{},": 取消刀具半径补偿。",[20,826,827,42],{},[23,828,41],{},[44,830,831,834],{},[47,832,833],{},"默认状态",[47,835,836],{},"按编程路径精确移动",[15,838,840],{"id":839},"g41-左刀具补偿","G41 - 左刀具补偿",[20,842,843,26,845],{},[23,844,25],{},[28,846,847],{},"G41",[20,849,850,852],{},[23,851,35],{},": 启用左侧刀具半径补偿。",[20,854,855,42],{},[23,856,41],{},[44,858,859,862],{},[47,860,861],{},"刀具中心偏移到编程路径左侧",[47,863,864],{},"补偿值由刀具表设定",[15,866,868],{"id":867},"g42-右刀具补偿","G42 - 右刀具补偿",[20,870,871,26,873],{},[23,872,25],{},[28,874,875],{},"G42",[20,877,878,880],{},[23,879,35],{},": 启用右侧刀具半径补偿。",[20,882,883,42],{},[23,884,41],{},[44,886,887,890],{},[47,888,889],{},"刀具中心偏移到编程路径右侧",[47,891,864],{},[15,893,895],{"id":894},"g43-刀具长度补偿","G43 - 刀具长度补偿",[20,897,898,26,900],{},[23,899,25],{},[28,901,902],{},"G43",[20,904,905,907],{},[23,906,35],{},": 启用刀具长度补偿。",[20,909,910,42],{},[23,911,41],{},[44,913,914,917],{},[47,915,916],{},"补偿Z轴方向的刀具长度差异",[47,918,864],{},[15,920,922],{"id":921},"g49-取消刀具长度补偿","G49 - 取消刀具长度补偿",[20,924,925,26,927],{},[23,926,25],{},[28,928,929],{},"G49",[20,931,932,934],{},[23,933,35],{},": 取消刀具长度补偿。",[20,936,937,42],{},[23,938,41],{},[44,940,941,944],{},[47,942,943],{},"恢复到无补偿状态",[47,945,946],{},"Z轴按编程值移动",[226,948],{},[11,950,951],{"id":951},"循环指令",[15,953,955],{"id":954},"g80-取消固定循环","G80 - 取消固定循环",[20,957,958,26,960],{},[23,959,25],{},[28,961,962],{},"G80",[20,964,965,967],{},[23,966,35],{},": 取消当前的固定循环。",[20,969,970,42],{},[23,971,41],{},[44,973,974,977],{},[47,975,976],{},"结束循环加工",[47,978,979],{},"返回到普通移动模式",[15,981,983],{"id":982},"g81-钻孔循环","G81 - 钻孔循环",[20,985,986,26,988],{},[23,987,25],{},[28,989,990],{},"G81 X[位置] Y[位置] Z[深度] R[回退高度] F[进给]",[20,992,993,995],{},[23,994,35],{},": 执行简单钻孔循环。",[20,997,998,42],{},[23,999,41],{},[44,1001,1002,1005,1008],{},[47,1003,1004],{},"快速下降到R高度",[47,1006,1007],{},"以F速度钻到Z深度",[47,1009,1010],{},"快速回退到R高度",[15,1012,1014],{"id":1013},"g82-钻孔暂停循环","G82 - 钻孔暂停循环",[20,1016,1017,26,1019],{},[23,1018,25],{},[28,1020,1021],{},"G82 X[位置] Y[位置] Z[深度] R[回退高度] P[暂停时间] F[进给]",[20,1023,1024,1026],{},[23,1025,35],{},": 执行带暂停的钻孔循环。",[20,1028,1029,42],{},[23,1030,41],{},[44,1032,1033,1036],{},[47,1034,1035],{},"类似G81，但在底部暂停P秒",[47,1037,1038],{},"用于断屑或排屑",[15,1040,1042],{"id":1041},"g83-深孔钻循环","G83 - 深孔钻循环",[20,1044,1045,26,1047],{},[23,1046,25],{},[28,1048,1049],{},"G83 X[位置] Y[位置] Z[深度] R[回退高度] Q[每次进给] F[进给]",[20,1051,1052,1054],{},[23,1053,35],{},": 执行分层钻孔循环。",[20,1056,1057,42],{},[23,1058,41],{},[44,1060,1061,1064,1067],{},[47,1062,1063],{},"分多次进给钻深孔",[47,1065,1066],{},"Q参数指定每次进给量",[47,1068,1069],{},"每次回退排屑",[226,1071],{},[11,1073,1074],{"id":1074},"主轴控制指令",[15,1076,1078],{"id":1077},"m3-主轴正转激光开启","M3 - 主轴正转\u002F激光开启",[20,1080,1081,26,1083],{},[23,1082,25],{},[28,1084,1085],{},"M3 S[转速\u002F功率]",[20,1087,1088,1090],{},[23,1089,35],{},": 启动主轴正转或开启激光。",[20,1092,1093,42],{},[23,1094,41],{},[44,1096,1097,1100,1103],{},[47,1098,1099],{},"CNC模式：S参数为主轴转速(RPM)",[47,1101,1102],{},"激光模式：S参数为激光功率(0-1000)",[47,1104,1105],{},"必须在切削前执行",[20,1107,1108,42],{},[23,1109,63],{},[65,1111,1113],{"className":67,"code":1112,"language":69,"meta":70,"style":70},"M3 S12000     ; 主轴12000转\u002F分\nM3 S800       ; 激光功率800\n",[28,1114,1115,1120],{"__ignoreMap":70},[74,1116,1117],{"class":76,"line":77},[74,1118,1119],{},"M3 S12000     ; 主轴12000转\u002F分\n",[74,1121,1122],{"class":76,"line":83},[74,1123,1124],{},"M3 S800       ; 激光功率800\n",[15,1126,1128],{"id":1127},"m4-主轴反转","M4 - 主轴反转",[20,1130,1131,26,1133],{},[23,1132,25],{},[28,1134,1135],{},"M4 S[转速]",[20,1137,1138,1140],{},[23,1139,35],{},": 启动主轴反转。",[20,1142,1143,42],{},[23,1144,41],{},[44,1146,1147,1150],{},[47,1148,1149],{},"用于特殊加工需求",[47,1151,1152],{},"如攻丝等操作",[15,1154,1156],{"id":1155},"m5-主轴停止激光关闭","M5 - 主轴停止\u002F激光关闭",[20,1158,1159,26,1161],{},[23,1160,25],{},[28,1162,1163],{},"M5",[20,1165,1166,1168],{},[23,1167,35],{},": 停止主轴或关闭激光。",[20,1170,1171,42],{},[23,1172,41],{},[44,1174,1175,1178,1181],{},[47,1176,1177],{},"安全停止主轴",[47,1179,1180],{},"激光模式下关闭激光输出",[47,1182,1183],{},"加工结束必须执行",[226,1185],{},[11,1187,1188],{"id":1188},"冷却液控制指令",[15,1190,1192],{"id":1191},"m7-雾状冷却液开启","M7 - 雾状冷却液开启",[20,1194,1195,26,1197],{},[23,1196,25],{},[28,1198,1199],{},"M7",[20,1201,1202,1204],{},[23,1203,35],{},": 开启雾状冷却液。",[20,1206,1207,42],{},[23,1208,41],{},[44,1210,1211,1214],{},[47,1212,1213],{},"用于轻度冷却",[47,1215,1216],{},"减少粉尘",[15,1218,1220],{"id":1219},"m8-液体冷却液开启","M8 - 液体冷却液开启",[20,1222,1223,26,1225],{},[23,1224,25],{},[28,1226,1227],{},"M8",[20,1229,1230,1232],{},[23,1231,35],{},": 开启液体冷却液。",[20,1234,1235,42],{},[23,1236,41],{},[44,1238,1239,1242],{},[47,1240,1241],{},"用于重度冷却",[47,1243,1244],{},"提高加工质量",[15,1246,1248],{"id":1247},"m9-冷却液关闭","M9 - 冷却液关闭",[20,1250,1251,26,1253],{},[23,1252,25],{},[28,1254,1255],{},"M9",[20,1257,1258,1260],{},[23,1259,35],{},": 关闭所有冷却液。",[20,1262,1263,42],{},[23,1264,41],{},[44,1266,1267,1270],{},[47,1268,1269],{},"停止冷却液供应",[47,1271,1272],{},"程序结束时执行",[226,1274],{},[11,1276,1277],{"id":1277},"程序控制指令",[15,1279,1281],{"id":1280},"m0-程序暂停","M0 - 程序暂停",[20,1283,1284,26,1286],{},[23,1285,25],{},[28,1287,1288],{},"M0",[20,1290,1291,1293],{},[23,1292,35],{},": 暂停程序执行，等待操作员继续。",[20,1295,1296,42],{},[23,1297,41],{},[44,1299,1300,1303],{},[47,1301,1302],{},"需要手动继续执行",[47,1304,1305],{},"用于检查工件或更换刀具",[15,1307,1309],{"id":1308},"m1-可选暂停","M1 - 可选暂停",[20,1311,1312,26,1314],{},[23,1313,25],{},[28,1315,1316],{},"M1",[20,1318,1319,1321],{},[23,1320,35],{},": 可选择性暂停程序。",[20,1323,1324,42],{},[23,1325,41],{},[44,1327,1328,1331],{},[47,1329,1330],{},"仅在启用可选暂停时生效",[47,1332,1333],{},"用于调试程序",[15,1335,1337],{"id":1336},"m2-程序结束","M2 - 程序结束",[20,1339,1340,26,1342],{},[23,1341,25],{},[28,1343,1344],{},"M2",[20,1346,1347,1349],{},[23,1348,35],{},": 程序结束。",[20,1351,1352,42],{},[23,1353,41],{},[44,1355,1356,1359],{},[47,1357,1358],{},"停止主轴和冷却液",[47,1360,1361],{},"程序执行完毕",[15,1363,1365],{"id":1364},"m30-程序结束并回原点","M30 - 程序结束并回原点",[20,1367,1368,26,1370],{},[23,1369,25],{},[28,1371,1372],{},"M30",[20,1374,1375,1377],{},[23,1376,35],{},": 程序结束并返回原点。",[20,1379,1380,42],{},[23,1381,41],{},[44,1383,1384,1387],{},[47,1385,1386],{},"类似M2，但自动回到原点",[47,1388,1389],{},"推荐的程序结束方式",[226,1391],{},[11,1393,1394],{"id":1394},"参数说明",[15,1396,1397],{"id":1397},"坐标参数",[44,1399,1400,1406,1412,1418,1424,1430],{},[47,1401,1402,1405],{},[23,1403,1404],{},"X",": X轴坐标值",[47,1407,1408,1411],{},[23,1409,1410],{},"Y",": Y轴坐标值",[47,1413,1414,1417],{},[23,1415,1416],{},"Z",": Z轴坐标值",[47,1419,1420,1423],{},[23,1421,1422],{},"I",": 圆弧中心X轴偏移",[47,1425,1426,1429],{},[23,1427,1428],{},"J",": 圆弧中心Y轴偏移",[47,1431,1432,1435],{},[23,1433,1434],{},"K",": 圆弧中心Z轴偏移",[15,1437,1438],{"id":1438},"控制参数",[44,1440,1441,1447,1453,1459,1465],{},[47,1442,1443,1446],{},[23,1444,1445],{},"F",": 进给速度 (mm\u002Fmin 或 inch\u002Fmin)",[47,1448,1449,1452],{},[23,1450,1451],{},"S",": 主轴转速(RPM) 或 激光功率(0-1000)",[47,1454,1455,1458],{},[23,1456,1457],{},"P",": 暂停时间(秒)",[47,1460,1461,1464],{},[23,1462,1463],{},"Q",": 每次进给量(用于循环)",[47,1466,1467,1470],{},[23,1468,1469],{},"R",": 回退高度(用于循环)",[15,1472,1473],{"id":1473},"工作范围限制",[44,1475,1476,1482,1487,1493,1499],{},[47,1477,1478,1481],{},[23,1479,1480],{},"X轴",": -500mm 到 +500mm",[47,1483,1484,1481],{},[23,1485,1486],{},"Y轴",[47,1488,1489,1492],{},[23,1490,1491],{},"Z轴",": -200mm 到 +200mm",[47,1494,1495,1498],{},[23,1496,1497],{},"主轴转速",": 0-24000 RPM",[47,1500,1501,1504],{},[23,1502,1503],{},"激光功率",": 0-1000",[15,1506,1507],{"id":1507},"注释格式",[44,1509,1510,1513,1516],{},[47,1511,1512],{},"使用分号( ; )添加注释",[47,1514,1515],{},"注释内容不影响程序执行",[47,1517,1518],{},"建议添加必要的说明",[20,1520,1521,42],{},[23,1522,63],{},[65,1524,1526],{"className":67,"code":1525,"language":69,"meta":70,"style":70},"G0 X0 Y0 Z5    ; 移动到起始位置\nM3 S800        ; 开启激光，功率800\nG1 X10 F1000   ; 直线移动到X10\nM5             ; 关闭激光\n",[28,1527,1528,1533,1538,1544],{"__ignoreMap":70},[74,1529,1530],{"class":76,"line":77},[74,1531,1532],{},"G0 X0 Y0 Z5    ; 移动到起始位置\n",[74,1534,1535],{"class":76,"line":83},[74,1536,1537],{},"M3 S800        ; 开启激光，功率800\n",[74,1539,1541],{"class":76,"line":1540},3,[74,1542,1543],{},"G1 X10 F1000   ; 直线移动到X10\n",[74,1545,1547],{"class":76,"line":1546},4,[74,1548,1549],{},"M5             ; 关闭激光\n",[1551,1552,1553],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":70,"searchDepth":83,"depth":83,"links":1555},[1556,1562,1567,1571,1576,1579,1583,1587,1591,1598,1604,1609,1614,1620],{"id":13,"depth":83,"text":13,"children":1557},[1558,1559,1560,1561],{"id":17,"depth":1540,"text":18},{"id":89,"depth":1540,"text":90},{"id":142,"depth":1540,"text":143},{"id":186,"depth":1540,"text":187},{"id":230,"depth":83,"text":230,"children":1563},[1564,1565,1566],{"id":233,"depth":1540,"text":234},{"id":264,"depth":1540,"text":265},{"id":292,"depth":1540,"text":293},{"id":322,"depth":83,"text":322,"children":1568},[1569,1570],{"id":325,"depth":1540,"text":326},{"id":356,"depth":1540,"text":357},{"id":389,"depth":83,"text":389,"children":1572},[1573,1574,1575],{"id":392,"depth":1540,"text":393},{"id":446,"depth":1540,"text":447},{"id":474,"depth":1540,"text":475},{"id":526,"depth":83,"text":526,"children":1577},[1578],{"id":529,"depth":1540,"text":530},{"id":581,"depth":83,"text":581,"children":1580},[1581,1582],{"id":584,"depth":1540,"text":585},{"id":615,"depth":1540,"text":616},{"id":648,"depth":83,"text":648,"children":1584},[1585,1586],{"id":651,"depth":1540,"text":652},{"id":695,"depth":1540,"text":696},{"id":744,"depth":83,"text":744,"children":1588},[1589,1590],{"id":747,"depth":1540,"text":748},{"id":775,"depth":1540,"text":776},{"id":808,"depth":83,"text":808,"children":1592},[1593,1594,1595,1596,1597],{"id":811,"depth":1540,"text":812},{"id":839,"depth":1540,"text":840},{"id":867,"depth":1540,"text":868},{"id":894,"depth":1540,"text":895},{"id":921,"depth":1540,"text":922},{"id":951,"depth":83,"text":951,"children":1599},[1600,1601,1602,1603],{"id":954,"depth":1540,"text":955},{"id":982,"depth":1540,"text":983},{"id":1013,"depth":1540,"text":1014},{"id":1041,"depth":1540,"text":1042},{"id":1074,"depth":83,"text":1074,"children":1605},[1606,1607,1608],{"id":1077,"depth":1540,"text":1078},{"id":1127,"depth":1540,"text":1128},{"id":1155,"depth":1540,"text":1156},{"id":1188,"depth":83,"text":1188,"children":1610},[1611,1612,1613],{"id":1191,"depth":1540,"text":1192},{"id":1219,"depth":1540,"text":1220},{"id":1247,"depth":1540,"text":1248},{"id":1277,"depth":83,"text":1277,"children":1615},[1616,1617,1618,1619],{"id":1280,"depth":1540,"text":1281},{"id":1308,"depth":1540,"text":1309},{"id":1336,"depth":1540,"text":1337},{"id":1364,"depth":1540,"text":1365},{"id":1394,"depth":83,"text":1394,"children":1621},[1622,1623,1624,1625],{"id":1397,"depth":1540,"text":1397},{"id":1438,"depth":1540,"text":1438},{"id":1473,"depth":1540,"text":1473},{"id":1507,"depth":1540,"text":1507},"appendix","Laetoly 支持的 G-code 命令参考，含语法、功能和示例。","md","zh",{},true,40,"\u002Fwiki\u002Fzh\u002Fappendix\u002Fg-code-commands",{"title":6,"description":1627},"g-code-commands",{"wikijsId":1637,"wikijsPath":1638},14,"appendix\u002Fg-code-commands","wiki\u002Fzh\u002Fappendix\u002Fg-code-commands","2025-11-04","Wl6QlK7df3E_WWhdxBrgc_NNRO9llmeyXd5BO_gg_cI",[1643,1665,1694,1709,1728,1760],{"category":1644,"pages":1645},"getting-started",[1646,1651,1656,1661],{"title":1647,"category":1644,"slug":1648,"order":1649,"path":1650},"欢迎使用 Laetoly","welcome-to-laetoly",10,"\u002Fwiki\u002Fgetting-started\u002Fwelcome-to-laetoly",{"title":1652,"category":1644,"slug":1653,"order":1654,"path":1655},"驱动程序配置","driver-setup",20,"\u002Fwiki\u002Fgetting-started\u002Fdriver-setup",{"title":1657,"category":1644,"slug":1658,"order":1659,"path":1660},"你的第一个项目","your-first-project",30,"\u002Fwiki\u002Fgetting-started\u002Fyour-first-project",{"title":1662,"category":1644,"slug":1663,"order":1632,"path":1664},"视频教程","video-tutorial","\u002Fwiki\u002Fgetting-started\u002Fvideo-tutorial",{"category":1666,"pages":1667},"design",[1668,1672,1676,1680,1684,1689],{"title":1669,"category":1666,"slug":1670,"order":1649,"path":1671},"导入","importing","\u002Fwiki\u002Fdesign\u002Fimporting",{"title":1673,"category":1666,"slug":1674,"order":1654,"path":1675},"绘图工具","drawing-tools","\u002Fwiki\u002Fdesign\u002Fdrawing-tools",{"title":1677,"category":1666,"slug":1678,"order":1659,"path":1679},"编辑与变换","editing-transformation","\u002Fwiki\u002Fdesign\u002Fediting-transformation",{"title":1681,"category":1666,"slug":1682,"order":1632,"path":1683},"属性面板","properties","\u002Fwiki\u002Fdesign\u002Fproperties",{"title":1685,"category":1666,"slug":1686,"order":1687,"path":1688},"设计库","libraries",50,"\u002Fwiki\u002Fdesign\u002Flibraries",{"title":1690,"category":1666,"slug":1691,"order":1692,"path":1693},"其他","others",60,"\u002Fwiki\u002Fdesign\u002Fothers",{"category":1695,"pages":1696},"preview-run",[1697,1701,1705],{"title":1698,"category":1695,"slug":1699,"order":1649,"path":1700},"3D 预览","3D-preview","\u002Fwiki\u002Fpreview-run\u002F3D-preview",{"title":1702,"category":1695,"slug":1703,"order":1654,"path":1704},"运行加工任务","running-jobs","\u002Fwiki\u002Fpreview-run\u002Frunning-jobs",{"title":1706,"category":1695,"slug":1707,"order":1659,"path":1708},"实时监控","real-time-monitoring","\u002Fwiki\u002Fpreview-run\u002Freal-time-monitoring",{"category":1710,"pages":1711},"system-config",[1712,1716,1720,1724],{"title":1713,"category":1710,"slug":1714,"order":1649,"path":1715},"添加设备","add-device","\u002Fwiki\u002Fsystem-config\u002Fadd-device",{"title":1717,"category":1710,"slug":1718,"order":1654,"path":1719},"设置","settings","\u002Fwiki\u002Fsystem-config\u002Fsettings",{"title":1721,"category":1710,"slug":1722,"order":1659,"path":1723},"用户中心","user-panel","\u002Fwiki\u002Fsystem-config\u002Fuser-panel",{"title":1725,"category":1710,"slug":1726,"order":1632,"path":1727},"G-code 控制台","g-code-console","\u002Fwiki\u002Fsystem-config\u002Fg-code-console",{"category":1729,"pages":1730},"faq",[1731,1735,1739,1743,1747,1751,1755],{"title":1732,"category":1729,"slug":1733,"order":1649,"path":1734},"安装与设置","installation_setup","\u002Fwiki\u002Ffaq\u002Finstallation_setup",{"title":1736,"category":1729,"slug":1737,"order":1654,"path":1738},"连接设备","connection","\u002Fwiki\u002Ffaq\u002Fconnection",{"title":1740,"category":1729,"slug":1741,"order":1659,"path":1742},"设计与文件","design_files","\u002Fwiki\u002Ffaq\u002Fdesign_files",{"title":1744,"category":1729,"slug":1745,"order":1632,"path":1746},"刀路与 G-code","toolpath_g-code","\u002Fwiki\u002Ffaq\u002Ftoolpath_g-code",{"title":1748,"category":1729,"slug":1749,"order":1687,"path":1750},"切削质量问题","engraving_quality","\u002Fwiki\u002Ffaq\u002Fengraving_quality",{"title":1752,"category":1729,"slug":1753,"order":1692,"path":1754},"机器操作","device_operation","\u002Fwiki\u002Ffaq\u002Fdevice_operation",{"title":1756,"category":1729,"slug":1757,"order":1758,"path":1759},"安全操作","safety_guidelines",70,"\u002Fwiki\u002Ffaq\u002Fsafety_guidelines",{"category":1626,"pages":1761},[1762,1766,1770,1774,1776,1780],{"title":1763,"category":1626,"slug":1764,"order":1649,"path":1765},"下载中心","download-center","\u002Fwiki\u002Fappendix\u002Fdownload-center",{"title":1767,"category":1626,"slug":1768,"order":1654,"path":1769},"版本发布说明","release-notes","\u002Fwiki\u002Fappendix\u002Frelease-notes",{"title":1771,"category":1626,"slug":1772,"order":1659,"path":1773},"术语表","glossary","\u002Fwiki\u002Fappendix\u002Fglossary",{"title":6,"category":1626,"slug":1635,"order":1632,"path":1775},"\u002Fwiki\u002Fappendix\u002Fg-code-commands",{"title":1777,"category":1626,"slug":1778,"order":1687,"path":1779},"刀具与材料参考","bit-material-reference","\u002Fwiki\u002Fappendix\u002Fbit-material-reference",{"title":1781,"category":1626,"slug":1782,"order":1692,"path":1783},"积分指南","credit-system-guide","\u002Fwiki\u002Fappendix\u002Fcredit-system-guide",1792396297545]