Hi @bernesto1
for providing feedback, there are several ways of doing that.
If the post had been advertised, on the HSM Posts idea station, you can post in the corresponding thread.
If the link to the hidden post had been posted by an Autodesk employee, you can send him a private message via the forum.
Regarding the changes to the post, to stop the spindle at the end of the program, you can edit the onClose function:
function onClose() {
previousToolingData = toolingData;
writeln("");
optionalSection = false;
onCommand(COMMAND_COOLANT_OFF);
onCommand(COMMAND_STOP_SPINDLE); // new line added for spindle stop
onCommand(COMMAND_STOP_CHIP_TRANSPORT);
then to stop the spindle when direction will change, edit this piece of code in the onSection function:
// writeBlock(mFormat.format(clampSecondaryChuck ? x : x));
var initialPosition = getFramePosition(currentSection.getInitialPosition());
var spindleChanged = forceSpindleSpeed || newSpindle || isSpindleSpeedDifferent();
if (!isFirstSection()) { // start of new code
// If spindle direction is changing, the spindle must be stopped first.
if (!(currentSection.getTool().isClockwise() && getPreviousSection().getTool().isClockwise())) {
onCommand(COMMAND_STOP_SPINDLE);
}
} // end of new code for stopping spindle when changin direction
if (insertToolCall || spindleChanged) {
forceSpindleSpeed = false;
Regards
______________________________________________________________
If my post answers your question, please click the "Accept Solution" button. This helps everyone find answers more quickly!