REM Continually moves from one limit switch to the other REM Set Motor currents CURRENTRUN = 2000 CURRENTBOOST = 2500 CURRENTIDLE = 1000 BOOST = AUTO REM Set the units to 1 per motor step UNITS = 256 REM Set up limit switches INTMODE(1) = FALL INTMODE(2) = FALL INTEN(1) = ON INTEN(2) = ON REM Loop forever ENERGISE = ON WHILE TRUE SYNCSTOP = 2 JOG = 200 PAUSE IDLE SYNCSTOP = 1 JOG = -200 PAUSE IDLE WEND DEFHALT STOPRAPID ENERGISE = OFF ENDHALT