'*************************************************************************** 'Galil Motion Control Sample DMC Code '*************************************************************************** 'Description: 'Application program to create s-curve profile 'in contour mode. 'Total variable is total number of samples for move 'Dist variable is distance to travel '*************************************************************************** Total=100; 'must be even number Dist=25000 samples=Total/2 split1=(Total/4) split2=((Total/4)*3) 'triangular accel value D1=2*(Dist/2) D2=(samples/2)*(samples/2) TriAC=D1/D2 E1=(TriAC*samples)/2 E2=(E1*4)/samples Jerk = E2/Total 'MG "Jerk=",Jerk DA*[] DM B[Total],C[Total],D[Total] I=0 #JERK B[I]=Jerk I=I+1 JP#JERK,I511; 'waits for contour move complete (Accelera only) CD0;DT0 EN