Treadmill Motor Controller MC2100 for Virtual Reality purpose

Hello,

i am new to this forum and also to micro controllers. I am trying to connect my Arduino Leonardo board to an motor controller.(later i want to controll the treadmill with an IR distance sensor)
It has 8 Pins. 4 for the main motor with 2 hp and for others for an incline motor.
ive connected ground and 5 volt and one PWM cable from arduino to the motor controller and applied following script from this page http://forum.allaboutcircuits.com/archive/index.php/t-51061.html.
has anyone an idea how i can get it work?