![]() |
|
|||||||||||||
|
|
|||||||||||||
| t.mc10 |
Control a DC Motor connected |
||
| Input | |||
| int | Speed: Value between -SpeedMax and +SpeedMax. Default is 0 | ||
| int | On. Turns the Motor on and off. Default is on. | ||
| int | Invert. Determines if the direction the motor travels is reversed. Default is off. | ||
| int | Brake. Sets the brake on. The severity of the brake is controlled by the Speed port. Default is off. | ||
| int | SpeedMax. Sets the numerical value of the maximum speed. Default is 100. | ||
| int | CurrentSampleRate. Sets the rate at which the current is sampled in milliseconds. Default is 100ms. | ||
| int | CurrentMax. Sets the current in mA at which the motor shuts off. Default is 10A. | ||
| int | PositionLimitsOn. Signals whether activation of the limit switches actually blocks motion in that direction. Default is off. | ||
| int | PositionMin. Sets the value sent when the Position input on the board receives 0V. Default is -100. | ||
| int | PositionMax. Sets the value sent when the Position input on the board receives 5V. Default is 100. | ||
| int | PositionResolution. Sets the resolution in number of bits for the Position output. Range is 1 to 10, default is 5. (Note that in some versions of the firmware, this property may be called "Resolution") | ||
|
All of the inputs above may be passed to the leftmost inlet as strings of the form
The attribute name is not case sensitive. When the boolean (on or off) attributes (on, invert, brake, positionlimitson) above are sent to the object without a value, the relevant state is toggled between off and on. |
|||
|
Arguments
|
|||
| int | Address: (optional) Specifies the Module Address the Max object is to bind to. Format @address=x where 2 < X < 64. | ||
|
All of the inputs above may be passed to the object at create time by using the following format:
The attribute name is not case sensitive. There must be no spaces between the attribute and the equals sign (=) or between the equals sign and the value. |
|||
| int | PositionSampleRate. Sets the sample period for the Position and PositionLimitA & B outputs.
|
||
|
Output
|
|||
| int | Current. Records the last current value sampled. Value is in mA. Sampling rate is controlled by the CurrentSampleRate value. | ||
| int | PositionLimitA. Records the state of the LimitA button. Does this regardless of the whether PositionLimitsOn is set or not. | ||
| int | PositionLimitB. Records the state of the LimitB button. Does this regardless of the whether PositionLimitsOn is set or not. | ||
| float | Position. The last sampled position. Position sample rate is controlled by the argument PositionSampleRate. | ||
|
Examples
|
|||
|
A t.mc10 object is being used to control a DC motor. |
|||
|
See Also
|
Motor Controller section of the Teleo Motor Controller 10A User Guide | ||
![]() |
|||
|
copyright © 2002-2005 MakingThings LLC |