[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-732678-105":59,"doc-detail-732678-en":130,"doc-similar-732678":161},{"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","an-introduction-to-g-codes-g-codes-what-they-are-common-codes-and-a-sample-program","An Introduction to G Codes - G Codes - What They Are, Common Codes and a Sample Program","","A practical introduction explains how CNC “G Codes” function, addressing key misunderstandings and clarifying that G Codes are directives rather than a programming language. It defines numerical control (NC) using an industry standard description, distinguishes G versus M codes, and explains that there is no “N code” concept beyond optional line numbering. The material also provides a detailed sample CNC program and summarizes common G codes such as G00, G01, G02, and G03.",{"@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/an-introduction-to-g-codes-g-codes-what-they-are-common-codes-and-a-sample-program/732678/",{"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/an-introduction-to-g-codes-g-codes-what-they-are-common-codes-and-a-sample-program/732678.png","ImageObject",300,407,{"name":92,"@type":93},"eBook King","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-26","2026-11-22",true,{"@type":102,"interactionType":103,"userInteractionCount":81},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"Are G Codes a programming language?","Question",{"text":112,"@type":113},"No. G Codes are directives that tell CNC devices how to move and behave.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What do G codes and M codes control?",{"text":117,"@type":113},"G codes determine movement behavior (how the machine “Go” moves), while M codes control machine behavior beyond motion.",{"name":119,"@type":110,"acceptedAnswer":120},"Do G codes always start with the letter G?",{"text":121,"@type":113},"No. Some codes start with G (movement), while others use different letters such as M for behavior; line numbering may use N but “N code” is not a standard concept.","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},732678,1795381707,{"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":81,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":144,"preview_page_count":19,"preview_urls":145},962088006270,"https://ap-avatar.wpscdn.com/davatar_085a072bc5b1113ac321206ff7593b45","An Introduction to G Codes  \nThomas Allsup September 2011  \nPROPRIETARY  \nMisunderstanding  \n• I hope no one is disappointed but this isnot a discussion of the Gräfenberg Spot.  \n• Be careful when you research the G-spot at work.  \n– Mother will not be pleased!  \n• This talk is about “G Codes” 􀀭  \nPROPRIETARY  \nWhy Do I Know Any of This  \n• In 1987, I was asked to design a special cam tobe driven by a step motor with very specific maximum acceleration and deceleration.  \n• I wrote a QuickBasic program to convert the four equations into the cam shape and the cam follower position and eventually into DXF for import into CAD.  \n• Upon showing the machine shop what I had, the CNC programmer asked me to change my converter program from DXF or G code.  \n• The rest is history. PROPRIETARY  \nMax NC 15  \nPurchased 2007  \nPROPRIETARY  \nTormach  \nPROPRIETARY  \nNumerical Control (NC) Defined  \n• Electronics Industries Association (EIA) standard defined as “a system in which actions are controlled by direct insertion of numerical data at some point.”……machines controlled by electronic systems designed to accept numerical data and other instructions usually in a coded form.  \nPROPRIETARY  \nSecond Misunderstanding  \n• G Code is not a programming language.  \n• G Codes are directives.  \n• G Codes tell computer numerical control devices how to move and behave.  \nPROPRIETARY  \nThird Misunderstanding  \n• Not all G codes start with G.  \n– The codes that do start with G tell the machine where to “Go”.  \n• Some G codes start with M.  \n– The codes that start with M tell the machine how to behave.  \n• There is no such thing as a “N code”.  \n– Lines can begin with N and a number to  \ndesignate the line number.  \nPROPRIETARY   \nSample Program  \n(NC PROG. NAME: C:\\MAXNC\\WRENCH.t)(SET X AND Y AT CENTER OF MATERIAL)(MATERIAL: ALUMINUM 1/8 THK. * 1.83 * 6 .22) G90G80G40G00G20  \nM3S3000F2.00 G43H1M08 G00X-1.9749Y1.1409 G00Z0.1000 G41D6 G01Z-0.0650 G01X-1.4456Y0.5675 G01X2.8842Y0.8750  \nG02X2.8842Y0.4425I0.0002J-0.2162 G01X2.2945Y0.4425  \nG01X2.8842Y-0.4425  \nG02X2.8842Y-0.8750I-0.0000J-0.2163 G01X2.0918Y-0.8745  \nG01X-2.5126Y-0.5675  \nG02X-2.5126Y0.5675I0.0001J0.5675  \nG00Z1.0000 G40X-1.0937Y0.5675 G00X-1.9749Y1.1409 G00Z0.1000 G41D6 G01Z-0.1300 G01X-1.4456Y0.5675  \nG02X2.8842Y0.4425I0.0002J-0.2162 G01X2.2945Y0.4425  \nG02X2.8842Y-0.8750I-0.0000J-0.2163 G01X2.0918Y-0.8745  \nG02X-2.5126Y0.5675I0.0001J0.5675 G01X-1.0937Y0.5675  \nG00Z1.0000 G40X-1.0937Y0.5675 M09  \nG49  \nM01 M30  \nPROPRIETARY  \nCommon G Codes  \n• G00 – Rapid positioning in mutual directions (X,Y,Z,A,B)  \n• G01 – Linear Interpolation  \n– Needs a feed rate command to execute (F)  \n• G02 – Circular Interpolation Motion CW  \n– R value or I and J center point values of circle  \n• Full arc or quadrant input  \n• G03-Circular Interpolation Motion CCW  \nPROPRIETARY","cbCaiom6GKrSp1fH","https://ap.wps.com/l/cbCaiom6GKrSp1fH","pdf",859508,32,"English","# An Introduction to G Codes\n## Misunderstanding\n## Why Do I Know Any of This\n## Numerical Control (NC) Defined\n## Second Misunderstanding\n## Third Misunderstanding\n## Sample Program\n## Common G Codes","[{\"question\":\"Are G Codes a programming language?\",\"answer\":\"No. G Codes are directives that tell CNC devices how to move and behave.\"},{\"question\":\"What do G codes and M codes control?\",\"answer\":\"G codes determine movement behavior (how the machine “Go” moves), while M codes control machine behavior beyond motion.\"},{\"question\":\"Do G codes always start with the letter G?\",\"answer\":\"No. Some codes start with G (movement), while others use different letters such as M for behavior; line numbering may use N but “N code” is not a standard concept.\"}]","An Introduction to G Codes - G Codes - What They Are, Common Codes and a Sample Program | PDF",81,[146,150,153,157],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/c82113c77e5b8a815e6052e45205cd13.webp",983,736,{"page_no":14,"url":151,"width":152,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/0a989f2c17aaa3ce051d1b569e0c33c5.webp",982,{"page_no":81,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/c4afbb1594c2b96736d6bf0fc23a0bb2.webp",981,735,{"page_no":19,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/7b4d72b401c4b04dacd7726e89286cbb.webp",980,734,{"list":162,"token":66},[163,169,175,181,187,193,199,205,211,217],{"doc_id":164,"doc_title":165,"file_type":137,"home_preview_img_url":166,"slug":167,"view_count":19,"category_name":30,"create_tm":168},668980,"centroid_G_and_M_codes - Chapter 12 - CNC Program Codes: G-codes","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229987781956/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110079&Signature=uAaywG%2BGaGl4M9N8FWskbS2Eae8%3D","centroid_g_and_m_codes-chapter-12-cnc-program-codes-g-codes",1793522071,{"doc_id":170,"doc_title":171,"file_type":137,"home_preview_img_url":172,"slug":173,"view_count":19,"category_name":30,"create_tm":174},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=1796110079&Signature=mVfzYtcXGXBtQ26B0notlciZ4lI%3D","haas-vf-2-programming-workbook-programming-january-2005",1795415153,{"doc_id":176,"doc_title":177,"file_type":137,"home_preview_img_url":178,"slug":179,"view_count":81,"category_name":30,"create_tm":180},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=1796110079&Signature=IUjkIyjmV4qFGJ48X4lGaWlmdDc%3D","centroid-lathe-g-codes-chapter-11",1795381900,{"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=1796110079&Signature=5d%2FEGgBprCjV2hik2K%2FiKwEBxKA%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":34,"category_name":30,"create_tm":192},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=1796110079&Signature=D1Ta%2FF4qdgOOqcCxJGmEjsj6nVw%3D","drufelcnc-g-code-manual",1794450279,{"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},732696,"PART PROGRAMMING - INTRODUCTION","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031778025/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110079&Signature=Xx1%2BpnrqUnHggtB868Xb%2BHcbkUs%3D","part-programming-introduction",1795381745,{"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},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=1796110079&Signature=ZG2gwsspKB0akLg%2Fen6vNwnNOmA%3D","millingmachine_example-examples-manual-mill-model",1792811844,{"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},732775,"COMPUTER NUMERICAL CONTROL IP 710","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031411748/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110079&Signature=xEtnD6Vg7ma4W61i%2FmbNdmxKjDM%3D","computer-numerical-control-ip-710",1795382253,{"doc_id":212,"doc_title":213,"file_type":137,"home_preview_img_url":214,"slug":215,"view_count":19,"category_name":30,"create_tm":216},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=1796110079&Signature=W0Si8oTuujO4TmBBZHUQR7zIiqA%3D","a2mc-nc-code-definitions-technical-reference",1794450288,{"doc_id":218,"doc_title":219,"file_type":137,"home_preview_img_url":220,"slug":221,"view_count":81,"category_name":30,"create_tm":222},732694,"G and M Programming for CNC Milling Machines - G and M programming manual","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031410410/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110079&Signature=zf0ykJnsVTW3Q6i6whq%2FN%2B0V7QI%3D","g-and-m-programming-for-cnc-milling-machines-g-and-m-programming-manual",1795381742]