<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Bar-puller positioning in HSM Post Processor Forum</title>
    <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/bar-puller-positioning/m-p/6084856#M27035</link>
    <description>Greg,&lt;BR /&gt;&lt;BR /&gt;I appreciate the attention. Your process sounds remarkably like ours. I have a working program loop (and bar pull) that I currently manually add to every program I post. My program inside the loop is the entire part machining followed by bar pull.&lt;BR /&gt;&lt;BR /&gt;I started by wanting to add the bar puller to the post processor, which is more or less done. I then got ambitious and wanted to try adding a program loop that I could enable or disable. Mostly working... I can remove the loop with a simple click in the post properties dialogue.&lt;BR /&gt;&lt;BR /&gt;Here is my example code that I add manually for the loop:&lt;BR /&gt;&lt;PRE&gt;N110 (Loop Begin)&lt;BR /&gt;N112 M97 P120 L2 (Loops from P-L times)&lt;BR /&gt;&lt;BR /&gt;N114 (Run after all loops complete)&lt;BR /&gt;N116 G28&lt;BR /&gt;N118 M30&lt;BR /&gt;&lt;BR /&gt;N120 (Start of looped code)&lt;BR /&gt;N122 G53 G0 X0.&lt;BR /&gt;&lt;BR /&gt;//some program code//&lt;BR /&gt;&lt;BR /&gt;N844 M99 (Loop return and count)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;and this is the similar code being generated from the post:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;M97 P2030 L4&lt;BR /&gt;G28&lt;BR /&gt;M30&lt;BR /&gt;G53 G0 Y0.&lt;BR /&gt;G53 X0.&lt;BR /&gt;G53 Z0.&lt;BR /&gt;O2030&lt;BR /&gt;&lt;BR /&gt;//some program code//&lt;BR /&gt;&lt;BR /&gt;M99&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;This code does not run, I get an invalid p code error. For the post processor I opted to use the O number for the program loop instead of N because I wanted to define a number I could go to consistently, the N numbers appear to be added in HSM edit after post. It almost looks like the O number is supposed to be a separate program file located on the Lathe.&lt;BR /&gt;&lt;BR /&gt;As far as the rest of your program routine... my coworker was just asking me about adding a process for adding new stock, very similar to what you are doing. He also made mention of macros.</description>
    <pubDate>Wed, 22 Jul 2015 21:46:17 GMT</pubDate>
    <dc:creator>mfeathers</dc:creator>
    <dc:date>2015-07-22T21:46:17Z</dc:date>
  </channel>
</rss>

