I've been using Fusion 360 to program bar puller work recently and to save cycle time I've been manually editing the post to return to a safe position for tool change in a single move. Is this possible to have Fusion do this for me but only when I ask it to do so?
For example at present before a tool change it posts:
G53 G0 X-100
G53 Z-200
I would like:
G53 G0 X-100 Z-200
Also I have noticed that if I put an X G53 home position as -100 it will actually post X-200.
Ideally I'd like to make use of the "Index on the fly" feature but I'm not sure if Fusion supports this.
Solved! Go to Solution.
Solved by boopathi.sivakumar. Go to Solution.
Hi @info99H4D
could you attach the post processor file you are using, So that I can take a look into it.
Hi @info99H4D
Sorry for the delay in reply this thread got missed from my check list
here is the change you need to make in the post to get what you wanted
edit the post and find for function writeRetract
replace the function with this logic
/** Write retract in XY/Z. */
function writeRetract(section, retractZ) {
var _skipBlock = skipBlock;
if (!isFirstSection()) {
if (gotYAxis) {
skipBlock = _skipBlock;
writeBlock(gFormat.format(53), gMotionModal.format(0), "Y" + yFormat.format(properties.g53HomePositionY)); // retract
yOutput.reset();
}
skipBlock = _skipBlock;
writeBlock(gFormat.format(53), gMotionModal.format(0), "X" + spatialFormat.format(properties.g53HomePositionX),conditional(retractZ,"Z" + zFormat.format((section.spindle == SPINDLE_SECONDARY) ? properties.g53HomePositionSubZ : properties.g53HomePositionZ))); // retract
xOutput.reset();
if (retractZ) {
//skipBlock = _skipBlock;
//writeBlock(gFormat.format(53), gMotionModal.format(0), "Z" + zFormat.format((section.spindle == SPINDLE_SECONDARY) ? properties.g53HomePositionSubZ : properties.g53HomePositionZ)); // retract with regard to spindle
zOutput.reset();
}
}
}
Save and test it,
Now it also eliminates the x value doubling in the output as well
Thank you for your input.
I've tested this and it works although it still seems to double to X value. Is it possible to alter the return sequence as well? At the moment it will rapid in Z to the safe Z position then rapid in X. Ideally I'd like to have these both go on the same line.
To avoid print X twice then you just need to find all the xFormat.format(properties.g53HomePositionX)
in the post and you need to replace it with
spatialFormat.format(properties.g53HomePositionX)
this will solve the issue and to alter the return sequence find for this codes
previousABC.setZ(cOutput.getCurrent());
} else {
writeBlock(gMotionModal.format(0), zOutput.format(initialPosition.z));
writeBlock(gMotionModal.format(0), xOutput.format(initialPosition.x), yOutput.format(initialPosition.y));
}
}
// enable SFM spindle speed
Change it to like below
previousABC.setZ(cOutput.getCurrent());
} else {
writeBlock(gMotionModal.format(0), xOutput.format(initialPosition.x), zOutput.format(initialPosition.z), yOutput.format(initialPosition.y));
}
}
// enable SFM spindle speed
Save and test it carefully
Thanks for that - I've made the changes as per your suggestions and everything seems to be working perfectly now. The program is coming out with the correct X & Z movements as I was hoping.
Thanks again.
Can't find what you're looking for? Ask the community or share your knowledge.