#a
'single axis contour motion on Acclera series ONLY
DP 0
i= 0
CM A
DT 8
#loop
CD 1000
i= i+1
JP #loop,i<5
MG "FINISHED LOOP"
CD 0=0;  'command to stop contour mode(must have space after CD)
REM #K;JP#K,_CM<>511; 'waits for buffer empty
#l;JP #l,_DT<>0;       'waits for mode to complete
MG "FINISHED MOTION"
EN