<?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 Heidenhain TNC 426 Post Processor problems-CYCL DEF 7 DATUM SHIFT in HSM Post Processor Forum</title>
    <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/heidenhain-tnc-426-post-processor-problems-cycl-def-7-datum/m-p/8502708#M12549</link>
    <description>&lt;P&gt;&lt;SPAN&gt;How to modify post to make it work?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1- My controller doesn't support cycl def 247 when using multiple WCS.&lt;/P&gt;
&lt;P&gt;CYCL DEF 7.0 datum shift&lt;/P&gt;
&lt;P&gt;CYCL DEF 7.1 #&amp;nbsp; &amp;nbsp;-&amp;gt; with table is the one we need.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2- Coolant&amp;nbsp;on just after tool change.&lt;/P&gt;
&lt;P&gt;3- Have the posted date at the beginning of the program with other comments&lt;/P&gt;</description>
    <pubDate>Sat, 05 Jan 2019 22:21:51 GMT</pubDate>
    <dc:creator>louisaldNTLD6</dc:creator>
    <dc:date>2019-01-05T22:21:51Z</dc:date>
    <item>
      <title>Heidenhain TNC 426 Post Processor problems-CYCL DEF 7 DATUM SHIFT</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/heidenhain-tnc-426-post-processor-problems-cycl-def-7-datum/m-p/8502708#M12549</link>
      <description>&lt;P&gt;&lt;SPAN&gt;How to modify post to make it work?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1- My controller doesn't support cycl def 247 when using multiple WCS.&lt;/P&gt;
&lt;P&gt;CYCL DEF 7.0 datum shift&lt;/P&gt;
&lt;P&gt;CYCL DEF 7.1 #&amp;nbsp; &amp;nbsp;-&amp;gt; with table is the one we need.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2- Coolant&amp;nbsp;on just after tool change.&lt;/P&gt;
&lt;P&gt;3- Have the posted date at the beginning of the program with other comments&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jan 2019 22:21:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/heidenhain-tnc-426-post-processor-problems-cycl-def-7-datum/m-p/8502708#M12549</guid>
      <dc:creator>louisaldNTLD6</dc:creator>
      <dc:date>2019-01-05T22:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Heidenhain TNC 426 Post Processor problems-CYCL DEF 7 DATUM SHIFT</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/heidenhain-tnc-426-post-processor-problems-cycl-def-7-datum/m-p/8505633#M12550</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3642336"&gt;@louisaldNTLD6&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. change line 99&lt;/P&gt;
&lt;PRE&gt;var useCycl247 = &lt;FONT color="#FF0000"&gt;false&lt;/FONT&gt; ; // use CYCL 247 for work offset&lt;/PRE&gt;
&lt;P&gt;2. change line 1025&lt;/P&gt;
&lt;PRE&gt;  if (insertToolCall) {
  setCoolant(tool.coolant);
  }&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. add ... at line 259&lt;/P&gt;
&lt;PRE&gt;  // ######################################################################                                                
  writeSeparator();
  if (hasGlobalParameter("document-path"))  { 
      var path = getGlobalParameter("document-path");
      if (path) {
      writeComment(localize("FILE") + "    = " + path);
      }
  }  
  if (hasGlobalParameter("username")) { 
    var username = getGlobalParameter("username");
    if (username) {
      writeComment("USERNAME" + " = " + username);
    }
  }
	
	var timeFormat = createFormat({decimals:0, force:true, width:2, zeropad:true});                                           
  var now = new Date();
  writeComment("DATE    = " + timeFormat.format(now.getDate()) + "." + timeFormat.format(now.getMonth() + 1) + "." + now.getFullYear()); 
  writeComment("TIME  = " + timeFormat.format(now.getHours()) + ":" + timeFormat.format(now.getMinutes()) + ":" + timeFormat.format(now.getSeconds())); 
  writeSeparator();
// ######################################################################&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The third one has more information ... you can use all and just delete the others.&lt;/P&gt;
&lt;P&gt;Perhaps you must change the Date format (in my case +1)&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 19:39:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/heidenhain-tnc-426-post-processor-problems-cycl-def-7-datum/m-p/8505633#M12550</guid>
      <dc:creator>FTKnur</dc:creator>
      <dc:date>2019-01-07T19:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Heidenhain TNC 426 Post Processor problems-CYCL DEF 7 DATUM SHIFT</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/heidenhain-tnc-426-post-processor-problems-cycl-def-7-datum/m-p/8513405#M12551</link>
      <description>Thank you very much, change line 99 it works great, Line 1025 did not&lt;BR /&gt;change anything and where would I check my date format?&lt;BR /&gt;&lt;BR /&gt;Thank you again.&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Jan 2019 15:29:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/heidenhain-tnc-426-post-processor-problems-cycl-def-7-datum/m-p/8513405#M12551</guid>
      <dc:creator>louisaldNTLD6</dc:creator>
      <dc:date>2019-01-10T15:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Heidenhain TNC 426 Post Processor problems-CYCL DEF 7 DATUM SHIFT</title>
      <link>https://forums.autodesk.com/t5/hsm-post-processor-forum/heidenhain-tnc-426-post-processor-problems-cycl-def-7-datum/m-p/8515335#M12552</link>
      <description>&lt;P&gt;Line 1025 should change that your coolant only will be postet after a tool call and not after every operation...&lt;/P&gt;
&lt;P&gt;You wanted that only after tool call?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;  // ######################################################################                                                
  writeSeparator();
&lt;FONT color="#00FF00"&gt;  if (hasGlobalParameter("document-path"))  { 
      var path = getGlobalParameter("document-path");
      if (path) {
      writeComment(localize("FILE") + "    = " + path);         &lt;FONT face="arial black,avant garde"&gt;This is for the Document Path on your PC/Server&lt;/FONT&gt;
      }&lt;/FONT&gt;
  }  
&lt;FONT color="#FF0000"&gt;  if (hasGlobalParameter("username")) { 
    var username = getGlobalParameter("username");
    if (username) {
      writeComment("USERNAME" + " = " + username);       &lt;FONT face="arial black,avant garde"&gt;This is for the Username you've in inventor&lt;/FONT&gt;
    }&lt;/FONT&gt;
  }
	
	var timeFormat = createFormat({decimals:0, force:true, width:2, zeropad:true});                                           
  var now = new Date();                             &lt;FONT face="arial black,avant garde" color="#3366FF"&gt;DAY                                                       MONTH                                          YEAR&lt;/FONT&gt;
  &lt;FONT color="#3366FF"&gt;writeComment("DATE    = " + timeFormat.format(now.getDate()) + "." + timeFormat.format(now.getMonth() &lt;FONT color="#FF0000"&gt;+ 1&lt;/FONT&gt;) + "." + now.getFullYear()); &lt;/FONT&gt; &lt;FONT face="arial black,avant garde" color="#3366FF"&gt;This is for the Date / Change the "+1" to your time zone&lt;/FONT&gt;
&lt;FONT color="#FF6600"&gt;  writeComment("TIME  = " + timeFormat.format(now.getHours()) + ":" + timeFormat.format(now.getMinutes()) + ":" + timeFormat.format(now.getSeconds())); &lt;FONT face="arial black,avant garde"&gt;This is for the Time&lt;/FONT&gt;&lt;/FONT&gt; 
  writeSeparator();
// ######################################################################&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Easiest way is you make a part/file and attach it. Then attach you PP and a g-code how it should look like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then I can change your PP.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 07:32:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/hsm-post-processor-forum/heidenhain-tnc-426-post-processor-problems-cycl-def-7-datum/m-p/8515335#M12552</guid>
      <dc:creator>FTKnur</dc:creator>
      <dc:date>2019-01-11T07:32:44Z</dc:date>
    </item>
  </channel>
</rss>

