<?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: Haas Post Mod - Position Table @ Center of Machine  in HSM Post Processor Forum</title>
    <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/haas-post-mod-position-table-center-of-machine/m-p/6103574#M28190</link>
    <description>I agree on the use of machine configuration, but it still doesn't handle the units correctly for me...and some of the support guys are recommending hard coded changes...&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;BR /&gt; I had a bit of an issue with the above piece of code to change my end of cycle position. I fixed it, but forgot to update the thread. Upon taking it a step further, I ran into another little glitch...&lt;BR /&gt;&lt;BR /&gt;First, the above did not work because it was just trying to change the 'intermediate position' that G28 (return to machine home) uses as it is a 2-step routine. It moves to a specified intermediate position before continuing on the the machine home. Of course, that was not what we were getting at.&lt;BR /&gt;&lt;BR /&gt;The other way is to use the G53 command to shift to machine coordinates, and then specify the desired end of cycle position. Upon digging into the post, I found that it is certainly already set up to do so. It was just waiting on some variables to be defined to initiate the alternate output...&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;&amp;nbsp; if (!machineConfiguration.hasHomePositionX() &amp;amp;&amp;amp; !machineConfiguration.hasHomePositionY()) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; writeBlock(gFormat.format(28), gAbsIncModal.format(91), "X" + xyzFormat.format(0), "Y" + xyzFormat.format(0)); // return to home&lt;BR /&gt;&amp;nbsp; } else {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; var homeX;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if (machineConfiguration.hasHomePositionX()) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; homeX = "X" + xyzFormat.format(machineConfiguration.getHomePositionX());&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; var homeY;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if (machineConfiguration.hasHomePositionY()) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; homeY = "Y" + xyzFormat.format(machineConfiguration.getHomePositionY());&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; writeBlock(gAbsIncModal.format(90), gFormat.format(53), gMotionModal.format(0), homeX, homeY);&lt;BR /&gt;&amp;nbsp; }&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;So I went in and made some edits for my machine and got it passing things through and posting the output that I was after:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;N1300 G28 G91 Z0.&lt;BR /&gt;N1305 G90 G53 X-15. Y0.&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;...But the issue is that in order for my to get the above to output X-15, I had to divide that by 25.4 as it is passing the millimeter equivalent into my output file (X-381.). This seems to be a bug as everything else is specified in inches and I've seen no other metric values. The value that I needed to enter to get X-15 is shown in the dialog box. Note it says inches in both places on that screen also...&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://s358.photobucket.com/user/cabrydon/media/Capture1_zpsf4cb5f78.jpg.html" target="_blank"&gt;&lt;IMG src="http://i358.photobucket.com/albums/oo27/cabrydon/Capture1_zpsf4cb5f78.jpg" /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;So I have things outputting great otherwise, without having to manually edit right now, which is wonderful. So I am not sure if the above issue is user error or not; at my competency level with HSMExpress it is difficult to discern.&lt;BR /&gt;&lt;BR /&gt;The home position I am defining also keeps resetting. Is there a 'master' machine config because it appears as though my edits only affect that particular job. How do you access it otherwise? Can I just define these parameters on the post somewhere?&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;So either my post is messed up or there is something else going on here...</description>
    <pubDate>Mon, 23 Mar 2015 17:20:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-03-23T17:20:16Z</dc:date>
  </channel>
</rss>

