{"id":813,"date":"2026-10-13T16:11:49","date_gmt":"2026-10-13T08:11:49","guid":{"rendered":"https:\/\/www.ypmfg.com\/2026\/10\/13\/cnc-machine-codes-g-m-code-basics\/"},"modified":"2026-10-13T16:11:49","modified_gmt":"2026-10-13T08:11:49","slug":"cnc-machine-codes-g-m-code-basics","status":"publish","type":"post","link":"https:\/\/www.ypmfg.com\/ru\/2026\/10\/13\/cnc-machine-codes-g-m-code-basics\/","title":{"rendered":"CNC Machine Codes: G &amp; M Code Basics"},"content":{"rendered":"<div style=\"margin: 0 auto;padding: 20px;font-family: -apple-system, BlinkMacSystemFont, &#039;Segoe UI&#039;, Roboto, &#039;Helvetica Neue&#039;, Arial, sans-serif\">\n<p style=\"margin: 1.25em 0;line-height: 1.9;font-size: 16px;color: #222222;text-align: justify;letter-spacing: 0.02em\"><strong style=\"font-weight: 600;color: #b32050\">CNC machine codes<\/strong> are the numeric and alphabetic instructions that tell a computer-controlled machine tool exactly what to do. The two core families are <strong style=\"font-weight: 600;color: #b32050\">G-\u043a\u043e\u0434<\/strong> (geometry, feed rates, tool changes) and <strong style=\"font-weight: 600;color: #b32050\">M-code<\/strong> (auxiliary functions like coolant, spindle stop, program end). Every <strong style=\"font-weight: 600;color: #b32050\">\u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043d\u0430 \u0441\u0442\u0430\u043d\u043a\u0430\u0445 \u0441 \u0427\u041f\u0423<\/strong> operation on the shop floor is driven by these codes. If you are a buyer reviewing a program or specifying a part, understanding the basic structure helps you catch errors early and communicate more precisely with your machinist. The codes follow an ISO standard, but syntax varies between controllers, so always confirm dialect compatibility.<\/p>\n<p style=\"margin: 1.25em 0;line-height: 1.9;font-size: 16px;color: #222222;text-align: justify;letter-spacing: 0.02em\">Most buyers never read a line of G-code. Yet when a <strong style=\"font-weight: 600;color: #b32050\">\u0434\u0435\u0442\u0430\u043b\u0438, \u0438\u0437\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u043d\u0430 \u0441\u0442\u0430\u043d\u043a\u0430\u0445 \u0441 \u0427\u041f\u0423 \u043f\u043e \u0438\u043d\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0437\u0430\u043a\u0430\u0437\u0443<\/strong> drawing goes to production, the entire process hinges on how well those codes are written and verified. A single missing M-code can stop the spindle mid-cut. A wrong G-code sequence can shift a dimension past your <strong style=\"font-weight: 600;color: #b32050\">\u0434\u043e\u043f\u0443\u0441\u043a\u0438<\/strong> by microns. The risk is real, and it sits on the supplier&#8217;s programming side.<\/p>\n<h2 style=\"font-size: 20px;font-weight: 600;margin: 1.4em 0 0.5em;color: #b32050;line-height: 1.4\">What Are CNC Machine Codes?<\/h2>\n<p style=\"margin: 1.25em 0;line-height: 1.9;font-size: 16px;color: #222222;text-align: justify;letter-spacing: 0.02em\">G-code controls the motion of the cutting tool. It defines linear movement (G00, G01), circular interpolation (G02, G03), feed rates, and tool offsets. Each block in the program is a self-contained instruction the controller reads and executes.<\/p>\n<p style=\"margin: 1.25em 0;line-height: 1.9;font-size: 16px;color: #222222;text-align: justify;letter-spacing: 0.02em\">M-code handles everything the G-codes do not. This includes starting or stopping the spindle, turning coolant on or off, selecting tools, and signaling the end of a program. Without M-codes, the machine would position but never cut.<\/p>\n<p style=\"margin: 1.25em 0;line-height: 1.9;font-size: 16px;color: #222222;text-align: justify;letter-spacing: 0.02em\">Together, <strong style=\"font-weight: 600;color: #b32050\">\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0427\u041f\u0423<\/strong> combines both families into a complete instruction set. The result is a file\u2014often .nc, .tap, or .gcode\u2014that the controller reads line by line during each cycle.<\/p>\n<h2 style=\"font-size: 20px;font-weight: 600;margin: 1.4em 0 0.5em;color: #b32050;line-height: 1.4\">How These Codes Drive the Production Floor<\/h2>\n<p style=\"margin: 1.25em 0;line-height: 1.9;font-size: 16px;color: #222222;text-align: justify;letter-spacing: 0.02em\">A machinist loads the code file into the controller. The machine then executes each block in sequence, moving the tool along the programmed <strong style=\"font-weight: 600;color: #b32050\">toolpath planning<\/strong> path. Feed rate, spindle speed, and coolant pressure are all encoded in the program.<\/p>\n<p style=\"margin: 1.25em 0;line-height: 1.9;font-size: 16px;color: #222222;text-align: justify;letter-spacing: 0.02em\"><img decoding=\"async\" src=\"https:\/\/www.ypmfg.com\/wp-content\/themes\/mb\/images_nengli\/fulll-body-passive-exoskeleton-optimized.png\" alt=\"cnc machine codes_cnc machine codes_cnc machine codes\" style=\"width: 100%;max-width: 960px;height: auto;display: block;margin: 1.8em auto;border-radius: 0px\"><\/p>\n<p style=\"margin: 1.25em 0;line-height: 1.9;font-size: 16px;color: #222222;text-align: justify;letter-spacing: 0.02em\">If you want to understand what a supplier is doing, the key is the code structure itself. A well-organized program uses consistent blocks, clear comments, and logical tool-call sequences. A disorganized one invites crashes, chatter marks, or dimensional drift that only shows up at inspection.<\/p>\n<h2 style=\"font-size: 20px;font-weight: 600;margin: 1.4em 0 0.5em;color: #b32050;line-height: 1.4\">\u0420\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0451\u043d\u043d\u044b\u0435 <a href=\"\/ru\/2026\/09\/29\/g-code-for-cnc-explained-simply\/\" title=\"G-\u043a\u043e\u0434\" target=\"_blank\">G-\u043a\u043e\u0434<\/a> and M-Code Reference<\/h2>\n<table style=\"width: 100%;border-collapse: collapse;margin: 1.6em 0;border-radius: 10px 10px 0 0;overflow: hidden\">\n<tr>\n<th style=\"background: #9e1840;color: #fff;padding: 14px 16px;text-align: left;font-weight: 600;border: 1px solid #e0e0e0\">Code<\/th>\n<th style=\"background: #9e1840;color: #fff;padding: 14px 16px;text-align: left;font-weight: 600;border: 1px solid #e0e0e0\">\u0424\u0443\u043d\u043a\u0446\u0438\u044f<\/th>\n<th style=\"background: #9e1840;color: #fff;padding: 14px 16px;text-align: left;font-weight: 600;border: 1px solid #e0e0e0\">\u0422\u0438\u043f\u0438\u0447\u043d\u044b\u0435 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f<\/th>\n<\/tr>\n<tr>\n<td style=\"padding: 12px 16px;color: #222222;border: 1px solid #e0e0e0\">G00<\/td>\n<td style=\"padding: 12px 16px;color: #222222;border: 1px solid #e0e0e0\">\u0423\u0441\u043a\u043e\u0440\u0435\u043d\u043d\u043e\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u0435<\/td>\n<td style=\"padding: 12px 16px;color: #222222;border: 1px solid #e0e0e0\">Position tool between cuts<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 12px 16px;color: #222222;border: 1px solid #e0e0e0\">G01<\/td>\n<td style=\"padding: 12px 16px;color: #222222;border: 1px solid #e0e0e0\">\u041b\u0438\u043d\u0435\u0439\u043d\u0430\u044f \u043f\u043e\u0434\u0430\u0447\u0430<\/td>\n<td style=\"padding: 12px 16px;color: #222222;border: 1px solid #e0e0e0\">Straight-line cutting<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 12px 16px;color: #222222;border: 1px solid #e0e0e0\">G02 \/ G03<\/td>\n<td style=\"padding: 12px 16px;color: #222222;border: 1px solid #e0e0e0\">\u041a\u0440\u0443\u0433\u043e\u0432\u0430\u044f \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u044f\u0446\u0438\u044f<\/td>\n<td style=\"padding: 12px 16px;color: #222222;border: 1px solid #e0e0e0\">Circular or curved features<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 12px 16px;color: #222222;border: 1px solid #e0e0e0\">G43<\/td>\n<td style=\"padding: 12px 16px;color: #222222;border: 1px solid #e0e0e0\">Tool length offset<\/td>\n<td style=\"padding: 12px 16px;color: #222222;border: 1px solid #e0e0e0\">Compensate for tool size<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 12px 16px;color: #222222;border: 1px solid #e0e0e0\">M03<\/td>\n<td style=\"padding: 12px 16px;color: #222222;border: 1px solid #e0e0e0\">Spindle start (CW)<\/td>\n<td style=\"padding: 12px 16px;color: #222222;border: 1px solid #e0e0e0\">Begin cutting operation<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 12px 16px;color: #222222;border: 1px solid #e0e0e0\">M08 \/ M09<\/td>\n<td style=\"padding: 12px 16px;color: #222222;border: 1px solid #e0e0e0\">\u0421\u041e\u0416 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \/ \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u0430<\/td>\n<td style=\"padding: 12px 16px;color: #222222;border: 1px solid #e0e0e0\">Manage chip evacuation<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 12px 16px;color: #222222;border: 1px solid #e0e0e0\">M30<\/td>\n<td style=\"padding: 12px 16px;color: #222222;border: 1px solid #e0e0e0\">Program end<\/td>\n<td style=\"padding: 12px 16px;color: #222222;border: 1px solid #e0e0e0\">Signal completion and return<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin: 1.25em 0;line-height: 1.9;font-size: 16px;color: #222222;text-align: justify;letter-spacing: 0.02em\">YPMFG reviews all <strong style=\"font-weight: 600;color: #b32050\">manufacturing documentation<\/strong> before release, including G-code dry runs and M-code logic checks, to reduce first-article risk on <strong style=\"font-weight: 600;color: #b32050\">\u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043d\u0430 \u0441\u0442\u0430\u043d\u043a\u0430\u0445 \u0441 \u0427\u041f\u0423<\/strong> orders.<\/p>\n<h2 style=\"font-size: 20px;font-weight: 600;margin: 1.4em 0 0.5em;color: #b32050;line-height: 1.4\">Why Machine Codes Matter to a Buyer<\/h2>\n<p style=\"margin: 1.25em 0;line-height: 1.9;font-size: 16px;color: #222222;text-align: justify;letter-spacing: 0.02em\">You will not read the code line by line on every order. But knowing the basics changes how you specify, review, and troubleshoot. A buyer who understands that G54 is a work offset can catch a wrong zero-point call that would shift every dimension on the part.<\/p>\n<p style=\"margin: 1.25em 0;line-height: 1.9;font-size: 16px;color: #222222;text-align: justify;letter-spacing: 0.02em\">The practical impact shows up in three areas:<\/p>\n<p style=\"margin: 1.25em 0;line-height: 1.9;font-size: 16px;color: #222222;text-align: justify;letter-spacing: 0.02em\">Consistent tolerance across repeat batches<\/p>\n<p style=\"margin: 1.25em 0;line-height: 1.9;font-size: 16px;color: #222222;text-align: justify;letter-spacing: 0.02em\">Less scrap from programming errors<\/p>\n<p style=\"margin: 1.25em 0;line-height: 1.9;font-size: 16px;color: #222222;text-align: justify;letter-spacing: 0.02em\"><img decoding=\"async\" src=\"https:\/\/www.ypmfg.com\/wp-content\/themes\/mb\/images_nengli\/robotic-product.webp\" alt=\"cnc machine codes_cnc machine codes_cnc machine codes\" style=\"width: 100%;max-width: 960px;height: auto;display: block;margin: 1.8em auto;border-radius: 0px\"><\/p>\n<p style=\"margin: 1.25em 0;line-height: 1.9;font-size: 16px;color: #222222;text-align: justify;letter-spacing: 0.02em\">Shorter lead time because fewer fix-and-rerun cycles are needed<\/p>\n<p style=\"margin: 1.25em 0;line-height: 1.9;font-size: 16px;color: #222222;text-align: justify;letter-spacing: 0.02em\">For tight-tolerance <strong style=\"font-weight: 600;color: #b32050\">\u0434\u0435\u0442\u0430\u043b\u0438, \u0438\u0437\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u043d\u0430 \u0441\u0442\u0430\u043d\u043a\u0430\u0445 \u0441 \u0427\u041f\u0423 \u043f\u043e \u0438\u043d\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0437\u0430\u043a\u0430\u0437\u0443<\/strong>, even a one-line code error can cost a full day of rework and delay the downstream assembly.<\/p>\n<h2 style=\"font-size: 20px;font-weight: 600;margin: 1.4em 0 0.5em;color: #b32050;line-height: 1.4\">Common Questions About CNC Machine Codes<\/h2>\n<p style=\"margin: 1.25em 0;line-height: 1.9;font-size: 16px;color: #222222;text-align: justify;letter-spacing: 0.02em\"><strong style=\"font-weight: 600;color: #b32050\">Are G-code and M-code the same thing?<\/strong><\/p>\n<p style=\"margin: 1.25em 0;line-height: 1.9;font-size: 16px;color: #222222;text-align: justify;letter-spacing: 0.02em\">No. G-code drives motion and geometry; M-code drives auxiliary functions. They work together but serve different roles inside the program.<\/p>\n<p style=\"margin: 1.25em 0;line-height: 1.9;font-size: 16px;color: #222222;text-align: justify;letter-spacing: 0.02em\"><strong style=\"font-weight: 600;color: #b32050\">Do all CNC machines use the same codes?<\/strong><\/p>\n<p style=\"margin: 1.25em 0;line-height: 1.9;font-size: 16px;color: #222222;text-align: justify;letter-spacing: 0.02em\">The ISO 6983 standard covers most G and M functions, but each controller (FANUC, Siemens, Haas) adds its own extensions. Always confirm the specific dialect before uploading a file.<\/p>\n<p style=\"margin: 1.25em 0;line-height: 1.9;font-size: 16px;color: #222222;text-align: justify;letter-spacing: 0.02em\"><strong style=\"font-weight: 600;color: #b32050\">Can I request the G-code file from my supplier?<\/strong><\/p>\n<p style=\"margin: 1.25em 0;line-height: 1.9;font-size: 16px;color: #222222;text-align: justify;letter-spacing: 0.02em\">Yes, and you should. Reviewing the file verifies tool selection, offsets,and feed rates. A <strong style=\"font-weight: 600;color: #b32050\">machinist review<\/strong> on your in-house controller is the fastest way to catch errors before a cut.<\/p>\n<p style=\"margin: 1.25em 0;line-height: 1.9;font-size: 16px;color: #222222;text-align: justify;letter-spacing: 0.02em\"><strong style=\"font-weight: 600;color: #b32050\">What happens if a code is missing?<\/strong><\/p>\n<p style=\"margin: 1.25em 0;line-height: 1.9;font-size: 16px;color: #222222;text-align: justify;letter-spacing: 0.02em\">The machine will either halt at that block or execute a default, depending on the controller. A missing M09, for instance, may leave coolant running into the next setup and cause a minor flood.<\/p>\n<p style=\"margin: 1.25em 0;line-height: 1.9;font-size: 16px;color: #222222;text-align: justify;letter-spacing: 0.02em\"><strong style=\"font-weight: 600;color: #b32050\">How does YPMFG handle code verification?<\/strong><\/p>\n<p style=\"margin: 1.25em 0;line-height: 1.9;font-size: 16px;color: #222222;text-align: justify;letter-spacing: 0.02em\">YPMFG runs a full simulation and a dry pass before cutting material. Any flagged block is corrected and re-verified. You receive the final program as part of your documentation package.<\/p>\n<p style=\"margin: 1.25em 0;line-height: 1.9;font-size: 16px;color: #222222;text-align: justify;letter-spacing: 0.02em\">## Choosing the Right Support for Your Code-Related Needs<\/p>\n<p style=\"margin: 1.25em 0;line-height: 1.9;font-size: 16px;color: #222222;text-align: justify;letter-spacing: 0.02em\">Your program is only as good as the people who write and verify it. If you are specifying <strong style=\"font-weight: 600;color: #b32050\">\u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043d\u0430 \u0441\u0442\u0430\u043d\u043a\u0430\u0445 \u0441 \u0427\u041f\u0423<\/strong> work and want confidence at the code layer, send your drawing, tolerance callouts, and material spec to YPMFG for an engineering review. You will get back a feasibility check, a recommended toolpath strategy, and a clear statement of which G\/M dialect your controller expects.<\/p>\n<p style=\"margin: 1.25em 0;line-height: 1.9;font-size: 16px;color: #222222;text-align: justify;letter-spacing: 0.02em\">The next step is simple: upload your file, flag your critical dimensions, and ask for a <strong style=\"font-weight: 600;color: #b32050\">toolpath planning<\/strong> summary. That single conversation usually surfaces the risks before they become scrap.<\/p>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>CNC machine codes are the numeric and alphabetic instructions that tell a computer-<\/p>","protected":false},"author":1,"featured_media":814,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[44],"tags":[683,406,685,481,684],"class_list":["post-813","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-cnc-machine-codes","tag-cnc-machining","tag-custom-cnc-parts","tag-g-code","tag-m-code"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>CNC Machine Codes: G &amp; M Code Basics<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.ypmfg.com\/ru\/2026\/10\/13\/cnc-machine-codes-g-m-code-basics\/\" \/>\n<meta property=\"og:locale\" content=\"ru_RU\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CNC Machine Codes: G &amp; M Code Basics\" \/>\n<meta property=\"og:description\" content=\"CNC machine codes are the numeric and alphabetic instructions that tell a computer-\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.ypmfg.com\/ru\/2026\/10\/13\/cnc-machine-codes-g-m-code-basics\/\" \/>\n<meta property=\"og:site_name\" content=\"YP-MFG| Custom CNC Parts Made Exactly to Spec\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-13T08:11:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.ypmfg.com\/wp-content\/themes\/mb\/images_nengli\/fulll-body-passive-exoskeleton-optimized.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0430\u0432\u0442\u043e\u0440\u043e\u043c\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u043c\u0438\u043d\u0443\u0442\u044b\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.ypmfg.com\\\/ru\\\/2026\\\/10\\\/13\\\/cnc-machine-codes-g-m-code-basics\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.ypmfg.com\\\/ru\\\/2026\\\/10\\\/13\\\/cnc-machine-codes-g-m-code-basics\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/www.ypmfg.com\\\/ru\\\/#\\\/schema\\\/person\\\/1ad07d09a6f18573f3b764ab0b4a8484\"},\"headline\":\"CNC Machine Codes: G &amp; M Code Basics\",\"datePublished\":\"2026-10-13T08:11:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.ypmfg.com\\\/ru\\\/2026\\\/10\\\/13\\\/cnc-machine-codes-g-m-code-basics\\\/\"},\"wordCount\":847,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.ypmfg.com\\\/ru\\\/2026\\\/10\\\/13\\\/cnc-machine-codes-g-m-code-basics\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.ypmfg.com\\\/wp-content\\\/themes\\\/mb\\\/images_nengli\\\/fulll-body-passive-exoskeleton-optimized.png\",\"keywords\":[\"CNC Machine Codes\",\"CNC Machining\",\"Custom CNC Parts\",\"G-Code\",\"M-Code\"],\"articleSection\":[\"Blog\"],\"inLanguage\":\"ru-RU\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.ypmfg.com\\\/ru\\\/2026\\\/10\\\/13\\\/cnc-machine-codes-g-m-code-basics\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.ypmfg.com\\\/ru\\\/2026\\\/10\\\/13\\\/cnc-machine-codes-g-m-code-basics\\\/\",\"url\":\"https:\\\/\\\/www.ypmfg.com\\\/ru\\\/2026\\\/10\\\/13\\\/cnc-machine-codes-g-m-code-basics\\\/\",\"name\":\"CNC Machine Codes: G &amp; M Code Basics\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.ypmfg.com\\\/ru\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.ypmfg.com\\\/ru\\\/2026\\\/10\\\/13\\\/cnc-machine-codes-g-m-code-basics\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.ypmfg.com\\\/ru\\\/2026\\\/10\\\/13\\\/cnc-machine-codes-g-m-code-basics\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.ypmfg.com\\\/wp-content\\\/themes\\\/mb\\\/images_nengli\\\/fulll-body-passive-exoskeleton-optimized.png\",\"datePublished\":\"2026-10-13T08:11:49+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.ypmfg.com\\\/ru\\\/#\\\/schema\\\/person\\\/1ad07d09a6f18573f3b764ab0b4a8484\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.ypmfg.com\\\/ru\\\/2026\\\/10\\\/13\\\/cnc-machine-codes-g-m-code-basics\\\/#breadcrumb\"},\"inLanguage\":\"ru-RU\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.ypmfg.com\\\/ru\\\/2026\\\/10\\\/13\\\/cnc-machine-codes-g-m-code-basics\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ru-RU\",\"@id\":\"https:\\\/\\\/www.ypmfg.com\\\/ru\\\/2026\\\/10\\\/13\\\/cnc-machine-codes-g-m-code-basics\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.ypmfg.com\\\/wp-content\\\/themes\\\/mb\\\/images_nengli\\\/fulll-body-passive-exoskeleton-optimized.png\",\"contentUrl\":\"https:\\\/\\\/www.ypmfg.com\\\/wp-content\\\/themes\\\/mb\\\/images_nengli\\\/fulll-body-passive-exoskeleton-optimized.png\",\"width\":636,\"height\":471},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.ypmfg.com\\\/ru\\\/2026\\\/10\\\/13\\\/cnc-machine-codes-g-m-code-basics\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.ypmfg.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CNC Machine Codes: G &amp; M Code Basics\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.ypmfg.com\\\/ru\\\/#website\",\"url\":\"https:\\\/\\\/www.ypmfg.com\\\/ru\\\/\",\"name\":\"YP-MFG| Custom CNC Parts Made Exactly to Spec\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.ypmfg.com\\\/ru\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ru-RU\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.ypmfg.com\\\/ru\\\/#\\\/schema\\\/person\\\/1ad07d09a6f18573f3b764ab0b4a8484\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ru-RU\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5edfa2692bdacc5e6ee805c626c50cb44cebb065f092d9a1067d89f74dacd326?s=96&d=mm&r=x\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5edfa2692bdacc5e6ee805c626c50cb44cebb065f092d9a1067d89f74dacd326?s=96&d=mm&r=x\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5edfa2692bdacc5e6ee805c626c50cb44cebb065f092d9a1067d89f74dacd326?s=96&d=mm&r=x\",\"caption\":\"admin\"},\"sameAs\":[\"http:\\\/\\\/127.0.0.57\"],\"url\":\"https:\\\/\\\/www.ypmfg.com\\\/ru\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"CNC Machine Codes: G &amp; M Code Basics","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.ypmfg.com\/ru\/2026\/10\/13\/cnc-machine-codes-g-m-code-basics\/","og_locale":"ru_RU","og_type":"article","og_title":"CNC Machine Codes: G &amp; M Code Basics","og_description":"CNC machine codes are the numeric and alphabetic instructions that tell a computer-","og_url":"https:\/\/www.ypmfg.com\/ru\/2026\/10\/13\/cnc-machine-codes-g-m-code-basics\/","og_site_name":"YP-MFG| Custom CNC Parts Made Exactly to Spec","article_published_time":"2026-10-13T08:11:49+00:00","og_image":[{"url":"https:\/\/www.ypmfg.com\/wp-content\/themes\/mb\/images_nengli\/fulll-body-passive-exoskeleton-optimized.png","type":"","width":"","height":""}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0430\u0432\u0442\u043e\u0440\u043e\u043c":"admin","\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f":"4 \u043c\u0438\u043d\u0443\u0442\u044b"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.ypmfg.com\/ru\/2026\/10\/13\/cnc-machine-codes-g-m-code-basics\/#article","isPartOf":{"@id":"https:\/\/www.ypmfg.com\/ru\/2026\/10\/13\/cnc-machine-codes-g-m-code-basics\/"},"author":{"name":"admin","@id":"https:\/\/www.ypmfg.com\/ru\/#\/schema\/person\/1ad07d09a6f18573f3b764ab0b4a8484"},"headline":"CNC Machine Codes: G &amp; M Code Basics","datePublished":"2026-10-13T08:11:49+00:00","mainEntityOfPage":{"@id":"https:\/\/www.ypmfg.com\/ru\/2026\/10\/13\/cnc-machine-codes-g-m-code-basics\/"},"wordCount":847,"commentCount":0,"image":{"@id":"https:\/\/www.ypmfg.com\/ru\/2026\/10\/13\/cnc-machine-codes-g-m-code-basics\/#primaryimage"},"thumbnailUrl":"https:\/\/www.ypmfg.com\/wp-content\/themes\/mb\/images_nengli\/fulll-body-passive-exoskeleton-optimized.png","keywords":["CNC Machine Codes","CNC Machining","Custom CNC Parts","G-Code","M-Code"],"articleSection":["Blog"],"inLanguage":"ru-RU","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.ypmfg.com\/ru\/2026\/10\/13\/cnc-machine-codes-g-m-code-basics\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.ypmfg.com\/ru\/2026\/10\/13\/cnc-machine-codes-g-m-code-basics\/","url":"https:\/\/www.ypmfg.com\/ru\/2026\/10\/13\/cnc-machine-codes-g-m-code-basics\/","name":"CNC Machine Codes: G &amp; M Code Basics","isPartOf":{"@id":"https:\/\/www.ypmfg.com\/ru\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.ypmfg.com\/ru\/2026\/10\/13\/cnc-machine-codes-g-m-code-basics\/#primaryimage"},"image":{"@id":"https:\/\/www.ypmfg.com\/ru\/2026\/10\/13\/cnc-machine-codes-g-m-code-basics\/#primaryimage"},"thumbnailUrl":"https:\/\/www.ypmfg.com\/wp-content\/themes\/mb\/images_nengli\/fulll-body-passive-exoskeleton-optimized.png","datePublished":"2026-10-13T08:11:49+00:00","author":{"@id":"https:\/\/www.ypmfg.com\/ru\/#\/schema\/person\/1ad07d09a6f18573f3b764ab0b4a8484"},"breadcrumb":{"@id":"https:\/\/www.ypmfg.com\/ru\/2026\/10\/13\/cnc-machine-codes-g-m-code-basics\/#breadcrumb"},"inLanguage":"ru-RU","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.ypmfg.com\/ru\/2026\/10\/13\/cnc-machine-codes-g-m-code-basics\/"]}]},{"@type":"ImageObject","inLanguage":"ru-RU","@id":"https:\/\/www.ypmfg.com\/ru\/2026\/10\/13\/cnc-machine-codes-g-m-code-basics\/#primaryimage","url":"https:\/\/www.ypmfg.com\/wp-content\/themes\/mb\/images_nengli\/fulll-body-passive-exoskeleton-optimized.png","contentUrl":"https:\/\/www.ypmfg.com\/wp-content\/themes\/mb\/images_nengli\/fulll-body-passive-exoskeleton-optimized.png","width":636,"height":471},{"@type":"BreadcrumbList","@id":"https:\/\/www.ypmfg.com\/ru\/2026\/10\/13\/cnc-machine-codes-g-m-code-basics\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.ypmfg.com\/"},{"@type":"ListItem","position":2,"name":"CNC Machine Codes: G &amp; M Code Basics"}]},{"@type":"WebSite","@id":"https:\/\/www.ypmfg.com\/ru\/#website","url":"https:\/\/www.ypmfg.com\/ru\/","name":"YP-MFG | \u0414\u0435\u0442\u0430\u043b\u0438 \u0441 \u0427\u041f\u0423 \u043d\u0430 \u0437\u0430\u043a\u0430\u0437, \u0438\u0437\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0432 \u0442\u043e\u0447\u043d\u043e\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f\u043c\u0438","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.ypmfg.com\/ru\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ru-RU"},{"@type":"Person","@id":"https:\/\/www.ypmfg.com\/ru\/#\/schema\/person\/1ad07d09a6f18573f3b764ab0b4a8484","name":"\u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440","image":{"@type":"ImageObject","inLanguage":"ru-RU","@id":"https:\/\/secure.gravatar.com\/avatar\/5edfa2692bdacc5e6ee805c626c50cb44cebb065f092d9a1067d89f74dacd326?s=96&d=mm&r=x","url":"https:\/\/secure.gravatar.com\/avatar\/5edfa2692bdacc5e6ee805c626c50cb44cebb065f092d9a1067d89f74dacd326?s=96&d=mm&r=x","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5edfa2692bdacc5e6ee805c626c50cb44cebb065f092d9a1067d89f74dacd326?s=96&d=mm&r=x","caption":"admin"},"sameAs":["http:\/\/127.0.0.57"],"url":"https:\/\/www.ypmfg.com\/ru\/author\/admin\/"}]}},"permalink_manager":null,"_links":{"self":[{"href":"https:\/\/www.ypmfg.com\/ru\/wp-json\/wp\/v2\/posts\/813","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ypmfg.com\/ru\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ypmfg.com\/ru\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ypmfg.com\/ru\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ypmfg.com\/ru\/wp-json\/wp\/v2\/comments?post=813"}],"version-history":[{"count":0,"href":"https:\/\/www.ypmfg.com\/ru\/wp-json\/wp\/v2\/posts\/813\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ypmfg.com\/ru\/wp-json\/wp\/v2\/media\/814"}],"wp:attachment":[{"href":"https:\/\/www.ypmfg.com\/ru\/wp-json\/wp\/v2\/media?parent=813"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ypmfg.com\/ru\/wp-json\/wp\/v2\/categories?post=813"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ypmfg.com\/ru\/wp-json\/wp\/v2\/tags?post=813"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}