Community
Mike Marcott wrote:
Hi,
the machine I am trying to interface with works best when the posted file contains no arcs (G01 only). Does the post support conversion of arcs to line within tolerance? If so, how do I do that?
as an example I want to cut a 5" diameter, but I want the post to output line segments to tolerance to approximate that 5" diameter with G01 line moves only. Can this be done in this post?
Thank you!
Mike
switch (getCircularPlane()) {
case PLANE_XY:
writeBlock(gPlaneModal.format(17), gMotionModal.format(clockwise ? 2 : 3), xOutput.format(x), yOutput.format(y), zOutput.format(z), "R" + rFormat.format(r), feedOutput.format(feed));
break;
case PLANE_ZX:
writeBlock(gPlaneModal.format(18), gMotionModal.format(clockwise ? 2 : 3), xOutput.format(x), yOutput.format(y), zOutput.format(z), "R" + rFormat.format(r), feedOutput.format(feed));
break;
case PLANE_YZ:
writeBlock(gPlaneModal.format(19), gMotionModal.format(clockwise ? 2 : 3), xOutput.format(x), yOutput.format(y), zOutput.format(z), "R" + rFormat.format(r), feedOutput.format(feed));
break;
default:
linearize(getTolerance())
}
function onCircular(clockwise, cx, cy, cz, x, y, z, feed) {
linearize(tolerance);
}
Mike Marcott wrote:
Rob & Andrew - Thank you for the reply.
I replaced the entire section as suchfunction onCircular(clockwise, cx, cy, cz, x, y, z, feed) {
linearize(tolerance);
}
This worked. Thanks for both your replies!
tolerance = spatial(0.002, MM);
if (hasParameter("operation:tolerance")) {
var linearizeTolerance = getParameter("operation:tolerance")/10;
}
else{
var linearizeTolerance = tolerance;
}
linearize(linearizeTolerance);
Laurens Wijnschenk
3DTechDraw
AutoDesk CAM user & Post editor.
René for Legend.