[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-686028-105":59,"doc-detail-686028-en":130,"doc-similar-686028":149},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","g-codes-and-m-codes-reference","G-Codes and M-Codes Reference","","G-code and M-code command reference covering common motion and control functions for CNC-style programs. Explains G1 synchronous linear interpolation, G2/G3 circular and elliptical clockwise/counter-clockwise motions with IJK and R parameter options, and dwell behavior via G4. Includes plane selection with G17/18/19, absolute and incremental positioning with G90/G91, and coordinate system redefinition with G92. Details M-code operational controls such as optional/stop states, custom status message display, laser parameter setup, gas and water toggles, and device mode switching for pendants and external operation.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/g-codes-and-m-codes-reference/686028/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/g-codes-and-m-codes-reference/686028.png","ImageObject",300,407,{"name":92,"@type":93},"Mafia Boss","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-30","2026-11-07",true,{"@type":102,"interactionType":103,"userInteractionCount":29},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What does the G1 command do in a CNC program?","Question",{"text":112,"@type":113},"G1 performs linear motion, allowing movement of all axes synchronously for a contoured linear move. Motion can be relative or absolute depending on the G90/G91 mode.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How are circular moves specified using G2 and G3?",{"text":117,"@type":113},"G2 creates clockwise rotation and G3 creates counter-clockwise rotation, for circular or elliptical motion profiles. The end point plus circle center can be given using the IJK method, or end point plus radius can be given using the R method.",{"name":119,"@type":110,"acceptedAnswer":120},"What is the purpose of G90 vs G91, and what does G92 change?",{"text":121,"@type":113},"G90 uses absolute distance mode where movement is based on the origin. G91 uses incremental distance mode where movement is based on the current position. G92 redefines a preset coordinate system origin for absolute measurements from a non-zero position.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},686028,1794026978,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":29,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":34,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":129,"read_time":143,"preview_page_count":8,"preview_urls":144},962090760730,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","G-Codes do not require attributes unless stated  \nG1 Linear Move:  \nEx:  \nG1 Z1 .2 ;Move the Z axis 1.2 in. in the positive direction  \nThe G1 command allows for all axes to move synchronously in a contoured linear motion. The parameters supplied will cause a motion in either a relative or absolute fashion depending on the G90/G91 mode.  \nG2 Circular Move – Clockwise Rotation  \nEx:  \nG2 X2 Y-2 I1 .5 J-1.5 ; End Point and circle center specified  \n; (IJK method)  \nG2 X2 Y-2 R1 .58114 ; End Point and radius specified  \nThe G2 command is used when making circular or elliptical type motion profiles. G2 generates a clockwise rotation and can be determined using the right hand rule from the negative direction of an orthogonal axis.  \nG3 Circular Move – Counter-Clockwise Rotation  \nEx:  \nG3 X2 Y-2 I1 .5 J-1.5 ; End Point and circle center specified  \n; (IJK method)  \nG3 X2 Y-2 R1 .58114 ; End Point and radius specified  \nThe G3 command is used when making circular or elliptical type motion profiles. G3 generates a clockwise rotation and can be determined using the right hand rule from the negative direction of an orthogonal axis.  \nG4 Dwell:  \nEx:  \nG4 P0.2 ;Dwell for 0.2 seconds  \nThe G4 command causes a delay in program execution. The parameter supplied by the user is in seconds and has a maximum resolution of 0.001 seconds.  \nG9 Exact Stop  \nEx:  \nG1 X4 .8 Y2 .4  \nG9  \nThe G9 command stops the program from continuing its run until all drives have finished their instructed travel.  \nG17/18/19 – Plane Select  \nG17 – XY Plane  \nG18 – ZX Plane  \nG19 – YZ Plane  \nUsed in conjunction with the G2 and G3 commands to select which plane the circular move command takes place.  \nWARNING: ALWAYS DOUBLE CHECK THE UNITS YOUR PROGRAM AND STAGE ARE OPERATING IN AND BE SURE THAT THEY AGREE; FAILURE TO DO SO CAN CAUSE SERIOUS DAMAGE TO THE WORKSTATION, FOCUS HEAD, AND PART.  \nG90 Absolute Distance Mode:  \nMovement occurs in relation to the origin  \nEx:  \nG90  \nG01 X3 .0 Y7 .0  \nG01 X5 .0 Y10 .0  \nG01 X10 .0 Y6 .0  \n;These commands would generate the following move sequence  \nY  \n12  \n10  \n8  \n6  \n4  \n2  \n0  \n0 2 4 6 8 10 12  \nG91 Incremental Distance Mode:  \nMovement occurs in relation to current position  \nEx:  \nG90  \nG01 X3 .0 Y7 .0  \nG01 X5 .0 Y10 .0  \nG01 X10 .0 Y6 .0  \n;These commands would generate the following move sequence  \n0 5 10 15 20  \nX  \nG92 Redefine Coordinate System Set:  \nThis command defines a preset position so the user may use absolute coordinates measured from a non-zero position. This command has no effect on relative motion commands.  \nEx:  \nG1  \nG92  \nG1  \nX5 X-1.0 X0  \nY5 Y-1.0 Y0  \n; Move to (5,5); Set (6,6) as Home; Move to (6,6)  \nM-Codes do not require attributes unless stated  \nM00 Stop  \nAllows operator to Jog or otherwise alter system while program is paused  \nPressing “Cycle Start” button will resume program sequence  \nM01 Optional Stop  \nChecks condition of check box (DeltaMotion interface) . Popup message dialog will display and hold (pauses) program execution whenever box is checked. Allows operator to Jog or otherwise alter system while program is paused. Pressing “OK” button will close the popup message dialog and resume program sequence. The popup message can be defined and customized in the file c:\\DTMessageList.txt.  \nDefault messages in c:\\DTMessageList.txt file:  \n1: Accept or Jog to Acceptable Position  \n2: Accept or Jog to Acceptable Position2  \nEx. M01 S1  \nSelect message 1 to display in M01 popup message dialog  \nM09 Status Message Display  \nM09 allows operator to display a programmable custom status message on the Status Message Display window, with custom background color and flashing enable ON/OFF. The programmable custom status message is loaded from a status message list text file stored at c:\\StatusMessageList.txt.  \nThe StatusMessageList.txt contains a list of custom status messages in these formats:  \n1:Your custom status message1  \n2:Your custom status message2  \n3:Your custom status message3 ","cbCailK7l7OSlJgc","https://ap.wps.com/l/cbCailK7l7OSlJgc","pdf",188548,"English","# G-Codes Overview\n## Linear Move (G1)\n## Circular Move Clockwise (G2)\n## Circular Move Counter-Clockwise (G3)\n## Dwell (G4)\n## Exact Stop (G9)\n## Plane Select (G17/18/19)\n## Absolute Distance Mode (G90)\n## Incremental Distance Mode (G91)\n## Redefine Coordinate System (G92)\n# M-Codes Overview\n## Stop and Optional Stop (M00/M01)\n## Status Message Display (M09)\n## Laser Firing Parameters (M13)\n## Gas Control (M16/M17)\n## Tube Diameter Input (M29)\n## Program Stop (M30)\n## Water Control (M38/M39)\n## Collet Control (M40/M41)\n## Laser Pendant Mode (M52)\n## Laser External Mode (M53)","[{\"question\":\"What does the G1 command do in a CNC program?\",\"answer\":\"G1 performs linear motion, allowing movement of all axes synchronously for a contoured linear move. Motion can be relative or absolute depending on the G90/G91 mode.\"},{\"question\":\"How are circular moves specified using G2 and G3?\",\"answer\":\"G2 creates clockwise rotation and G3 creates counter-clockwise rotation, for circular or elliptical motion profiles. The end point plus circle center can be given using the IJK method, or end point plus radius can be given using the R method.\"},{\"question\":\"What is the purpose of G90 vs G91, and what does G92 change?\",\"answer\":\"G90 uses absolute distance mode where movement is based on the origin. G91 uses incremental distance mode where movement is based on the current position. G92 redefines a preset coordinate system origin for absolute measurements from a non-zero position.\"}]","G-Codes and M-Codes Reference | PDF",18,[145],{"page_no":8,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/8aaf71e1bee4dba88aab8b1c22819686.webp",983,1272,{"list":150,"token":66},[151,157,163,169,175,181,187,193,199,205],{"doc_id":152,"doc_title":153,"file_type":137,"home_preview_img_url":154,"slug":155,"view_count":81,"category_name":30,"create_tm":156},732721,"Centroid Lathe G Codes - Chapter 11","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031778487/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109779&Signature=zmBPt5q49aoVWSefTd1JIftOskk%3D","centroid-lathe-g-codes-chapter-11",1795381900,{"doc_id":158,"doc_title":159,"file_type":137,"home_preview_img_url":160,"slug":161,"view_count":24,"category_name":30,"create_tm":162},732716,"Study of G Codes and M Codes Used in CNC Lathe HMT CNC-T70 - CNC Machining Centre Codes","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031778452/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109779&Signature=D5mNhTZ1wz41vD%2FAwyyu0BJSVfs%3D","study-of-g-codes-and-m-codes-used-in-cnc-lathe-hmt-cnc-t70-cnc-machining-centre-codes",1795381890,{"doc_id":164,"doc_title":165,"file_type":137,"home_preview_img_url":166,"slug":167,"view_count":34,"category_name":30,"create_tm":168},292837,"Insight G-Series GEM OAT Function Technical Note - Simple Test Procedure","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229903570855/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109779&Signature=CJOao7LsJCEzQVOP4Al%2FoZ5Snnc%3D","insight-g-series-gem-oat-function-technical-note-simple-test-procedure",1789656436,{"doc_id":170,"doc_title":171,"file_type":137,"home_preview_img_url":172,"slug":173,"view_count":24,"category_name":30,"create_tm":174},732766,"LNC-MILL Programming Manual - V4.00 - Version 4.00","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031411638/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109779&Signature=xf8DaJya4v49PH7KBkWTrfW1Xl4%3D","lnc-mill-programming-manual-v400-version-400",1795382199,{"doc_id":176,"doc_title":177,"file_type":137,"home_preview_img_url":178,"slug":179,"view_count":19,"category_name":30,"create_tm":180},686030,"G and M Programming for CNC Milling Lathes","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000357231/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109779&Signature=JV6h1hfO6DL1FP6IxbZB2CV9RpI%3D","g-and-m-programming-for-cnc-milling-lathes",1794026983,{"doc_id":182,"doc_title":183,"file_type":137,"home_preview_img_url":184,"slug":185,"view_count":34,"category_name":30,"create_tm":186},651393,"BASIC CNC ISO PROGRAMMING TO MILL PROFILE & DRILL HOLES USING CIMCO EDITOR AND GRAPHIC BACKPLOT TO TEST - Basic ISO Programming Exercise 1","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229973494619/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109779&Signature=z%2Fs%2BDOkE2Icxin7Yk9Z7x5OMU%2Fw%3D","basic-cnc-iso-programming-to-mill-profile-drill-holes-using-cimco-editor-and-graphic-backplot-to-test-basic-iso-programming-exercise-1",1792873808,{"doc_id":188,"doc_title":189,"file_type":137,"home_preview_img_url":190,"slug":191,"view_count":19,"category_name":30,"create_tm":192},732767,"Mach4 CNC GCode Programming - Mill Programming Guide - Version 1.1 Build 3775","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031779209/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109779&Signature=NV9oIEOWPHzjIXO%2Bs%2BWinTLTErk%3D","mach4-cnc-gcode-programming-mill-programming-guide-version-11-build-3775",1795382204,{"doc_id":194,"doc_title":195,"file_type":137,"home_preview_img_url":196,"slug":197,"view_count":19,"category_name":30,"create_tm":198},732725,"G-Codes list - myCNC G-code reference","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031778602/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109779&Signature=hVg57AmamoMZgxvFpKqa%2FUmeCtc%3D","g-codes-list-mycnc-g-code-reference",1795381934,{"doc_id":200,"doc_title":201,"file_type":137,"home_preview_img_url":202,"slug":203,"view_count":19,"category_name":30,"create_tm":204},698252,"A2MC NC Code Definitions - Technical Reference","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010258505/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109779&Signature=LSi6oqDVHHq4a5JWj%2BiN09lo7NI%3D","a2mc-nc-code-definitions-technical-reference",1794450288,{"doc_id":206,"doc_title":207,"file_type":137,"home_preview_img_url":208,"slug":209,"view_count":19,"category_name":30,"create_tm":210},649934,"millingmachine_example - Examples Manual Mill model","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229972249612/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109779&Signature=Wf3QBdgDRIBvtI0rfG%2FK3fGb%2BFU%3D","millingmachine_example-examples-manual-mill-model",1792811844]