'***************************************************************************
'Galil Motion Control Sample DMC Code
'***************************************************************************
'Description:
'ECAM mode example.  Creates ECAM table and runs through the points.
'***************************************************************************
#main
  EA A                   ;'define x axis as master
  EM 10240,10240        ;'table cycles
  EP 10, 0              ;'create ecam table

  i = 0
  #l
    ET[i]  = i * 10
    i = i + 1
  JP #l, i < 1024

  DP 0,0                 ;'define starting points
  EB 1                   ;'activate cam
  EG ,0                  ;'engage cam
EN                       ;'end program