[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-668980-105":59,"doc-detail-668980-en":130,"doc-similar-668980":165},{"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","centroid_g_and_m_codes-chapter-12-cnc-program-codes-g-codes","centroid_G_and_M_codes - Chapter 12 - CNC Program Codes: G-codes","","Chapter 12 provides a structured reference for CNC G-codes, listing common commands with their groups and plain-language purposes. It covers motion modes such as rapid positioning (G00) and linear interpolation (G01), plus circular/helical interpolation (G02/G03), dwell and deceleration (G04, G09, G61, G64), and coordinate/plane selections (G17/G18/G19, G68/G69). It also documents tool length compensation (G43/G44/G49), cutter compensation (G40/G41/G42), work coordinate systems (G54–G59), and modal rules, including precedence and cancellation behavior for canned cycles and group B one-shot codes.",{"@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/centroid_g_and_m_codes-chapter-12-cnc-program-codes-g-codes/668980/",{"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/centroid_g_and_m_codes-chapter-12-cnc-program-codes-g-codes/668980.png","ImageObject",300,407,{"name":92,"@type":93},"Connor ","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-19","2026-11-01",true,{"@type":102,"interactionType":103,"userInteractionCount":19},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What is the difference between modal and one-shot G-codes in this chapter?","Question",{"text":112,"@type":113},"Default G-codes marked with an asterisk are listed, and the notes state that group B G-codes are one-shot, meaning they are active only on the line where they are specified. Other G-codes are modal and remain active until another G-code from the same group is commanded.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How do G00 and G01 handle positioning and motion type?",{"text":117,"@type":113},"G00 performs rapid positioning at the maximum motor rate and remains modal until another positioning mode is commanded. G01 performs linear interpolation to the specified position at the programmed feedrate, moving along a straight line and also remaining modal until changed.",{"name":119,"@type":110,"acceptedAnswer":120},"How are circular interpolation commands G02 and G03 defined?",{"text":121,"@type":113},"G02 commands clockwise circular motion and G03 commands counterclockwise circular motion (relative to the operator’s viewpoint). The X/Y/Z values in the command specify the arc end position and the movement is modal until another positioning mode (such as G0 or G1) is commanded.","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},668980,1793522071,{"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":19,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":31,"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":24,"preview_urls":144},687207022233,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d","Chapter 12  \nCNC Program Codes: G-codes  \n\n| G-code |  | Group | Description |\n| --- | --- | --- | --- |\n| G00 | * | A | Rapid Positioning |\n| G01 |  | A | Linear Interpolation |\n| G02 |  | A | Circular or Helical Interpolation CW |\n| G03 |  | A | Circular or Helical Interpolation CCW |\n| G04 |  | B | Dwell |\n| G09 |  | B | Decelerate and Stop (formerly known as Exact Stop) |\n| G10 |  | B | Parameter Setting |\n| G17 | * | C | Circular Interpolation Plane Selection XY |\n| G18 |  | C | Circular Interpolation Plane Selection ZX |\n| G19 |  | C | Circular Interpolation Plane Selection YZ |\n| G20 | * | K | Select Inch Units |\n| G21 |  | K | Select Metric Units |\n| G22 |  | O | Work envelope on |\n| G23 | * | O | Work envelope off |\n| G28 |  | B | Return to Reference Point |\n| G29 |  | B | Return from Reference Point |\n| G30 |  | B | Return to Secondary Reference Point |\n| G40 | * | D | Cutter Compensation Cancel |\n| G41 |  | D | Cutter Compensation Left |\n| G42 |  | D | Cutter Compensation Right |\n| G43 |  | E | Tool Length Compensation (+) |\n| G43.3 |  | E | Tool Length Compensation (+) with Axis Tilt Compensation |\n| G44 |  | E | Tool Length Compensation (-) |\n| G49 | * | E | Tool Length Compensation Cancel |\n| G50 | * | M\u003Cbr>M | Scaling/Mirroring Off |\n| G51 |  |  | Scaling/Mirroring On |\n| G52 |  | B | Offset Local Coordinate System Origin |\n| G53 |  | B | Rapid Position in Machine Coordinates |\n| G54 |  | L | Select Work Coordinate System \\#1 |\n| G55 |  | L | Select Work Coordinate System \\#2 |\n| G56 |  | L | Select Work Coordinate System \\#3 |\n| G57 |  | L | Select Work Coordinate System \\#4 |\n| G58 |  | L | Select Work Coordinate System \\#5 |\n| G59 |  | L | Select Work Coordinate System \\#6 |\n| G61 |  | F | Modal Decel and Stop (formerly known as Exact Stop Mode) |\n| G64 | * | F | Smoothing mode selection / Cancel Modal Decelerate and Stop |\n| G65 |  | J | Call Macro |\n| G68 |  | N | Coordinate Rotation on |\n| G69 | * | N | Coordinate Rotation off |\n| G73 |  | G | High Speed Peck Drilling |\n| G74 |  | G | Counter Tapping |\n| G76 |  | G | Fine Bore Cycle |\n| G80 | * | G | Canned Cycle Cancel |\n\nM-Series Operator’s Manual 10/17/16 12-1  \n\n| G81 |  | G | Drilling and Spot Drilling |\n| --- | --- | --- | --- |\n| G82 |  | G | Drill with Dwell |\n| G83 |  | G | Deep Hole Drilling |\n| G84 |  | G | Tapping |\n| G85 |  | G | Boring |\n| G89 |  | G | Boring with Dwell |\n| G90 | * | H | Absolute Positioning Mode |\n| G91 |  | H | Incremental positioning Mode |\n| G92 |  | B | Set Absolute position |\n| G93 |  | P | Inverse Time On |\n| G93.1 |  | P | Velocity Scrubber for Smoothed Inverse Time Data |\n| G94 |  | P | Inverse Time Off |\n| G98 | * | I | Initial Point Return |\n| G99 |  | I | R Point Return |\n| G117 |  | C | Rotation of Plane Selection XY |\n| G118 |  | C | Rotation of Plane Selection ZX |\n| G119 |  | C | Rotation of Plane Selection YZ |\n| G173 |  | G | Compound High Speed Peck Drilling |\n| G174 |  | G | Compound Counter Tapping |\n| G176 |  | G | Compound Fine Bore Cycle |\n| G180 |  | G | Compound Canned Cycle Cancel |\n| G181 |  | G | Compound Drilling and Spot Drilling |\n| G182 |  | G | Compound Drill with Dwell |\n| G183 |  | G | Compound Deep Hole Drilling |\n| G184 |  | G | Compound Tapping |\n| G185 |  | G | Compound Boring |\n| G189 |  | G | Compound Boring with Dwell |\n\nNOTES:  \n-All the default G-codes have been marked with the symbol \" * \" .  \n-A given line of a program may contain more than one G-code.  \n-If several G-codes from one group are used in the same line, only the G-code specified last will remain active.  \n-G-codes from group B are of \"one shot\" type (active only in the line in which they are specified) . All other Gcodes are modal (active until another G-code of the same group is specified) .  \n-If a G-code from group A is used in a canned cycle mode, the canned cycle will be canceled. Canned cycle Gcodes, however, have no effect on G-codes from group A.  \nG00-Rapid Positioning  \nG0 moves to the specified position at ","cbCainGXILsahxyJ","https://ap.wps.com/l/cbCainGXILsahxyJ","pdf",4183326,"English","# Chapter 12: CNC Program Codes: G-codes\n## G-code reference table (G00–G189)\n## Notes on modal vs one-shot behavior\n## G00-Rapid Positioning\n## G01-Linear Interpolation\n## G02 & G03 Circular or Helical Interpolation","[{\"question\":\"What is the difference between modal and one-shot G-codes in this chapter?\",\"answer\":\"Default G-codes marked with an asterisk are listed, and the notes state that group B G-codes are one-shot, meaning they are active only on the line where they are specified. Other G-codes are modal and remain active until another G-code from the same group is commanded.\"},{\"question\":\"How do G00 and G01 handle positioning and motion type?\",\"answer\":\"G00 performs rapid positioning at the maximum motor rate and remains modal until another positioning mode is commanded. G01 performs linear interpolation to the specified position at the programmed feedrate, moving along a straight line and also remaining modal until changed.\"},{\"question\":\"How are circular interpolation commands G02 and G03 defined?\",\"answer\":\"G02 commands clockwise circular motion and G03 commands counterclockwise circular motion (relative to the operator’s viewpoint). The X/Y/Z values in the command specify the arc end position and the movement is modal until another positioning mode (such as G0 or G1) is commanded.\"}]","centroid_G_and_M_codes - Chapter 12 - CNC Program Codes: G-codes | PDF",126,[145,149,153,157,161],{"page_no":8,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/3eed83609fb28a335309dbd17a676e8a.webp",983,1272,{"page_no":14,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/9b2325e3d5fbcb81f9b176f7670d464c.webp",982,1270,{"page_no":81,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/5dbe695ac8427a3a970c6b74af6e66e5.webp",981,1269,{"page_no":19,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/80098fc30582ff0c01aa683e236782d0.webp",980,1268,{"page_no":24,"url":162,"width":163,"height":164},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/a0d251e34e30515ace33008c1c19b145.webp",979,1267,{"list":166,"token":66},[167,173,179,185,191,197,203,209,215,221],{"doc_id":168,"doc_title":169,"file_type":137,"home_preview_img_url":170,"slug":171,"view_count":81,"category_name":30,"create_tm":172},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=1796110979&Signature=4I%2Fb%2BWQOkXDu2LvgeBWvSuCm6wU%3D","centroid-lathe-g-codes-chapter-11",1795381900,{"doc_id":174,"doc_title":175,"file_type":137,"home_preview_img_url":176,"slug":177,"view_count":19,"category_name":30,"create_tm":178},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=1796110979&Signature=r%2FkbdmVRs5CWNUihp%2FcuR5Td8pc%3D","millingmachine_example-examples-manual-mill-model",1792811844,{"doc_id":180,"doc_title":181,"file_type":137,"home_preview_img_url":182,"slug":183,"view_count":19,"category_name":30,"create_tm":184},734704,"Haas VF-2 Programming Workbook - Programming - January 2005","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230032850181/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110979&Signature=YD1BCmkDmVByzBt56l0xjdG6Svs%3D","haas-vf-2-programming-workbook-programming-january-2005",1795415153,{"doc_id":186,"doc_title":187,"file_type":137,"home_preview_img_url":188,"slug":189,"view_count":34,"category_name":30,"create_tm":190},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=1796110979&Signature=IM5AUd6brkJMGJJvWTR3uc5C%2FYM%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":192,"doc_title":193,"file_type":137,"home_preview_img_url":194,"slug":195,"view_count":81,"category_name":30,"create_tm":196},732678,"An Introduction to G Codes - G Codes - What They Are, Common Codes and a Sample Program","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031410355/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110979&Signature=joFbwujJgqlRcKKxscLfwnkZ%2FTM%3D","an-introduction-to-g-codes-g-codes-what-they-are-common-codes-and-a-sample-program",1795381707,{"doc_id":198,"doc_title":199,"file_type":137,"home_preview_img_url":200,"slug":201,"view_count":24,"category_name":30,"create_tm":202},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=1796110979&Signature=ueIGk7aXHBwZoon%2FPER%2F%2FMpDJ%2Bw%3D","study-of-g-codes-and-m-codes-used-in-cnc-lathe-hmt-cnc-t70-cnc-machining-centre-codes",1795381890,{"doc_id":204,"doc_title":205,"file_type":137,"home_preview_img_url":206,"slug":207,"view_count":19,"category_name":30,"create_tm":208},732715,"Programming Workbook - Haas Automation, Inc. - CNC Milling Machine Codes","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031410776/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110979&Signature=cjRhD5DVU9CPXJ0E4C77lIsAtP8%3D","programming-workbook-haas-automation-inc-cnc-milling-machine-codes",1795381885,{"doc_id":210,"doc_title":211,"file_type":137,"home_preview_img_url":212,"slug":213,"view_count":34,"category_name":30,"create_tm":214},698247,"DrufelCNC G-code manual","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010258302/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110979&Signature=IJTvzwfOIIpIiHodFUMW4G1sk9U%3D","drufelcnc-g-code-manual",1794450279,{"doc_id":216,"doc_title":217,"file_type":137,"home_preview_img_url":218,"slug":219,"view_count":24,"category_name":30,"create_tm":220},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=1796110979&Signature=wxMu4j0eXPAQrBmLN36IP2LbMxM%3D","lnc-mill-programming-manual-v400-version-400",1795382199,{"doc_id":222,"doc_title":223,"file_type":137,"home_preview_img_url":224,"slug":225,"view_count":19,"category_name":30,"create_tm":226},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=1796110979&Signature=0d1unj6HKjqclu4uPXnmcQh%2BKqA%3D","g-and-m-programming-for-cnc-milling-lathes",1794026983]