{"id":428,"date":"2026-08-03T12:55:19","date_gmt":"2026-08-03T11:55:19","guid":{"rendered":"https:\/\/makeinsalford.com\/wiki2\/?p=428"},"modified":"2026-08-03T12:55:19","modified_gmt":"2026-08-03T11:55:19","slug":"bar-puller","status":"publish","type":"post","link":"https:\/\/makeinsalford.com\/wiki\/cnc-machining\/haas-st-15y-lathe\/programming-haas-st-15y-lathe\/428\/bar-puller\/","title":{"rendered":"Bar Puller"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">We have a cheap no-brand bar puller from Aliexpress which can be used to automate production of parts, to a certain extent. To simplify programming of the bar pulling operation we have written a simple macro that you can use.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Usage<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>G65 P2000 A5. B-25. C14.76 D15. E54. F250. Q2. T707;\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>G Code<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td>G65<\/td><td>Call macro program. You cannot change this.<\/td><\/tr><tr><td>P2000<\/td><td>Macro program number. You cannot change this.<\/td><\/tr><tr><td>A5.<\/td><td>Rapid approach position in Z where the very end of the gripper will rapid to before feeding into the part.<\/td><\/tr><tr><td>B-25.<\/td><td>Grip distance &#8211; the Z position where the gripper will feed to when taking hold of the stock.<\/td><\/tr><tr><td>C14.76<\/td><td>Pull distance. How far to pull the stock. This is incremental, not absolute. <br>To determine this value, calculate the difference between front of the stock and the chuck before and after a part has been parted off. <\/td><\/tr><tr><td>D15.<\/td><td>Rapid retract distance in Z &#8211; where the gripper will feed to before rapiding home.<\/td><\/tr><tr><td>E54.<\/td><td>Work offset to use (this is G54)<br><\/td><\/tr><tr><td>F250.<\/td><td>Feed rate to use for the grip and release portions of the code.<\/td><\/tr><tr><td>Q2.<\/td><td>Number of parts to make.<\/td><\/tr><tr><td>T707;<\/td><td>Tool number and offset of the gripper.<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>We have a cheap no-brand bar puller from Aliexpress which can be used to automate production of parts, to a certain extent. To simplify programming of the bar pulling operation we have written a simple macro that you can use. Usage G Code Description G65 Call macro program. You cannot change this. P2000 Macro program [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[102],"tags":[127,126,15,131,62,14,129,128,130],"class_list":["post-428","post","type-post","status-publish","format-standard","hentry","category-programming-haas-st-15y-lathe","tag-automation","tag-bar-puller","tag-cnc","tag-g-code","tag-haas","tag-lathe","tag-macro","tag-production","tag-programming"],"_links":{"self":[{"href":"https:\/\/makeinsalford.com\/wiki\/wp-json\/wp\/v2\/posts\/428","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/makeinsalford.com\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/makeinsalford.com\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/makeinsalford.com\/wiki\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/makeinsalford.com\/wiki\/wp-json\/wp\/v2\/comments?post=428"}],"version-history":[{"count":1,"href":"https:\/\/makeinsalford.com\/wiki\/wp-json\/wp\/v2\/posts\/428\/revisions"}],"predecessor-version":[{"id":429,"href":"https:\/\/makeinsalford.com\/wiki\/wp-json\/wp\/v2\/posts\/428\/revisions\/429"}],"wp:attachment":[{"href":"https:\/\/makeinsalford.com\/wiki\/wp-json\/wp\/v2\/media?parent=428"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/makeinsalford.com\/wiki\/wp-json\/wp\/v2\/categories?post=428"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/makeinsalford.com\/wiki\/wp-json\/wp\/v2\/tags?post=428"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}