GithubHelp home page GithubHelp logo

fusion360-posts's Introduction

Fusion360-Posts

Collection of Posts I use in Fusion 360. So far only have for fanuc 0i-MD. Try it at your own risk.

Here are the changes made to the generic fanuc post from Fusion 360 Library:

  • Program name in the next line.
  • Time Stamp for when the file is post.
  • Simplified Description of tool list.
  • Sequence numbers according to tool change.

For Sequence numbers according to tool change:

skipBlock = !insertToolCall;
    //Added tool description and moved around M03 code for desired effect.
    writeBlock("\n" + "N"+ sequenceNumber +"\n"+"T" + toolFormat.format(tool.number), mFormat.format(6),"("+ xyzFormat.format(tool.diameter) +" "
    + getToolTypeName(tool.type)+")\n");
    //Added sequence number increment. Do not use the sequence number setting
    //Moving this operation comment after tool change
    sequenceNumber += 1;
    if (hasParameter("operation-comment")) {
      var comment = getParameter("operation-comment");
      if (comment && ((comment !== lastOperationComment) || !patternIsActive || insertToolCall)) {
        //writeln(""); Removed the line from making additional line
        writeComment(comment);
        lastOperationComment = comment;
      } else if (!patternIsActive || insertToolCall) {
        writeln("");
      }
    } else {
      writeln("");
    }

For presetter (modded-0406),

Using Metrol TM26D touch type presetter.

  • Added Presetter commands, M65, corresponding tool number and B-code when using manual nc Measure tool command.
  • Optional global tolerance U code in microns through the options.

User Defined Options

  globalPresetterTolerance: {
    title: "Presetter Tolerance",
    description: "Enable Global Tolerance",
    group: 0,
    type: "boolean",
    value: false,
    scope: "post"
  },
  toolPresetterTolerance: {
    title: "Global Presetter Tolerance (µ)",
    description: "Tolerance value 'u' in presetter",
    group: 0,
    type: "integer",
    value: 100,
    scope: "post"
  },

Actual Code

case COMMAND_TOOL_MEASURE:
    var measureTool;
    var globalPresetterTolerance = getProperty("globalPresetterTolerance");
    valuetoolPresetterTolerance = getProperty("toolPresetterTolerance")* 0.001;

    if (!measureTool && globalPresetterTolerance) {
      writeBlock(
        mFormat.format(65),
        "T" + toolFormat.format(tool.number),
        "B" + xyzFormat.format(tool.number),
        "U" + valuetoolPresetterTolerance,
      );
    measureTool = true;
    }
    else {
      writeBlock(
        mFormat.format(65),
        "T" + toolFormat.format(tool.number),
        "B" + xyzFormat.format(tool.number)
      );
    measureTool = true;
    
    };
    return;

Todo:

  • Sequence numbers according to Operation change.
  • Option to have P or dwell time value in the post selection, instead of hard no.
  • Tool by tool tolerance U code for presetter command.
  • Optional Presetter feed control based on individual tool.
  • Tool return to a designated home location.

fusion360-posts's People

Contributors

rahul-sha avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.