The XORed signal and the channel B signal can be used to reconstruct the channel A signal by simply XORing them again: '''(A XOR B) XOR B = A'''. For both encoders, channel B leads channel A when the motor is rotating in the forward direction; that is, B rises before A rises and B falls before A falls. (The waveforms in the diagram above would be produced by forward rotation.) Note that this description designates the A and B signals as labeled on the control board itself, which puts A in front on both sides. | The XORed signal and the channel B signal can be used to reconstruct the channel A signal by simply XORing them again: '''(A XOR B) XOR B = A'''. For both encoders, channel B leads channel A when the motor is rotating in the forward direction; that is, B rises before A rises and B falls before A falls. (The waveforms in the diagram above would be produced by forward rotation.) Note that this description designates the A and B signals as labeled on the control board itself, which puts A in front on both sides. |