STEPCOUNT (ch)
Purpose | While the stepper motor controller is sending out pulses, this function can be used to monitor the number of stepper pulses sent to the Stepper Motor Channel #ch since the execution of the last "STEPMOVE" command. Hence this function returns the relative number of step moves. This function can also be used to "measure" the physical size of a part if we use the stepper motor to drive a sensor and use the STEPSTOP command and the interrupt input to halt the stepper motor when the edges are detected. The physical size is then computed using the number of steps the stepper motor travels from one edge to another edge. The center position can be easily determined using such data too. |
See Also | STEPMOVE,
STEPMOVEABS, STEPCOUNTABS(
), STEPSPEED, STEPSTOP, STEPHOME |