08-21-2022
08:09 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
08-21-2022
08:09 PM
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
CAD-Fusion 360/Inventor
Before PowerMILL
Fusion