Community
var radius= Math.sqrt(Math.pow(xyzFormat.format(cx - start.x), 2) + Math.pow(xyzFormat.format(cy - start.y), 2));
var error= Math.abs(Math.sqrt(Math.pow(xyzFormat.format(x) - xyzFormat.format(cx), 2) + Math.pow(xyzFormat.format(y) - xyzFormat.format(cy), 2)) - radius) /radius;
if (getCircularPlane() == PLANE_XY) {
if (error > toPreciseUnit(0.0049, IN)) {
linearize(tolerance);
return;
}
}
var radius= Math.sqrt(Math.pow(xyzFormat.format(cx - start.x), 2) + Math.pow(xyzFormat.format(cy - start.y), 2));
var error= Math.abs(Math.sqrt(Math.pow(xyzFormat.format(x) - xyzFormat.format(cx), 2) + Math.pow(xyzFormat.format(y) - xyzFormat.format(cy), 2)) - radius) /radius;
if (getCircularPlane() == PLANE_XY) {
if (error > toPreciseUnit(0.0049, IN)) {
linearize(tolerance);
return;
}
}
Laurens Wijnschenk
3DTechDraw
AutoDesk CAM user & Post editor.
René for Legend.
Laurens Wijnschenk
3DTechDraw
AutoDesk CAM user & Post editor.
René for Legend.
Achim wrote:
What i´ve seen yesterday is that this is only because of rounding. When I use the values without any formats the error is something like 0,000004532, so nearly nothing. Another question, linuxcnc also supports radius format for G2/3 which is often the better choise to avoid exactly those issues. Did anyone try this on a linuxcnc?
Laurens Wijnschenk
3DTechDraw
AutoDesk CAM user & Post editor.
René for Legend.
Achim wrote:
What i´ve seen yesterday is that this is only because of rounding. When I use the values without any formats the error is something like 0,000004532, so nearly nothing. Another question, linuxcnc also supports radius format for G2/3 which is often the better choise to avoid exactly those issues. Did anyone try this on a linuxcnc?
Laurens Wijnschenk
3DTechDraw
AutoDesk CAM user & Post editor.
René for Legend.
Achim wrote:
The code was only into the wrong place into your post, thats why it failed, try this one please.
Achim wrote:
The code was only into the wrong place into your post, thats why it failed, try this one please.
René Fonseca wrote:
I just looked at this example. And the error for the move you list is only 0.0002" which is well below then your 0.005" limit. So not sure why your CNC control would error out for this case. Since 4 decimals are used you can expect a maximum error around 0.0002" when coordinates are rounded up and down, respectively.
Maybe the CNC is actually failing for a different move?
René Fonseca wrote:
I just looked at this example. And the error for the move you list is only 0.0002" which is well below then your 0.005" limit. So not sure why your CNC control would error out for this case. Since 4 decimals are used you can expect a maximum error around 0.0002" when coordinates are rounded up and down, respectively.
Maybe the CNC is actually failing for a different move?
SGoldthwaite wrote:
Did you look at the spreadsheet with the calculation that's in the original post?
Laurens Wijnschenk
3DTechDraw
AutoDesk CAM user & Post editor.
René for Legend.
SGoldthwaite wrote:
Did you look at the spreadsheet with the calculation that's in the original post?
Laurens Wijnschenk
3DTechDraw
AutoDesk CAM user & Post editor.
René for Legend.
Can't find what you're looking for? Ask the community or share your knowledge.