Hi,
My lathe with an Ah-ha controller has a few of the same issues. So I can help with some of these.
#1. I've gotten rid of my G28s because they just don't work right (supposed to be supported, but I don't trust it.) I don't use a G53, but replacing G28 with G53 like you want has been discussed here:
http://forums.autodesk.com/t5/computer-aided-machining-cam/fusion-lathe-cam-question/td-p/5751396#2. If you just want the "Txx" part of the tool change, look in the post for the lines that read (I found 3 instances):
"writeBlock("T" + toolFormat.format(tool.number * 100 + compensationOffset));"and change to something like:
"writeBlock("T" + toolFormat.format(tool.number));"#3. Look for the line:
writeBlock(gSpindleModeModal.format(97), sOutput.format(tool.spindleRPM), mFormat.format(mSpindle));
get rid of the
gSpindleModeModal.format(97), part.
#4. My lathe had this one... There are a number of ways to deal with this one, but what I did was look for the text
"function onCircular(clockwise, cx, cy, cz, x, y, z, feed)"You'll then see several lines that contain the text "gMotionModal.format(clockwise ? 2 : 3)".
Just reverse the "2" and the "3". That will cause it to use the other.
#5. Get rid of all of this:
if (programName) {
var programId;
try {
programId = getAsInt(programName);
} catch(e) {
error(localize("Program name must be a number."));
return;
}
if (properties.o8) {
if (!((programId >= 1) && (programId <= 99999999))) {
error(localize("Program number is out of range."));
return;
}
} else {
if (!((programId >= 1) && (programId <= 9999))) {
error(localize("Program number is out of range."));
return;
}
}
if ((programId >= 8000) && (programId <= 9999)) {
warning(localize("Program number is reserved by tool builder."));
}
var oFormat = createFormat({width:(properties.o8 ? 8 : 4), zeropad:true, decimals:0});
if (programComment) {
writeln("O" + oFormat.format(programId) + " (" + filterText(String(programComment).toUpperCase(), permittedCommentChars) + ")");
} else {
writeln("O" + oFormat.format(programId));
}
} else {
error(localize("Program name has not been specified."));
return;
}
Ok.. I think that takes care of all of them.
Dave