'***************************************************************************
'Galil Motion Control Sample DMC Code
'***************************************************************************
'Description:
'Syncronizes motion with an input and sets output bit High for 1 second
'***************************************************************************
PR 7000 ;'distance
SP 5000 ;'speed
AI 1    ;'wait for start signal
BG A     ;'start motion
AM A     ;'wait for completion
SB 1    ;'set output 1 high
WT 1000 ;'wait 1 second
CB 1    ;'clear output 1
EN      ;'end of program