Internet PLC Forum
General => Technical support => Topic started by: edmund on January 15, 2003, 08:36:51 PM
-
i am using the stepcount command to read the step count. but i just need to take the counts for a duration of 1 minutes, how to take the stepcount readings & turn off the stepcount so that i just got the data collected over 1 minutes only?
-
Stepcount automatically give you the number of pulses the stepper motor send out. If you are not using stepper motor then you should not be using stepcount.
STEPCOUNT is not an accumulator, it doesn't "count" only when executed - the counting is done in the background. It only reports the total count in the last stepper move. Please read your TBASIC manual regarding the use of this command.
If you want to know how many pulses the stepper motor has sent out within one minute, then just execute the STEPCOUNT command once at the end of 1 minute wait after the stepmove or stepmoveabs command has been executed.