'***************************************************************************
'Galil Motion Control Sample DMC Code
'***************************************************************************
'Description:
'Change jog speed based on analog input
'***************************************************************************
#a                  ;'label
JG 0                ;'initial speed
AC 500000           ;'acceleration
DC 500000           ;'deceleration
BG A                 ;'begin motion
#loop               ;'label
  JG @AN[1] * 10000 ;'read potentiometer and update speed
JP #loop            ;'repeat
EN                  ;'end program