sorry... I use PLC ABB 07 KT 97 and one board to control the stepper motor with 2 wires (one to pulse other to direction). I made a diagram in LD (ABB) using a timer to determine the speed and two accountants (one varying of 0 the 1) to generate the pulses and other to count the steps. It happens that the PLC this generating one I number wrong of steps.