[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-732685-105":59,"doc-detail-732685-en":130,"doc-similar-732685":169},{"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","mach4-mill-gcode-manual-version-10","Mach4 Mill GCode Manual - Version 1.0","","Mach4 CNC Controller mill programming guide covering how G Code functions as the CNC machine’s interpreted language for motion and tasks. Explains core reading conventions such as tool movement relative to the workpiece and axis direction using the right-hand rule. Provides a glossary of essential G Code terms (block, canned cycle, feedrate, modal behavior) and defines common letter-address words like G, M, X/Y/Z and parameters such as F, S, P, plus sequence numbers.",{"@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/mach4-mill-gcode-manual-version-10/732685/",{"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/mach4-mill-gcode-manual-version-10/732685.png","ImageObject",300,407,{"name":92,"@type":93},"Aran","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},"What does G Code represent in Mach4 CNC programming?","Question",{"text":112,"@type":113},"G Code is the programming language interpreted by CNC machines to create motion and other machining tasks. It follows an industry-adopted standard while still allowing machine-to-machine variation.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How does the manual describe tool movement and axis directions?",{"text":117,"@type":113},"Machine motion is described as tool movement relative to the workpiece. Axis directions follow the right-hand rule, as referenced by Figure A.",{"name":119,"@type":110,"acceptedAnswer":120},"What is a “safe start up block” and why is it used?",{"text":121,"@type":113},"It is the initial block of code at the start of a program to disable or set key modes to common defaults. The manual recommends using it at the start and also before or immediately after safe transitions.","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},732685,1795381723,{"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":26,"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":29,"preview_urls":144},137455076865,"https://ap-avatar.wpscdn.com/davatar_29158cc5080c5b710cf443261637dec0","Mach4 CNC Controller Mill Programming Guide  \nVersion 1.0  \nCopyright © 2014 Newfangled Solutions, Artsoft USA, All Rights Reserved  \nThe following are registered trademarks of Microsoft Corporation: Microsoft, Windows. Any other trademarks used in this manual are the property of the respective trademark holder.  \nTable of Contents  \nChapter 1: Introduction ................................................................................................................................ 2  \nGlossary..................................................................................................................................................... 3  \nFormat....................................................................................................................................................... 4  \nChapter 2: G Code List................................................................................................................................... 5  \nG Code Descriptions and Examples........................................................................................................... 7  \nChapter 3: Canned Cycles ........................................................................................................................... 33  \nDrilling ..................................................................................................................................................... 35  \nTapping.................................................................................................................................................... 40  \nBoring ...................................................................................................................................................... 43  \nChapter 4: Cutter Compensation ................................................................................................................ 50  \nChapter 5: M Code List................................................................................................................................ 56  \nM Code Descriptions ............................................................................................................................... 56  \nChapter 1: Introduction  \nG Code is a special programming language that is interpreted by Computer Numerical Control (CNC) machines to create motion and other tasks. It is a language that can be quite complex at times and can vary from machine to machine. The basics, however, are much simpler than it first appears and for the most part follows an industry adopted standard. Mach4 has made a large leap closer to this standard.  \nAn important point to remember when reading this manual: In describing motion of a machine it will always be described as tool movement relative to the work piece. In many machines the work piece will move in more axes than the tool; however the program will always define tool movement around the work piece. Axes directions follow the right hand rule, see figure A.  \nFigure A: Right hand rule  \nGlossary  \n\n| Block | A single line of G Code |\n| --- | --- |\n| Canned Cycle | Complex cycle defined by a single block of code |\n| Dwell | Program pause with a duration defined by “P” in seconds |\n| EOB | End of block. Required at the end of every block of G Code. In Mach4 this is a carriage return |\n| Feedrate | Velocity, set by F, at which an axis will move |\n| Group | Collection of G codes that control the same function or mode, i.e. G90 and G91 positioning modes |\n| Modal | Active until a code from the same group is called |\n| Normal | A line perpendicular to a plane, pointing in the positive direction. |\n| Origin | Point in a coordinate system where X, Y and Z are zero |\n| RPM | Revolutions per minute |\n| UPM | Units per minute (inches, millimeters, degrees, etc) |\n| Word | A single word of G Code is a letter followed by a number. G01, X1 .0, etc. are words |\n\n\n| G | Preparatory function, G followed by a numerical code, specifies mac","cbCaiiiXSWLt3Hy8","https://ap.wps.com/l/cbCaiiiXSWLt3Hy8","pdf",990924,"English","# Chapter 1: Introduction\n## Glossary\n## Format\n# Chapter 2: G Code List\n## G Code Descriptions and Examples\n# Chapter 3: Canned Cycles\n## Drilling\n## Tapping\n## Boring\n# Chapter 4: Cutter Compensation\n# Chapter 5: M Code List\n## M Code Descriptions","[{\"question\":\"What does G Code represent in Mach4 CNC programming?\",\"answer\":\"G Code is the programming language interpreted by CNC machines to create motion and other machining tasks. It follows an industry-adopted standard while still allowing machine-to-machine variation.\"},{\"question\":\"How does the manual describe tool movement and axis directions?\",\"answer\":\"Machine motion is described as tool movement relative to the workpiece. Axis directions follow the right-hand rule, as referenced by Figure A.\"},{\"question\":\"What is a “safe start up block” and why is it used?\",\"answer\":\"It is the initial block of code at the start of a program to disable or set key modes to common defaults. The manual recommends using it at the start and also before or immediately after safe transitions.\"}]","Mach4 Mill GCode Manual - Version 1.0 | PDF",151,[145,149,153,157,161,165],{"page_no":8,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/c96f4e0c7b111a695d8aef5c2b067e5e.webp",983,1272,{"page_no":14,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/9cb01e0b19341ef66dfeecbb8bc76a7c.webp",982,1270,{"page_no":81,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/92154c8094705b3629c6faba3881d486.webp",981,1269,{"page_no":19,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/bf8bce69956f0bdb85bfe1bafe5d97ef.webp",980,1268,{"page_no":24,"url":162,"width":163,"height":164},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/dad37c68607eda38bf227b78c5c17fbb.webp",979,1267,{"page_no":29,"url":166,"width":167,"height":168},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/524a93407d1e21cbce7bf2e16a748603.webp",978,1265,{"list":170,"token":66},[171,177,183,189,195,201,207,213,219,225],{"doc_id":172,"doc_title":173,"file_type":137,"home_preview_img_url":174,"slug":175,"view_count":19,"category_name":30,"create_tm":176},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=1796110919&Signature=qmSFxFNiEJVkB5geRTcaMJiFDPA%3D","g-codes-list-mycnc-g-code-reference",1795381934,{"doc_id":178,"doc_title":179,"file_type":137,"home_preview_img_url":180,"slug":181,"view_count":19,"category_name":30,"create_tm":182},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=1796110919&Signature=veCymEzhrSCSmjsbSH3QtCP8flY%3D","mach4-cnc-gcode-programming-mill-programming-guide-version-11-build-3775",1795382204,{"doc_id":184,"doc_title":185,"file_type":137,"home_preview_img_url":186,"slug":187,"view_count":44,"category_name":30,"create_tm":188},664527,"CNC FANUC Series 0i-TF","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229982602142/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=sMlbyFUj7Go%2FX%2F47EIjyGZGJ08U%3D","cnc-fanuc-series-0i-tf",1793258328,{"doc_id":190,"doc_title":191,"file_type":137,"home_preview_img_url":192,"slug":193,"view_count":19,"category_name":30,"create_tm":194},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=1796110919&Signature=%2BuuImLZxxLnOiPZWxIbdhmlYVAI%3D","part-programming-introduction",1795381745,{"doc_id":196,"doc_title":197,"file_type":137,"home_preview_img_url":198,"slug":199,"view_count":19,"category_name":30,"create_tm":200},732677,"G Code List for ServoWorks™ CNC Products","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031410350/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=oKsQxT56dV00O7ZWxNBlpDBjFNk%3D","g-code-list-for-servoworks-cnc-products",1795381706,{"doc_id":202,"doc_title":203,"file_type":137,"home_preview_img_url":204,"slug":205,"view_count":81,"category_name":30,"create_tm":206},732681,"CNCCookbook’s G-Code Course - Volume 1 - G-Code Basics - Learn foundational concepts and machine-ready programming","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031777910/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=8JVAFqH3FO1s8V3%2Bu7HoWWKa1eM%3D","cnccookbooks-g-code-course-volume-1-g-code-basics-learn-foundational-concepts-and-machine-ready-programming",1795381714,{"doc_id":208,"doc_title":209,"file_type":137,"home_preview_img_url":210,"slug":211,"view_count":39,"category_name":30,"create_tm":212},662729,"The ultimate CNC machining guide - Introduction to CNC machining","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229981688989/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=A%2FzY0XJEC7s2ciEak%2BPk8ev8sKU%3D","the-ultimate-cnc-machining-guide-introduction-to-cnc-machining",1793222148,{"doc_id":214,"doc_title":215,"file_type":137,"home_preview_img_url":216,"slug":217,"view_count":19,"category_name":30,"create_tm":218},732688,"CHAPTER 12 - CNC Program Codes","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031777974/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=TYP5iAKKOw69gaYGcSDPvXllQQo%3D","chapter-12-cnc-program-codes",1795381730,{"doc_id":220,"doc_title":221,"file_type":137,"home_preview_img_url":222,"slug":223,"view_count":19,"category_name":30,"create_tm":224},732718,"Development of an Augmented Reality-Based G-Code Generator in a Virtual CNC Milling Simulation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031778458/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=i7UZQuSf76lmixQ5jNBXsEi4b%2FY%3D","development-of-an-augmented-reality-based-g-code-generator-in-a-virtual-cnc-milling-simulation",1795381893,{"doc_id":226,"doc_title":227,"file_type":137,"home_preview_img_url":228,"slug":229,"view_count":29,"category_name":30,"create_tm":230},646548,"Student CNC Guide - Operating and Programming Basics","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229971600634/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110919&Signature=qiIWQ8fKLrWVzI9W2AtFkwzp5wo%3D","student-cnc-guide-operating-and-programming-basics",1792763858]