You have probably swapped x&z and y&spindle.
Looking at the rack, as you see it, left near plug is z, right near is spindle. Left furthest is x and right furthest is y.
Swap left near with left furthest and right near with right furthest.

Order should be:

AC2-P1. AC2-P2
AC1-P1. AC1-P2
MP-P1. MP-P2. MP-P3