Connect the sensor wires ( S1 & S2 ) to terminals 8 & 9 ( Pulse & Ground). It doesn't matter what order. Connect the motor wires (M1 & M2) to terminals 10 & 11 (M1 & M2) If the motor runs west when it's supposed to go east just switch the M1 and M2 wires.