Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
serge.quiblier
in reply to: eratus

Hello @eratus 

 

as the firmware settings can be edited at compilation time, we can't guess how a specific machine using an hobbyist firmware will react.

Your are complaining that this is not functionning on your so you can eventually edit your post processor.

Using any text editor open the cps file, search the onSection function inside.

then alter the code to look like this

  var initialPosition = getFramePosition(currentSection.getInitialPosition());
  if (!retracted) {
    if (getCurrentPosition().z < initialPosition.z) {
      writeBlock(gMotionModal.format(0), zOutput.format(initialPosition.z));
    }
  }
  if (insertToolCall) {  // Code added
    zOutput.reset();  //make sure Z will be output always
    writeBlock(gMotionModal.format(0), zOutput.format(initialPosition.z));
  }   // end of code addition
  if (insertToolCall || retracted) {
    gMotionModal.reset();
    writeBlock(
      gAbsIncModal.format(90),
      gMotionModal.format(0), xOutput.format(initialPosition.x), yOutput.format(initialPosition.y)
    );
    writeBlock(gMotionModal.format(0), zOutput.format(initialPosition.z));
  } else {

 

Hope it will fix your issue, before we eventually change the post behaviour.

 

Cheers.


______________________________________________________________

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