Community
HSM Post Processor Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

random Z values onCircular

0 REPLIES 0
Reply
Message 1 of 1
jaaaayyj
35 Views, 0 Replies

random Z values onCircular

have a simple contour going down to the bottom of the stock as a test. When I keep corners sharp gCode is outputted correctly

toolpath.PNG

 

 

XL2P X=123.230 Y=151.504 Z=-2.540 V=1829
XL2P X=101.640 Y=151.504 Z=19.050 0 V=1829
XL2P X=20.644 Y=151.504 Z=19.050 0 V=2438
XL2P X=17.469 Y=151.504 Z=19.050 0 V=2438
XL2P X=17.469 Y=234.054 Z=19.050 0 V=2438
XL2P X=163.519 Y=234.054 Z=19.050 0 V=2438
XL2P X=163.519 Y=151.504 Z=19.050 0 V=2438
XL2P X=101.640 Y=151.504 Z=19.050 0 V=2438
XL2P X=101.640 Y=151.504 Z=-6.350 V=0

 

 

Note there is no "G0" or "XG0" these are just tracking linear and circular moves

When the corners are changed to "round over" which doesn't change the geometry of the toolpath besides adding arch's in each corner here is the gcode.

 

XL2P X=123.230 Y=151.504 Z=-2.540 V=1829
XL2P X=101.640 Y=151.504 Z=19.050 V=1829
XL2P X=20.644 Y=151.504 Z=19.050 V=2438
XA2P G=3 X=0000 Y=17.469 Z=-135.629 I=20.644 J=154.679 V=0
XL2P X=17.469 Y=230.879 Z=19.050 V=2438
XA2P G=3 X=0000 Y=20.644 Z=-215.004 I=20.644 J=230.879 V=0
XL2P X=160.344 Y=234.054 Z=19.050 V=2438
XA2P G=3 X=0000 Y=163.519 Z=-211.829 I=160.344 J=230.879 V=0
XL2P X=163.519 Y=154.679 Z=19.050 V=2438
XA2P G=3 X=0000 Y=160.344 Z=-132.454 I=160.344 J=154.679 V=0
XL2P X=101.640 Y=151.504 Z=19.050 V=2438
XL2P X=101.640 Y=151.504 Z=-6.350 V=0

 

now everything except the Y is incorrect, and even though the path is all on the same plane the Z is different (Z=-211.829,Z=-132.454,Z=-135.629) it seems to be creating random values. This post was fully working a couple days ago and no changes have been made to it.

 function onCircular(clockwise, cx, cy, x, y, z, feed) {

   var workpiece = getWorkpiece();

   writeBlock(
     "XA2P", 
     "G=" + (clockwise ? 3 : 2),
     xOutput.format(x), 
     yOutput.format(y),
     zOutput.format(z-workpiece.upper.z),
     
     iOutput.format(cx),
     jOutput.format(cy),
     feedOutput.format(feed),
   );
 }

function onLinear(x,y,z,feed) {
  var workpiece = getWorkpiece();
   if(block != 0) {
     writeBlock(
       "XL2P",
       xOutput.format(x),
       yOutput.format(y),
       zOutput.format(z-workpiece.upper.z),
       z,
       feedOutput.format(feed),
     );
   };

   block++;
 }

those are the two functions, completely identical and very simple. the formatting is also identical the onLinear works fine with proper Z circular just spits out whatever. The Z onLinear is also correct and this post was working before so I have ruled out a WCS issue. 

 

I recently paid for fusion on cyber monday because I got this post working a few weeks ago and ran multiple tests crossing multiple projects all working fine with archs and circles. Now it just seems like there is no way out because the output fusion is giving is simply not accurate. Any help would be very appreciated

Tags (2)
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report