Mazak Integrex post processor needs revise

Mazak Integrex post processor needs revise

nattkhampheng
Participant Participant
2,326 Views
5 Replies
Message 1 of 6

Mazak Integrex post processor needs revise

nattkhampheng
Participant
Participant

Hi,

I need to revise post processor for Mazak Integrex. Now I had modified from Mazak Integrex i200S original one.

The point that I want to change is at Txx.x, I want to replace by Txxxx.x  with tool offset likes Fanuc Turning PP.

Second I want to modify PP of B and C axis without bracket I found line no, 1444 in PP but I do not understand how to revise it.

 

Please advise.

0 Likes
Accepted solutions (1)
2,327 Views
5 Replies
Replies (5)
Message 2 of 6

Laurens-3DTechDraw
Mentor
Mentor

Do you know about the Visual Studio Code Fusion 360 plugin?

It makes it very easy to find the post-processor line that created a certain line in the NC-Ouput.

Some explanation here.

https://www.nyccnc.com/vs-code-editing-posts/

 

Laurens Wijnschenk
3DTechDraw

AutoDesk CAM user & Post editor.
Found out the hard way is the best way to win.


0 Likes
Message 3 of 6

nattkhampheng
Participant
Participant

Hi,

Yes, I know Visual Studio Code. I'm trying to revise most M code. Now only I need to modify T code from 2 digits  to 4 digits that I trying to find which line I have to modify. Now Fusion360 has output Txx and I trying to find the pont output as Txxxx. Another issue I found the point and adjusted it already. Only one problem now.

 

Regards

0 Likes
Message 4 of 6

yd_kwon
Advocate
Advocate
Accepted solution

In the onSection function, modify the section below.

  if (insertToolCall) {
    forceWorkPlane();
    gPlaneModal.reset();
    gFeedModeModal.reset();

    setCoolant(COOLANT_OFF, machineState.currentTurret);
    var toolFormat = createFormat({width:2, zeropad:true});
    if (getProperty("showSequenceNumbers") == "toolChange") {
      showSequenceNumbers = "true";
    }
    if (getProperty("preloadTool")) {
      var nextTool = getNextTool(tool.number);
      if (nextTool) {
        nextool = "T" + toolFormat.format(nextTool.number);
      } else {
        // preload first tool
        var section = getSection(0);
        var firstToolNumber = section.getTool().number;
        if (tool.number != firstToolNumber) {
          nextool = "T" + toolFormat.format(firstToolNumber);
        } else {
          nextool = "T" + toolFormat.format(0);
        }
      }
      writeBlock("T" + toolFormat.format(tool.number) + conditional(tool.productId, "." + tool.productId.replace(".", "")), nextool);
    } else {
      writeBlock("T" + toolFormat.format(tool.number) + conditional(tool.productId, "." + tool.productId.replace(".", "")));
    }
CAM-Fusion 360/Inventor
CAD-Fusion 360/Inventor
Before PowerMILL
0 Likes
Message 5 of 6

nattkhampheng
Participant
Participant

Hi,

Thank you very much for your point. I don't know how I can put Tool Offset Number. Just I put double tool.number. It is OK for me. It is the right answer but It is not right method.

I done like this,

 

writeBlock("T" + toolFormat.format(tool.number) + toolFormat.format(tool.number)+ conditional(tool.productId, "." + tool.productId.replace(".", "")), nextool);
} else {
writeBlock("T" + toolFormat.format(tool.number) + toolFormat.format(tool.number)+ conditional(tool.productId, "." + tool.productId.replace(".", "")));

0 Likes
Message 6 of 6

Laurens-3DTechDraw
Mentor
Mentor

Generally Fanuc turning posts do this:

writeToolBlock("T" + toolFormat.format(tool.number * 100 + compensationOffset));

it does also require the toolFormat to be defined for 4 numbers:

var toolFormat = createFormat({decimals:0, width:4, zeropad:true});

Laurens Wijnschenk
3DTechDraw

AutoDesk CAM user & Post editor.
Found out the hard way is the best way to win.


0 Likes