If you just want your motor to turn in the opposite direction from time to time you have to enter negative values for a relative position mode.
If you want your motor just to turn the other way round as it actually does, there are several options:
- if you use a motor driver with differential inputs for step and dir signals plus a converter circuit to convert the single-ended motion controller signals to differential signals), just reverse the two lines of the DIR input of the motor driver. In case of a motor driver with single-ended DIR input you can also use a hardware inverter circuit for the DIR line.
- you can reverse the wires of one of the motor coils. When working with center-tapped coils, reverse the wires of the extreme ends of one motor coil
- you can swap the wires of the motor coils. For example, swap both wires of coil A with the both wires of coil B.
If you are using an incremental encoder as feedback device you will have to turn the direction of the encoder signals, too, I think in software version 6.1 and above there is a feature to reverse the encoder signals by software. Otherwise you have to swap the wire(s) of encoder phase A and phase B.