{"id":33115,"date":"2026-03-30T09:28:23","date_gmt":"2026-03-30T01:28:23","guid":{"rendered":"https:\/\/www.jiakuncnc.com\/?p=33115"},"modified":"2026-03-30T10:21:41","modified_gmt":"2026-03-30T02:21:41","slug":"%e5%ae%8f%e7%a8%8b%e5%ba%8f%e7%9a%84%e7%b1%bb%e5%9e%8b%e5%92%8c%e5%ba%94%e7%94%a8","status":"publish","type":"post","link":"https:\/\/www.jiakuncnc.com\/zh_cn\/2026\/03\/30\/%e5%ae%8f%e7%a8%8b%e5%ba%8f%e7%9a%84%e7%b1%bb%e5%9e%8b%e5%92%8c%e5%ba%94%e7%94%a8\/","title":{"rendered":"\u5b8f\u7a0b\u5e8f\u7684\u7c7b\u578b\u548c\u5e94\u7528"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"33115\" class=\"elementor elementor-33115\" data-elementor-post-type=\"post\">\n\t\t\t\t<div class=\"wd-negative-gap elementor-element elementor-element-c629c8a e-flex e-con-boxed e-con e-parent\" data-id=\"c629c8a\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-0d48882 wd-width-100 elementor-widget elementor-widget-wd_title\" data-id=\"0d48882\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"wd_title.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"title-wrapper wd-set-mb reset-last-child wd-title-color-default wd-title-style-default wd-title-size-default text-center\">\n\n\t\t\t\n\t\t\t<div class=\"liner-continer\">\n\t\t\t\t<h4 class=\"woodmart-title-container title wd-fontsize-l\">Types and applications of macro programs<\/h4> \n\t\t\t\t\t\t\t<\/div>\n\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8066638 wd-width-100 elementor-widget elementor-widget-wd_title\" data-id=\"8066638\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"wd_title.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"title-wrapper wd-set-mb reset-last-child wd-title-color-default wd-title-style-default wd-title-size-default text-left\">\n\n\t\t\t\n\t\t\t<div class=\"liner-continer\">\n\t\t\t\t<h4 class=\"woodmart-title-container title wd-fontsize-l\">The meaning of macro program in CNC system<\/h4> \n\t\t\t\t\t\t\t<\/div>\n\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-438334b elementor-widget elementor-widget-wd_text_block\" data-id=\"438334b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"wd_text_block.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"wd-text-block reset-last-child text-left\">\n\t\t\t\n\t\t\t<p class=\"preFlex flexIn\">Macro Program or User Macro in CNC system is a powerful function that allows users to use programming structures such as variables, arithmetic and logical operations, conditional branches (IF...THEN...ELSE), loops (WHILE...DO...END) to write more flexible, more general and parameterizable machining programs.<\/p>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-cf58a20 wd-width-100 elementor-widget elementor-widget-wd_title\" data-id=\"cf58a20\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"wd_title.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"title-wrapper wd-set-mb reset-last-child wd-title-color-default wd-title-style-default wd-title-size-default text-left\">\n\n\t\t\t\n\t\t\t<div class=\"liner-continer\">\n\t\t\t\t<h4 class=\"woodmart-title-container title wd-fontsize-l\">Differentiate macro programs by how they are written and used<\/h4> \n\t\t\t\t\t\t\t<\/div>\n\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"wd-negative-gap elementor-element elementor-element-9e6f6c2 e-flex e-con-boxed e-con e-parent\" data-id=\"9e6f6c2\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-a1013be wd-width-100 elementor-widget elementor-widget-wd_title\" data-id=\"a1013be\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"wd_title.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"title-wrapper wd-set-mb reset-last-child wd-title-color-default wd-title-style-default wd-title-size-default text-left\">\n\n\t\t\t\n\t\t\t<div class=\"liner-continer\">\n\t\t\t\t<h4 class=\"woodmart-title-container title wd-fontsize-l\">Type A:<\/h4> \n\t\t\t\t\t\t\t<\/div>\n\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-361696e wd-width-100 elementor-widget elementor-widget-wd_title\" data-id=\"361696e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"wd_title.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"title-wrapper wd-set-mb reset-last-child wd-title-color-default wd-title-style-default wd-title-size-default text-left\">\n\n\t\t\t\n\t\t\t<div class=\"liner-continer\">\n\t\t\t\t<h4 class=\"woodmart-title-container title wd-fontsize-l\">Features:<\/h4> \n\t\t\t\t\t\t\t<\/div>\n\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a1d96aa elementor-widget elementor-widget-wd_text_block\" data-id=\"a1d96aa\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"wd_text_block.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"wd-text-block reset-last-child text-left\">\n\t\t\t\n\t\t\t<p class=\"preFlex flexIn\">A macro is called using a specific G code (usually G65) or M code, and is followed directly by a macro command word (starting with the letter H) and parameters (variable addresses). Arithmetic and logical operations are implemented using specific H codes.<\/p>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a87ab2d wd-width-100 elementor-widget elementor-widget-wd_title\" data-id=\"a87ab2d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"wd_title.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"title-wrapper wd-set-mb reset-last-child wd-title-color-default wd-title-style-default wd-title-size-default text-left\">\n\n\t\t\t\n\t\t\t<div class=\"liner-continer\">\n\t\t\t\t<h4 class=\"woodmart-title-container title wd-fontsize-l\">Advantage:<\/h4> \n\t\t\t\t\t\t\t<\/div>\n\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-518aaa4 elementor-widget elementor-widget-wd_text_block\" data-id=\"518aaa4\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"wd_text_block.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"wd-text-block reset-last-child text-left\">\n\t\t\t\n\t\t\t<p class=\"preFlex flexIn\">As an early standard, some old systems or specific functions may only support Class A.<\/p>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a03b622 wd-width-100 elementor-widget elementor-widget-wd_title\" data-id=\"a03b622\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"wd_title.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"title-wrapper wd-set-mb reset-last-child wd-title-color-default wd-title-style-default wd-title-size-default text-left\">\n\n\t\t\t\n\t\t\t<div class=\"liner-continer\">\n\t\t\t\t<h4 class=\"woodmart-title-container title wd-fontsize-l\">Shortcoming:<\/h4> \n\t\t\t\t\t\t\t<\/div>\n\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2dff716 elementor-widget elementor-widget-wd_text_block\" data-id=\"2dff716\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"wd_text_block.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"wd-text-block reset-last-child text-left\">\n\t\t\t\n\t\t\t<p class=\"preFlex flexIn\">he syntax is not intuitive enough, the readability is poor, and the functions are relatively limited (especially the logical control is weak). The following are the operation instructions of Class A macro programs (different CNC systems have different definitions of operation instructions, the following table is for reference only)<\/p>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-cccc2fd elementor-widget elementor-widget-wd_image_or_svg\" data-id=\"cccc2fd\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"wd_image_or_svg.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\n\t\t<div class=\"wd-image text-center\">\n\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"1141\" height=\"1042\" src=\"https:\/\/www.jiakuncnc.com\/wp-content\/uploads\/2026\/03\/2-7.jpg\" class=\"attachment-full size-full\" alt=\"\" srcset=\"https:\/\/www.jiakuncnc.com\/wp-content\/uploads\/2026\/03\/2-7.jpg 1141w, https:\/\/www.jiakuncnc.com\/wp-content\/uploads\/2026\/03\/2-7-329x300.jpg 329w, https:\/\/www.jiakuncnc.com\/wp-content\/uploads\/2026\/03\/2-7-876x800.jpg 876w, https:\/\/www.jiakuncnc.com\/wp-content\/uploads\/2026\/03\/2-7-768x701.jpg 768w, https:\/\/www.jiakuncnc.com\/wp-content\/uploads\/2026\/03\/2-7-13x12.jpg 13w, https:\/\/www.jiakuncnc.com\/wp-content\/uploads\/2026\/03\/2-7-430x393.jpg 430w, https:\/\/www.jiakuncnc.com\/wp-content\/uploads\/2026\/03\/2-7-700x639.jpg 700w, https:\/\/www.jiakuncnc.com\/wp-content\/uploads\/2026\/03\/2-7-150x137.jpg 150w\" sizes=\"auto, (max-width: 1141px) 100vw, 1141px\" \/>\t\t\t\t\t<\/div>\n\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"wd-negative-gap elementor-element elementor-element-4081c31 e-flex e-con-boxed e-con e-parent\" data-id=\"4081c31\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-40b8335 wd-width-100 elementor-widget elementor-widget-wd_title\" data-id=\"40b8335\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"wd_title.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"title-wrapper wd-set-mb reset-last-child wd-title-color-default wd-title-style-default wd-title-size-default text-left\">\n\n\t\t\t\n\t\t\t<div class=\"liner-continer\">\n\t\t\t\t<h4 class=\"woodmart-title-container title wd-fontsize-l\">Type B:<\/h4> \n\t\t\t\t\t\t\t<\/div>\n\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a5fcbbf wd-width-100 elementor-widget elementor-widget-wd_title\" data-id=\"a5fcbbf\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"wd_title.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"title-wrapper wd-set-mb reset-last-child wd-title-color-default wd-title-style-default wd-title-size-default text-left\">\n\n\t\t\t\n\t\t\t<div class=\"liner-continer\">\n\t\t\t\t<h4 class=\"woodmart-title-container title wd-fontsize-l\">Features:<\/h4> \n\t\t\t\t\t\t\t<\/div>\n\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1fe9d79 elementor-widget elementor-widget-wd_text_block\" data-id=\"1fe9d79\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"wd_text_block.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"wd-text-block reset-last-child text-left\">\n\t\t\t\n\t\t\t<p class=\"preFlex flexIn\">The macro body itself is written like a subroutine ( Oxxxx ), using standard arithmetic operators (+, -, *, \/, =), logical operators (EQ, NE, GT, GE, LT, LE, AND, OR, NOT), and flow control statements (IF, GOTO, WHILE).<\/p>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a832a8e wd-width-100 elementor-widget elementor-widget-wd_title\" data-id=\"a832a8e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"wd_title.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"title-wrapper wd-set-mb reset-last-child wd-title-color-default wd-title-style-default wd-title-size-default text-left\">\n\n\t\t\t\n\t\t\t<div class=\"liner-continer\">\n\t\t\t\t<h4 class=\"woodmart-title-container title wd-fontsize-l\">Advantage:<\/h4> \n\t\t\t\t\t\t\t<\/div>\n\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-014998e elementor-widget elementor-widget-wd_text_block\" data-id=\"014998e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"wd_text_block.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"wd-text-block reset-last-child text-left\">\n\t\t\t\n\t\t\t<p class=\"preFlex flexIn\">The syntax is intuitive, readable, powerful (supports complex logic and loops), and the programming style is closer to high-level languages. It is currently the most commonly used and most recommended type of macro program.<\/p>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-979a912 wd-width-100 elementor-widget elementor-widget-wd_title\" data-id=\"979a912\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"wd_title.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"title-wrapper wd-set-mb reset-last-child wd-title-color-default wd-title-style-default wd-title-size-default text-left\">\n\n\t\t\t\n\t\t\t<div class=\"liner-continer\">\n\t\t\t\t<h4 class=\"woodmart-title-container title wd-fontsize-l\">Shortcoming:<\/h4> \n\t\t\t\t\t\t\t<\/div>\n\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f2a1d13 elementor-widget elementor-widget-wd_text_block\" data-id=\"f2a1d13\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"wd_text_block.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"wd-text-block reset-last-child text-left\">\n\t\t\t\n\t\t\t<p class=\"preFlex flexIn\">Requires newer system support<\/p>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-59bf5c5 wd-width-100 elementor-widget elementor-widget-wd_title\" data-id=\"59bf5c5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"wd_title.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"title-wrapper wd-set-mb reset-last-child wd-title-color-default wd-title-style-default wd-title-size-default text-left\">\n\n\t\t\t\n\t\t\t<div class=\"liner-continer\">\n\t\t\t\t<h4 class=\"woodmart-title-container title wd-fontsize-l\">Programming<\/h4> \n\t\t\t\t\t\t\t<\/div>\n\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7736102 elementor-widget elementor-widget-wd_text_block\" data-id=\"7736102\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"wd_text_block.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"wd-text-block reset-last-child text-left\">\n\t\t\t\n\t\t\t<p class=\"preFlex flexIn\">The following are the operation instructions of Class B macro programs (different CNC systems have different definitions of operation instructions, the following table is for reference only)<\/p>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-cfe94ac elementor-widget elementor-widget-wd_image_or_svg\" data-id=\"cfe94ac\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"wd_image_or_svg.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\n\t\t<div class=\"wd-image text-center\">\n\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"1237\" height=\"1532\" src=\"https:\/\/www.jiakuncnc.com\/wp-content\/uploads\/2026\/03\/3-8.jpg\" class=\"attachment-full size-full\" alt=\"\" srcset=\"https:\/\/www.jiakuncnc.com\/wp-content\/uploads\/2026\/03\/3-8.jpg 1237w, https:\/\/www.jiakuncnc.com\/wp-content\/uploads\/2026\/03\/3-8-242x300.jpg 242w, https:\/\/www.jiakuncnc.com\/wp-content\/uploads\/2026\/03\/3-8-646x800.jpg 646w, https:\/\/www.jiakuncnc.com\/wp-content\/uploads\/2026\/03\/3-8-768x951.jpg 768w, https:\/\/www.jiakuncnc.com\/wp-content\/uploads\/2026\/03\/3-8-10x12.jpg 10w, https:\/\/www.jiakuncnc.com\/wp-content\/uploads\/2026\/03\/3-8-430x533.jpg 430w, https:\/\/www.jiakuncnc.com\/wp-content\/uploads\/2026\/03\/3-8-700x867.jpg 700w, https:\/\/www.jiakuncnc.com\/wp-content\/uploads\/2026\/03\/3-8-150x186.jpg 150w\" sizes=\"auto, (max-width: 1237px) 100vw, 1237px\" \/>\t\t\t\t\t<\/div>\n\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"wd-negative-gap elementor-element elementor-element-87f61de e-flex e-con-boxed e-con e-parent\" data-id=\"87f61de\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-d41b0e6 wd-width-100 elementor-widget elementor-widget-wd_title\" data-id=\"d41b0e6\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"wd_title.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"title-wrapper wd-set-mb reset-last-child wd-title-color-default wd-title-style-default wd-title-size-default text-left\">\n\n\t\t\t\n\t\t\t<div class=\"liner-continer\">\n\t\t\t\t<h4 class=\"woodmart-title-container title wd-fontsize-l\">Actual program comparison<\/h4> \n\t\t\t\t\t\t\t<\/div>\n\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-df325cf elementor-widget elementor-widget-wd_text_block\" data-id=\"df325cf\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"wd_text_block.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"wd-text-block reset-last-child text-left\">\n\t\t\t\n\t\t\t<p class=\"preFlex flexIn\">We use the same tool to process the same trapezoidal thread and compare the differences in the programming of macro programs A and B.<\/p>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-00360ab elementor-widget elementor-widget-wd_image_or_svg\" data-id=\"00360ab\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"wd_image_or_svg.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\n\t\t<div class=\"wd-image text-center\">\n\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"998\" height=\"668\" src=\"https:\/\/www.jiakuncnc.com\/wp-content\/uploads\/2026\/03\/4-8.jpg\" class=\"attachment-full size-full\" alt=\"\" srcset=\"https:\/\/www.jiakuncnc.com\/wp-content\/uploads\/2026\/03\/4-8.jpg 998w, https:\/\/www.jiakuncnc.com\/wp-content\/uploads\/2026\/03\/4-8-400x268.jpg 400w, https:\/\/www.jiakuncnc.com\/wp-content\/uploads\/2026\/03\/4-8-768x514.jpg 768w, https:\/\/www.jiakuncnc.com\/wp-content\/uploads\/2026\/03\/4-8-18x12.jpg 18w, https:\/\/www.jiakuncnc.com\/wp-content\/uploads\/2026\/03\/4-8-430x288.jpg 430w, https:\/\/www.jiakuncnc.com\/wp-content\/uploads\/2026\/03\/4-8-700x469.jpg 700w, https:\/\/www.jiakuncnc.com\/wp-content\/uploads\/2026\/03\/4-8-150x100.jpg 150w\" sizes=\"auto, (max-width: 998px) 100vw, 998px\" \/>\t\t\t\t\t<\/div>\n\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"wd-negative-gap elementor-element elementor-element-07c7095 e-flex e-con-boxed e-con e-parent\" data-id=\"07c7095\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-8343dfa wd-width-100 elementor-widget elementor-widget-wd_title\" data-id=\"8343dfa\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"wd_title.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"title-wrapper wd-set-mb reset-last-child wd-title-color-default wd-title-style-default wd-title-size-default text-center\">\n\n\t\t\t\n\t\t\t<div class=\"liner-continer\">\n\t\t\t\t<h4 class=\"woodmart-title-container title wd-fontsize-l\">Type A<\/h4> \n\t\t\t\t\t\t\t<\/div>\n\n\t\t\t\t\t\t\t<div class=\"title-after_title reset-last-child wd-fontsize-xs\">\n\t\t\t\t\t<p><strong>O1000<\/strong>\u00a0(MAIN PROGRAM)<br \/><strong>G54 G99 G21 G40<\/strong><br \/><strong>T0101<\/strong>\u00a0(Trapezoidal thread turning tool)<br \/><strong>G97 S500 M03<\/strong><br \/><strong>G00 X100.0 Z10.0 M08<\/strong><\/p><p><strong>(Set basic parameters)<\/strong><br \/><strong>#100 = 50.0<\/strong>\u00a0(large diameter D)<br \/><strong>#101 = 5.0<\/strong>\u00a0(pitch P)<br \/><strong>#102 = 30.0<\/strong>\u00a0(length L)<br \/><strong>#103 = 0.0<\/strong>\u00a0(Z start point)<br \/><strong>#104 = 0.1<\/strong>\u00a0(finishing allowance)<br \/><strong>#105 = 0.2<\/strong>\u00a0(cut depth)<br \/><strong>#106 = 0.05<\/strong>\u00a0(tool width K)<\/p><p><strong>(Calculated tooth height H=0.5P)<\/strong><br \/><strong>G65 H02 P#107 Q#101 R#101<\/strong>\u00a0(P+Q\u2192R)<br \/><strong>G65 H11 P#107 Q#107 R2.0<\/strong>\u00a0(P\u00f7Q\u2192R)<br \/><strong>G65 H11 P#107 Q#107 R2.0<\/strong>\u00a0(divide by 2 again)<\/p><p><strong>(Calculate the minor diameter d=D-2H)<\/strong><br \/><strong>G65 H02 P#108 Q#107 R#107<\/strong>\u00a0(2H)<br \/><strong>G65 H02 P#108 Q#108 R#108<\/strong>\u00a0(4H)<br \/><strong>G65 H03 P#109 Q#100 R#108<\/strong>\u00a0(D-2H)<\/p><p><strong>(Calculate the roughing depth)<\/strong><br \/><strong>G65 H03 P#110 Q#107 R#104<\/strong>\u00a0(H-residue)<br \/><strong>G65 H11 P#111 Q#110 R#105<\/strong>\u00a0(Number of rough machining layers)<\/p><p><strong>(Calculate the crest width W1=0.366P)<\/strong><br \/><strong>G65 H04 P#112 Q#101 R366<\/strong>\u00a0(P\u00d7366)<br \/><strong>G65 H11 P#112 Q#112 R1000<\/strong>\u00a0(\u00f71000)<\/p><p><strong>(Calculate the tooth bottom width W2 = W1-0.13)<\/strong><br \/><strong>G65 H03 P#113 Q#112 R13<\/strong>\u00a0(W1-0.13)<br \/><strong>G65 H11 P#113 Q#113 R100<\/strong>\u00a0(\u00f7100)<\/p><p><strong>(Verify tool width)<\/strong><br \/><strong>G65 H84 P1000 Q#106 R#113<\/strong>\u00a0(IF K&gt;W2)<\/p><p><strong>(Roughing cycle)<\/strong><br \/><strong>#114 = 1<\/strong>\u00a0(counter)<br \/><strong>N10<\/strong>\u00a0(Cycle start)<\/p><p><strong>(Calculate current cutting depth)<\/strong><br \/><strong>G65 H02 P#115 Q#114 R#114<\/strong>\u00a0(2n)<br \/><strong>G65 H04 P#115 Q#115 R#105<\/strong>\u00a0(n\u00d7cutting depth)<\/p><p><strong>(Limits the maximum cutting depth)<\/strong><br \/><strong>G65 H85 P20 Q#115 R#110<\/strong>\u00a0(IF&gt;roughing depth)<br \/><strong>#115 = #110<\/strong><br \/><strong>N20<\/strong><\/p><p><strong>(Calculate current X diameter)<\/strong><br \/><strong>G65 H02 P#116 Q#115 R#115<\/strong>\u00a0(2\u00d7current cutting depth)<br \/><strong>G65 H03 P#117 Q#100 R#116<\/strong>\u00a0(D-2\u00d7cutting depth)<\/p><p><strong>(Calculate Z borrowing amount)<\/strong><br \/><strong>G65 H11 P#118 Q#115 R#107<\/strong>\u00a0(cutting depth\/H)<br \/><strong>G65 H03 P#119 Q100 R#118<\/strong>\u00a0(100-percent)<br \/><strong>G65 H11 P#119 Q#119 R100<\/strong>\u00a0(\u00f7100)<br \/><strong>G65 H04 P#120 Q#119 R30<\/strong>\u00a0(\u00d70.3)<\/p><p><strong>(Left side cutting)<\/strong><br \/><strong>G65 H02 P#121 Q#103 R#120<\/strong>\u00a0(Z starting point + tool borrowing amount)<br \/><strong>G00 Z#121<\/strong><br \/><strong>G76 P020030 Q50 R0.05<\/strong><br \/><strong>G76 X#117 Z[#102] P[#107*1000] Q[#105*1000] F#101<\/strong><\/p><p><strong>(Right side borrowed tool cutting)<\/strong><br \/><strong>G65 H03 P#122 Q#103 R#120<\/strong>\u00a0(Z starting point - tool borrowing amount)<br \/><strong>G00 Z#122<\/strong><br \/><strong>G76 X#117 Z[#102] P[#107*1000] Q[#105*1000] F#101<\/strong><\/p><p><strong>(Counter increments)<\/strong><br \/><strong>G65 H02 P#114 Q#114 R1<\/strong><br \/><strong>G65 H86 P10 Q#114 R#111<\/strong>\u00a0(loop judgment)<\/p><p><strong>(Right side of finishing tooth profile)<\/strong><br \/><strong>G65 H11 P#123 Q#113 R2<\/strong>\u00a0(W2\/2)<br \/><strong>G65 H03 P#124 Q#123 R2<\/strong>\u00a0(Z offset = W2\/2-0.02)<br \/><strong>G00 Z[#103 + #124]<\/strong><br \/><strong>G76 P020030 Q20 R0.02<\/strong><br \/><strong>G76 X#109 Z[#102] P[#107*1000] Q[#105*1000] F#101<\/strong><\/p><p><strong>(Left side of finishing tooth profile)<\/strong><br \/><strong>G00 Z[#103 - #124]<\/strong><br \/><strong>G76 X#109 Z[#102] P[#107*1000] Q[#105*1000] F#101<\/strong><\/p><p><strong>(Finishing tooth bottom)<\/strong><br \/><strong>G00 Z#103<\/strong><br \/><strong>G76 P000030 Q10<\/strong><br \/><strong>G76 X#109 Z[#102] P[#107*1000] Q50 F#101<\/strong><\/p><p><strong>G00 X100.0 Z50.0<\/strong><br \/><strong>M30<\/strong><\/p><p><strong>(Tool too wide alarm subroutine)<\/strong><br \/><strong>N1000 #3000=1<\/strong>\u00a0(TOOL TOO WIDE)<br \/><strong>M99<\/strong><\/p>\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-765344f wd-width-100 elementor-widget elementor-widget-wd_title\" data-id=\"765344f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"wd_title.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"title-wrapper wd-set-mb reset-last-child wd-title-color-default wd-title-style-default wd-title-size-default text-center\">\n\n\t\t\t\n\t\t\t<div class=\"liner-continer\">\n\t\t\t\t<h4 class=\"woodmart-title-container title wd-fontsize-l\">Type B<\/h4> \n\t\t\t\t\t\t\t<\/div>\n\n\t\t\t\t\t\t\t<div class=\"title-after_title reset-last-child wd-fontsize-xs\">\n\t\t\t\t\t<p><strong>O1000<\/strong>\u00a0(Main program for trapezoidal thread turning)<br \/><strong>G54 G99 G21 G40<\/strong>\u00a0(Security Settings)<br \/><strong>T0101<\/strong>\u00a0(Trapezoidal thread turning tool)<br \/><strong>G97 S500 M03<\/strong>\u00a0(Constant speed)<br \/><strong>G00 X100.0 Z10.0 M08<\/strong>\u00a0(safe position, coolant on)<br \/><br \/><strong>(Set basic parameters)<\/strong><br \/><strong>#100 = 50.0<\/strong>\u00a0(large diameter D)<br \/><strong>#101 = 5.0<\/strong>\u00a0(pitch P)<br \/><strong>#102 = 30.0<\/strong>\u00a0(length L)<br \/><strong>#103 = 0.0<\/strong>\u00a0(Z start point)<br \/><strong>#104 = 0.1<\/strong>\u00a0(finishing allowance)<br \/><strong>#105 = 0.2<\/strong>\u00a0(cut depth)<br \/><strong>#106 = 0.05<\/strong>\u00a0(tool width K)<br \/><br \/><strong>(Calculated tooth height H=0.5P)<\/strong><br \/><strong>#107 = 0.5 * #101<\/strong>\u00a0(tooth height)<br \/><br \/><strong>(Calculate the minor diameter d=D-2H)<\/strong><br \/><strong>#109 = #100 - 2 * #107<\/strong>\u00a0(trail)<br \/><br \/><strong>(Calculate the roughing depth)<\/strong><br \/><strong>#110 = #107 - #104<\/strong>\u00a0(roughing depth)<br \/><strong>#111 = FIX[#110\/#105] + 1<\/strong>\u00a0(Number of roughing layers)<br \/><br \/><strong>(Calculate the crest width W1=0.366P)<\/strong><br \/><strong>#112 = 0.366 * #101<\/strong>\u00a0(tooth crest width)<br \/><br \/><strong>(Calculate the tooth bottom width W2 = W1-0.13)<\/strong><br \/><strong>#113 = #112 - 0.13<\/strong>\u00a0(tooth base width)<br \/><br \/><strong>(Verify tool width)<\/strong><br \/><strong>IF [#106 GT #113] THEN #3000=1<\/strong>\u00a0(tool over-width alarm)<br \/><br \/><strong>(Roughing cycle)<\/strong><br \/><strong>#114 = 1<\/strong>\u00a0(counter)<br \/><strong>WHILE [#114 LE #111] DO1<\/strong><br \/><br \/><strong>(Calculate current cutting depth)<\/strong><br \/><strong>#115 = #114 * #105<\/strong><br \/><strong>IF [#115 GT #110] THEN #115 = #110<\/strong><br \/><br \/><strong>(Calculate current X diameter)<\/strong><br \/><strong>#117 = #100 - 2 * #115<\/strong><br \/><br \/><strong>(Calculate Z borrowing amount)<\/strong><br \/><strong>#118 = #115 \/ #107<\/strong>\u00a0(cut depth percentage)<br \/><strong>#119 = 1 - #118<\/strong>\u00a0(remaining percentage)<br \/><strong>#120 = 0.3 * #119<\/strong>\u00a0(borrowing amount)<br \/><br \/><strong>(Left side cutting)<\/strong><br \/><strong>#121 = #103 + #120<\/strong>\u00a0(Z position)<br \/><strong>G00 Z#121<\/strong><br \/><strong>G76 P020030 Q50 R0.05<\/strong><br \/><strong>G76 X#117 Z[#102] P[#107*1000] Q[#105*1000] F#101<\/strong><br \/><br \/><strong>(Right side borrowed tool cutting)<\/strong><br \/><strong>#122 = #103 - #120<\/strong><br \/><strong>G00 Z#122<\/strong><br \/><strong>G76 X#117 Z[#102] P[#107*1000] Q[#105*1000] F#101<\/strong><br \/><br \/><strong>#114 = #114 + 1<\/strong><br \/><strong>END1<\/strong><br \/><br \/><strong>(Right side of finishing tooth profile)<\/strong><br \/><strong>#123 = #113 \/ 2<\/strong>\u00a0(half width)<br \/><strong>#124 = #123 - 0.02<\/strong>\u00a0(Z offset)<br \/><strong>G00 Z[#103 + #124]<\/strong><br \/><strong>G76 P020030 Q20 R0.02<\/strong><br \/><strong>G76 X#109 Z[#102] P[#107*1000] Q[#105*1000] F#101<\/strong><br \/><br \/><strong>(Left side of finishing tooth profile)<\/strong><br \/><strong>G00 Z[#103 - #124]<\/strong><br \/><strong>G76 X#109 Z[#102] P[#107*1000] Q[#105*1000] F#101<\/strong><br \/><br \/><strong>(Finishing the bottom of the tooth)<\/strong><br \/><strong>G00 Z#103<\/strong><br \/><strong>G76 P000030 Q10<\/strong><br \/><strong>G76 X#109 Z[#102] P[#107*1000] Q50 F#101<\/strong><br \/><br \/><strong>(Retract)<\/strong><br \/><strong>G00 X100.0 Z50.0<\/strong><br \/><strong>M30<\/strong><\/p>\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"wd-negative-gap elementor-element elementor-element-ec0f9ea e-flex e-con-boxed e-con e-parent\" data-id=\"ec0f9ea\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-60158e2 wd-width-100 elementor-widget elementor-widget-wd_title\" data-id=\"60158e2\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"wd_title.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"title-wrapper wd-set-mb reset-last-child wd-title-color-default wd-title-style-default wd-title-size-default text-left\">\n\n\t\t\t\n\t\t\t<div class=\"liner-continer\">\n\t\t\t\t<h4 class=\"woodmart-title-container title wd-fontsize-l\">Conclusion<\/h4> \n\t\t\t\t\t\t\t<\/div>\n\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"wd-negative-gap elementor-element elementor-element-0dfe946 e-flex e-con-boxed e-con e-parent\" data-id=\"0dfe946\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-61dab48 elementor-widget elementor-widget-wd_text_block\" data-id=\"61dab48\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"wd_text_block.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"wd-text-block reset-last-child text-left\">\n\t\t\t\n\t\t\t<p class=\"preFlex flexIn\">Through the above program comparison, I believe you can more intuitively see the difference between the writing of A-type macro programs and B-type macro programs. Although the A-type macro program was born earlier and lacks simplicity and ease of use, there are reasonable reasons that the A-type and B-type macro programs can help you complete the processing more efficiently in CNC machining.<\/p><p class=\"preFlex flexIn\">Among all lathe products of JIA KUN,\u00a0<a href=\"https:\/\/www.smartlathe.com\/cnc-systems\/syntec\" target=\"_blank\" rel=\"noopener\">Syntec<\/a> and <a href=\"https:\/\/www.smartlathe.com\/cnc-systems\/fanuc\" target=\"_blank\" rel=\"noopener\">Fanuc<\/a> all support type A macro program and type B macro program. If you want to know which system's macro program is more suitable for your use needs, please send us a message and our engineers will recommend a more suitable solution for you according to your use needs.<\/p>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>\u5b8f\u7a0b\u5e8f\u7684\u7c7b\u578b\u548c\u5e94\u7528 \u6570\u63a7\u7cfb\u7edf\u4e2d\u5b8f\u7a0b\u5e8f\u7684\u542b\u4e49 \u5b8f\u7a0b\u5e8f\u6216\u7528\u6237\u5b8f\u7a0b\u5e8f<\/p>","protected":false},"author":1,"featured_media":33117,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-33115","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-jiakun"],"_links":{"self":[{"href":"https:\/\/www.jiakuncnc.com\/zh_cn\/wp-json\/wp\/v2\/posts\/33115","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jiakuncnc.com\/zh_cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jiakuncnc.com\/zh_cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jiakuncnc.com\/zh_cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jiakuncnc.com\/zh_cn\/wp-json\/wp\/v2\/comments?post=33115"}],"version-history":[{"count":48,"href":"https:\/\/www.jiakuncnc.com\/zh_cn\/wp-json\/wp\/v2\/posts\/33115\/revisions"}],"predecessor-version":[{"id":33172,"href":"https:\/\/www.jiakuncnc.com\/zh_cn\/wp-json\/wp\/v2\/posts\/33115\/revisions\/33172"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.jiakuncnc.com\/zh_cn\/wp-json\/wp\/v2\/media\/33117"}],"wp:attachment":[{"href":"https:\/\/www.jiakuncnc.com\/zh_cn\/wp-json\/wp\/v2\/media?parent=33115"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jiakuncnc.com\/zh_cn\/wp-json\/wp\/v2\/categories?post=33115"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jiakuncnc.com\/zh_cn\/wp-json\/wp\/v2\/tags?post=33115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}