[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-732694-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-732694-en":130,"doc-similar-732694":186},{"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":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","g-and-m-programming-for-cnc-milling-machines-g-and-m-programming-manual","G and M Programming for CNC Milling Machines - G and M programming manual","","Comprehensive manual for programming CNC milling machines using Denford controls, focusing on both part-program structure and the practical use of G and M codes. Covers basics such as main and sub program organization, block numbering, billet definition, saving programs, and key tool functions including tool offsets, compensation, and absolute versus incremental coordinates. Provides extensive reference content: preparatory G codes, movement, feed, spindle and tool operations, canned cycles, circular/rectangular pocket examples, and detailed M-code functions including spindle, coolant, vice, ATC, carousel, and door control.",{"@graph":14,"@context":72},[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/g-and-m-programming-for-cnc-milling-machines-g-and-m-programming-manual/732694/",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/g-and-m-programming-for-cnc-milling-machines-g-and-m-programming-manual/732694.png","ImageObject",300,407,{"name":42,"@type":43},"Aldword","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-26","2026-11-22",true,{"@type":52,"interactionType":53,"userInteractionCount":30},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"What topics does the manual cover under basic CNC programming?","Question",{"text":62,"@type":63},"It covers part-program composition, main and subprogram structures, program/block numbering and configuration, billet definition, and tutorials. It also introduces G codes and M codes alongside key machine functions like tool movement, feed, spindle speed, and tool compensation.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"Which G codes does the manual describe for preparatory functions and motion?",{"text":67,"@type":63},"It lists and explains preparatory G codes supported by Denford CNC controls, including rapid positioning/traverse (GØØ), linear interpolation (GØ1), circular interpolation (GØ2 & GØ3), dwell (GØ4), imperial/metric input (G2Ø & G21), and reference point return (G28).",{"name":69,"@type":60,"acceptedAnswer":70},"How are M codes used in machine operations according to the manual?",{"text":71,"@type":63},"The manual documents miscellaneous M codes such as program stop/reset, spindle forward/reverse/stop, automatic tool change, coolant on/off, vice open/close, spindle orientation, carousel rotation, and door open/close. These commands control runtime behavior of the CNC system.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},732694,1795381742,{"code":4,"msg":81,"data":82},"success",[83,87,91,95,100,104,109,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":84,"show_sort_weight":85,"slug":86},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":88,"show_sort_weight":89,"slug":90},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":92,"show_sort_weight":93,"slug":94},"Exam",70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":102,"slug":103},6,50,"technology",{"id":105,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},7,"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":81,"data":131},{"doc_id":78,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":101,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":30,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"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":79,"read_time":144,"preview_page_count":123,"preview_urls":145},2336478940917,"https://ap-avatar.wpscdn.com/davatar_6f874abed73319feea01a86fa6f0fab8","COMPUTERISED MACHINES AND SYSTEMS  \nG and M Programming for CNC Milling Machines  \nDenford Limited  \nBirds Royd  \nBrighouse  \nWest Yorkshire  \nEngland  \nHD6 1NB  \nTel: +44 (0) 1484 712264 G AND MFPaRG:RAM+MIG4FOR(N) C 1M4ILL8IN MCIE60- 1  \nEmail: [education@denford.co.uk](education@denford.co.uk)  \nNOTES .  \n\n|  |\n| --- |\n|  |\n|  |\n|  |\n|  |\n|  |\n|  |\n|  |\n|  |\n|  |\n|  |\n|  |\n|  |\n|  |\n|  |\n|  |\n|  |\n|  |\n|  |\n|  |\n|  |\n|  |\n|  |\n|  |\n|  |\n|  |\n\n2 - G AND M PROGRAMMING FOR CNC MILLING MACHINES  \nCONTENTS .  \nTITLE PAGE NO.  \nIntroduction .................................................. 6  \nWhat is CNC? ............................................... 7  \nBASIC PROGRAMMING. Composition of a Part Program ........................ 9  \nMain Program Structure ................................. 10  \nSub Program Structure .................................. 12  \nSub Program Commands - General Notes ......... 13  \nSub Program Repeat Command ....................... 14  \nBillet Definition ............................................. 15  \nProgram Numbering and Saving ...................... 16  \nProgram Block Numbering .............................. 17  \nBlock Configuration ....................................... 18  \nG Codes (Preparatory Functions) ..................... 18  \nTool Movement ............................................. 19  \nFeed Function ............................................... 21  \nM Codes (Miscellaneous Functions) ................. 21  \nSpindle Speed Function (Cutting Speed) ........... 22  \nTool Function ................................................ 23  \nTool Compensation (Tool Offset) ...................... 24  \nAbsolute and Incremental Co-ordinates ............ 25  \nOptional Block Skip ....................................... 26  \nTutorials and Comments ................................. 26  \nG AND M PROGRAMMING FOR CNC MILLING MACHINES - 3  \nCONTENTS .  \nTITLE PAGE NO.  \nG CODES - PREPARATORY FUNCTIONS. G Codes-Introduction ................................... 27  \nList of G Codes supported by Denford CNC Controls ................................... 29  \nGØØ (Rapid Positioning/Traverse) ..................... 30  \nGØ1 (Linear Interpolation) .............................. 32  \nGØ2 & GØ3 (Circular Interpolation) ................. 34  \nGØ4 (Dwell) ................................................. 40  \nG2Ø & G21 (Imperial /Metric Data Input) ..........41  \nG28 (Reference Point Return) ......................... 42  \nG4Ø, G41 & G42 (Cutter Compensation) ..........45  \nG73-G89 (Canned Cycles) .............................. 49  \nG73 (High SpeedPeck Drilling) ........................ 54  \nG74 (Counter Tapping) ................................... 55  \nG76 (Fine Boring) .......................................... 56  \nG8Ø (Canned Cycle, Cancel) ........................... 57  \nG81 (Drilling-Spot Boring) ............................. 58  \nG82 (Drilling-Counter Boring) ........................ 59  \nG83 (Deep Hole Peck Drilling) ......................... 60  \nG84 (Tapping) ............................................... 61  \nG85 (Boring) ................................................. 62  \nG86 (Boring) ................................................. 63  \nG87 (Back Boring) ......................................... 64  \nG89 (Boring) ................................................. 65  \nG Codes-Program Example Using Canned Cycles ...66  \nG9Ø (Absolute Zero Command) ...................... 67  \nG91 (Incremental Command) .......................... 67  \nG94 (Feed per Minute) ................................... 67  \nG95 (Feed per Revolution) .............................. 68  \nG98 (Return to Initial Level) ............................ 68  \nG99 (Return to R Point Level) .......................... 68  \nG17Ø-G173 (Circular/Rectangular Pocket) ........ 69  \nG17Ø & G171 (Circular Pocket Example A) ....... 70  \nG17Ø & G171 (Circular Pocket Example B) ....... 72  \nG17Ø & G171 (Circular Pocket Example C) ....... 74  \nG172 & G173 (Rectang","cbCaiegtUZvE8quP","https://ap.wps.com/l/cbCaiegtUZvE8quP","pdf",2108409,98,"English","# Introduction\n## What is CNC?\n# Basic Programming\n## Composition of a Part Program\n## Main Program Structure\n## Sub Program Structure\n## Sub Program Commands - General Notes\n## Sub Program Repeat Command\n## Billet Definition\n## Program Numbering and Saving\n## Program Block Numbering\n## Block Configuration\n## G Codes (Preparatory Functions)\n## Tool Movement\n## Feed Function\n## M Codes (Miscellaneous Functions)\n## Spindle Speed Function (Cutting Speed)\n## Tool Function\n## Tool Compensation (Tool Offset)\n## Absolute and Incremental Co-ordinates\n## Optional Block Skip\n## Tutorials and Comments\n# G Codes - Preparatory Functions\n## Introduction\n## List of G Codes supported by Denford CNC Controls\n## GØØ to GØ4\n## G2Ø/G21 and G28\n## G4Ø/G41/G42\n## G73-G89 (Canned Cycles)\n## Program Example Using Canned Cycles\n## G9Ø/G91 and Feed Rate Commands\n## Circular/Rectangular Pocket commands and examples\n# M Codes - Miscellaneous Functions\n## Introduction\n## List of M Codes Supported by Denford CNC Controls\n## MØØ to M39","[{\"question\":\"What topics does the manual cover under basic CNC programming?\",\"answer\":\"It covers part-program composition, main and subprogram structures, program/block numbering and configuration, billet definition, and tutorials. It also introduces G codes and M codes alongside key machine functions like tool movement, feed, spindle speed, and tool compensation.\"},{\"question\":\"Which G codes does the manual describe for preparatory functions and motion?\",\"answer\":\"It lists and explains preparatory G codes supported by Denford CNC controls, including rapid positioning/traverse (GØØ), linear interpolation (GØ1), circular interpolation (GØ2 \\u0026 GØ3), dwell (GØ4), imperial/metric input (G2Ø \\u0026 G21), and reference point return (G28).\"},{\"question\":\"How are M codes used in machine operations according to the manual?\",\"answer\":\"The manual documents miscellaneous M codes such as program stop/reset, spindle forward/reverse/stop, automatic tool change, coolant on/off, vice open/close, spindle orientation, carousel rotation, and door open/close. These commands control runtime behavior of the CNC system.\"}]","G and M Programming for CNC Milling Machines - G and M programming manual | PDF",247,[146,150,154,158,162,166,170,174,178,182],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/119542cddf1f9f0972f51babdeb143ed.webp",983,1390,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/8c15b82e760ae054d438336171d2bae0.webp",982,1389,{"page_no":30,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/621be2c8fd67665a3c972c055d24baf6.webp",981,1387,{"page_no":33,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/1c1e4eb091d18fd719cf826425ce70fd.webp",980,1386,{"page_no":96,"url":163,"width":164,"height":165},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/1ec824331e63d4d33d8233d28aae5ae8.webp",979,1385,{"page_no":101,"url":167,"width":168,"height":169},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/575ac81dd3a835e71492b14be627e879.webp",978,1383,{"page_no":105,"url":171,"width":172,"height":173},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/d47a8e99ad11fdc47bd6d14a74f5ea13.webp",977,1382,{"page_no":110,"url":175,"width":176,"height":177},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/a3383c15fc175b7e846a5ae4c40c374c.webp",976,1380,{"page_no":115,"url":179,"width":180,"height":181},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/11766efc5fd91989d128d9da4801a0f4.webp",975,1379,{"page_no":123,"url":183,"width":184,"height":185},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-22/4aafcf65b4105827259a47c18eb91f8f.webp",974,1378,{"list":187,"token":11},[188,194,200,207,213,219,226,232,238,244],{"doc_id":189,"doc_title":190,"file_type":137,"home_preview_img_url":191,"slug":192,"view_count":30,"category_name":29,"create_tm":193},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=1796109179&Signature=ZcWjC9lU4BDG4IsShlAzRWarG3E%3D","machine-tool-pocket-reference-guide-tool-guide-m-codes-g-code-addresses",1794450286,{"doc_id":195,"doc_title":196,"file_type":137,"home_preview_img_url":197,"slug":198,"view_count":96,"category_name":29,"create_tm":199},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=1796109179&Signature=bBfuS2WsNRiVrsTKStewSOx7e2c%3D","study-of-g-codes-and-m-codes-used-in-cnc-lathe-hmt-cnc-t70-cnc-machining-centre-codes",1795381890,{"doc_id":201,"doc_title":202,"file_type":137,"home_preview_img_url":203,"slug":204,"view_count":205,"category_name":29,"create_tm":206},686026,"C101 - SINUMERIK Handbook - G codes & M codes","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000357163/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109179&Signature=NODJYBQbSekBM78OfOwcDOrHfD0%3D","c101-sinumerik-handbook-g-codes-m-codes",13,1794026972,{"doc_id":208,"doc_title":209,"file_type":137,"home_preview_img_url":210,"slug":211,"view_count":33,"category_name":29,"create_tm":212},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=1796109179&Signature=VEyHwsnBoCQNxzdznRp0J5Kg5sE%3D","programming-workbook-haas-automation-inc-cnc-milling-machine-codes",1795381885,{"doc_id":214,"doc_title":215,"file_type":137,"home_preview_img_url":216,"slug":217,"view_count":33,"category_name":29,"create_tm":218},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=1796109179&Signature=ja8t8AAGcbomSaBNxmhFkxhhiLQ%3D","part-programming-introduction",1795381745,{"doc_id":220,"doc_title":221,"file_type":137,"home_preview_img_url":222,"slug":223,"view_count":224,"category_name":29,"create_tm":225},651400,"CNC 8055 M Examples Manual","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229973785359/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109179&Signature=706Vy0w0vMqPVUBG8B2ft1C%2BWvw%3D","cnc-8055-m-examples-manual",16,1792873863,{"doc_id":227,"doc_title":228,"file_type":137,"home_preview_img_url":229,"slug":230,"view_count":33,"category_name":29,"create_tm":231},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=1796109179&Signature=od5I8cqRSF4ee%2BfZQpTp%2F7SEI90%3D","g-and-m-programming-for-cnc-milling-lathes",1794026983,{"doc_id":233,"doc_title":234,"file_type":137,"home_preview_img_url":235,"slug":236,"view_count":30,"category_name":29,"create_tm":237},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=1796109179&Signature=rk4NHDQmZlEQVn0S5hyU5jspwtU%3D","century-star-milling-cnc-system-programming-guide-v33-december-2007",1795381902,{"doc_id":239,"doc_title":240,"file_type":137,"home_preview_img_url":241,"slug":242,"view_count":30,"category_name":29,"create_tm":243},732689,"M-and G-Code Sample Files - M and G Code Examples","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031777973/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109179&Signature=%2BHVjI4p1bxvegUpe3F8vy%2F0acwk%3D","m-and-g-code-sample-files-m-and-g-code-examples",1795381731,{"doc_id":245,"doc_title":246,"file_type":137,"home_preview_img_url":247,"slug":248,"view_count":33,"category_name":29,"create_tm":249},732765,"Machinists Handbook - G-Code Tutor","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031411639/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109179&Signature=HONFJV0wiqQW2%2FFiSHs67l5MdT4%3D","machinists-handbook-g-code-tutor",1795382198]