Welcome, Guest

TOPIC: pollling motor to determine if RUN program is complete

pollling motor to determine if RUN program is complete 8 years 1 week ago #52

  • brist
  • brist's Avatar
  • OFFLINE
  • Fresh Boarder
  • 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?
The administrator has disabled public write access.

Re:pollling motor to determine if RUN program is complete 8 years 1 week ago #53

  • hsummer
  • hsummer's Avatar
  • OFFLINE
  • Moderator
  • Posts: 12
  • Thank you received: 2
  • 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.
The administrator has disabled public write access.
Time to create page: 0.212 seconds
Powered by Kunena Forum