Thanks for the quick reply and the help.
Edit: I should add that the issue was that the code was not good.
I am trying to edit the provided DMS Router Fagor 8065 post. The way it is programmed outputs G53 coordinate movements in the "function onOpen()" block - giving the following:
G53
G0 G53 Z0
X0 Y0
G53 B0. C0.
Our machine uses MSC coordinates instead of G53. The intended output would be formatted like:
#MCS Z-4.(MCS = MACHINE COORDINATE SYSTEM IN STANDARD UNITS - DOESNT TOGGLE PROGRAM TO STANDARD)
#MCS B0.
#MCS C0.
#MCS Z0.
I found this post but it seems to be outdated. The DMS post code that Bob Schults edited differs from the current DMS post code.
The pertinent code in the current DMS is here:
// startup blocks
writeBlock("#MCS OFF"); // Use part system
writeBlock("#CS OFF"); // Part coordinate system
if (getProperty("fifthAxis")) {
writeBlock("#RTCP OFF"); // Cancel TCP transformation
writeBlock("#HSC OFF"); // Disable contouring error
writeBlock("#KIN ID[0]"); // Kinematics style
}
writeBlock(gUnitModal.format(unit == IN ? 70 : 71), gCycleModal.format(80), gAbsIncModal.format(90));
writeBlock(gPlaneModal.format(17), gFormat.format(40));
writeBlock(gFormat.format(53));
if (getProperty("useVTable")) {
swapVTable(true, false);
}
}
function onComment(message) {
writeComment(message);
}
/** Force output of X, Y, and Z. */
function forceXYZ() {
xOutput.reset();
yOutput.reset();
zOutput.reset();
}
/** Force output of A, B, and C. */
function forceABC() {
aOutput.reset();
bOutput.reset();
cOutput.reset();
}
/** Force output of X, Y, Z, A, B, C, and F on next output. */
function forceAny() {
forceXYZ();
forceABC();
feedOutput.reset();
}