06-16-2016
08:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
06-16-2016
08:19 AM
I think if you enable spiral moves you need this bit of code added near the top of the onCircular function.
if (isSpiral()) {
var startRadius = getCircularStartRadius();
var endRadius = getCircularRadius();
var dr = Math.abs(endRadius - startRadius);
//writeComment("Spiral move");
if (dr > maximumCircularRadiiDifference) { // maximum limit
linearize(0.01); // or alternatively use other G-codes for spiral motion
return;
}
}
I think it need to go just after the compensation check.
function onCircular(clockwise, cx, cy, cz, x, y, z, feed) {
if (pendingRadiusCompensation >= 0) {
error(localize("Radius compensation cannot be activated/deactivated for a circular move."));
return;
}
Mark
Edit you need to comment out the writeComment line like this.
//writeComment("Spiral move");
Mark Hughes
Owner, Hughes Tooling
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Fusion