Announcements
Autodesk Community will be read-only between April 26 and April 27 as we complete essential maintenance. We will remove this banner once completed. Thanks for your understanding

wcs probing is not rotating b axis with a @ 0.0

Anonymous

wcs probing is not rotating b axis with a @ 0.0

Anonymous
Not applicable

I've found that the wcs probing is not moving to A0.0 b90. as it should be by using tool orientation per tool op .  

0 Likes
Reply
482 Views
6 Replies
Replies (6)

Richard.stubley
Autodesk
Autodesk

Hi @Anonymous,

 

What machine and post are you using?

 

Just to make sure I understand, when you run the nc code on the machine the B axis is remaining at 0° and not travelling to 90°



Richard Stubley
Product Manager - Fusion Mechanical Design
0 Likes

Anonymous
Not applicable

Hi @Richard.stubley 

Yes it should be b 90. Not b0. , I'm running haas pre ngc trunion post . Its not modified 

0 Likes

Richard.stubley
Autodesk
Autodesk

Hi @Anonymous.,

 

Ive been looking into this and asked out post team for advice. This is the default behaviour of Fusion even if you do the same thing with a 2D contour path.

 

The post looks at this new orientation and as it sees no change in the Z tool axis it knows that it can achieve what you are trying to get it to do without applying any additional transformations. There is a lot of logic in the posts to always minimise movements and only do what is absolutely necessary. 

 

What was the reason behind probing once and then again at B90? 
I might be able to think of a way round this if I can imagine the end goal.

 



Richard Stubley
Product Manager - Fusion Mechanical Design
0 Likes

Anonymous
Not applicable

Hello @Richard.stubley 

Well to put it simple . I need to hold. 0005" to the center of the part in a specific orentation. So because of that I need to probe in that orentation.  

Thank you 

0 Likes

Anonymous
Not applicable

Hello @Richard.stubley  I was wondering what the out come of your convasation with the post team on this topic was ? This maybe usefull in checking part to cor on older haas machines in diffrent orienations .  

0 Likes

bob.schultz
Autodesk
Autodesk

Probing  outside of the standard Setup Orientation in this example can be accomplished with a couple of changes to the post processor.  First make sure that you are using the latest version of the post, which you can download from here.  I don't know the post being used in the original query, but I am going to assume it is either a Fanuc or Haas based post.

 

The first issue is that the tool orientation in the probing operation is a rotation around the Z-axis and most of our post processors will actually rotate the XY coordinates to match this orientation rather than rotate the Z-axis table to compensate for the orientation.  This can be resolved by modifying the following code in getWorkPlaneMachineABC ...

  var tcp = false;
  if (tcp) {
    setRotation(W); // TCP mode
  } else {
    var O = machineConfiguration.getOrientation(abc);
    var R = machineConfiguration.getRemainingOrientation(abc, W);
    setRotation(R);
  }

... to look like this ...

var tcp = false;
  if (tcp) {
    setRotation(W); // TCP mode
  } else {
    var O = machineConfiguration.getOrientation(abc);
    var R = machineConfiguration.getRemainingOrientation(abc, W);
    var rotate = true;
    var axis = machineConfiguration.getAxisV();
    if (axis.isEnabled() && axis.isTable()) {
      var ix = axis.getCoordinate();
      var rotAxis = axis.getAxis();
      if (isSameDirection(machineConfiguration.getDirection(abc), rotAxis) ||
          isSameDirection(machineConfiguration.getDirection(abc), Vector.product(rotAxis, -1))) {
        var direction = isSameDirection(machineConfiguration.getDirection(abc), rotAxis) ? 1 : -1;
        abc.setCoordinate(ix, Math.atan2(R.right.y, R.right.x) * direction);
        rotate = false;
      }
    }
    if (rotate) {
      setRotation(R);
    }
  }

This logic is described in 4.3.5 Work Plane - 3+2 Operations in the Post Processor Training Guide.

 

Next, you may find the following variable defined towards the top of the post processor.  Change its value to true to allow for probing during a rotation.  This change is not required when only rotating around the Z-axis, but is required if probing at any other orientation.

var allowIndexingWCSProbing = true; // specifies that probe WCS with tool orientation is supported

If you are running a post that does not have this variable defined, then you can comment out the error message that disables WCS probing at an orientation other than 0,0,1 at the top of the onCyclePoint function.

  var probeWorkOffsetCode;
  if (isProbeOperation()) {
    // <<< COMMENT OUT THIS IF BLOCK /* ... */
    /*if (!isSameDirection(currentSection.workPlane.forward, new Vector(0, 0, 1)) && (!cycle.probeMode || (cycle.probeMode == 0))) {
      error(localize("Updating WCS / work offset using probing is only supported by the CNC in the WCS frame."));
      return;
    }*/

 



Bob Schultz
Sr. Post Processor Developer

1 Like