Thanks for the reply. This is to be used as a calibration loop which will set the stephome position for stepper channel 1. After calibration, the loop would not be run until the next time calibration is required. This is the loop portion of the calibration routine.
STEPSPEED 1,300,50
J=2307 ' Approximate Number of Steps per Unit Change in ADC Value. (Actual Value is .2307)
C=0
A=ADC(1) 'Get Value of ADC Channel 1
E=DM[303]-A 'Calculate the differnce between the Target Value and the ADC Reading
WHILE ABS(E)>4 AND C<100
V=E*J/10000
STEPMOVE 1,V,150
A=ADC(1)
E=DM[303]-A
C=C+1
ENDWHILE
My concern was that the loop would be sending a new stepmove command before the previous command had finished executing. If this is the case, then the ADC(1) value would be read before the stepper had finished moving. This could cause the loop to never converge. That is why i had asked if the loop continued processing even if the stepper had not completed the move.
Thank you for your help.