rem This program makes the X-motor to move back and forth rem Concepts demonstrated; velx, accx, posx, movax, rem, wait, goto rem Concepts demonstrated; Usage of variables A = 2000 B = 20000 C = 5000 T = 250 rem Set the velocity velx A rem Set the acceleration accx B 200 rem Set the position to move to posx C rem Start the absolute move movax rem Wait until the move is completed donex? rem Wait for T msec wait T print "X = ", X rem Set the position to move to posx 0 rem Start the absolute move movax rem Wait until the move is completed donex? rem Wait for T msec wait T print "X = ", X rem Start all over again goto 200 end $