[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-686026-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-686026-en":131,"doc-similar-686026":149},{"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":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","c101-sinumerik-handbook-g-codes-m-codes","C101 - SINUMERIK Handbook - G codes & M codes","","SINUMERIK G-code and M-code guide for Turning and Milling applications explains how to program Siemens control systems efficiently across basic and complex workpieces. It introduces preparatory functions (G) as geometric commands and miscellaneous functions (M) as machine-language controls for non-geometry operations such as coolant, spindle direction, and tool change. The document provides indexed coverage of major G-code and M-code listings with syntax examples and notes on applicability to multiple SINUMERIK controller families and axes.",{"@graph":14,"@context":73},[15,34,56],{"@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/c101-sinumerik-handbook-g-codes-m-codes/686026/",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/c101-sinumerik-handbook-g-codes-m-codes/686026.png","ImageObject",300,407,{"name":42,"@type":43},"SANS","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-29","2026-11-07",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",13,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What are G codes used for in SINUMERIK programming?","Question",{"text":63,"@type":64},"G codes are preparatory/geometry commands that instruct the machine where to move, how fast, and which path to follow, including geometry changes via G followed by a number.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"What are M codes used for in SINUMERIK programming?",{"text":68,"@type":64},"M codes are machine-language commands for non-geometry functions such as coolant on/off, spindle speed and direction, tool change, and pallet change.",{"name":70,"@type":61,"acceptedAnswer":71},"Are SINUMERIK M commands standardized across all machines?",{"text":72,"@type":64},"No. The document states that miscellaneous commands are machine manufacturer specific and advises contacting the machine manufacturer for details on M functions.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},686026,1794026972,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,105,110,115,120,123,127],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":103,"slug":104},6,50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":112,"show_sort_weight":113,"slug":114},8,"Research & Report",30,"research-report",{"id":116,"doc_module":4,"doc_module_name":25,"category_name":117,"show_sort_weight":118,"slug":119},9,"Religion & Spirituality",20,"religion-spirituality",{"id":118,"doc_module":4,"doc_module_name":25,"category_name":121,"show_sort_weight":118,"slug":122},"World Cup","world-cup",{"id":124,"doc_module":4,"doc_module_name":25,"category_name":125,"show_sort_weight":124,"slug":126},10,"Lifestyle","lifestyle",{"id":128,"doc_module":4,"doc_module_name":25,"category_name":129,"show_sort_weight":97,"slug":130},19,"General","general",{"code":4,"msg":82,"data":132},{"doc_id":79,"user_id":133,"nickname":42,"user_avatar":134,"doc_module":4,"category_id":102,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":97,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":80,"read_time":55,"preview_page_count":22,"preview_urls":144},962090760505,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d","C101  \nSINUMERIK HANDBOOK  \nG codes & M codes  \nThis document shows what are the G codes & M codes required for SINUMERIK programming in Turning and Milling applications.  \nHigher productivity with SINUMERIK  \nWhether it’s a basic part or a complex workpiece, the Siemens control system offers you a wealth of functionality with a very high degree of operator friendliness and manufacturing efficiency.  \n2  \nDescription of the document:  \nKnow all about the concept of G codes & M codes for effective programming.  \n• Preparatory functions (G) Overview of G codes  \n• Miscellaneous functions (M) Overview of M codes  \nApplicability:  \n• Technology  \n• SINUMERIK controllers  \n2 axis Turning, Turn-mill & Milling applications  \n802D, 810D, 840D, 808D, 828D, 840Dsl & SINUMERIK ONE  \nIndex  \nPreparatory functions 4  \n• G codes  \nMiscellaneous Functions 5  \n• M codes  \nContact us 5  \nSINUMERIK-G-code & M-codes on Turning  \nPreparatory codes / G codes  \nG stands for ‘Geometric code’. This code is used to instruct the machine where to move, how fast to move and which path to follow.  \nG-code is also known as the ‘Preparatory code’,“G” is followed by number which is a command to change the geometry.  \nList of Preparatory functions (G codes)  \n\n| Sl no | Functions | Syntax |\n| --- | --- | --- |\n| G00 | Rapid Traverse | G00 X_ Y_ Z_ |\n| G01 | Liner interpolation | G01 X_Y_Z_ F_ |\n| G02 | Circular interpolation clock wise | G02 X_ Z_ CR= |\n| G03 | Circular interpolation Counter clock wise | G03 X_ Y_ CR= |\n| G04 | Dwell Time in seconds | G04 F1 |\n| G09 | Exact stop for applied blocks only-Non modal | G00 G09 |\n| G17 | XY plane-Milling | G17 |\n| G18 | XZ plane-Turning | G18 |\n| G19 | YZ plane | G19 |\n| G33 | Thread cutting with constant lead | G33 X_ Z_K_SF=0 |\n| G40 | TNRC Cancel | G40 X_ Y_ Z_ |\n| G41 | TNRC left compensation | G41 X_ Y_Z_ |\n| G42 | TNRC right compensation | G42 X_ Y_ Z_ |\n| G54 to G57 | Settable offset/work offset | G54 |\n| G505 to G599 | Settable offset/work offset-option | G505 |\n| G60 | Exact stop-Modal | G0 G60 |\n| G64 | Continuous path mode | G0G64 |\n| G71 | Metric dimensions input | G71 X_ Y_ Z_ |\n| G70 | Inch dimensions input | G70 X_ Y_ Z_ |\n| G90 | Absolute dimensions | G90 X_ Y_ Z_ |\n| G91 | Incremental dimensions | G91 X_ Y_ Z_ |\n| G94 | Linear feedrate in mm/min | G94 X_ Y_ Z_ F250 |\n| G95 | Revolution feedrate in mm/rev | G95 X_ Z_F0 .2 |\n| G96 | Constant cutting speed on | LIMS=2000 G96 S150 M03 |\n|  | LIMS\u003Cbr>S150\u003Cbr>M03 | Limit for main spindle. Cutting speed mm/min spindle direction |\n| G97 | Constant cutting speed off | G97S1800M03 |\n| G110 | Pole specification relative to the last programmed set point position | G110 X_Z_RP_AP_ |\n|  |  | RP=Polar radius\u003Cbr>AP=Polar angle |\n| G111 | Pole specification relative to origin of current work piece coordinate system | G110 X_Z_RP_AP_ |\n| G112 | Pole specification relative to the last valid POLE | G110 X_Z_RP_AP_ |\n| G290 | Programming in Siemens mode | G290 |\n| G291 | Programming in ISO Mode | G291 |\n| G500 | Cancel the work offset-Modal | G0 G500 X0 Y0 Z0 |\n| G53 | Cancel the work offset-Non modal | G0 G53 X0 Y0 Z0 |\n\nMiscellaneous functions / M codes  \nM-code is Machine language code to activate miscellaneous functions.  \nM stands for ‘Machine codes’. This code is used for non-geometry machine functions like coolant on/off, spindle speed, tool change, pallet change etc.  \nList of Miscellaneous functions (M codes)  \nSl no  \n Functions  \n\n| M00 | Program stop |\n| --- | --- |\n| M01 | Optional stop |\n| M02 | Program end |\n| M03 | Spindle clockwise direction |\n| M04 | Spindle counter clockwise direction |\n| M05 | Spindle stop |\n| M06 | Tool change |\n| M17 | Subprogram end |\n| M19 OR SPOS=0 | Spindle orientation |\n| M30 | Main program end |\n\nNote: Miscellaneous commands are machine manufacturer specific. Contact your machine manufacturer for more details on M functions.  \nTo know more about SINUMERIK  \nEnrol for Application & Commissioning trainings  \n: [www.siemens.co.","cbCaioxA2q5D674F","https://ap.wps.com/l/cbCaioxA2q5D674F","pdf",2237119,"English","# Preparatory functions\n## G codes\n# Miscellaneous functions\n## M codes","[{\"question\":\"What are G codes used for in SINUMERIK programming?\",\"answer\":\"G codes are preparatory/geometry commands that instruct the machine where to move, how fast, and which path to follow, including geometry changes via G followed by a number.\"},{\"question\":\"What are M codes used for in SINUMERIK programming?\",\"answer\":\"M codes are machine-language commands for non-geometry functions such as coolant on/off, spindle speed and direction, tool change, and pallet change.\"},{\"question\":\"Are SINUMERIK M commands standardized across all machines?\",\"answer\":\"No. The document states that miscellaneous commands are machine manufacturer specific and advises contacting the machine manufacturer for details on M functions.\"}]","C101 - SINUMERIK Handbook - G codes & M codes | PDF",[145],{"page_no":22,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/83987e3437293de306277189c7153bd4.webp",983,1390,{"list":150,"token":11},[151,157,163,169,175,181,187,193,199,205],{"doc_id":152,"doc_title":153,"file_type":138,"home_preview_img_url":154,"slug":155,"view_count":30,"category_name":29,"create_tm":156},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":158,"doc_title":159,"file_type":138,"home_preview_img_url":160,"slug":161,"view_count":33,"category_name":29,"create_tm":162},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=1796108879&Signature=r2BFKJH4V6jdgWWEUJU146IxD0k%3D","g-and-m-programming-for-cnc-milling-lathes",1794026983,{"doc_id":164,"doc_title":165,"file_type":138,"home_preview_img_url":166,"slug":167,"view_count":30,"category_name":29,"create_tm":168},698250,"Machine tool pocket reference guide - Tool guide - M-codes & G-code addresses","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010258391/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108879&Signature=nRk6IjCoCtsXh%2FiPr%2FPpWomRyMg%3D","machine-tool-pocket-reference-guide-tool-guide-m-codes-g-code-addresses",1794450286,{"doc_id":170,"doc_title":171,"file_type":138,"home_preview_img_url":172,"slug":173,"view_count":97,"category_name":29,"create_tm":174},732710,"GE Fanuc Automation - Computer Numerical Control Products - Series 16 / 160 / 18 / 180– TB for Lathe - Operator's Manual","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031410691/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108879&Signature=QBUQcG8FtzU8ekRWF8Ul7a9qK6M%3D","ge-fanuc-automation-computer-numerical-control-products-series-16-160-18-180-tb-for-lathe-operators-manual",1795381849,{"doc_id":176,"doc_title":177,"file_type":138,"home_preview_img_url":178,"slug":179,"view_count":33,"category_name":29,"create_tm":180},732768,"SINUMERIK 840D sl G code programming - Programming Manual - Safety, Qualified Personnel, and External Programming Cycles","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031411651/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108879&Signature=d9F8JbUWn%2FYc4x6975pHhVqXer0%3D","sinumerik-840d-sl-g-code-programming-programming-manual-safety-qualified-personnel-and-external-programming-cycles",1795382209,{"doc_id":182,"doc_title":183,"file_type":138,"home_preview_img_url":184,"slug":185,"view_count":33,"category_name":29,"create_tm":186},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":188,"doc_title":189,"file_type":138,"home_preview_img_url":190,"slug":191,"view_count":97,"category_name":29,"create_tm":192},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":194,"doc_title":195,"file_type":138,"home_preview_img_url":196,"slug":197,"view_count":102,"category_name":29,"create_tm":198},671838,"Production of chess pieces - CNC turning machine and machining plans","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229988410718/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108879&Signature=enZ6Sp%2BYE80uQ%2F4qRKaGsd4srwI%3D","production-of-chess-pieces-cnc-turning-machine-and-machining-plans",1793581425,{"doc_id":200,"doc_title":201,"file_type":138,"home_preview_img_url":202,"slug":203,"view_count":33,"category_name":29,"create_tm":204},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=1796108879&Signature=ITAjDuhsbUuls8VPopHX4X3TqYc%3D","part-programming-introduction",1795381745,{"doc_id":206,"doc_title":207,"file_type":138,"home_preview_img_url":208,"slug":209,"view_count":30,"category_name":29,"create_tm":210},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]