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

Test the code below.

 

  case COMMAND_START_SPINDLE:
    if(cycleType != "fine-boring"){
      // except fine-boring cycle case in Start_spinde
      onCommand(tool.clockwise ? COMMAND_SPINDLE_CLOCKWISE : COMMAND_SPINDLE_COUNTERCLOCKWISE);      
    } 
    // origin code
    // onCommand(tool.clockwise ? COMMAND_SPINDLE_CLOCKWISE : COMMAND_SPINDLE_COUNTERCLOCKWISE);
    return;

 

 

Your code can be modified like below.

 

function onOrientateSpindle(angle) {
  writeBlock("CYCL DEF 13.0 ORIENTATION ");
  writeBlock("CYCL DEF 13.1 ANGLE " + angleFormat.format(cycle.compensatedShiftOrientation));
  writeBlock(mFormat.format(19));//Used for oroenting the spindle for fine boring cycle
  onDwell(cycle.dwell);
}

 

 

CAM-Fusion 360/Inventor
CAD-Fusion 360/Inventor
Before PowerMILL