'***************************************************************************
'Galil Motion Control Sample DMC Code
'***************************************************************************
'Description:
'Change speed after input 1 is triggered
'***************************************************************************
#a           ;'label
  PR 20000   ;'distance
  SP 5000    ;'initial speed
  AC 1000000 ;'acceleration
  DC 1000000 ;'deceleration
  BG A        ;'start the motion
  AI 1       ;'wait for the sensor input
  SP 2500    ;'reduce the speed
EN           ;'end program