11
1063_0_Product_Manual - October 27, 2010 2:54 PM
double AccelerationMax(int MotorIndex) [get] : Constant
AccelerationMax is the maximum Acceleration the PhidgetStepper can accept and apply to the motor. In the case of
the 1063, this will always return 1020000.
double AccelerationMin(int MotorIndex) [get] : Constant
AccelerationMin is the minimum Acceleration the PhidgetStepper can accept and apply to the motor. In the case of
the 1063, this will always return 4000.
double Velocity(int MotorIndex) [get]
Velocity returns the current speed that a particular motor is being driven at, as the number of 1/16th steps per
second. With the PhidgetStepper, there is no way of directly controlling the velocity of a motor. The Velocity is also
returned from the device, so typically there will be a 30- 50 ms USB delay.
double VelocityLimit(int MotorIndex) [get,set]
Sets the maximum velocity that the stepper controller will drive the motor. Please note that this is not necessarily
the speed that the motor is being turned at. The motor is accelerated up to the VelocityLimit, and decelerated as it
approaches the target. If the target position is close enough or Acceleration set low enough, the VelocityLimit might
never be reached.
The range of acceptable VelocityLimit is bounded by the software properties VelocityMax and VelocityMin. •
VelocityLimit should be set explicitly before beginning to use the PhidgetStepper.•
VelocityLimit and Acceleration are set on the device in one discrete operation. If VelocityLimit is not set when •
Acceleration is set, it will default to (VelocityMax / 2).
double VelocityMax(int MotorIndex) [get] : Constant
VelocityMax is the maximum VelocityLimit the PhidgetStepper can accept. In the case of the 1063, this will always
return 32768. Functionally, it is the maximum speed that the 1063 can drive your motor at.
double VelocityMin(int MotorIndex) [get]
VelocityMin is the minimum VelocityLimit the PhidgetStepper can accept. In the case of the 1063, this will always
return 0. Functionally, it is the minimum speed that the 1063 can drive your motor at. For very low speeds, you can
increment position inside a slow software based timing loop. Note that if VelocityLimit is set to 0, the motor will not
turn. The smallest velocity that will turn the motor is 8 for the Bipolar Stepper.
int64 CurrentPosition(int MotorIndex) [get,set]
Get returns the current position of a motor in 1/16th step units. Note that there will be some delay (typically
30-50ms) between the PhidgetStepper reporting a position, and that position being read by your application. This
property will return unknown when the motor is not engaged. When the motor is re-engaged, the property will
return the last known position. Set allows you to overwrite the position that the PhidgetStepper is at right now. This
can be useful for zeroing the position when a limit is reached. To keep accurate track of position, CurrentPosition
should only be set when the Stopped property is true.
int64 TargetPosition(int MotorIndex) [get,set]
Sets the desired motor position. Note that setting TargetPosition will override the previous command, and the
motor will begin tracking to the new position immediately. The velocity of the motor will be ramped appropriately.
TargetPosition is bounded by PositionMin, and PositionMax.
int64 PositionMax(int MotorIndex) [get] : Constant
MotorPositionMax is the maximum MotorPosition the 1063 can accept. Functionally, this is the largest position that
the 1063 can move your motors toward. The initial MotorPosition is halfway between Min and Max. Behavior is
undenedifMotorPositionisdrivenpastMinorMax.
int64 PositionMin(int MotorIndex) [get] : Constant
MotorPositionMin is the minimum MotorPosition the 1063 can move your motors toward.