Rotate C axis with Rotated Tool Orientation

Rotate C axis with Rotated Tool Orientation

todd_sandercock
Enthusiast Enthusiast
783 Views
3 Replies
Message 1 of 4

Rotate C axis with Rotated Tool Orientation

todd_sandercock
Enthusiast
Enthusiast

Hi All,

 

I have a Deckel DMU 60T with a swivelling head (B axis) and rotating table (C axis). To make the most of the table area I am trying to use the tool orientation feature to rotate the table around to access an area of the bed that is not available in the normal travels.

 

When using:

var abc = machineConfiguration.getABC(W);

For a work plane (W) that has Z along the existing Z:

[[0.0202554, -0.999795, 0], [0.999795, 0.0202554, 0], [0, 0, 1]]

The returned abc is:

(0, 0, 0)

 

How can I turn the abc vector so that it rotates my workspace around Z? in this case I would expect the C axis rotation to be around 88 degrees.

 

Thanks

Todd

 

0 Likes
784 Views
3 Replies
Replies (3)
Message 2 of 4

todd_sandercock
Enthusiast
Enthusiast

Awesome, I think I have solved my own problem:

 

  if(abc.y == 0){ // If head not tilted
    var T =  W.getRow(0);
    abc = new Vector(0,0, -T.getXYAngle());
    
    // Some safety just to make sure - although impossible for this mill
    try {
      abc = machineConfiguration.remapABC(abc);
      currentMachineABC = abc;
    } catch (e) {
      error(
        localize("Machine angles not supported") + ":"
        + conditional(machineConfiguration.isMachineCoordinate(0), " A" + abcFormat.format(abc.x))
        + conditional(machineConfiguration.isMachineCoordinate(1), " B" + abcFormat.format(abc.y))
        + conditional(machineConfiguration.isMachineCoordinate(2), " C" + abcFormat.format(abc.z))
      );
    }
  }

 

0 Likes
Message 3 of 4

Laurens-3DTechDraw
Mentor
Mentor

This is by default in the Heidenhain post if you use Plane Spatial.

Where I'm pretty sure it actually rotates the wrong way. That has been send in to the post team.

Laurens Wijnschenk
3DTechDraw

AutoDesk CAM user & Post editor.
René for Legend.


0 Likes
Message 4 of 4

alex_winter
Advocate
Advocate

Machine Simulating this same scenario doesn't work.  It just stays at the WCS Orientation regardless of which way my X or Y axis are pointing on tool orientation tab for the toolpath.     

0 Likes