Configure 4 axis head to cut Pocket2d with 45deg Tool Orientation

Configure 4 axis head to cut Pocket2d with 45deg Tool Orientation

markER7TS
Contributor Contributor
766 Views
3 Replies
Message 1 of 4

Configure 4 axis head to cut Pocket2d with 45deg Tool Orientation

markER7TS
Contributor
Contributor

We have an older Biesse Rover with a C-Axis, equipped with a fixed inclinable aggregate set to 45 degrees.  In Inventor, we've drawn a 3/4" thick panel and put a 3/4" chamfer along the edge at X=0 using the Pocket2D strategy, and to achieve this, we've set the Tool Orientation.  This works nicely, and in simulation the tool is at the correct angle.  Everything looks great.

Where I am stuck in the post is that I am getting incorrect results for my X and Z in the onLinear() entry function.  It appears that the Inventor Tool Orientation is implemented in the post by tilting the workPlane, which equals [[0.7071, 0, -0.7071], [0, 1, 0], [0.7071, 0, 0.7071]], and that makes sense, because I have tilted the tool in X and Z, but in onLinear(), for instance, Z goes to zero and stays there.  But I need Z to increase as X increases to affect my 45 degree slope.

I feel like I need to transform the points in onLinear() in the inverse direction of the tilt of the workPlane, and so I have tried this (and many other things) ...

 

function onLinear(x, y, z, feed) {

  // simplified

  // get the work plane
  var w = currentSection.workPlane;

  // get workplane inverse and multiply by my point
  var v = w.getTransposed().multiply(new Vector(x, y, z));

  // resulting vector does not yield the points I need

  writeBlock('testing', v);

}

 

... but I am well and truly stumped.  If anyone can offer some insight into how to approach this problem, it would be greatly appreciated.

Thanks,
Mark

 

 

0 Likes
Accepted solutions (1)
767 Views
3 Replies
Replies (3)
Message 2 of 4

markER7TS
Contributor
Contributor
Accepted solution

I solved this in onSection() using ...

var w = currentSection.workPlane;
setRotation(w);

And in case it helps someone else, for the Biesse you can express C, AR, and AZ like...

forceABC();
var v = w.getTurnAndTilt(Z, X);
writeBlock('G0', cOutput.format(v.z), arOutput.format(v.z), azOutput.format(v.x));

Mark

Message 3 of 4

bob.schultz
Alumni
Alumni

Hello Mark,

 

I am curious, what post are you using for your Biesse?

 

Thanks



Bob Schultz
Sr. Post Processor Developer

0 Likes
Message 4 of 4

markER7TS
Contributor
Contributor

Hi Bob,
   Thanks for your interest.  I've written a post pretty much from scratch.  We have a couple of older machines, both Biesse NC 1000, and we couldn't find anything 'off the shelf.'  I just keep adding capabilities as the need arises.

   All the best,

   Mark

0 Likes