Section 5 of the manual is entitled ‘exception handling’.
At the end of it the problem description “The motor rotates in the opposite direction” is given.
The solution is “Set the running direction (F0.12=1) to reverse”.
The point is that you do not need to fiddle with the output wires at all. Just change a parameter inside the computer. It has two possible ways to choose ‘forward’ and thus has a 50% chance of being wrong. It therefore gives its human controller a way to correct any error it makes.