Platforms to show: All Mac Windows Linux Cross-Platform

Back to PhidgetMotorPositionControllerMBS class.

PhidgetMotorPositionControllerMBS.Acceleration as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The rate at which the controller can change the motor's velocity.

Units for Position, VelocityLimit, Acceleration, and DeadBand can be set by the user through the RescaleFactor. The RescaleFactor allows you to use more intuitive units such as rotations, or degrees.
(Read and Write property)

PhidgetMotorPositionControllerMBS.CurrentLimit as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Motor current limit

The controller will limit the current through the motor to this value.

Unit: amperes (A)
(Read and Write property)

PhidgetMotorPositionControllerMBS.CurrentRegulatorGain as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Current Regulator Gain.

Depending on power supply voltage and motor coil inductance, current through the motor can change relatively slowly or extremely rapidly. A physically larger DC Motor will typically have a lower inductance, requiring a higher current regulator gain. A higher power supply voltage will result in motor current changing more rapidly, requiring a higher current regulator gain. If the current regulator gain is too small, spikes in current will occur, causing large variations in torque, and possibly damaging the motor controller. If the current regulator gain is too high, the current will jitter, causing the motor to sound 'rough', especially when changing directions. Each DC Motor we sell specifies a suitable current regulator gain.
(Read and Write property)

PhidgetMotorPositionControllerMBS.DataInterval as UInt32

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The DataInterval is the time that must elapse before the controller will fire another CurrentChange event.

The data interval is bounded by MinDataInterval and MaxDataInterval.
The timing between CurrentChange events can also affected by the CurrentChangeTrigger.

Unit: milliseconds (ms)
(Read and Write property)

PhidgetMotorPositionControllerMBS.DeadBand as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Depending on your system, it may not be possible to bring the position error (TargetPosition - Position) to zero.

A small error can lead to the motor continually 'hunting' for a target position, which can cause unwanted effects. By setting a non-zero DeadBand, the position controller will relax control of the motor within the deadband, preventing the 'hunting' behavior.
Units for Position, VelocityLimit, Acceleration, and DeadBand can be set by the user through the RescaleFactor. The RescaleFactor allows you to use more intuitive units such as rotations, or degrees.
(Read and Write property)

PhidgetMotorPositionControllerMBS.DutyCycle as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The most recent duty cycle value that the controller has reported.

This value will be between -1 and 1 where a sign change (±) is indicitave of a direction change.
Note that DutyCycle is merely an indication of the average voltage across the motor. At a constant load, an increase in DutyCycle indicates an increase in motor speed.
The units of DutyCycle refer to 'duty cycle'. This is because the controller must rapidly switch the power on/off (i.e. change the duty cycle) in order to manipulate the voltage across the motor.

Unit: duty cycle (duty cycle)
(Read only property)

PhidgetMotorPositionControllerMBS.Engaged as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
When engaged, a motor has the ability to be positioned. When disengaged, no commands are sent to the motor.

This function is useful for completely relaxing a motor once it has reached the target position.
(Read and Write property)

PhidgetMotorPositionControllerMBS.FanMode as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The FanMode dictates the operating condition of the fan.

Choose between on, off, or automatic (based on temperature).
If the FanMode is set to automatic, the fan will turn on when the temperature reaches 70°C and it will remain on until the temperature falls below 55°C.
If the FanMode is off, the controller will still turn on the fan if the temperature reaches 85°C and it will remain on until it falls below 70°C.
(Read and Write property)

PhidgetMotorPositionControllerMBS.IOMode as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The encoder interface mode. Match the mode to the type of encoder you have attached.

It is recommended to only change this when the encoder disabled in order to avoid unexpected results.
(Read and Write property)

PhidgetMotorPositionControllerMBS.Kd as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Derivative gain constant.

A higher Kd will help reduce oscillations.
(Read and Write property)

PhidgetMotorPositionControllerMBS.Ki as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Integral gain constant.

The integral term will help eliminate steady-state error.
(Read and Write property)

PhidgetMotorPositionControllerMBS.Kp as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Proportional gain constant.

A small Kp value will result in a less responsive controller, however, if Kp is too high, the system can become unstable.
(Read and Write property)

PhidgetMotorPositionControllerMBS.MaxAcceleration as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The maximum value that Acceleration can be set to.

Units for Position, VelocityLimit, Acceleration, and DeadBand can be set by the user through the RescaleFactor. The RescaleFactor allows you to use more intuitive units such as rotations, or degrees.
(Read only property)

PhidgetMotorPositionControllerMBS.MaxCurrentLimit as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The maximum current limit that can be set for the device.

Unit: amperes (A)
(Read only property)

PhidgetMotorPositionControllerMBS.MaxCurrentRegulatorGain as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The maximum current regulator gain for the device.

(Read only property)

PhidgetMotorPositionControllerMBS.MaxDataInterval as UInt32

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The maximum value that DataInterval can be set to.

Unit: milliseconds (ms)
(Read only property)

PhidgetMotorPositionControllerMBS.MaxFailsafeTime as UInt32

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The maximum value that failsafeTime can be set to when calling EnableFailsafe.

(Read only property)

PhidgetMotorPositionControllerMBS.MaxPosition as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The maximum value that TargetPosition can be set to.

Units for Position, VelocityLimit, Acceleration, and DeadBand can be set by the user through the RescaleFactor. The RescaleFactor allows you to use more intuitive units such as rotations, or degrees.
(Read only property)

PhidgetMotorPositionControllerMBS.MaxStallVelocity as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The upper bound of StallVelocity.

(Read only property)

PhidgetMotorPositionControllerMBS.MaxVelocityLimit as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The maximum value that VelocityLimit can be set to.

Units for Position, VelocityLimit, Acceleration, and DeadBand can be set by the user through the RescaleFactor. The RescaleFactor allows you to use more intuitive units such as rotations, or degrees.
(Read only property)

PhidgetMotorPositionControllerMBS.MinAcceleration as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The minimum value that Acceleration can be set to.

Units for Position, VelocityLimit, Acceleration, and DeadBand can be set by the user through the RescaleFactor. The RescaleFactor allows you to use more intuitive units such as rotations, or degrees.
(Read only property)

PhidgetMotorPositionControllerMBS.MinCurrentLimit as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The minimum current limit that can be set for the device.

Unit: amperes (A)
(Read only property)

PhidgetMotorPositionControllerMBS.MinCurrentRegulatorGain as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The minimum current regulator gain for the device.

(Read only property)

PhidgetMotorPositionControllerMBS.MinDataInterval as UInt32

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The minimum value that DataInterval can be set to.

Unit: milliseconds (ms)
(Read only property)

PhidgetMotorPositionControllerMBS.MinFailsafeTime as UInt32

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The minimum value that failsafeTime can be set to when calling EnableFailsafe.

(Read only property)

PhidgetMotorPositionControllerMBS.MinPosition as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The minimum value that TargetPosition can be set to.

Units for Position, VelocityLimit, Acceleration, and DeadBand can be set by the user through the RescaleFactor. The RescaleFactor allows you to use more intuitive units such as rotations, or degrees.
(Read only property)

PhidgetMotorPositionControllerMBS.MinStallVelocity as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The lower bound of StallVelocity.

(Read only property)

PhidgetMotorPositionControllerMBS.MinVelocityLimit as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The minimum value that VelocityLimit can be set to.

Units for Position, VelocityLimit, Acceleration, and DeadBand can be set by the user through the RescaleFactor. The RescaleFactor allows you to use more intuitive units such as rotations, or degrees.
(Read only property)

PhidgetMotorPositionControllerMBS.Position as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
The most recent position value that the controller has reported.

This value will always be between MinPosition and MaxPosition.
Units for Position, VelocityLimit, Acceleration, and DeadBand can be set by the user through the RescaleFactor. The RescaleFactor allows you to use more intuitive units such as rotations, or degrees.
(Read only property)

PhidgetMotorPositionControllerMBS.RescaleFactor as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Change the units of your parameters so that your application is more intuitive.

Units for Position, VelocityLimit, Acceleration, and DeadBand can be set by the user through the RescaleFactor. The RescaleFactor allows you to use more intuitive units such as rotations, or degrees.
(Read and Write property)

PhidgetMotorPositionControllerMBS.StallVelocity as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Before reading this description, it is important to note the difference between the units of StallVelocity and Velocity.

Velocity is a number between -1 and 1 with units of 'duty cycle'. It simply represents the average voltage across the motor.
StallVelocity represents a real velocity (e.g. m/s, RPM, etc.) and the units are determined by the RescaleFactor. With a RescaleFactor of 1, the default units would be in commutations per second.

If the load on your motor is large, your motor may begin rotating more slowly, or even fully stall. Depending on the voltage across your motor, this may result in a large amount of current through both the controller and the motor. In order to prevent damage in these situations, you can use the StallVelocity property.

The StallVelocity should be set to the lowest velocity you would expect from your motor. The controller will then monitor the motor's velocity, as well as the Velocity, and prevent a 'dangerous stall' from occuring. If the controller detects a dangerous stall, it will immediately disengage the motor (i.e. Engaged will be set to false) and an error will be reported to your program.

A 'dangerous stall' will occur faster when the Velocity is higher (i.e. when the average voltage across the motor is higher)
A 'dangerous stall' will occur faster as (StallVelocity - motor velocity) becomes larger.

Setting StallVelocity to 0 will turn off stall protection functionality.
(Read and Write property)

PhidgetMotorPositionControllerMBS.TargetPosition as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
If the controller is configured and the TargetPosition is set, the motor will try to reach the TargetPostiion.

If the DeadBand is non-zero, the final position of the motor may not match the TargetPosition
Units for Position, VelocityLimit, Acceleration, and DeadBand can be set by the user through the RescaleFactor. The RescaleFactor allows you to use more intuitive units such as rotations, or degrees.
(Read and Write property)

PhidgetMotorPositionControllerMBS.VelocityLimit as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Phidgets MBS Phidgets Plugin 22.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
When moving, the motor velocity will be limited by this value.

VelocityLimit is bounded by MinVelocityLimit and MaxVelocityLimit.
Units for Position, VelocityLimit, Acceleration, and DeadBand can be set by the user through the RescaleFactor. The RescaleFactor allows you to use more intuitive units such as rotations, or degrees.
(Read and Write property)

The items on this page are in the following plugins: MBS Phidgets Plugin.


The biggest plugin in space...