Author Topic: how to turn off the stepcount command?  (Read 4163 times)

edmund

  • Newbie
  • Posts: 7
  • I love YaBB 1G - SP1!
    • View Profile
how to turn off the stepcount command?
« 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?
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3162
    • View Profile
    • Internet Programmable PLCs
Re: how to turn off the stepcount command?
« Reply #1 on: January 16, 2003, 08:11:40 AM »
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.
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »
Email: support@triplc.com
Tel: 1-877-TRI-PLCS