Community
Fusion Manufacture
Talk shop with the Fusion (formerly Fusion 360) Manufacture Community. Share tool strategies, tips, get advice and solve problems together with the best minds in the industry.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

A way to make post add a line after speed?

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Anonymous
338 Views, 2 Replies

A way to make post add a line after speed?

I'm just looking for a way to make the post processor for a generic mach3 mill add a 4 second pause automatically..

Example down below

 

POSTED

(BORE1)
M5
M9
T1 M6
S10000 M3
G54

 

FIXED

(BORE1)
M5
M9
T1 M6
S10000 M3

G4 P4
G54

2 REPLIES 2
Message 2 of 3
LibertyMachine
in reply to: Anonymous

Go into your post processor and find this line:

if (insertToolCall ||
      isFirstSection() ||
      (rpmFormat.areDifferent(tool.spindleRPM, sOutput.getCurrent())) ||
      (tool.clockwise != getPreviousSection().getTool().clockwise)) {
    if (tool.spindleRPM < 1) {
      error(localize("Spindle speed out of range."));
      return;
    }
    if (tool.spindleRPM > 99999) {
      warning(localize("Spindle speed exceeds maximum value."));
    }
    writeBlock(
      sOutput.format(tool.spindleRPM), mFormat.format(tool.clockwise ? 3 : 4)
    );
  }

We are going to add a line at the end (in red):

if (insertToolCall ||
      isFirstSection() ||
      (rpmFormat.areDifferent(tool.spindleRPM, sOutput.getCurrent())) ||
      (tool.clockwise != getPreviousSection().getTool().clockwise)) {
    if (tool.spindleRPM < 1) {
      error(localize("Spindle speed out of range."));
      return;
    }
    if (tool.spindleRPM > 99999) {
      warning(localize("Spindle speed exceeds maximum value."));
    }
    writeBlock(
      sOutput.format(tool.spindleRPM), mFormat.format(tool.clockwise ? 3 : 4)
    );
writeBlock(gFormat.format(4), "P" + "4");
  }

This is a "dumb" fix, in that it will always post out the 4 second dwell. If you want it to be ignored if the spindle speed is below a certain point, this will require additional code.

 

You will want to save this post to a new location on your computer, not the OEM post location, as it gets overwritten each update


Seth Madore
Owner, Liberty Machine, Inc.
Good. Fast. Cheap. Pick two.
Message 3 of 3
Anonymous
in reply to: LibertyMachine

You sir, are a helpful man.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report