Post processing error when using A axis

Post processing error when using A axis

alex_bellringer
Explorer Explorer
393 Views
2 Replies
Message 1 of 3

Post processing error when using A axis

alex_bellringer
Explorer
Explorer

Hi All 

 

I have a slight issue that I can't seem to get over 

 

when i use my modified fanuc post with A axis moves it fails on posting the tool this 

 

this is the part of the post processer below that does the tool list and as long as I don't have A axis moves it works fine

 

am I missing something simple?  the error line in the post attached is 2214 

 

Any help most gratefully appreciated 

 

  // dump tool information
   if (getProperty("writeTools")) {
    if (false) { // set to true to use the post kernel version of the tool list
      writeToolTable(TOOL_NUMBER_COL);
    } else {
      var zRanges = {};
      if (is3D()) {
        var numberOfSections = getNumberOfSections();
        for (var i = 0; i < numberOfSections; ++i) {
          var section = getSection(i);
          var zRange = section.getGlobalZRange();
          var tool = section.getTool();
          if (zRanges[tool.number]) {
            zRanges[tool.number].expandToRange(zRange);
          } else {
            zRanges[tool.number] = zRange;
          }
        }
      }
      var tools = getToolTable();
      if (tools.getNumberOfTools() > 0) {
        for (var i = 0; i < tools.getNumberOfTools(); ++i) {
          var tool = tools.getTool(i);
          var comment = "T" + toolFormat.format(tool.number)
          if (zRanges[tool.number])
           { comment += "  " + (tool.comment); }
error line listed in log           {comment += " - " + localize("ZMIN") + "=" + xyzFormat.format(zRanges[tool.number].getMinimum());}
          writeComment(comment);
        }
      }
    }
  }
}

 

0 Likes
394 Views
2 Replies
Replies (2)
Message 2 of 3

AdamKunzo
Collaborator
Collaborator

As far as I remember, Autodesk posts only output the Z min/max for the 3X toolpath. 

 

It makes sense, because how do you measure Z min/max when tool is oriented...

0 Likes
Message 3 of 3

billcainautodesk
Alumni
Alumni

Hello @alex_bellringer 

Variable zRange is not getting set in this case. Remove the if (is3D()) logic and also remove the var from the "" var zRange = section.getGlobalZRange(); ""   Let us know if that helps.

 

//if (is3D()) {
var numberOfSections = getNumberOfSections();
for (var i = 0; i < numberOfSections; ++i) {
var section = getSection(i);
zRange = section.getGlobalZRange(); // Remove var
var tool = section.getTool();
if (zRanges[tool.number]) {
zRanges[tool.number].expandToRange(zRange);
} else {
zRanges[tool.number] = zRange;
}
}
//}



Bill Cain
Sr. Technical Consultant
0 Likes