The robot path planning fails to avoid collisions

Arc Welding Cell with Track and One-axis Positioner (OLP).vcmx (28.5 MB)

I used a custom 7th axis and a custom robot tool, but the results are not as expected.Is there anyone who can help me?thanks a lot