Fanuc post modification

Fanuc post modification

marshallt179
Enthusiast Enthusiast
372 Views
2 Replies
Message 1 of 3

Fanuc post modification

marshallt179
Enthusiast
Enthusiast

I purchased an older Hardinge lathe and I'm trying to make a few tweaks to the Fanuc post that is in the Fusion 360 post library. Attached are a sample file, the post processor and a posted file with the changes I am trying to make noted. Is there anyone who could make these modifications or answer some of the questions that I had in the notes? I have made some progress but I could use some help. 

https://a360.co/40AR47U

Thanks!

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

yd_kwon
Advocate
Advocate

1. tool comment

Find the code below

writeToolBlock("T" + toolFormat.format(tool.number * 100 + compensationOffset));
    if (tool.comment) {
      writeComment(tool.comment);
    }

Modify like below

  writeToolBlock("T" + toolFormat.format(tool.number * 100 + compensationOffset));
    if (tool.comment) {
      writeComment(tool.comment);
    }
    if (getProperty("writeTools")){
      var zRange = currentSection.getGlobalZRange();
      var toolcomment = (tool.diameter != 0 ? "D=" + spatialFormat.format(tool.diameter) + " " : "") +
      (tool.isTurningTool() ? localize("NR") + "=" + spatialFormat.format(tool.noseRadius) : localize("CR") + "=" + spatialFormat.format(tool.cornerRadius)) +
      (tool.taperAngle > 0 && (tool.taperAngle < Math.PI) ? " " + localize("TAPER") + "=" + taperFormat.format(tool.taperAngle) + localize("deg") : "") +
      (zRange ? " - " + localize("ZMIN") + "=" + spatialFormat.format(zRange.getMinimum()) : "") +
       " - " + localize(getToolTypeName(tool.type));
      writeComment(toolcomment);
    }    

output

→ Cap 2023-02-03 13-07-38-134.png

 

2. part catcher

Modify getcode()  below

function getCode(code) {
  switch (code) {
  case "PART_CATCHER_ON":
  return mFormat.format(26);
  case "PART_CATCHER_OFF":
  return mFormat.format(27);
....

output

→ Cap 2023-02-03 13-10-29-543.png

 

CAM-Fusion 360/Inventor
CAD-Fusion 360/Inventor
Before PowerMILL
0 Likes
Message 3 of 3

marshallt179
Enthusiast
Enthusiast

@yd_kwon Thank you for taking the time to look at this. Now I just need to figure what I need to modify on the threading, drilling, and tapping cycles. 

0 Likes