'MD2xp1.bas - Example Program

'Enable MD2
MD2MOTOR=1  : MD2ON

'Relative Moves.
MD2MOVETYPE="R" 

'Home the motor.
MD2HOME

'Move Motor 1 to 400
MD2TARGET(1)=400 : MD2MOVE

'Turn on output #1
MD2OUTPUTCODE=111  'COMMENT
md2outputs

'Wait 2 seconds
SLEEP 2

'Move Motor 2 to 400
MD2MOTOR=2   : MD2TARGET(2)=400 : MD2MOVE 

BEEP

END

