Hi @pmpollock
Just edit the post and find for the line // absolute coordinates and feed per min
You should able to see the codes like below
// absolute coordinates and feed per min
writeBlock(gAbsIncModal.format(90), gFormat.format(92), xOutput.format(properties.wcsX), yOutput.format(properties.wcsY));
if (properties.PostG98){
writeBlock(gFormat.format(98),"X"+(properties.StartX),"Y"+(properties.StartY),"I"+properties.SpacingX,"J"+properties.SpacingY,"P"+properties.XQuant,"K"+properties.YQuant);
}
you need to add // (forward slash) before the lines as shown below
// absolute coordinates and feed per min
writeBlock(gAbsIncModal.format(90), gFormat.format(92), xOutput.format(properties.wcsX), yOutput.format(properties.wcsY));
// if (properties.PostG98){
// writeBlock(gFormat.format(98),"X"+(properties.StartX),"Y"+(properties.StartY),"I"+properties.SpacingX,"J"+properties.SpacingY,"P"+properties.XQuant,"K"+properties.YQuant);
// }
Save the post and test now the M codes should come before the G98
Boopathi Sivakumar
Principal Technology Consultant