[{"data":1,"prerenderedAt":1802},["ShallowReactive",2],{"header-article-translation-en-section-none":3,"wiki-en-appendix-g-code-commands":4,"wiki-tree-en":1660},null,{"id":5,"title":6,"body":7,"category":1644,"description":1645,"extension":1646,"locale":1647,"meta":1648,"navigation":1649,"order":1650,"path":1651,"seo":1652,"slug":1653,"source":1654,"stem":1657,"updatedAt":1658,"__hash__":1659},"wiki\u002Fwiki\u002Fen\u002Fappendix\u002Fg-code-commands.md","G-Code Commands",{"type":8,"value":9,"toc":1572},"minimark",[10,15,20,32,38,44,60,65,88,92,99,104,108,122,126,141,145,152,157,161,172,176,185,189,196,201,205,213,217,226,229,233,237,244,249,253,264,268,275,280,284,292,296,303,308,312,320,322,326,330,337,342,346,357,361,368,373,377,388,390,394,398,409,414,418,429,433,448,452,459,464,468,476,480,487,492,496,507,511,526,528,532,536,543,548,552,563,567,582,584,588,592,599,604,608,619,623,630,635,639,650,652,656,660,667,672,676,687,691,700,704,727,732,736,747,749,753,757,764,769,773,781,785,792,797,801,812,814,818,822,829,834,838,846,850,857,862,866,874,878,885,890,894,901,905,912,917,921,928,932,939,944,948,956,958,962,966,973,978,982,990,994,1001,1006,1010,1021,1025,1032,1037,1041,1049,1053,1060,1065,1069,1080,1082,1086,1090,1097,1102,1106,1117,1121,1136,1140,1147,1152,1156,1164,1168,1175,1180,1184,1195,1197,1201,1205,1212,1217,1221,1229,1233,1240,1245,1249,1257,1261,1268,1273,1277,1285,1287,1291,1295,1302,1307,1311,1319,1323,1330,1335,1339,1347,1351,1358,1363,1367,1375,1379,1386,1391,1395,1403,1405,1409,1413,1451,1455,1487,1491,1522,1526,1537,1541,1568],[11,12,14],"h2",{"id":13},"motion-commands","Motion Commands",[16,17,19],"h3",{"id":18},"g0-rapid-positioning","G0 - Rapid Positioning",[21,22,23,27,28],"p",{},[24,25,26],"strong",{},"Syntax",": ",[29,30,31],"code",{},"G0 X[coordinate] Y[coordinate] Z[coordinate]",[21,33,34,37],{},[24,35,36],{},"Function",": Move to the specified position at maximum speed without machining operations.",[21,39,40,43],{},[24,41,42],{},"Description",":",[45,46,47,51,54,57],"ul",{},[48,49,50],"li",{},"Used for rapid positioning without cutting material",[48,52,53],{},"Movement path may not be linear",[48,55,56],{},"Displayed as red path in 3D visualization",[48,58,59],{},"Automatically turns off laser in laser mode",[21,61,62,43],{},[24,63,64],{},"Examples",[66,67,72],"pre",{"className":68,"code":69,"language":70,"meta":71,"style":71},"language-gcode shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","G0 X10 Y20 Z5    ; Rapid move to (10, 20, 5)\nG0 Z10           ; Z-axis only rapid move to 10mm\n","gcode","",[29,73,74,82],{"__ignoreMap":71},[75,76,79],"span",{"class":77,"line":78},"line",1,[75,80,81],{},"G0 X10 Y20 Z5    ; Rapid move to (10, 20, 5)\n",[75,83,85],{"class":77,"line":84},2,[75,86,87],{},"G0 Z10           ; Z-axis only rapid move to 10mm\n",[16,89,91],{"id":90},"g1-linear-interpolation","G1 - Linear Interpolation",[21,93,94,27,96],{},[24,95,26],{},[29,97,98],{},"G1 X[coordinate] Y[coordinate] Z[coordinate] F[feed rate] S[laser power\u002Fspindle speed]",[21,100,101,103],{},[24,102,36],{},": Move linearly to the target position at specified feed rate, can perform machining operations.",[21,105,106,43],{},[24,107,42],{},[45,109,110,113,116,119],{},[48,111,112],{},"Used for precise linear cutting or laser engraving",[48,114,115],{},"Displayed as blue path in 3D visualization",[48,117,118],{},"In laser mode, S parameter controls laser power",[48,120,121],{},"In CNC mode, S parameter controls spindle speed",[21,123,124,43],{},[24,125,64],{},[66,127,129],{"className":68,"code":128,"language":70,"meta":71,"style":71},"G1 X50 Y30 F1000      ; Move to (50,30) at 1000mm\u002Fmin\nG1 Z-2 F100 S800      ; Move down to Z-2, laser power 800\n",[29,130,131,136],{"__ignoreMap":71},[75,132,133],{"class":77,"line":78},[75,134,135],{},"G1 X50 Y30 F1000      ; Move to (50,30) at 1000mm\u002Fmin\n",[75,137,138],{"class":77,"line":84},[75,139,140],{},"G1 Z-2 F100 S800      ; Move down to Z-2, laser power 800\n",[16,142,144],{"id":143},"g2-clockwise-arc-interpolation","G2 - Clockwise Arc Interpolation",[21,146,147,27,149],{},[24,148,26],{},[29,150,151],{},"G2 X[end X] Y[end Y] I[center X offset] J[center Y offset] F[feed rate]",[21,153,154,156],{},[24,155,36],{},": Arc interpolation from current position to specified endpoint in clockwise direction.",[21,158,159,43],{},[24,160,42],{},[45,162,163,166,169],{},[48,164,165],{},"I, J parameters represent center offset relative to start point",[48,167,168],{},"Currently treated as linear in visualization",[48,170,171],{},"Suitable for arc cutting and engraving",[21,173,174,43],{},[24,175,64],{},[66,177,179],{"className":68,"code":178,"language":70,"meta":71,"style":71},"G2 X20 Y20 I10 J0 F500    ; Clockwise arc to (20,20)\n",[29,180,181],{"__ignoreMap":71},[75,182,183],{"class":77,"line":78},[75,184,178],{},[16,186,188],{"id":187},"g3-counterclockwise-arc-interpolation","G3 - Counterclockwise Arc Interpolation",[21,190,191,27,193],{},[24,192,26],{},[29,194,195],{},"G3 X[end X] Y[end Y] I[center X offset] J[center Y offset] F[feed rate]",[21,197,198,200],{},[24,199,36],{},": Arc interpolation from current position to specified endpoint in counterclockwise direction.",[21,202,203,43],{},[24,204,42],{},[45,206,207,209,211],{},[48,208,165],{},[48,210,168],{},[48,212,171],{},[21,214,215,43],{},[24,216,64],{},[66,218,220],{"className":68,"code":219,"language":70,"meta":71,"style":71},"G3 X0 Y20 I0 J10 F500     ; Counterclockwise arc to (0,20)\n",[29,221,222],{"__ignoreMap":71},[75,223,224],{"class":77,"line":78},[75,225,219],{},[227,228],"hr",{},[11,230,232],{"id":231},"plane-selection-commands","Plane Selection Commands",[16,234,236],{"id":235},"g17-xy-plane-selection","G17 - XY Plane Selection",[21,238,239,27,241],{},[24,240,26],{},[29,242,243],{},"G17",[21,245,246,248],{},[24,247,36],{},": Select XY plane as working plane.",[21,250,251,43],{},[24,252,42],{},[45,254,255,258,261],{},[48,256,257],{},"Default working plane",[48,259,260],{},"Arc interpolation performed in XY plane",[48,262,263],{},"Z-axis is the vertical axis",[16,265,267],{"id":266},"g18-xz-plane-selection","G18 - XZ Plane Selection",[21,269,270,27,272],{},[24,271,26],{},[29,273,274],{},"G18",[21,276,277,279],{},[24,278,36],{},": Select XZ plane as working plane.",[21,281,282,43],{},[24,283,42],{},[45,285,286,289],{},[48,287,288],{},"Arc interpolation performed in XZ plane",[48,290,291],{},"Y-axis is the vertical axis",[16,293,295],{"id":294},"g19-yz-plane-selection","G19 - YZ Plane Selection",[21,297,298,27,300],{},[24,299,26],{},[29,301,302],{},"G19",[21,304,305,307],{},[24,306,36],{},": Select YZ plane as working plane.",[21,309,310,43],{},[24,311,42],{},[45,313,314,317],{},[48,315,316],{},"Arc interpolation performed in YZ plane",[48,318,319],{},"X-axis is the vertical axis",[227,321],{},[11,323,325],{"id":324},"unit-setting-commands","Unit Setting Commands",[16,327,329],{"id":328},"g20-inch-units","G20 - Inch Units",[21,331,332,27,334],{},[24,333,26],{},[29,335,336],{},"G20",[21,338,339,341],{},[24,340,36],{},": Set coordinate units to inches.",[21,343,344,43],{},[24,345,42],{},[45,347,348,351,354],{},[48,349,350],{},"All subsequent coordinate values interpreted in inches",[48,352,353],{},"1 inch = 25.4 millimeters",[48,355,356],{},"Affects all coordinates and feed rates",[16,358,360],{"id":359},"g21-millimeter-units","G21 - Millimeter Units",[21,362,363,27,365],{},[24,364,26],{},[29,366,367],{},"G21",[21,369,370,372],{},[24,371,36],{},": Set coordinate units to millimeters.",[21,374,375,43],{},[24,376,42],{},[45,378,379,382,385],{},[48,380,381],{},"Default unit setting",[48,383,384],{},"All subsequent coordinate values interpreted in millimeters",[48,386,387],{},"Recommended unit to use",[227,389],{},[11,391,393],{"id":392},"homing-and-reset-commands","Homing and Reset Commands",[16,395,397],{"id":396},"g28-return-to-machine-home","G28 - Return to Machine Home",[21,399,400,27,402,405,406],{},[24,401,26],{},[29,403,404],{},"G28"," or ",[29,407,408],{},"G28 X Y Z",[21,410,411,413],{},[24,412,36],{},": Return to machine home position.",[21,415,416,43],{},[24,417,42],{},[45,419,420,423,426],{},[48,421,422],{},"Without parameters, all axes return to origin (0,0,0)",[48,424,425],{},"With parameters, specified axes return to origin",[48,427,428],{},"Current position set to (0,0,0) after execution",[21,430,431,43],{},[24,432,64],{},[66,434,436],{"className":68,"code":435,"language":70,"meta":71,"style":71},"G28           ; All axes return to origin\nG28 Z         ; Z-axis only return to origin\n",[29,437,438,443],{"__ignoreMap":71},[75,439,440],{"class":77,"line":78},[75,441,442],{},"G28           ; All axes return to origin\n",[75,444,445],{"class":77,"line":84},[75,446,447],{},"G28 Z         ; Z-axis only return to origin\n",[16,449,451],{"id":450},"g30-return-to-preset-position","G30 - Return to Preset Position",[21,453,454,27,456],{},[24,455,26],{},[29,457,458],{},"G30",[21,460,461,463],{},[24,462,36],{},": Return to preset reference position.",[21,465,466,43],{},[24,467,42],{},[45,469,470,473],{},[48,471,472],{},"Similar to G28, but returns to preset position",[48,474,475],{},"Specific position determined by machine configuration",[16,477,479],{"id":478},"g92-set-current-position","G92 - Set Current Position",[21,481,482,27,484],{},[24,483,26],{},[29,485,486],{},"G92 X[coordinate] Y[coordinate] Z[coordinate]",[21,488,489,491],{},[24,490,36],{},": Set current position to specified coordinate values.",[21,493,494,43],{},[24,495,42],{},[45,497,498,501,504],{},[48,499,500],{},"Does not move machine, only redefines current position",[48,502,503],{},"Used to establish workpiece coordinate system",[48,505,506],{},"Affects all subsequent coordinate calculations",[21,508,509,43],{},[24,510,64],{},[66,512,514],{"className":68,"code":513,"language":70,"meta":71,"style":71},"G92 X0 Y0 Z0    ; Set current position as origin\nG92 X10         ; Set current X position to 10\n",[29,515,516,521],{"__ignoreMap":71},[75,517,518],{"class":77,"line":78},[75,519,520],{},"G92 X0 Y0 Z0    ; Set current position as origin\n",[75,522,523],{"class":77,"line":84},[75,524,525],{},"G92 X10         ; Set current X position to 10\n",[227,527],{},[11,529,531],{"id":530},"pause-commands","Pause Commands",[16,533,535],{"id":534},"g4-dwell","G4 - Dwell",[21,537,538,27,540],{},[24,539,26],{},[29,541,542],{},"G4 P[seconds]",[21,544,545,547],{},[24,546,36],{},": Pause program execution for specified time.",[21,549,550,43],{},[24,551,42],{},[45,553,554,557,560],{},[48,555,556],{},"P parameter specifies pause time (seconds)",[48,558,559],{},"Used for waiting spindle stabilization, cooling, etc.",[48,561,562],{},"Does not change current position",[21,564,565,43],{},[24,566,64],{},[66,568,570],{"className":68,"code":569,"language":70,"meta":71,"style":71},"G4 P2.5       ; Pause for 2.5 seconds\nG4 P1         ; Pause for 1 second\n",[29,571,572,577],{"__ignoreMap":71},[75,573,574],{"class":77,"line":78},[75,575,576],{},"G4 P2.5       ; Pause for 2.5 seconds\n",[75,578,579],{"class":77,"line":84},[75,580,581],{},"G4 P1         ; Pause for 1 second\n",[227,583],{},[11,585,587],{"id":586},"coordinate-mode-commands","Coordinate Mode Commands",[16,589,591],{"id":590},"g90-absolute-coordinate-mode","G90 - Absolute Coordinate Mode",[21,593,594,27,596],{},[24,595,26],{},[29,597,598],{},"G90",[21,600,601,603],{},[24,602,36],{},": Set to absolute coordinate mode.",[21,605,606,43],{},[24,607,42],{},[45,609,610,613,616],{},[48,611,612],{},"Default mode",[48,614,615],{},"All coordinate values relative to workpiece origin",[48,617,618],{},"Recommended coordinate mode",[16,620,622],{"id":621},"g91-relative-coordinate-mode","G91 - Relative Coordinate Mode",[21,624,625,27,627],{},[24,626,26],{},[29,628,629],{},"G91",[21,631,632,634],{},[24,633,36],{},": Set to relative coordinate mode.",[21,636,637,43],{},[24,638,42],{},[45,640,641,644,647],{},[48,642,643],{},"All coordinate values relative to current position",[48,645,646],{},"Used for incremental movements",[48,648,649],{},"Use with caution",[227,651],{},[11,653,655],{"id":654},"coordinate-system-selection-commands","Coordinate System Selection Commands",[16,657,659],{"id":658},"g53-machine-coordinate-system","G53 - Machine Coordinate System",[21,661,662,27,664],{},[24,663,26],{},[29,665,666],{},"G53",[21,668,669,671],{},[24,670,36],{},": Temporarily select machine coordinate system.",[21,673,674,43],{},[24,675,42],{},[45,677,678,681,684],{},[48,679,680],{},"Only effective for current line",[48,682,683],{},"Coordinates relative to machine origin",[48,685,686],{},"Often used with G0\u002FG1",[21,688,689,43],{},[24,690,64],{},[66,692,694],{"className":68,"code":693,"language":70,"meta":71,"style":71},"G0 G53 Z0     ; Z-axis return to 0 position in machine coordinate system\n",[29,695,696],{"__ignoreMap":71},[75,697,698],{"class":77,"line":78},[75,699,693],{},[16,701,703],{"id":702},"g54-g59-workpiece-coordinate-systems","G54-G59 - Workpiece Coordinate Systems",[21,705,706,27,708,711,712,711,715,711,718,711,721,711,724],{},[24,707,26],{},[29,709,710],{},"G54"," \u002F ",[29,713,714],{},"G55",[29,716,717],{},"G56",[29,719,720],{},"G57",[29,722,723],{},"G58",[29,725,726],{},"G59",[21,728,729,731],{},[24,730,36],{},": Select workpiece coordinate systems 1-6.",[21,733,734,43],{},[24,735,42],{},[45,737,738,741,744],{},[48,739,740],{},"G54 is default workpiece coordinate system",[48,742,743],{},"Each coordinate system has independent origin offset",[48,745,746],{},"Used for multi-workpiece machining",[227,748],{},[11,750,752],{"id":751},"feed-rate-mode-commands","Feed Rate Mode Commands",[16,754,756],{"id":755},"g93-inverse-time-feed-mode","G93 - Inverse Time Feed Mode",[21,758,759,27,761],{},[24,760,26],{},[29,762,763],{},"G93",[21,765,766,768],{},[24,767,36],{},": Set inverse time feed mode.",[21,770,771,43],{},[24,772,42],{},[45,774,775,778],{},[48,776,777],{},"F value represents reciprocal of time required to complete the movement",[48,779,780],{},"Less commonly used feed mode",[16,782,784],{"id":783},"g94-units-per-minute-feed-mode","G94 - Units Per Minute Feed Mode",[21,786,787,27,789],{},[24,788,26],{},[29,790,791],{},"G94",[21,793,794,796],{},[24,795,36],{},": Set units per minute feed mode.",[21,798,799,43],{},[24,800,42],{},[45,802,803,806,809],{},[48,804,805],{},"Default feed mode",[48,807,808],{},"F value represents distance moved per minute",[48,810,811],{},"Units: mm\u002Fmin or inch\u002Fmin",[227,813],{},[11,815,817],{"id":816},"tool-compensation-commands","Tool Compensation Commands",[16,819,821],{"id":820},"g40-cancel-tool-compensation","G40 - Cancel Tool Compensation",[21,823,824,27,826],{},[24,825,26],{},[29,827,828],{},"G40",[21,830,831,833],{},[24,832,36],{},": Cancel tool radius compensation.",[21,835,836,43],{},[24,837,42],{},[45,839,840,843],{},[48,841,842],{},"Default state",[48,844,845],{},"Move precisely along programmed path",[16,847,849],{"id":848},"g41-left-tool-compensation","G41 - Left Tool Compensation",[21,851,852,27,854],{},[24,853,26],{},[29,855,856],{},"G41",[21,858,859,861],{},[24,860,36],{},": Enable left tool radius compensation.",[21,863,864,43],{},[24,865,42],{},[45,867,868,871],{},[48,869,870],{},"Tool center offset to left of programmed path",[48,872,873],{},"Compensation value set by tool table",[16,875,877],{"id":876},"g42-right-tool-compensation","G42 - Right Tool Compensation",[21,879,880,27,882],{},[24,881,26],{},[29,883,884],{},"G42",[21,886,887,889],{},[24,888,36],{},": Enable right tool radius compensation.",[21,891,892,43],{},[24,893,42],{},[45,895,896,899],{},[48,897,898],{},"Tool center offset to right of programmed path",[48,900,873],{},[16,902,904],{"id":903},"g43-tool-length-compensation","G43 - Tool Length Compensation",[21,906,907,27,909],{},[24,908,26],{},[29,910,911],{},"G43",[21,913,914,916],{},[24,915,36],{},": Enable tool length compensation.",[21,918,919,43],{},[24,920,42],{},[45,922,923,926],{},[48,924,925],{},"Compensate for tool length differences in Z-axis direction",[48,927,873],{},[16,929,931],{"id":930},"g49-cancel-tool-length-compensation","G49 - Cancel Tool Length Compensation",[21,933,934,27,936],{},[24,935,26],{},[29,937,938],{},"G49",[21,940,941,943],{},[24,942,36],{},": Cancel tool length compensation.",[21,945,946,43],{},[24,947,42],{},[45,949,950,953],{},[48,951,952],{},"Return to uncompensated state",[48,954,955],{},"Z-axis moves according to programmed values",[227,957],{},[11,959,961],{"id":960},"canned-cycle-commands","Canned Cycle Commands",[16,963,965],{"id":964},"g80-cancel-canned-cycle","G80 - Cancel Canned Cycle",[21,967,968,27,970],{},[24,969,26],{},[29,971,972],{},"G80",[21,974,975,977],{},[24,976,36],{},": Cancel current canned cycle.",[21,979,980,43],{},[24,981,42],{},[45,983,984,987],{},[48,985,986],{},"End cycle machining",[48,988,989],{},"Return to normal movement mode",[16,991,993],{"id":992},"g81-drilling-cycle","G81 - Drilling Cycle",[21,995,996,27,998],{},[24,997,26],{},[29,999,1000],{},"G81 X[position] Y[position] Z[depth] R[retract height] F[feed]",[21,1002,1003,1005],{},[24,1004,36],{},": Execute simple drilling cycle.",[21,1007,1008,43],{},[24,1009,42],{},[45,1011,1012,1015,1018],{},[48,1013,1014],{},"Rapid descent to R height",[48,1016,1017],{},"Drill to Z depth at F speed",[48,1019,1020],{},"Rapid retract to R height",[16,1022,1024],{"id":1023},"g82-drilling-cycle-with-dwell","G82 - Drilling Cycle with Dwell",[21,1026,1027,27,1029],{},[24,1028,26],{},[29,1030,1031],{},"G82 X[position] Y[position] Z[depth] R[retract height] P[dwell time] F[feed]",[21,1033,1034,1036],{},[24,1035,36],{},": Execute drilling cycle with dwell.",[21,1038,1039,43],{},[24,1040,42],{},[45,1042,1043,1046],{},[48,1044,1045],{},"Similar to G81, but dwell P seconds at bottom",[48,1047,1048],{},"Used for chip breaking or chip evacuation",[16,1050,1052],{"id":1051},"g83-deep-hole-drilling-cycle","G83 - Deep Hole Drilling Cycle",[21,1054,1055,27,1057],{},[24,1056,26],{},[29,1058,1059],{},"G83 X[position] Y[position] Z[depth] R[retract height] Q[peck feed] F[feed]",[21,1061,1062,1064],{},[24,1063,36],{},": Execute peck drilling cycle.",[21,1066,1067,43],{},[24,1068,42],{},[45,1070,1071,1074,1077],{},[48,1072,1073],{},"Multiple feed increments for deep holes",[48,1075,1076],{},"Q parameter specifies feed increment per peck",[48,1078,1079],{},"Retract for chip evacuation each time",[227,1081],{},[11,1083,1085],{"id":1084},"spindle-control-commands","Spindle Control Commands",[16,1087,1089],{"id":1088},"m3-spindle-on-clockwiselaser-on","M3 - Spindle On Clockwise\u002FLaser On",[21,1091,1092,27,1094],{},[24,1093,26],{},[29,1095,1096],{},"M3 S[speed\u002Fpower]",[21,1098,1099,1101],{},[24,1100,36],{},": Start spindle clockwise rotation or turn on laser.",[21,1103,1104,43],{},[24,1105,42],{},[45,1107,1108,1111,1114],{},[48,1109,1110],{},"CNC mode: S parameter is spindle speed (RPM)",[48,1112,1113],{},"Laser mode: S parameter is laser power (0-1000)",[48,1115,1116],{},"Must execute before cutting",[21,1118,1119,43],{},[24,1120,64],{},[66,1122,1124],{"className":68,"code":1123,"language":70,"meta":71,"style":71},"M3 S12000     ; Spindle 12000 RPM\nM3 S800       ; Laser power 800\n",[29,1125,1126,1131],{"__ignoreMap":71},[75,1127,1128],{"class":77,"line":78},[75,1129,1130],{},"M3 S12000     ; Spindle 12000 RPM\n",[75,1132,1133],{"class":77,"line":84},[75,1134,1135],{},"M3 S800       ; Laser power 800\n",[16,1137,1139],{"id":1138},"m4-spindle-on-counterclockwise","M4 - Spindle On Counterclockwise",[21,1141,1142,27,1144],{},[24,1143,26],{},[29,1145,1146],{},"M4 S[speed]",[21,1148,1149,1151],{},[24,1150,36],{},": Start spindle counterclockwise rotation.",[21,1153,1154,43],{},[24,1155,42],{},[45,1157,1158,1161],{},[48,1159,1160],{},"Used for special machining requirements",[48,1162,1163],{},"Such as tapping operations",[16,1165,1167],{"id":1166},"m5-spindle-stoplaser-off","M5 - Spindle Stop\u002FLaser Off",[21,1169,1170,27,1172],{},[24,1171,26],{},[29,1173,1174],{},"M5",[21,1176,1177,1179],{},[24,1178,36],{},": Stop spindle or turn off laser.",[21,1181,1182,43],{},[24,1183,42],{},[45,1185,1186,1189,1192],{},[48,1187,1188],{},"Safely stop spindle",[48,1190,1191],{},"Turn off laser output in laser mode",[48,1193,1194],{},"Must execute at end of machining",[227,1196],{},[11,1198,1200],{"id":1199},"coolant-control-commands","Coolant Control Commands",[16,1202,1204],{"id":1203},"m7-mist-coolant-on","M7 - Mist Coolant On",[21,1206,1207,27,1209],{},[24,1208,26],{},[29,1210,1211],{},"M7",[21,1213,1214,1216],{},[24,1215,36],{},": Turn on mist coolant.",[21,1218,1219,43],{},[24,1220,42],{},[45,1222,1223,1226],{},[48,1224,1225],{},"Used for light cooling",[48,1227,1228],{},"Reduce dust",[16,1230,1232],{"id":1231},"m8-flood-coolant-on","M8 - Flood Coolant On",[21,1234,1235,27,1237],{},[24,1236,26],{},[29,1238,1239],{},"M8",[21,1241,1242,1244],{},[24,1243,36],{},": Turn on flood coolant.",[21,1246,1247,43],{},[24,1248,42],{},[45,1250,1251,1254],{},[48,1252,1253],{},"Used for heavy cooling",[48,1255,1256],{},"Improve machining quality",[16,1258,1260],{"id":1259},"m9-coolant-off","M9 - Coolant Off",[21,1262,1263,27,1265],{},[24,1264,26],{},[29,1266,1267],{},"M9",[21,1269,1270,1272],{},[24,1271,36],{},": Turn off all coolant.",[21,1274,1275,43],{},[24,1276,42],{},[45,1278,1279,1282],{},[48,1280,1281],{},"Stop coolant supply",[48,1283,1284],{},"Execute at program end",[227,1286],{},[11,1288,1290],{"id":1289},"program-control-commands","Program Control Commands",[16,1292,1294],{"id":1293},"m0-program-pause","M0 - Program Pause",[21,1296,1297,27,1299],{},[24,1298,26],{},[29,1300,1301],{},"M0",[21,1303,1304,1306],{},[24,1305,36],{},": Pause program execution, wait for operator to continue.",[21,1308,1309,43],{},[24,1310,42],{},[45,1312,1313,1316],{},[48,1314,1315],{},"Requires manual continuation",[48,1317,1318],{},"Used for workpiece inspection or tool change",[16,1320,1322],{"id":1321},"m1-optional-pause","M1 - Optional Pause",[21,1324,1325,27,1327],{},[24,1326,26],{},[29,1328,1329],{},"M1",[21,1331,1332,1334],{},[24,1333,36],{},": Optional program pause.",[21,1336,1337,43],{},[24,1338,42],{},[45,1340,1341,1344],{},[48,1342,1343],{},"Only effective when optional pause is enabled",[48,1345,1346],{},"Used for program debugging",[16,1348,1350],{"id":1349},"m2-program-end","M2 - Program End",[21,1352,1353,27,1355],{},[24,1354,26],{},[29,1356,1357],{},"M2",[21,1359,1360,1362],{},[24,1361,36],{},": Program end.",[21,1364,1365,43],{},[24,1366,42],{},[45,1368,1369,1372],{},[48,1370,1371],{},"Stop spindle and coolant",[48,1373,1374],{},"Program execution complete",[16,1376,1378],{"id":1377},"m30-program-end-and-return-to-origin","M30 - Program End and Return to Origin",[21,1380,1381,27,1383],{},[24,1382,26],{},[29,1384,1385],{},"M30",[21,1387,1388,1390],{},[24,1389,36],{},": Program end and return to origin.",[21,1392,1393,43],{},[24,1394,42],{},[45,1396,1397,1400],{},[48,1398,1399],{},"Similar to M2, but automatically return to origin",[48,1401,1402],{},"Recommended program end method",[227,1404],{},[11,1406,1408],{"id":1407},"parameter-description","Parameter Description",[16,1410,1412],{"id":1411},"coordinate-parameters","Coordinate Parameters",[45,1414,1415,1421,1427,1433,1439,1445],{},[48,1416,1417,1420],{},[24,1418,1419],{},"X",": X-axis coordinate value",[48,1422,1423,1426],{},[24,1424,1425],{},"Y",": Y-axis coordinate value",[48,1428,1429,1432],{},[24,1430,1431],{},"Z",": Z-axis coordinate value",[48,1434,1435,1438],{},[24,1436,1437],{},"I",": Arc center X-axis offset",[48,1440,1441,1444],{},[24,1442,1443],{},"J",": Arc center Y-axis offset",[48,1446,1447,1450],{},[24,1448,1449],{},"K",": Arc center Z-axis offset",[16,1452,1454],{"id":1453},"control-parameters","Control Parameters",[45,1456,1457,1463,1469,1475,1481],{},[48,1458,1459,1462],{},[24,1460,1461],{},"F",": Feed rate (mm\u002Fmin or inch\u002Fmin)",[48,1464,1465,1468],{},[24,1466,1467],{},"S",": Spindle speed (RPM) or Laser power (0-1000)",[48,1470,1471,1474],{},[24,1472,1473],{},"P",": Dwell time (seconds)",[48,1476,1477,1480],{},[24,1478,1479],{},"Q",": Peck feed amount (for cycles)",[48,1482,1483,1486],{},[24,1484,1485],{},"R",": Retract height (for cycles)",[16,1488,1490],{"id":1489},"working-range-limits","Working Range Limits",[45,1492,1493,1499,1504,1510,1516],{},[48,1494,1495,1498],{},[24,1496,1497],{},"X-axis",": -500mm to +500mm",[48,1500,1501,1498],{},[24,1502,1503],{},"Y-axis",[48,1505,1506,1509],{},[24,1507,1508],{},"Z-axis",": -200mm to +200mm",[48,1511,1512,1515],{},[24,1513,1514],{},"Spindle Speed",": 0-24000 RPM",[48,1517,1518,1521],{},[24,1519,1520],{},"Laser Power",": 0-1000",[16,1523,1525],{"id":1524},"comment-format","Comment Format",[45,1527,1528,1531,1534],{},[48,1529,1530],{},"Use semicolon ( ; ) to add comments",[48,1532,1533],{},"Comment content does not affect program execution",[48,1535,1536],{},"Recommend adding necessary explanations",[21,1538,1539,43],{},[24,1540,64],{},[66,1542,1544],{"className":68,"code":1543,"language":70,"meta":71,"style":71},"G0 X0 Y0 Z5    ; Move to start position\nM3 S800        ; Turn on laser, power 800\nG1 X10 F1000   ; Linear move to X10\nM5             ; Turn off laser\n",[29,1545,1546,1551,1556,1562],{"__ignoreMap":71},[75,1547,1548],{"class":77,"line":78},[75,1549,1550],{},"G0 X0 Y0 Z5    ; Move to start position\n",[75,1552,1553],{"class":77,"line":84},[75,1554,1555],{},"M3 S800        ; Turn on laser, power 800\n",[75,1557,1559],{"class":77,"line":1558},3,[75,1560,1561],{},"G1 X10 F1000   ; Linear move to X10\n",[75,1563,1565],{"class":77,"line":1564},4,[75,1566,1567],{},"M5             ; Turn off laser\n",[1569,1570,1571],"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":71,"searchDepth":84,"depth":84,"links":1573},[1574,1580,1585,1589,1594,1597,1601,1605,1609,1616,1622,1627,1632,1638],{"id":13,"depth":84,"text":14,"children":1575},[1576,1577,1578,1579],{"id":18,"depth":1558,"text":19},{"id":90,"depth":1558,"text":91},{"id":143,"depth":1558,"text":144},{"id":187,"depth":1558,"text":188},{"id":231,"depth":84,"text":232,"children":1581},[1582,1583,1584],{"id":235,"depth":1558,"text":236},{"id":266,"depth":1558,"text":267},{"id":294,"depth":1558,"text":295},{"id":324,"depth":84,"text":325,"children":1586},[1587,1588],{"id":328,"depth":1558,"text":329},{"id":359,"depth":1558,"text":360},{"id":392,"depth":84,"text":393,"children":1590},[1591,1592,1593],{"id":396,"depth":1558,"text":397},{"id":450,"depth":1558,"text":451},{"id":478,"depth":1558,"text":479},{"id":530,"depth":84,"text":531,"children":1595},[1596],{"id":534,"depth":1558,"text":535},{"id":586,"depth":84,"text":587,"children":1598},[1599,1600],{"id":590,"depth":1558,"text":591},{"id":621,"depth":1558,"text":622},{"id":654,"depth":84,"text":655,"children":1602},[1603,1604],{"id":658,"depth":1558,"text":659},{"id":702,"depth":1558,"text":703},{"id":751,"depth":84,"text":752,"children":1606},[1607,1608],{"id":755,"depth":1558,"text":756},{"id":783,"depth":1558,"text":784},{"id":816,"depth":84,"text":817,"children":1610},[1611,1612,1613,1614,1615],{"id":820,"depth":1558,"text":821},{"id":848,"depth":1558,"text":849},{"id":876,"depth":1558,"text":877},{"id":903,"depth":1558,"text":904},{"id":930,"depth":1558,"text":931},{"id":960,"depth":84,"text":961,"children":1617},[1618,1619,1620,1621],{"id":964,"depth":1558,"text":965},{"id":992,"depth":1558,"text":993},{"id":1023,"depth":1558,"text":1024},{"id":1051,"depth":1558,"text":1052},{"id":1084,"depth":84,"text":1085,"children":1623},[1624,1625,1626],{"id":1088,"depth":1558,"text":1089},{"id":1138,"depth":1558,"text":1139},{"id":1166,"depth":1558,"text":1167},{"id":1199,"depth":84,"text":1200,"children":1628},[1629,1630,1631],{"id":1203,"depth":1558,"text":1204},{"id":1231,"depth":1558,"text":1232},{"id":1259,"depth":1558,"text":1260},{"id":1289,"depth":84,"text":1290,"children":1633},[1634,1635,1636,1637],{"id":1293,"depth":1558,"text":1294},{"id":1321,"depth":1558,"text":1322},{"id":1349,"depth":1558,"text":1350},{"id":1377,"depth":1558,"text":1378},{"id":1407,"depth":84,"text":1408,"children":1639},[1640,1641,1642,1643],{"id":1411,"depth":1558,"text":1412},{"id":1453,"depth":1558,"text":1454},{"id":1489,"depth":1558,"text":1490},{"id":1524,"depth":1558,"text":1525},"appendix","Reference for the G-code commands Laetoly supports, with syntax, function and examples.","md","en",{},true,40,"\u002Fwiki\u002Fen\u002Fappendix\u002Fg-code-commands",{"title":6,"description":1645},"g-code-commands",{"wikijsId":1655,"wikijsPath":1656},15,"appendix\u002Fg-code-commands","wiki\u002Fen\u002Fappendix\u002Fg-code-commands","2025-11-04","ogl7FJyWR3rRfNxd5YO8ZQ1iWoe1IgsK_aVksC5lEbw",[1661,1683,1712,1727,1746,1778],{"category":1662,"pages":1663},"getting-started",[1664,1669,1674,1679],{"title":1665,"category":1662,"slug":1666,"order":1667,"path":1668},"Welcome to Laetoly","welcome-to-laetoly",10,"\u002Fwiki\u002Fgetting-started\u002Fwelcome-to-laetoly",{"title":1670,"category":1662,"slug":1671,"order":1672,"path":1673},"Driver Configuration","driver-setup",20,"\u002Fwiki\u002Fgetting-started\u002Fdriver-setup",{"title":1675,"category":1662,"slug":1676,"order":1677,"path":1678},"Your First Project","your-first-project",30,"\u002Fwiki\u002Fgetting-started\u002Fyour-first-project",{"title":1680,"category":1662,"slug":1681,"order":1650,"path":1682},"Video Tutorial","video-tutorial","\u002Fwiki\u002Fgetting-started\u002Fvideo-tutorial",{"category":1684,"pages":1685},"design",[1686,1690,1694,1698,1702,1707],{"title":1687,"category":1684,"slug":1688,"order":1667,"path":1689},"Importing","importing","\u002Fwiki\u002Fdesign\u002Fimporting",{"title":1691,"category":1684,"slug":1692,"order":1672,"path":1693},"Drawing Tools","drawing-tools","\u002Fwiki\u002Fdesign\u002Fdrawing-tools",{"title":1695,"category":1684,"slug":1696,"order":1677,"path":1697},"Editing & Transformation","editing-transformation","\u002Fwiki\u002Fdesign\u002Fediting-transformation",{"title":1699,"category":1684,"slug":1700,"order":1650,"path":1701},"Properties","properties","\u002Fwiki\u002Fdesign\u002Fproperties",{"title":1703,"category":1684,"slug":1704,"order":1705,"path":1706},"Libraries","libraries",50,"\u002Fwiki\u002Fdesign\u002Flibraries",{"title":1708,"category":1684,"slug":1709,"order":1710,"path":1711},"Others","others",60,"\u002Fwiki\u002Fdesign\u002Fothers",{"category":1713,"pages":1714},"preview-run",[1715,1719,1723],{"title":1716,"category":1713,"slug":1717,"order":1667,"path":1718},"3D Preview","3D-preview","\u002Fwiki\u002Fpreview-run\u002F3D-preview",{"title":1720,"category":1713,"slug":1721,"order":1672,"path":1722},"Running Jobs","running-jobs","\u002Fwiki\u002Fpreview-run\u002Frunning-jobs",{"title":1724,"category":1713,"slug":1725,"order":1677,"path":1726},"Real-Time Monitoring","real-time-monitoring","\u002Fwiki\u002Fpreview-run\u002Freal-time-monitoring",{"category":1728,"pages":1729},"system-config",[1730,1734,1738,1742],{"title":1731,"category":1728,"slug":1732,"order":1667,"path":1733},"Add Device","add-device","\u002Fwiki\u002Fsystem-config\u002Fadd-device",{"title":1735,"category":1728,"slug":1736,"order":1672,"path":1737},"Settings","settings","\u002Fwiki\u002Fsystem-config\u002Fsettings",{"title":1739,"category":1728,"slug":1740,"order":1677,"path":1741},"User Panel","user-panel","\u002Fwiki\u002Fsystem-config\u002Fuser-panel",{"title":1743,"category":1728,"slug":1744,"order":1650,"path":1745},"G-code Console","g-code-console","\u002Fwiki\u002Fsystem-config\u002Fg-code-console",{"category":1747,"pages":1748},"faq",[1749,1753,1757,1761,1765,1769,1773],{"title":1750,"category":1747,"slug":1751,"order":1667,"path":1752},"Installation & Setup","installation_setup","\u002Fwiki\u002Ffaq\u002Finstallation_setup",{"title":1754,"category":1747,"slug":1755,"order":1672,"path":1756},"Connection","connection","\u002Fwiki\u002Ffaq\u002Fconnection",{"title":1758,"category":1747,"slug":1759,"order":1677,"path":1760},"Design & Files","design_files","\u002Fwiki\u002Ffaq\u002Fdesign_files",{"title":1762,"category":1747,"slug":1763,"order":1650,"path":1764},"Toolpath & G-code","toolpath_g-code","\u002Fwiki\u002Ffaq\u002Ftoolpath_g-code",{"title":1766,"category":1747,"slug":1767,"order":1705,"path":1768},"Engraving Quality","engraving_quality","\u002Fwiki\u002Ffaq\u002Fengraving_quality",{"title":1770,"category":1747,"slug":1771,"order":1710,"path":1772},"Device Operation","device_operation","\u002Fwiki\u002Ffaq\u002Fdevice_operation",{"title":1774,"category":1747,"slug":1775,"order":1776,"path":1777},"Safety Guidelines","safety_guidelines",70,"\u002Fwiki\u002Ffaq\u002Fsafety_guidelines",{"category":1644,"pages":1779},[1780,1784,1788,1792,1794,1798],{"title":1781,"category":1644,"slug":1782,"order":1667,"path":1783},"Download Center","download-center","\u002Fwiki\u002Fappendix\u002Fdownload-center",{"title":1785,"category":1644,"slug":1786,"order":1672,"path":1787},"Release Notes","release-notes","\u002Fwiki\u002Fappendix\u002Frelease-notes",{"title":1789,"category":1644,"slug":1790,"order":1677,"path":1791},"Glossary","glossary","\u002Fwiki\u002Fappendix\u002Fglossary",{"title":6,"category":1644,"slug":1653,"order":1650,"path":1793},"\u002Fwiki\u002Fappendix\u002Fg-code-commands",{"title":1795,"category":1644,"slug":1796,"order":1705,"path":1797},"Bit & Material Reference","bit-material-reference","\u002Fwiki\u002Fappendix\u002Fbit-material-reference",{"title":1799,"category":1644,"slug":1800,"order":1710,"path":1801},"Credit System Guide","credit-system-guide","\u002Fwiki\u002Fappendix\u002Fcredit-system-guide",1792396296081]