[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-698250-105":3,"detail-sidebar-cat-0-en-105":72,"doc-detail-698250-en":122,"doc-similar-698250":157},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":65,"head_meta":67,"extra_data":69,"updated_unix":71},105,"en","machine-tool-pocket-reference-guide-tool-guide-m-codes-g-code-addresses","Machine tool pocket reference guide - Tool guide - M-codes & G-code addresses","","Machine tool pocket reference guide (September 2014, Issue 1:0) provides quick-reference listings for CNC machine programming. It summarizes typical NC M-codes for milling machines and lathes, including spindle rotation, coolant control, tool changes, program stop/end, and various machine functions. It also catalogs common G-code addresses for lathes and mills, covering motion, interpolation, thread cutting, tool compensation, offsets, and coordinate/reference returns, plus calibration and inspection related references.",{"@graph":14,"@context":64},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/machine-tool-pocket-reference-guide-tool-guide-m-codes-g-code-addresses/698250/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/machine-tool-pocket-reference-guide-tool-guide-m-codes-g-code-addresses/698250.png","ImageObject",300,407,{"name":42,"@type":43},"AfterMidnight","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-14","2026-11-12",true,{"@type":52,"interactionType":53,"userInteractionCount":30},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58],{"name":59,"@type":60,"acceptedAnswer":61},"Does the guide mention any specific programming example context?","Question",{"text":62,"@type":63},"Yes. It notes that programming examples are for Renishaw macros for Fanuc-like CNCs, indicating the macros’ target control environment.","Answer","https://schema.org",{"og:url":32,"og:type":66,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":68,"canonical":32},"index,follow",{"doc_id":70,"site_id":7},698250,1794450286,{"code":4,"msg":73,"data":74},"success",[75,79,83,87,92,96,101,106,111,114,118],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":76,"show_sort_weight":77,"slug":78},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":80,"show_sort_weight":81,"slug":82},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":84,"show_sort_weight":85,"slug":86},"Exam",70,"exam",{"id":88,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},5,"Comic",60,"comic",{"id":93,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":94,"slug":95},6,50,"technology",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},7,"Healthcare",40,"healthcare",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":103,"show_sort_weight":104,"slug":105},8,"Research & Report",30,"research-report",{"id":107,"doc_module":4,"doc_module_name":25,"category_name":108,"show_sort_weight":109,"slug":110},9,"Religion & Spirituality",20,"religion-spirituality",{"id":109,"doc_module":4,"doc_module_name":25,"category_name":112,"show_sort_weight":109,"slug":113},"World Cup","world-cup",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":115,"slug":117},10,"Lifestyle","lifestyle",{"id":119,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":88,"slug":121},19,"General","general",{"code":4,"msg":73,"data":123},{"doc_id":70,"user_id":124,"nickname":42,"user_avatar":125,"doc_module":4,"category_id":93,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":126,"file_id":127,"file_url":128,"file_type":129,"file_size":130,"view_count":30,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":94,"language":131,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":132,"faqs":133,"seo_title":134,"seo_description":12,"update_tm":71,"read_time":135,"preview_page_count":88,"preview_urls":136},962090896061,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","Machine tool pocket reference guide  \nDate: September 2014  \nIssue: 1:0  \nContents  \nM-codes ........................................ 3  \nG-code addresses for lathes ........................................ 5  \nG-code addresses for mills ........................................ 7  \nCalibration methods ........................................ 10  \nSpindle probe calibration ........................................ 11  \nInspection Plus software ........................................ 12  \nTool setting calibration ........................................ 20  \nRotating tool setting software ........................................ 21  \nInspection Plus legend ........................................ 23  \nTool settings legend ........................................ 25  \nStandard drill sizes ........................................ 26  \nTapping data ........................................ 33  \nBritish Standard ........................................ 39  \nConversion factors ........................................ 41  \nHoles in jig boring ........................................ 43  \nNotes ........................................ 48  \nNote: Programming examples are for Renishaw macros for Fanuc like CNCs  \nM-codes  \nTypical NC M-codes for milling machines  \n\n| M00 | Program stop |\n| --- | --- |\n| M01 | Optional stop |\n| M02 | Program end |\n| M03 | Spindle CW rotation |\n| M04 | Spindle CCW rotation |\n| M05 | Spindle stop |\n| M06 | Automatic tool change |\n| M07 | Through tool coolant |\n| M08 | Coolant on |\n| M09 | Coolant off |\n| M13 | Spindle CW & coolant on |\n| M14 | Spindle CCW & coolant on |\n| M19 | Main-spindle orientation |\n| M30 | Program end & rewind |\n| M54 | Parts count |\n| M98 | Sub-program call |\n| M99 | End of sub-program |\n\n* M-codes may vary from machine to machine  \nM-codes  \nTypical NC M-codes for lathes  \nM00 Program stop M01 Optional stop M02 Program end  \nM03 Main-spindle forward M04 Main-spindle reverse  \nM05 Main-spindle stop  \nM07 Through tool coolant  \nM08 Coolant on  \nM09 Coolant off  \nM10 Parts catcher advance  \nM11 Parts catcher retract  \nM13 Spindle CW & coolant on M14 Spindle CCW & coolant off M17 Machine lock act  \nM18 Machine lock cancel  \nM19 Main-spindle orientation  \nM30 Program end &  \nrewind M31 Interlock by-pass  \n(SPDL & T/S) M40 Gear change neutral  \nM41 Gear change low  \nM42 Gear change middle  \nM43 Gear change high  \nM50 Bar feeder command  \nM54 Parts count  \nM65 Main-SPDL & coolant off M68 Main-chuck clamp  \nM69 Main-chuck unclamp  \nTypical G-code addresses for lathes  \n\n| G00 | Rapid linear\u003Cbr>positioning | G31 | Skip cutting |\n| --- | --- | --- | --- |\n|  |  | G33 | Thread cutting |\n| G01 | Linear feed\u003Cbr>interpolation |  |  |\n|  |  | G34 | Variable lead thread cutting |\n| G02 | CW circular\u003Cbr>interpolation |  |  |\n|  |  | G36 | Automatic tool compensation X |\n| G03 | CCW circular\u003Cbr>interpolation |  |  |\n|  |  | G37 | Automatic tool\u003Cbr>compensation Z |\n| G04 | Dwell |  |  |\n|  |  | G40 | Tool nose radius compensation cancel |\n| G07 | Hypothetical axis\u003Cbr>interpolation, sine curve |  |  |\n|  |  | G41 | Tool nose radius\u003Cbr>compensation left |\n| G09 | Exact stop |  |  |\n|  |  | G42 | Tool nose radius compensation right |\n| G10 | Offset value setting |  |  |\n| G20 | Input inches | G50 | Maximum spindle speed set |\n| G21 | Input in millimeters |  |  |\n|  |  | G65 | User macro simple call |\n| G22 | Stored stroke limit on |  |  |\n| G23 | Stored stroke limit off |  |  |\n|  |  | G66 | User macro modal call |\n| G27 | Reference point\u003Cbr>return check |  |  |\n|  |  | G67 | User macro modal call cancel |\n| G28 | Return to reference point |  |  |\n|  |  | G68 | Mirror image for\u003Cbr>double turrets on |\n| G29 | Return from\u003Cbr>reference point |  |  |\n|  |  | G69 | Mirror image for\u003Cbr>double turrets off |\n| G30 | Return to 2nd, 3rd & 4th reference point |  |  |\n|  |  | G70 | Finishing cycle |\n|  |  |  |  |\n|  |  |  |  |\n\nTypical G-code addresses for lathes  \n\n| G71 | Stock removal, turning |\n| --- | --- |\n| G7","cbCaim60qeVC44Tu","https://ap.wps.com/l/cbCaim60qeVC44Tu","pdf",1465447,"English","# M-codes\n## Typical NC M-codes for milling machines\n## Typical NC M-codes for lathes\n# G-code addresses for lathes\n# G-code addresses for mills\n# Calibration methods\n# Spindle probe calibration\n# Inspection Plus software\n# Tool setting calibration\n## Rotating tool setting software\n# Inspection Plus legend\n# Tool settings legend\n# Standard drill sizes\n# Tapping data\n# British Standard\n# Conversion factors\n# Holes in jig boring\n# Notes","[{\"question\":\"Does the guide mention any specific programming example context?\",\"answer\":\"Yes. It notes that programming examples are for Renishaw macros for Fanuc-like CNCs, indicating the macros’ target control environment.\"}]","Machine tool pocket reference guide - Tool guide - M-codes & G-code addresses | PDF",126,[137,141,145,149,153],{"page_no":22,"url":138,"width":139,"height":140},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/3c52ed72b5d0dab3de46cda905e43e37.webp",983,1415,{"page_no":26,"url":142,"width":143,"height":144},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/82a4d6d360423217fe4afb39c57d437a.webp",982,1414,{"page_no":30,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/69e164e62e58c68f62bd41ad003fb027.webp",981,1412,{"page_no":33,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/380aa782bb5dbd32894fae092ce21100.webp",980,1411,{"page_no":88,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/42b5bbc6f31c77c6d76971bf1d3075c1.webp",979,1409,{"list":158,"token":11},[159,165,171,177,184,190,196,202,208,215],{"doc_id":160,"doc_title":161,"file_type":129,"home_preview_img_url":162,"slug":163,"view_count":30,"category_name":29,"create_tm":164},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=1796108879&Signature=kDrzSbI2e7hR8Syk%2F15uBgXRqqw%3D","g-and-m-programming-for-cnc-milling-machines-g-and-m-programming-manual",1795381742,{"doc_id":166,"doc_title":167,"file_type":129,"home_preview_img_url":168,"slug":169,"view_count":88,"category_name":29,"create_tm":170},693662,"GenProdsCat09web - CINCINNATI MACHINES Grinding, Milling, Drilling, Machining Centers, Boring Mills/Die/Mold Centers, Turning","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230007411445/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108879&Signature=tcs%2BFV28dSrdW4g5qzbNjB8in5Y%3D","genprodscat09web-cincinnati-machines-grinding-milling-drilling-machining-centers-boring-millsdiemold-centers-turning",1794341099,{"doc_id":172,"doc_title":173,"file_type":129,"home_preview_img_url":174,"slug":175,"view_count":30,"category_name":29,"create_tm":176},732723,"Century Star Milling CNC System Programming Guide - v3.3 - December, 2007","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031778488/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108879&Signature=i%2FbV5VyMKNgOkz17ueD3PCGyLbA%3D","century-star-milling-cnc-system-programming-guide-v33-december-2007",1795381902,{"doc_id":178,"doc_title":179,"file_type":129,"home_preview_img_url":180,"slug":181,"view_count":182,"category_name":29,"create_tm":183},651398,"cnc_turning_courseware - Section 1 - CNC Lathe Basics","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229973494802/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108879&Signature=2Voxj1jroaobT2sE%2FWqYpTFAgLs%3D","cnc_turning_courseware-section-1-cnc-lathe-basics",12,1792873861,{"doc_id":185,"doc_title":186,"file_type":129,"home_preview_img_url":187,"slug":188,"view_count":33,"category_name":29,"create_tm":189},693682,"CNC GUIDE - ISSUE No-6 - ST-10 Turning Centre","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230007411850/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108879&Signature=KLLZm6G3JM2rqBJCrGgOD9mR33g%3D","cnc-guide-issue-no-6-st-10-turning-centre",1794341192,{"doc_id":191,"doc_title":192,"file_type":129,"home_preview_img_url":193,"slug":194,"view_count":88,"category_name":29,"create_tm":195},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=1796108879&Signature=%2FiT7hQitpwlAkY4aZ%2BDmhux4dI4%3D","study-of-g-codes-and-m-codes-used-in-cnc-lathe-hmt-cnc-t70-cnc-machining-centre-codes",1795381890,{"doc_id":197,"doc_title":198,"file_type":129,"home_preview_img_url":199,"slug":200,"view_count":107,"category_name":29,"create_tm":201},677027,"NL SERIES - Rigid & Precise CNC Lathe","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229993414561/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108879&Signature=u%2FQfBwwQCCRW%2B1gvfov67g0hceo%3D","nl-series-rigid-precise-cnc-lathe",1793777358,{"doc_id":203,"doc_title":204,"file_type":129,"home_preview_img_url":205,"slug":206,"view_count":33,"category_name":29,"create_tm":207},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=1796108879&Signature=sutjeeqGd2iwI1%2F%2FjqaJp7zw6GI%3D","programming-workbook-haas-automation-inc-cnc-milling-machine-codes",1795381885,{"doc_id":209,"doc_title":210,"file_type":129,"home_preview_img_url":211,"slug":212,"view_count":213,"category_name":29,"create_tm":214},646544,"The Basics of CNC Machining Programming (for Lathe)","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229971941760/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108879&Signature=wOP6%2FbRdOP5SozJGtZI9KSL7V70%3D","the-basics-of-cnc-machining-programming-for-lathe",14,1792763849,{"doc_id":216,"doc_title":217,"file_type":129,"home_preview_img_url":218,"slug":219,"view_count":88,"category_name":29,"create_tm":220},732737,"HAAS MILL PROGRAMMING - Programming Manual - 2025","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031410955/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108879&Signature=sAJKzswgiukIenYQWRUxizMyQIA%3D","haas-mill-programming-programming-manual-2025",1795381975]