The encoder is an important component of a motor control system that provides the ability to detect speed, position and direction for the control of a motor. Accurate encoder installation and the ability to interpret encoder signals accurately will enable stable operation, precise control and dependable performance of the motor control system. Engineers often have issues with respect to the rotation direction, phase sequence, and signal interpretation when they are commissioning or integrating their motor control system to the application.
In this article, we will discuss encoder wiring fundamentals, how to change the direction of rotation of a motor using an encoder, and how the encoder signal can impact the way that phase swapping of the motor will affect the motor controller.
The basics of encoder wiring will provide important information on several signal characteristic aspects to consider when installing an encoder on a motor.
Most industrial motor systems are equipped with incremental encoders that produce quadrature-output signals on two channels, referred to as Channel A and Channel B. Each channel on an encoder has a power connection, a ground connection, and signal connection that is supplied to the motor.
Correct installation of encoders will:
Provide a clean, stable signal transmission
Ensure that Channel A and Channel B maintain an accurate phase relationship with one another.
Provide reliable encoder feedback when subjected to electrical noise.
Signal integrity is important for high-power motors since the electromagnetic interference created by the motor may adversely impact the performance of the encoder. Encoders should be properly shielded, grounded and installed as far away from other electrical devices as possible.
The encoder direction of rotation detection is based on the phase relationship between Channel A and Channel B, i.e., when the motor is rotating in one direction, Channel A leads Channel B. In contrast, when the rotation is reversed, the Channel B will lead Channel A.
Motor controllers utilize the phase relationship of the encoder signals to establish the direction of rotation of the motor. If the motor controller receives Encoder A and B signals that are connected to channels A and B in reverse order, the controller may see forward motion as reverse motion and produce erratic or inaccurate control operation.
The two ways to change the direction of rotation of a motor are:
1. Swapping motor phases:
Typically for three-phase motors, the rotation direction is changed by swapping any two motor phase power connections. By changing the motor’s phase, the motor’s magnetic field changes direction and the motor rotates in the opposite direction than that of the rotating magnetic field.
However, when changing the rotation direction of the motor by swapping motor phases, the encoder's feedback direction must still maintain the expected direction as set by the controller. If the encoder's signals are not changed when the motor phases are changed, then the controller would detect that the motion of the motor was moving in a direction backwards from that expected by the controller.
2. Swapping encoder channels:
Another method of reversing the direction of a motor via an encoder connection is to swap encoder channels A and B in the encoder connection. Changing the connection of the encoder channel wire will reverse the direction of detection without the need to change the motor power supply's wiring configuration.
You will most commonly use this method when you are commissioning or when you cannot physically change the motor phase, or when you need to reverse the rotation direction at the feedback level.
![]()
In many cases, the modern motor controller and the associated software allow you to reverse the direction of rotation of the motor via the software parameter settings. In these cases, you do not need to change either the power supply connections of the motor or the encoder's channels, but the controller internally inverts the interpretation of the Encoder's feedback.
Although software method direction changes are very easy, it is always important to ensure that the encoder is correctly wired to prevent signal conflicts, unintended faults, or inaccurate position using high-speed operation.Issues Commonly Encountered When Commissioning An Encoder with An Electric Motor
Common problems encountered with encoder wires and encoder direction include:
A motor will oscillate during startup
The motor speed and/or position are reported incorrectly
There is a mismatch of encoder direction between the motor controller and the actual encoder motion
Best Practice Recommendations:
Utilize diagnostic equipment to verify the encoder signal phase.
Perform low-speed rotations to test the motor at low speeds during commissioning.
Confirm that the motor will operate correctly by testing encoder direction prior to putting the motor into service on a full load.
Compare the wiring of the motor with the settings of the motor controller to ensure consistency.
The final thoughts
The encoder wiring, the encoder direction detection, and the encoder signal swap of a motor control system are all interrelated to one another. A properly configured encoder with a correctly oriented encoder signal provides consistency in the interpretation of motor power output and feedback regardless of the encoder's physical orientation.
A good understanding of and correct application of encoder wiring logic simplifies the commissioning of an encoder and allows for accurate and dependable motor operation under a wide variety of applications and environments associated with electric vehicles and industrial motors.
The encoder is an important component of a motor control system that provides the ability to detect speed, position and direction for the control of a motor. Accurate encoder installation and the ability to interpret encoder signals accurately will enable stable operation, precise control and dependable performance of the motor control system. Engineers often have issues with respect to the rotation direction, phase sequence, and signal interpretation when they are commissioning or integrating their motor control system to the application.
In this article, we will discuss encoder wiring fundamentals, how to change the direction of rotation of a motor using an encoder, and how the encoder signal can impact the way that phase swapping of the motor will affect the motor controller.
The basics of encoder wiring will provide important information on several signal characteristic aspects to consider when installing an encoder on a motor.
Most industrial motor systems are equipped with incremental encoders that produce quadrature-output signals on two channels, referred to as Channel A and Channel B. Each channel on an encoder has a power connection, a ground connection, and signal connection that is supplied to the motor.
Correct installation of encoders will:
Provide a clean, stable signal transmission
Ensure that Channel A and Channel B maintain an accurate phase relationship with one another.
Provide reliable encoder feedback when subjected to electrical noise.
Signal integrity is important for high-power motors since the electromagnetic interference created by the motor may adversely impact the performance of the encoder. Encoders should be properly shielded, grounded and installed as far away from other electrical devices as possible.
The encoder direction of rotation detection is based on the phase relationship between Channel A and Channel B, i.e., when the motor is rotating in one direction, Channel A leads Channel B. In contrast, when the rotation is reversed, the Channel B will lead Channel A.
Motor controllers utilize the phase relationship of the encoder signals to establish the direction of rotation of the motor. If the motor controller receives Encoder A and B signals that are connected to channels A and B in reverse order, the controller may see forward motion as reverse motion and produce erratic or inaccurate control operation.
The two ways to change the direction of rotation of a motor are:
1. Swapping motor phases:
Typically for three-phase motors, the rotation direction is changed by swapping any two motor phase power connections. By changing the motor’s phase, the motor’s magnetic field changes direction and the motor rotates in the opposite direction than that of the rotating magnetic field.
However, when changing the rotation direction of the motor by swapping motor phases, the encoder's feedback direction must still maintain the expected direction as set by the controller. If the encoder's signals are not changed when the motor phases are changed, then the controller would detect that the motion of the motor was moving in a direction backwards from that expected by the controller.
2. Swapping encoder channels:
Another method of reversing the direction of a motor via an encoder connection is to swap encoder channels A and B in the encoder connection. Changing the connection of the encoder channel wire will reverse the direction of detection without the need to change the motor power supply's wiring configuration.
You will most commonly use this method when you are commissioning or when you cannot physically change the motor phase, or when you need to reverse the rotation direction at the feedback level.
![]()
In many cases, the modern motor controller and the associated software allow you to reverse the direction of rotation of the motor via the software parameter settings. In these cases, you do not need to change either the power supply connections of the motor or the encoder's channels, but the controller internally inverts the interpretation of the Encoder's feedback.
Although software method direction changes are very easy, it is always important to ensure that the encoder is correctly wired to prevent signal conflicts, unintended faults, or inaccurate position using high-speed operation.Issues Commonly Encountered When Commissioning An Encoder with An Electric Motor
Common problems encountered with encoder wires and encoder direction include:
A motor will oscillate during startup
The motor speed and/or position are reported incorrectly
There is a mismatch of encoder direction between the motor controller and the actual encoder motion
Best Practice Recommendations:
Utilize diagnostic equipment to verify the encoder signal phase.
Perform low-speed rotations to test the motor at low speeds during commissioning.
Confirm that the motor will operate correctly by testing encoder direction prior to putting the motor into service on a full load.
Compare the wiring of the motor with the settings of the motor controller to ensure consistency.
The final thoughts
The encoder wiring, the encoder direction detection, and the encoder signal swap of a motor control system are all interrelated to one another. A properly configured encoder with a correctly oriented encoder signal provides consistency in the interpretation of motor power output and feedback regardless of the encoder's physical orientation.
A good understanding of and correct application of encoder wiring logic simplifies the commissioning of an encoder and allows for accurate and dependable motor operation under a wide variety of applications and environments associated with electric vehicles and industrial motors.