Latest Fusion 360 Post File

Post anything you want to discuss with others about the software.

Latest Fusion 360 Post File

Postby ThreeDJ16 » Sat Aug 04, 2018 2:15 am

Can someone tell me where the Z0 at the beginning and end of the program get's set in the post file? It used to be simple to find on the older posts, but on the new one I can't seem to find it anywhere. I have to change it to z-1 for every post file I create or it trips the soft limit going to Z0. So setting it 1mm below that solves that issue. But just haven't been able to find how that gets set now.

Appreciate any help.
-Jasen

Had to give it a txt extension in order to upload.
uccnc.cps.txt
(44.74 KiB) Downloaded 623 times
ThreeDJ16
 
Posts: 164
Joined: Tue Oct 31, 2017 5:57 pm

Re: Latest Fusion 360 Post File

Postby spumco » Sat Aug 04, 2018 4:26 am

I think it's at the end:

function writeRetract
...
...
if (words.length > 0) {
writeBlock(gAbsIncModal.format(90), gMotionModal.format(0), gFormat.format(53), words); // retract
}
zOutput.reset();
}

function onClose() {
onCommand(COMMAND_COOLANT_OFF);
onCommand(COMMAND_STOP_SPINDLE);

writeRetract(Z);


What's happening is that the post is calling a G53 Z0 (machine coordinate zero). The Retract function is defined, but I'm not sure where in the post it specified G53 "0", but this should help you get started in editing it.
spumco
 
Posts: 306
Joined: Mon Oct 03, 2016 10:10 pm

Re: Latest Fusion 360 Post File

Postby ThreeDJ16 » Sat Aug 04, 2018 5:26 am

spumco wrote:I think it's at the end:

function writeRetract
...
...
if (words.length > 0) {
writeBlock(gAbsIncModal.format(90), gMotionModal.format(0), gFormat.format(53), words); // retract
}
zOutput.reset();
}

function onClose() {
onCommand(COMMAND_COOLANT_OFF);
onCommand(COMMAND_STOP_SPINDLE);

writeRetract(Z);


What's happening is that the post is calling a G53 Z0 (machine coordinate zero). The Retract function is defined, but I'm not sure where in the post it specified G53 "0", but this should help you get started in editing it.


Thanks. I thought it was this (below) and tried setting this to -1, but it didn't work. I'll keep digging, as I haven't been able to find where G53 is specified at either.

/** Output block to do safe retract and/or move to home position. */
function writeRetract() {
if (arguments.length == 0) {
error(localize("No axis specified for writeRetract()."));
return;
ThreeDJ16
 
Posts: 164
Joined: Tue Oct 31, 2017 5:57 pm

Re: Latest Fusion 360 Post File

Postby ThreeDJ16 » Sat Aug 04, 2018 3:04 pm

I case anyone else looks here, I got the answer from the Fusion forum.

Line 1349. Change this line:

words.push("Z" + xyzFormat.format(machineConfiguration.getRetractPlane()));

To this:

words.push("Z" + xyzFormat.format(-1.0));
ThreeDJ16
 
Posts: 164
Joined: Tue Oct 31, 2017 5:57 pm


Return to General discussion about the UCCNC software

Who is online

Users browsing this forum: No registered users and 36 guests