Hi,
When rotating the A Axis and repeating a pattern there is unnecessary code in the NC; in this simple job the machine does this 15 times unnecessarily.
All I need is for the tool to go to the clearance position and rotate the A Axis, is there a way of achieving this?
Solved! Go to Solution.
Solved by Fabbunny69. Go to Solution.
Solved by boopathi.sivakumar. Go to Solution.
We always prefers to set the post in the most safest way that's the reason it retracts for any indexing changes because there may be chances the users may wrongly set the clearance height that could cause collision.
but you can modify the post to not out put the retract move if the toolpath is patterned in the following area
Find for this line
if (insertToolCall || newWorkOffset || newWorkPlane || forceSmoothing) {
// stop spindle before retract during tool change
if (insertToolCall && !isFirstSection()) {
onCommand(COMMAND_STOP_SPINDLE);
}
// retract to safe plane
writeRetract(Z);
forceXYZ();
change it to like below
if (insertToolCall || newWorkOffset || newWorkPlane || forceSmoothing) {
// stop spindle before retract during tool change
if (insertToolCall && !isFirstSection()) {
onCommand(COMMAND_STOP_SPINDLE);
}
// retract to safe plane
if (!currentSection.isPatterned()) {
writeRetract(Z);
} else {
retracted = true;
}
forceXYZ();
Save the post and test it carefully
Hi @Fabbunny69
Ignore my previous suggestion it would cause few other problems as well, Sorry for that
You just need to change that like below
// retract to safe plane
if ((insertToolCall || newWorkOffset) || !currentSection.isPatterned()){
writeRetract(Z);
}
forceXYZ();
also go and find for this line
onCommand(COMMAND_UNLOCK_MULTI_AXIS);
if (!retracted) {
writeRetract(Z);
}
you need to change it like below
onCommand(COMMAND_UNLOCK_MULTI_AXIS);
if (!retracted && !currentSection.isPatterned()) {
writeRetract(Z);
}
Save and test it carefully
Fantastic, thank you.
Now machine just goes to clearance position and then rotates A-Axis, no G28, no G43, no M09 etc.
Sorry didn't respond earlier I only work Tue-Fri
Hi,
I didn't spot this before but it seems now that the coolant commands are being ignored after the first tool, the first tool has M08 and M09 correct.
I also spotted when comparing programs before and after the alterations we made above that G49 has moved from being before M01 to being after M01.
The screen shot I have attached shows updated post on the right hand side.
Can't find what you're looking for? Ask the community or share your knowledge.