'*************************************************************************** 'Galil Motion Control Sample DMC Code '*************************************************************************** 'Description: 'Home axis to reverse limit switch '*************************************************************************** #main DCA= 10000 ;'set low deceleration so we overshoot the switch JGA= -10000 ;'jog towards reverse limit BG A #l;JP #l, _LRA = 1 ;'wait until we hit the limit ST A AM A DCA= 67107840 ;'set infinite deceleration JGA= 500 ;'reverse direction SLOW BG A #m;JP #m, _LRA = 0 ;'wait until we get off the limit ST A AM A DPA= 0 MG "DONE" EN