@area419jon wrote:
Using Generic HAAS A-Axis (pre-NGC). I do have the NGC, but no options for PP it seems.
This seems to be a new issue as I don't ever remembering it happening in 2017. But by the end of my program the A-Axis is at some 4800 degrees. No big deal right, well, when it calls A0 at the end of the program it has to fully unwind. Luckily I have the HRC rotary, so its quick, and it does sling a lot of coolant off the parts which is nice, but Id still rather it not for rotary longevity purposes. I am guessing that in 2017 the PP had some max value the rotary would go in one direction.
Thanks
Let me expand a bit on the solution that @jbthornhill gave you. First, the haas next generation post does have properties for enabling different rotary axis configurations. In your case you would set the Has A-axis rotary property to true. The next generation post will also output a G91 G28 C0 block at the end of the program if a C-axis is defined, unfortunately it does not do the same for the A-axis. We will add this to the production version of the post, but for now you can make the change yourself. Find the following code in the onClose function.
// Unwind C axis at end
if (properties.hasCAxis) {
writeBlock(gFormat.format(28), gAbsIncModal.format(91), "C" + abcFormat.format(0));
writeBlock(gAbsIncModal.format(90));
}
and change it to look like the following.
// Unwind Rotary table at end
if (properties.hasCAxis) {
writeBlock(gFormat.format(28), gAbsIncModal.format(91), "C" + abcFormat.format(0));
writeBlock(gAbsIncModal.format(90));
} else if (properties.hasBAxis) {
writeBlock(gFormat.format(28), gAbsIncModal.format(91), "B" + abcFormat.format(0));
writeBlock(gAbsIncModal.format(90));
} else if (properties.hasAAxis) {
writeBlock(gFormat.format(28), gAbsIncModal.format(91), "A" + abcFormat.format(0));
writeBlock(gAbsIncModal.format(90));
}
On a last note, the 2017 version of the post should behave in the same manner. If it had a limit on how far the table could rotate, for example 360 degrees, and say it outputs moves from A360 to A5. Since the Haas table moves on a linear (wind-up/wind-down) scale this would have caused the machine to rotate 355 degrees in the counter-clockwise direction rather than 5 degrees in the positive direction as expected.
You can see how Setting 108 applies to your case by watching the following video.
https://www.youtube.com/watch?v=vupmJflbAIE

Bob Schultz
Sr. Post Processor Developer