Velmex    |    BiSlide    |    XSlide
Image Fade Right
 
VXM Driver Documentation - PowerBasic - MotorPosition
 
Image - VXM

All functions assume you followed directions in the "How To Add To Your Project"

MotorPosition

The "MotorPosition" function is very useful in getting a motor position (irreguardless if echo is on or off on the VXM.

Syntax:
      FUNCTION MotorPosition(BYVAL MotorNumber AS LONG) AS STRING

Parameters:
      MotorNumber = Number of the motor that you wish to get the current position for
           

Returns:
      Nothing if failed
      Position if successfull

Example:
      Dim CurrentMotorPosition As String
      CurrentMotorPosition = MotorPosition(1)

Image Fade Bottom Image Fade Right Bottom