SIEMENS 840D

SIEMENS 840D

DGavin0077
Enthusiast Enthusiast
2,644 Views
1 Reply
Message 1 of 2

SIEMENS 840D

DGavin0077
Enthusiast
Enthusiast

is their a way to force cycle 800 even if it's not a multi axis tool path?

0 Likes
2,645 Views
1 Reply
Reply (1)
Message 2 of 2

serge.quiblier
Autodesk
Autodesk

Hi @DGavin0077 

 

yes it's possible.

You will have to edit the post processor and make two changes in the post.

The first change is addition a bit of code in the defineWorkplane function.

Please note that some lines of code had been hidden to reduce the amount of code shown.

function defineWorkPlane(_section, _setWorkPlane) {
  var abc = new Vector(0, 0, 0);
  cancelTransformation();

  if (!is3D() || machineConfiguration.isMultiAxisConfiguration()) { // use 5-axis indexing for multi-axis mode
    // set working plane after datum shift

    if (_section.isMultiAxis()) {
.......
// Hiding some code for concise display
.....
.....
        setWorkPlane(abc, true); // turn
      }
    }
  } else { // pure 3D
    var remaining = _section.workPlane;
    if (!isSameDirection(remaining.forward, new Vector(0, 0, 1))) {
      error(localize("Tool orientation is not supported."));
      return abc;
    }
    setRotation(remaining);
    setWorkPlane(abc, true); // ADSK Added to force TWP in 3 axis
  }
  if (currentSection && (currentSection.getId() == _section.getId())) {
    operationSupportsTCP = (_section.isMultiAxis() || !useMultiAxisFeatures) && _section.getOptimizedTCPMode() == OPTIMIZE_NONE;
  }
  return abc;
}

 

The code displayed on line 23 is the addition. The rest of the lines are here for reference.

 

You can either delete, or comment some lines at the start of the setWorkPlane function


function setWorkPlane(abc, turn) {
  /*
  if (is3D() && !machineConfiguration.isMultiAxisConfiguration()) {
    return; // ignore
  }
  */

  if (!((currentWorkPlaneABC == undefined) ||
        abcFormat.areDifferent(abc.x, currentWorkPlaneABC.x) ||
        abcFormat.areDifferent(abc.y, currentWorkPlaneABC.y) ||
        abcFormat.areDifferent(abc.z, currentWorkPlaneABC.z) ||
        (!currentWorkPlaneABCTurned && turn))) {
    return; // no change
  }

..... rest of the function

 

Lines 3 to 7 are the ones that need to be deleted, or commented.

 

Regards


______________________________________________________________

If my post answers your question, please click the "Accept Solution" button. This helps everyone find answers more quickly!



Serge.Q
Technical Consultant
cam.autodesk.com
0 Likes