'***************************************************************************
'Galil Motion Control Sample DMC Code
'Filename: ContourMode_example.dmc
'***************************************************************************
'Description:
'This code is an example of how to implement Contour Mode.
'This sends CD data (on Y axis) that runs the motor at a constant speed
'***************************************************************************
#a
'CD data is incremental so sending the same CD value causes the motor to run
'at a constant speed.  For custom profiles, the input to CD can be a function
'or input value from a different source.

'If using a Legacy series controller, you may have to input REM or NO 
'command before each of these comment lines.

CM B
i= 0
DP ,0
DT 5; '32msec update rate
CD ,1000
#loop
CD ,1000;WC
TP B
i= i+1
JP #loop,i<10
DT 0;CD 0
MG "DONE"
EN