[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-686030-105":59,"doc-detail-686030-en":130,"doc-similar-686030":191},{"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","g-and-m-programming-for-cnc-milling-lathes","G and M Programming for CNC Milling Lathes","","G and M programming manual for a Denford CNC lathe, providing practical guidance on writing and structuring part programs. Covers composition and organization of main and subprograms, numbering and saving conventions, block configuration, and core preparatory, movement, feed, and tool functions. Details supported G codes including rapid positioning, interpolation, circular motion, dwell, unit selection, reference point return, and tool compensation, plus key M-code miscellaneous functions, spindle speed control, and coordinate modes. Includes disclaimers, updates, and contact information.",{"@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/g-and-m-programming-for-cnc-milling-lathes/686030/",{"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/g-and-m-programming-for-cnc-milling-lathes/686030.png","ImageObject",300,407,{"name":92,"@type":93},"Indoniesian Boy","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-12","2026-11-07",true,{"@type":102,"interactionType":103,"userInteractionCount":19},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What is the purpose of this manual for CNC programming?","Question",{"text":112,"@type":113},"It provides information relating to G and M programming on a Denford CNC lathe, including how to structure programs and use supported codes.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"Which programming elements are covered in the basic programming section?",{"text":117,"@type":113},"It covers part program composition, main and sub program structure, program numbering and saving, block numbering and configuration, and core G and M code functions such as movement, feed, spindle speed, and tool compensation.",{"name":119,"@type":110,"acceptedAnswer":120},"Does the manual list all G and M codes supported by every Denford CNC machine or control software?",{"text":121,"@type":113},"No. It states that not all listed G and M codes are supported by every Denford CNC machine and/or control software.","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},686030,1794026983,{"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":19,"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":145,"preview_urls":146},962090760608,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","| Total Commitment to Education and Training WorldWide.\u003Cbr>G and M Programming forCNC Milling Lathes. |\n| --- |\n| Denford Limited reserves the right to alter any specifications and documentation without prior notice. No part of this manual or its accompanying documents may be reproduced or transmitted in any form or by any means, electronic or mechanical, for any\u003Cbr>purpose, without the express written permission of Denford Limited.\u003Cbr>All brands and products are trademarks or registered trademarks oftheir respective companies. |\n| . All rights reserved. |\n\nCopyright Denford Limited Version 1.05.01  \nContact Details  \nAddress: Denford Limited,  \nBirds Royd,  \nBrighouse,  \nWest Yorkshire,  \nHD6 1NB,  \nUK.  \nTelephone: General Enquiries +44 (0) 1484 712264 Customer Services +44 (0) 1484 722733  \nFax: +44 (0) 1484 722160  \ne-mail: for customer services and technical support contact,  \n[customer_services@denford.co.uk](customer_services@denford.co.uk)  \nAbout this Manual  \nUse: This manual provides information relating to G and M  \nprogramming on a Denford CNC lathe.  \nDisclaimer: We take great pride in the accuracy of information given in this manual, but due to nature of continuous development, be aware that software, hardware and operational specifications and features of this product can change without notice. No liability can be accepted by Denford Limited for loss, damage or injury caused by any errors in, oromissions from, the information supplied in this manual. Please note that not all the G and M codes listed in this guide are supported by every Denford CNC machine and/or control software.  \nScreenshots: Please note that any screenshots and diagrams are used for  \nexplanation purposes only. Language: This manual is written using European English.  \nContact: Any comments regarding this manual should be referred to the  \nfollowing e-mail address: [customer_services@denford.co.uk](customer_services@denford.co.uk)  \nUpdates: Any updates to this manual will be posted on the Denford website: [http://www.denford.com](http://www.denford.com)  \nContents  \nof  \nPreface.  \nContact Details ............................................................................................. 2  \nAbout this Manual ........................................................................................ 2  \nContents ....................................................................................................... 3  \nSection 1: Introduction. Introduction to G & M Code Programming ................................................... 6  \nWhat is CNC? .............................................................................................. 7  \nExample CNC Manufacturing Process ......................................................... 8  \nSection 2: Basic Programming. Composition of a Part Program .................................................................... 9  \nMain Program Structure ............................................................................... 10  \nSub Program Structure ................................................................................ 12  \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  \nThread Cutting ............................................................................................. 21  \nFeed Function","cbCaik9yYx8FsISa","https://ap.wps.com/l/cbCaik9yYx8FsISa","pdf",1997905,106,"English","# Preface\n# Contact Details\n# About this Manual\n# Contents\n# Section 1: Introduction\n## Introduction to G & M Code Programming\n## What is CNC?\n## Example CNC Manufacturing Process\n# Section 2: Basic Programming\n## Composition of a Part Program\n## Main Program Structure\n## Sub Program Structure\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## Thread Cutting\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# Section 3: G Codes (Preparatory Functions)\n## Introduction\n## List of G Codes supported by Denford CNC Controls\n## G00 (Rapid Positioning/Traverse)\n## G01 (Linear Interpolation)\n## G02 G03 (Circular Interpolation)\n## G04 (Dwell)\n## G20 G21 (Inch/Metric Data Input)\n## G28 (Reference Point Return)\n## G40 G41 G42 (Tool Nose Radius Compensation)\n## G50 (Multiple Command Functions)","[{\"question\":\"What is the purpose of this manual for CNC programming?\",\"answer\":\"It provides information relating to G and M programming on a Denford CNC lathe, including how to structure programs and use supported codes.\"},{\"question\":\"Which programming elements are covered in the basic programming section?\",\"answer\":\"It covers part program composition, main and sub program structure, program numbering and saving, block numbering and configuration, and core G and M code functions such as movement, feed, spindle speed, and tool compensation.\"},{\"question\":\"Does the manual list all G and M codes supported by every Denford CNC machine or control software?\",\"answer\":\"No. It states that not all listed G and M codes are supported by every Denford CNC machine and/or control software.\"}]","G and M Programming for CNC Milling Lathes | PDF",267,11,[147,151,155,159,163,167,171,175,179,183,187],{"page_no":8,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/61868906479cb2dc875ae7d469691406.webp",983,1391,{"page_no":14,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/fff0ff79cfaaf667fa0721bb840e0889.webp",982,1389,{"page_no":81,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/cd36a08d8f04d28de7935b942f0d2fa8.webp",981,1388,{"page_no":19,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/8e1d06543381b6c816dae4abdf32e0fe.webp",980,1386,{"page_no":24,"url":164,"width":165,"height":166},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/29ff74d5369f7f57661554f3cf9337a6.webp",979,1385,{"page_no":29,"url":168,"width":169,"height":170},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/22e9a989eb949d5cd0b780669439c0ac.webp",978,1383,{"page_no":34,"url":172,"width":173,"height":174},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/c80a8c0c242462e0c59294adfc14ac51.webp",977,1382,{"page_no":39,"url":176,"width":177,"height":178},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/ebebd593f2ea3b0805ab892bfd088d44.webp",976,1381,{"page_no":44,"url":180,"width":181,"height":182},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/9abe56d412d93943ace05aad30847cd1.webp",975,1379,{"page_no":52,"url":184,"width":185,"height":186},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/d8e04561abaf61927dbe8f407997542f.webp",974,1378,{"page_no":145,"url":188,"width":189,"height":190},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/25f48c1dc12aea4b5ddc830fe881cfd1.webp",973,1376,{"list":192,"token":66},[193,199,205,211,217,223,229,236,242,248],{"doc_id":194,"doc_title":195,"file_type":137,"home_preview_img_url":196,"slug":197,"view_count":24,"category_name":30,"create_tm":198},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=1796109419&Signature=DdIKrTAbATQmyrivQHSWnSLY6iw%3D","ge-fanuc-automation-computer-numerical-control-products-series-16-160-18-180-tb-for-lathe-operators-manual",1795381849,{"doc_id":200,"doc_title":201,"file_type":137,"home_preview_img_url":202,"slug":203,"view_count":24,"category_name":30,"create_tm":204},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=1796109419&Signature=QeePxgfLvOreMufdVkvh%2BO1KD7c%3D","study-of-g-codes-and-m-codes-used-in-cnc-lathe-hmt-cnc-t70-cnc-machining-centre-codes",1795381890,{"doc_id":206,"doc_title":207,"file_type":137,"home_preview_img_url":208,"slug":209,"view_count":81,"category_name":30,"create_tm":210},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=1796109419&Signature=XEIjuMP848H2DNZQOy68m4SnKrE%3D","g-and-m-programming-for-cnc-milling-machines-g-and-m-programming-manual",1795381742,{"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},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=1796109419&Signature=yEGpinmP6WtW2BHGHcJymXDUxmM%3D","mach4-cnc-gcode-programming-mill-programming-guide-version-11-build-3775",1795382204,{"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},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=1796109419&Signature=AGCt7FWk%2Fxj5KQgMeMB73LWVygk%3D","century-star-milling-cnc-system-programming-guide-v33-december-2007",1795381902,{"doc_id":224,"doc_title":225,"file_type":137,"home_preview_img_url":226,"slug":227,"view_count":19,"category_name":30,"create_tm":228},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=1796109419&Signature=pGoCtt%2FeZbRWsncoP%2B%2BNlcJpilQ%3D","programming-workbook-haas-automation-inc-cnc-milling-machine-codes",1795381885,{"doc_id":230,"doc_title":231,"file_type":137,"home_preview_img_url":232,"slug":233,"view_count":234,"category_name":30,"create_tm":235},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=1796109419&Signature=1jcNLAbxIFO0fpRwRIzxq%2FADxDU%3D","c101-sinumerik-handbook-g-codes-m-codes",13,1794026972,{"doc_id":237,"doc_title":238,"file_type":137,"home_preview_img_url":239,"slug":240,"view_count":19,"category_name":30,"create_tm":241},732714,"FANUC SYSTEM 6M-MODEL B - Operator's Manual","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031778406/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109419&Signature=OoRJoHjmacBC5Zq4L9Fn0qU62e8%3D","fanuc-system-6m-model-b-operators-manual",1795381881,{"doc_id":243,"doc_title":244,"file_type":137,"home_preview_img_url":245,"slug":246,"view_count":81,"category_name":30,"create_tm":247},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=1796109419&Signature=umKR8f81%2FP6bN0fGgx1t4V9LCxU%3D","machine-tool-pocket-reference-guide-tool-guide-m-codes-g-code-addresses",1794450286,{"doc_id":249,"doc_title":250,"file_type":137,"home_preview_img_url":251,"slug":252,"view_count":24,"category_name":30,"create_tm":253},732766,"LNC-MILL Programming Manual - V4.00 - Version 4.00","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031411638/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109419&Signature=74NLKYXELZEX%2FQiQ98YZ%2F1KRRlU%3D","lnc-mill-programming-manual-v400-version-400",1795382199]