Welcome, Guest
Username Password: Remember me
  • Page:
  • 1

TOPIC: pollling motor to determine if RUN program is complete

pollling motor to determine if RUN program is complete 5 years, 10 months ago #52

  • brist
  • OFFLINE
  • Posts: 1
  • Karma: 0
is there a cmd I can use to ask the SM2315 if the program it is running (when I issue RUN)is complete? In the past I've used temporary variables ("zz", for example), set them to 0 at the start of a home program and set them to 1 when the program is complete - then have the host poll that variable. Is there a better way?

Re:pollling motor to determine if RUN program is complete 5 years, 10 months ago #53

  • hsummer
  • OFFLINE
  • Posts: 12
  • Karma: 1
Class 4 motors do not have that ability. Our newer class 5 motors do though.
One trick in class 4 motors to see if a program is running is to place code such as x=x+1 in various places throughout the program and then poll x to see if it is still increasing.

Class 5 motors actually have a status but showing programs as running.
  • Page:
  • 1
Moderators: hsummer, csearcy
Time to create page: 0.40 seconds