A+ and A- are complementary signals - when A+ is high, A- is low and vice versa. The same holds for B+ and B-. If you exchange A+ with B-, the decoding system will see a lot of ambiguous results (A+ high at the same time as B- high, etc.). It will not be able correctly to interpret the input pulses in terms of distance and direction.
__________________
"Love justice, you who rule the world" - Dante Alighieri
Try it, and if it doesn't work, swap them back again.
The forum still doesn't know what the intent of this change is, and cannot foresee the outcome in so far as the process integrity is concerned.
__________________
"Did you get my e-mail?" - "The biggest problem in communication is the illusion that it has taken place" - George Bernard Shaw, 1856
__________________
"Did you get my e-mail?" - "The biggest problem in communication is the illusion that it has taken place" - George Bernard Shaw, 1856
YES, the only way to change the direction of the motor is to switch two of the main wires, the encoder is only switched if you get an error or unstable operation at speed
__________________
Why do they make manhole covers round? so they won't fall in [before asking "Who is John Galt?"]
People here have overlooked the very first statement by the OP. This is a closed loop system. If you reverse the direction of just the encoder direction or just the motor drive control you will have a positive instead of a negative feedback system. You must reverse polarity of both the motor and the feedback signal in a closed loop system or things will run away. If you have any limit switches for the motor travel then you must also get these to agree with the correct polarity selection.
__________________
"Don't disturb my circles." translation of Archimedes last words
Normally in closed loop the control command direction should correspond to the motor rotation and encoder feedback accordingly.
This means for the drive Forward must meet a direction of rotation (change motor phases if wrong) and (probably) +ive encoder feedback for this rotation.
Reverse will be opposite direction of all (obviously)