Compensation pulses as function of direction movement