'***************************************************************************
'Galil Motion Control Sample DMC Code
'***************************************************************************
'Description:
'Use aux encoder to position load for increased accuracy.  See also DV1 for
'continous dual loop mode.
'***************************************************************************
#dual                 ;'label
DE 0                  ;'set load position to zero
PR 40000              ;'distance
BG A                   ;'start first move
AM A                   ;'wait for completion
WT 20                 ;'wait for settling if necessary
PR 4 * (10000 - _TDA) ;'correction move
BG A                   ;'start correction
EN                    ;'end program