If the robot is capable of completing each individual cut without winding up A6, but not the entire program, then this should be easily solved by unwinding between cuts. This would be done by setting a neutral position above the work table and commanding specific axis values (ie: A6 = 0) rather than allowing the robot to solve for a cartesian position.